Ajout de la fonctionnalité d'upload de module.
This commit is contained in:
25
modules/notes/ajax/delete-notes.php
Normal file
25
modules/notes/ajax/delete-notes.php
Normal 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;
|
||||
?>
|
Reference in New Issue
Block a user