Файл: l2ps_v5/files/data.php
Строк: 44
<?php
##########################################
## Автор: Bopo6eu aka 7up # ## Сайт: http://l2pirates.ru # ## ICQ : 44-67-47-41 # ## Версия Лицензионная #
## Данная версия скрипта является ПЛАТНОЙ, #
## вы НЕ ИМЕЕТЕ ПРАВА распрострянять данный #
## скрипт или какие-либо части его кода... #
#########################################
$salt = "-hDJ]=N";
$pas = md5(md5($pas).$salt);
$udatas=mysql_query("SELECT * FROM `users` WHERE `udata0`='$log' AND `udata1`='$pas' LIMIT 1");
$udatas= mysql_fetch_array($udatas);
$udata001=$udatas['id'];
$udata0=$udatas['udata0'];
$udata1=$udatas['udata1'];
$udata2=$udatas['udata2'];
$udata3=$udatas['udata3'];
$udata4=$udatas['udata4'];
$udata5=$udatas['udata5'];
$udata6=$udatas['udata6'];
$udata7=$udatas['udata7'];
$udata8=$udatas['udata8'];
$udata9=$udatas['udata9'];
$udata10=$udatas['udata10'];
$udata11=$udatas['udata11'];
$udata12=$udatas['udata12'];
$udata13=$udatas['udata13'];
$udata14=$udatas['udata14'];
$udata15=$udatas['udata15'];
$udata16=$udatas['udata16'];
$udata17=$udatas['udata17'];
$udata18=$udatas['udata18'];
$udata19=$udatas['udata19'];
$udata20=$udatas['udata20'];
$udata21=$udatas['udata21'];
$udata22=$udatas['udata22'];
$udata23=$udatas['udata23'];
$udata24=$udatas['udata24'];
$udata25=$udatas['udata25'];
$udata26=$udatas['udata26'];
$udata27=$udatas['udata27'];
$udata28=$udatas['udata28'];
$udata29=$udatas['udata29'];
$udata30=$udatas['udata30'];
$udata31=$udatas['udata31'];
$udata32=$udatas['udata32'];
$udata33=$udatas['udata33'];
$udata34=$udatas['udata34'];
$udata35=$udatas['udata35'];
$udata36=$udatas['udata36'];
$udata37=$udatas['udata37'];
$udata38=$udatas['udata38'];
$udata39=$udatas['udata39'];
$udata40=$udatas['udata40'];
$udata41=$udatas['udata41'];
$udata42=$udatas['udata42'];
$udata43=$udatas['udata43'];
$udata44=$udatas['udata44'];
$udata45=$udatas['udata45'];
$udata46=$udatas['udata46'];
$udata47=$udatas['udata47'];
$udata48=$udatas['udata48'];
$udata49=$udatas['udata49'];
$udata50=$udatas['udata50'];
$udata51=$udatas['udata51'];
$udata52=$udatas['udata52'];
$udata53=$udatas['udata53'];
$udata54=$udatas['udata54'];
$udata55=$udatas['udata55'];
$udata56=$udatas['udata56'];
$udata57=$udatas['udata57'];
$udata58=$udatas['udata58'];
$udata59=$udatas['udata59'];
$udata60=$udatas['udata60'];
$udata61=$udatas['udata61'];
$udata62=$udatas['udata62'];
$udata63=$udatas['udata63'];
$udata64=$udatas['udata64'];
$udata65=$udatas['udata65'];
$udata66=$udatas['udata66'];
$udata67=$udatas['udata67'];
$udata68=$udatas['udata68'];
$udata69=$udatas['udata69'];
$udata70=$udatas['udata70'];
$udata71=$udatas['udata71'];
$udata72=$udatas['udata72'];
$udata73=$udatas['udata73'];
$udata74=$udatas['udata74'];
$udata75=$udatas['udata75'];
$udata76=$udatas['udata76'];
$udata77=$udatas['udata77'];
$udata78=$udatas['udata78'];
$udata79=$udatas['udata79'];
$udata80=$udatas['udata80'];
$udata81=$udatas['udata81'];
$udata82=$udatas['udata82'];
$udata83=$udatas['udata83'];
$udata84=$udatas['udata84'];
$udata85=$udatas['udata85'];
$udata86=$udatas['udata86'];
$udata87=$udatas['udata87'];
$udata88=$udatas['udata88'];
$udata89=$udatas['udata89'];
$udata90=$udatas['udata90'];
$udata91=$udatas['udata91'];
$udata92=$udatas['udata92'];
$udata93=$udatas['udata93'];
$udata94=$udatas['udata94'];
$udata95=$udatas['udata95'];
$udata96=$udatas['udata96'];
$udata97=$udatas['udata97'];
$udata98=$udatas['udata98'];
$udata99=$udatas['udata99'];
$udata100=$udatas['udata100'];
$wmr=$udatas['wmr'];
$url=$udatas['url'];
$balanse=$udatas['balanse'];
$USER_ID=$udatas['id'];
$USER_NAME=$udatas['udata0'];
$USER_PASSWORD=$udatas['udata1'];
$POL=$udatas['udata2'];
$clan=$udatas['udata23'];
$color=$udatas['udata25'];
$RASSA=$udatas['udata26'];
$CLASS=$udatas['udata27'];
$PROFESSION=$udatas['udata33'];
$AA=$udatas['udata32'];
$post=$udatas['udata89'];
$sekret=$udatas['udata73'];
$zerna=$udatas['udata71'];
$vshod=$udatas['udata72'];
$Patt=$udatas['udata4'];
$Matt=$udatas['udata83'];
$Pdef=$udatas['udata3'];
$Mdef=$udatas['udata82'];
$LEVEL=$udatas['udata9'];
$EXP=$udatas['udata19'];
$GOROD=$udatas['udata20'];
$ADEN=$udatas['udata8'];
$COIN=$udatas['udata38'];
$raid=$udatas['udata51'];
$CP=$udatas['udata42'];
$ALLCP=$udatas['udata43'];
$HP=$udatas['udata16'];
$ALLHP=$udatas['udata17'];
$MP=$udatas['udata29'];
$ALLMP=$udatas['udata30'];
$SP=$udatas['udata31'];
$PK=$udatas['udata61'];
$PVP=$udatas['udata85'];
$KARMA=$udatas['udata86'];
$LOCATION=$udatas['udata47'];
$LOCATION_PAGE=$udatas['location_page'];
$STR=$udatas['str'];
$DEX=$udatas['dex'];
$WIT=$udatas['wit'];
$INT=$udatas['int'];
$CON=$udatas['con'];
$MEN=$udatas['men'];
$WEIGHT=$udatas['weight'];
$AGILITY=$udatas['agility'];
$CRIT=$udatas['crit'];
$TIME=$udatas['udata28'];
$GAME_TIME=$udatas['udata60'];
$BOI_D=$udatas['$udata7'];
$BOI_V=$udatas['$udata6'];
$USER_IP=$udatas['udata69'];
$p_skills_s = mysql_query("SELECT * FROM `p_skills` WHERE `user_id`='$USER_ID' LIMIT 1");
$ps=mysql_fetch_array($p_skills_s);
$ATT=$ps['att'];
$DEF=$ps['def'];
$MYD=$ps['myd'];
$SKILLS=$ps['skills'];
$date=date("D");
if($date=="Sun"){
$time=date("H:i");
if($time=="12:00"){
mysql_query("UPDATE `castle` SET `status`='1' ");
}
}
$pet_active = mysql_query("SELECT * FROM `pet` WHERE `user_id` = '$USER_ID' and `type`='active' LIMIT 1");
$null_pet=mysql_num_rows($pet_active);
if($null_pet==1){
$pet=mysql_fetch_array($pet_active);
$PET_ID=$pet['id'];
$PET_NAME=$pet['name'];
$PET_ATT=$pet['att'];
$PET_DEF=$pet['def'];
$PET_MATT=$pet['m_att'];
$PET_MDEF=$pet['m_def'];
$PET_LEVEL=$pet['level'];
$PET_EXP=$pet['experience'];
$PET_HP=$pet['hp'];
$PET_ALLHP=$pet['allhp'];
$PET_MP=$pet['mp'];
$PET_ALLMP=$pet['allmp'];
}
//////////////////////////////////////////////////////////////////////////////////////
$settings = mysql_query("SELECT * FROM `settings` WHERE `user_id`='$USER_ID' LIMIT 1");
$set=mysql_fetch_array($settings);
$CHAT=$set['chat'];
$CHAT_K=$set['chat_k'];
$THEME=$set['theme'];
$SENSOR=$set['sensor'];
$MAG=$set['mag'];
$SNOW=$set['snow'];
$ip=htmlspecialchars(stripslashes($_SERVER['REMOTE_ADDR']));
$name_script = $_SERVER['SCRIPT_NAME'];
if($name_script=="/udar.php" or $name_script=="/udar_cs.php"){
$time=time();
$restriction=mysql_query("SELECT * FROM `restriction` WHERE `user_id`='$USER_ID' and `time`='$time' LIMIT 1");
if(mysql_num_rows($restriction)==1){
$st=mysql_fetch_array($restriction);
$st[stream]=$st[stream]+1;
mysql_query("UPDATE `restriction` SET `stream`='$st[stream]' WHERE `user_id`='$USER_ID' LIMIT 1");
}else{
mysql_query("DELETE FROM `restriction` WHERE `user_id`='$USER_ID' LIMIT 1");
$time=time();
mysql_query("INSERT INTO `restriction` SET `user_id` = '$USER_ID', `stream` = '1', `time` = '$time'");
}
$restriction=mysql_query("SELECT * FROM `restriction` WHERE `user_id`='$USER_ID' and `stream`>'2' and `time`='$time' LIMIT 1");
if(mysql_num_rows($restriction)==1){
mysql_query("INSERT INTO `history_battle` VALUES ('', 'В секунду можно наносить не более 2 ударов.', '$USER_ID')");
mysql_query("DELETE FROM `restriction` WHERE `user_id`='$USER_ID' LIMIT 1");
if($name_script=="/udar.php"){
header ("Location: /combat/");exit;
}
if($name_script=="/udar_cs.php"){
header ("Location: /combat_cs/");exit;
}
}
}
?>