Fourth pass at adding key files

This commit is contained in:
dsainty
2024-06-17 22:30:36 +10:00
parent 08eb7b7da2
commit 67ccdbcc34
132 changed files with 11416 additions and 0 deletions

View File

@ -0,0 +1,30 @@
<?require ("global.php");?>
<?php
if (isset($_GET['ID']))
{
$ID = $_GET["ID"];
$query = "SELECT image FROM markers WHERE ID = $ID LIMIT 1";
$result = mysql_query($query, $db);
if ($result)
{
if ($r = mysql_fetch_array($result))
{
$image = $r['image'];
if ($image != '')
{
unlink("$DOCUMENT_ROOT/tick/images/gallery/${image}");
unlink("$DOCUMENT_ROOT/tick/images/gallery/t_${image}");
}
}
mysql_free_result($result);
}
$query = "DELETE FROM markers WHERE ID = $ID LIMIT 1";
$result = mysql_query($query, $db);
}
header("Location: /tick/markers.php");
?>