2010-09-14 23:38:29 +02:00
|
|
|
<?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'];
|
2010-09-20 16:39:08 +02:00
|
|
|
include '../class/AccueilModules.php';
echo AccueilModules::updateModule($id, array('x'=>$x, 'y'=>$y));
/*
|
2010-09-14 23:38:29 +02:00
|
|
|
$target = -1;
|
|
|
|
$i = 0;
|
|
|
|
|
|
|
|
foreach ($xmla->item as $s) {
|
|
|
|
if ($s['id']==$id) { $target = $i; break; }
|
|
|
|
$i++;
|
|
|
|
}
|
|
|
|
|
|
|
|
$xmla->item[$target]->y = $y;
|
|
|
|
$xmla->item[$target]->x = $x;
|
|
|
|
|
|
|
|
|
2010-09-20 16:39:08 +02:00
|
|
|
$xmla->asXML('../db/config.xml');
|
|
|
|
echo $target;
*/
?>
|