Creation of the world

This commit is contained in:
Chouchen
2010-09-14 21:38:29 +00:00
parent 5a50cdb2e4
commit 08469447cb
108 changed files with 4685 additions and 0 deletions

25
ajax/delete-notes.php Normal file
View File

@@ -0,0 +1,25 @@
<?// Escaping the input data:
$rid = $_POST['id'];
$explodeid = explode("-",$rid);
$id = intval($explodeid[1]);
$xmla = simplexml_load_file('../db/notes.xml');
$target = false;
$i = 0;
foreach ($xmla->note as $s) {
if ($s['id']==$id) { $target = $i; break; }
$i++;
}
if ($target !== false) {
unset($xmla->note[$target]);
}
$xmla->asXML('../db/notes.xml');
$target++;
echo $target;
?>