Amélioration des scripts AJAX et des styles
Ajout de la fonctionnalité "changement d'options" pour la clockAdvanced
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<?
|
||||
|
||||
// Error reporting
|
||||
error_reporting(E_ALL^E_NOTICE);
|
||||
|
||||
// Escaping:
|
||||
$options = array();
|
||||
$module ='';
|
||||
foreach($_GET as $indice=>$valeur){
|
||||
if($indice == 'id')
|
||||
$module .= $valeur;
|
||||
else
|
||||
$options[$indice] = $valeur;
|
||||
}
|
||||
include '../class/AccueilModules.php';
|
||||
echo AccueilModules::updateModule($module, $options);
|
||||
@@ -1,15 +1,7 @@
|
||||
<?php␍// Error reporting␍error_reporting(E_ALL^E_NOTICE);␍
|
||||
// Validating the input data:␍if(!is_numeric($_GET['x']) || !is_numeric($_GET['y']))␍die("0");␍
|
||||
// Escaping:␍$id = $_GET['id'];␍$x = (int)$_GET['x'];␍$y = (int)$_GET['y'];
|
||||
␍
|
||||
// Saving the position and z-index of the note:␍$xmla = simplexml_load_file('../db/config.xml');
|
||||
|
||||
/*if($id == "weather"){
|
||||
$xmla->item[1]->y = $y;
|
||||
$xmla->item[1]->x = $x;
|
||||
$target = 1;
|
||||
echo $id;
|
||||
}*/
|
||||
␍include '../class/AccueilModules.php';␍echo AccueilModules::updateModule($id, array('x'=>$x, 'y'=>$y));␍␍/*
|
||||
$target = -1;
|
||||
$i = 0;
|
||||
|
||||
@@ -22,6 +14,5 @@ $xmla->item[$target]->y = $y;
|
||||
$xmla->item[$target]->x = $x;
|
||||
|
||||
|
||||
$xmla->asXML('../db/config.xml');
|
||||
|
||||
echo $target;␍?>
|
||||
$xmla->asXML('../db/config.xml');␍
|
||||
echo $target;␍*/␍?>
|
||||
|
||||
Reference in New Issue
Block a user