Файл: l2ps_v5/version.php
Строк: 26
<?php
include_once("files/zag.php");
include_once("files/ini.php");
$polz=mysql_query("SELECT * FROM `users` WHERE `udata0`='$log' AND `udata1`='$pas' LIMIT 1");
if(mysql_num_rows($polz)==0){
header ("Location: index.php?error");
}else{
switch(@$go) {
default:
break;
case 'dark':
mysql_query("UPDATE `users` SET `udata47`='dark' WHERE `udata0`='$log'");
header ("Location: main");
break;
case 'war':
mysql_query("UPDATE `users` SET `udata47`='war' WHERE `udata0`='$log'");
header ("Location: main");
break;
case 'l2':
mysql_query("UPDATE `users` SET `udata47`='l2' WHERE `udata0`='$log'");
header ("Location: main");
break;
case 'favorit':mysql_query("UPDATE `users` SET `udata47`='favorit' WHERE `udata0`='$log'");
header ("Location: main");
break;
case 'wap':
mysql_query("UPDATE `users` SET `udata47`='wap' WHERE `udata0`='$log'");
header ("Location: main");
break;
case 'l2pirates':
mysql_query("UPDATE `users` SET `udata47`='l2pirates' WHERE `udata0`='$log'");
header ("Location: main");
break;
case 'white':
mysql_query("UPDATE `users` SET `udata47`='white' WHERE `udata0`='$log'");
header ("Location: main");
break;
}}
include_once"files/down.php";
?>