File size: 1.36Kb
<?
//Скрипт магазина icq-номеров
//Автор SHuRiK(aka LLlypuk)
//Icq: 377248037
//WebMoney R: R338551915279
//WebMoney Z: Z850050838586
//E-Mail: [email protected]
//
//Декабрь 2009
//Цена: бесплатно
require "avto.php";
include "db.php";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
<title>админ-менюшка</title>
</head>
<body>
<?
if (isset($_POST['uin'])){$uin = $_POST['uin']; if ($uin == '') {unset($uin);}}
if (isset($_POST['razdel'])){$razdel = $_POST['razdel']; if ($razdel == '') {unset($razdel);}}
if (isset($_POST['wmr'])) {$wmr = $_POST['wmr']; if ($wmr == '') {unset($wmr);}}
if (isset($_POST['wmz'])) {$wmz = $_POST['wmz']; if ($wmz == '') {unset($wmz);}}
if (isset($_POST['sms'])) {$sms = $_POST['sms'];}
if (isset($_POST['sms2'])) {$sms2 = $_POST['sms2'];}
if (isset($_POST['id'])) {$id = $_POST['id'];}
if (isset($uin) && isset($wmr) && isset($razdel) && isset($wmz))
{$uin[13] = mysql_query("UPDATE uin SET `uin` = '$uin', `wmr`='$wmr', `razdel`='$razdel', `wmz`='$wmz', `sms`='$sms', `sms2`='$sms2' WHERE id='$id'", $db);
if ($uin[13]) {echo "ОК";}
else {echo "HE OK!";}}
else {echo "заполнены не все поля!";}
?>
</body>
</html>