Creation of the world
This commit is contained in:
27
ajax/update_position_config.php
Normal file
27
ajax/update_position_config.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?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;
|
||||
}*/
|
||||
$target = -1;
|
||||
$i = 0;
|
||||
|
||||
foreach ($xmla->item as $s) {
|
||||
Reference in New Issue
Block a user