b374k
m1n1 1.01
Apache
Linux webd001.cluster107.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
uid=2234(oyaide) gid=100(users) groups=100(users)
server ip : 213.186.33.18 | your ip : 216.73.216.159
safemode OFF
 >  / home / oyaide / www / astrovega.be / admin /
Filename/home/oyaide/www/astrovega.be/admin/delete.php
Size2.19 kb
Permissionrw-r--r--
Owneroyaide : users
Create time03-Nov-2008 15:18
Last modified03-Feb-2006 11:14
Last accessed08-Feb-2009 21:41
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
<?
session_start();
if ($_SESSION['auth']!="yes")
{
include("index.php");
session_destroy();
unset($_SESSION);
exit();
}
echo "
<html>
<head>
<title>Zone d'adminitration</title>
<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>
<link href='../style.css' rel='stylesheet' type='text/css'>
<link href='../logo.ico' rel='shortcut icon'>
<meta name='author' content='Max Richir'>
</head>

<body>
<div align='center'>
<table width='165' border='0' cellpadding='10' cellspacing='0' bgcolor='#FFFFFF'>
<tr>
<td><table width='165' border='0' cellpadding='1' cellspacing='0'>
<tr>
<td><table width='165' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td><img src='../images/banner_top.jpg' width='700' height='108'></td>
</tr>
<tr>
<td align='right' valign='top' background='../images/banner_bottom.jpg'><img src='../images/admin.png' name='forums' width='168' height='29' border='0' align='absmiddle'></td>
</tr>
</table></td>
</tr>
<tr>
<td>"; ?><? include ("menu.php"); ?><? echo "</td>
</tr>
<tr>
<td height='18' align='left' valign='top'><table width='700' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td align='center'>"; ?><?
include("config.php");

$table=array_key_exists("table", $_GET)?$_GET["table"]:"";
$field=array_key_exists("field", $_GET)?$_GET["field"]:"";
$id=array_key_exists("id", $_GET)?$_GET["id"]:"";

$connection = mysql_connect($host, $user, $password)
or die ("<span class='star'>La connexion au serveur a &eacute;chou&eacute;e.</span>");
$db = mysql_select_db($database, $connection)
or die ("<span class='star'>Pas de s&eacute;lection dans la base de donn&eacute;es.</span>");
mysql_query("DELETE FROM $table WHERE $field = '$id'") or die ("<span class='star'>Impossible de supprimer</span>");
mysql_close();
echo "Suppression r&eacute;ussie";
exit();
?><? echo "</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
</div>
</body>
</html>";
?>