Просмотр файла admin/edit-set.php

Размер файла: 2.31Kb
<?
//Скрипт магазина icq-номеров
//Автор SHuRiK(aka LLlypuk)
//Icq: 377248037
//WebMoney R: R338551915279
//WebMoney Z: Z850050838586
//E-Mail: [email protected]
//
//Декабрь 2009
//Цена: бесплатно
require "avto.php";
include "db.php";

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['wmid'])) 	{$wmid = 	$_POST['wmid']; if ($wmid == '') 	{unset($wmid);}}
if (isset($_POST['title'])) {$title = 	$_POST['title'];if ($title == '') 	{unset($title);}}
if (isset($_POST['icq'])) 	{$icq = 	$_POST['icq']; 	if ($icq == '') 	{unset($icq);}}
if (isset($_POST['wmcom'])) {$wmcom = 	$_POST['wmcom'];if ($wmcom == '') 	{unset($wmcom);}}
if (isset($_POST['pokaz_bl'])){$pokaz_bl = $_POST['pokaz_bl']; if ($pokaz_bl == '') {unset($pokaz_bl);}}
if (isset($_POST['pokaz_pusto'])){$pokaz_pusto = $_POST['pokaz_pusto']; if ($pokaz_pusto == '') {unset($pokaz_pusto);}}
if (isset($_POST['na_str'])) {$na_str = 	$_POST['na_str'];if ($na_str == '') 	{unset($na_str);}}
?>
<!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>
<?
$editset[1] = mysql_query("UPDATE `set` SET zn='$wmr' WHERE name='wmr'");
$editset[2] = mysql_query("UPDATE `set` SET zn='$wmz' WHERE name='wmz'");
$editset[3] = mysql_query("UPDATE `set` SET zn='$wmid' WHERE name='wmid'");
$editset[4] = mysql_query("UPDATE `set` SET zn='$title' WHERE name='title'");
$editset[5] = mysql_query("UPDATE `set` SET zn='$icq' WHERE name='icq'");
$editset[6] = mysql_query("UPDATE `set` SET zn='$wmcom' WHERE name='wmcom'");
$editset[7] = mysql_query("UPDATE `set` SET zn='$pokaz_bl' WHERE name='pokaz_bl'");
$editset[8] = mysql_query("UPDATE `set` SET zn='$pokaz_pusto' WHERE name='pokaz_pusto'");
$editset[9] = mysql_query("UPDATE `set` SET zn='$na_str' WHERE name='na_str'");

if (mysql_error()) {echo "произошла ошибка<br>".mysql_error();}

if ($editset[1]&&$editset[2]&&$editset[3]&&$editset[4]&&$editset[5]&&$editset[6]&&$editset[7]&&$editset[8]&&$editset[9])
{echo "все ОК!";}
?>
</body>
</html>