<?
////////////////////
//By Chiksan 2oo9///
//[email protected]//
////////////////////
include '../connect.php';
include_once 'head.php';
session_start();
if (!isset($_SESSION['login']) || !isset($_SESSION['password']))
{exit('Упс...Доступ Закрыт.<br><a href="login.php">Сделать Вход!</a>');}
if (isset($_GET['id'])){$id=$_GET['id'];}
if (isset($_GET['cid'])){$cid=$_GET['cid'];}
////////////////////////////////
if (!preg_match("|^[\d]+$|",$cid))
{
include "head.php";
exit("Неверный формат запроса!<a href='javascript:history.back(1)'> Назад </a>\n");
}
if (!preg_match("|^[\d]+$|",$id))
{
include "head.php";
exit("Неверный формат запроса!<a href='javascript:history.back(1)'> Назад </a>\n");
}
///////////////
if ($_GET['cid']==5)
{
$set = mysql_query ('DELETE FROM 5dig WHERE id='.intval($id).'')or die("Oooppss...");}
//////////////////////////////////
if ($_GET['cid']==6)
{
$set = mysql_query ('DELETE FROM 6dig WHERE id='.intval($id).'')or die("Oooppss...");}
//////////////////////////////////
if ($_GET['cid']==7)
{
$set = mysql_query ('DELETE FROM 7dig WHERE id='.intval($id).'')or die("Oooppss...");}
//////////////////////////////////
if ($_GET['cid']==8)
{
$set = mysql_query ('DELETE FROM 8dig WHERE id='.intval($id).'')or die("Oooppss...");}
//////////////////////////////////
if ($_GET['cid']==9)
{
$set = mysql_query ('DELETE FROM 9dig WHERE id='.intval($id).'')or die("Oooppss...");}
//////////////////////////////////
$setrow = mysql_fetch_array ($set);
if (mysql_affected_rows() >0)
{
echo "Номер Удален!";
}
else
{
echo 'Номера не существует';
}
include "foot.php";
?>