<? $err =''; $swinepresent = 0; #include ("testsid.php"); include_once 'func.php'; #include_once 'botscript.php'; include_once 'func_write_log.php'; function udar(&$Player,&$Enemy,$my_kick,$enemy_block){//Рассчёт удара и блока GLOBAL $inv1,$inv2,$BattleID,$botpr; $time_now = date("H:i"); $koef = 20; #include_once 'battleabils.php'; $str_dam=mysql_query("select * from damage_strength"); for ($i=1;$i<=100;$i++){ $str_mindamage[$i]=0; $str_maxdamage[$i]=0; } echo mysql_error(); while ($ar=mysql_fetch_array($str_dam)){ $str_mindamage[$ar["Stringth"]]=$ar["MINdamage"]; $str_maxdamage[$ar["Stringth"]]=$ar["MAXdamage"]; } $inv2=0; $uv=0; $kr=0; $blocked=0; $damage1=0; $my_kick = (int) $my_kick; $enemy_block = (int) $enemy_block; $kick=$my_kick; $block=$enemy_block; $result = $enemy_block & $my_kick; $maxdamage_stre=$str_maxdamage[$Player->strength]; $mindamage_stre=$str_mindamage[$Player->strength]; $maxdamage1 = $Player->SumMAXdamage + $maxdamage_stre; $mindamage1 = $Player->SumMINdamage + $mindamage_stre; $crit1 = ($Player->Crit); $uv2 = ($Enemy->Uvorot); ......... Подскажите пожалуйста, что можно сделать при помощи данного скрипта!?
Мда!! Не многословно! Вот еще один кусок кода!! Помогите как мне Шелл залит на сервак при помощи include??? session_start(); if ((!session_is_registered('acclogin')) || ($acclogin == '') || (!$acclogin) || (!session_is_registered('accid')) || ($accid == '') || (!$accid) || (!session_is_registered('persid')) || ($persid == '') || (!$persid)) { include ("no_sid.php"); die; } include ("db_config4327yuhjn.php"); include ("func_get_info.php"); include ("check.php"); $time_now = date("H:i"); $date_now = date("d.m.Y"); $unix_time = time(); $BattleID=$inf[BattleID]; $bid = $BattleID; $Player=new Player($persid); if (!$bid) { print "<CENTER><B>Не могу получить ID боя<BR>Возможно, бой уже окончен</B><BR>Обновите экран</CENTER>"; mysql_query("UPDATE players SET Script='arena',BattleID=NULL WHERE persid='$persid'") or die(mysql_error()); mysql_close($db); exit; } //---------------------------------------------------------------------- $table_1 = "battle_list"; $table_2 = "battle_action"; //----------------- Определяем сторону игрока --------------------------- $my_team = mysql_query("SELECT * FROM battle_list WHERE (persid = '$persid') AND (bid = '$bid')"); $my_team = mysql_fetch_array($my_team); $team = $my_team["team"]; //----------------------------------------------------------------------- $log = mysql_query("SELECT * FROM logs WHERE (bid = '$bid')"); $log = mysql_fetch_array($log); //-- обратный лог для отображения ---- $rev_log = split("<BR>", $log["Log"]); $rev_log = array_reverse ($rev_log); //------------------------------------ //---------------------------- Конец боя -------------------------------- if ($team == 1) { $enemy_team_temp = 2; $my_team_temp = 1; } if ($team == 2) { $my_team_temp = 2; $enemy_team_temp = 1; } $team_stre = mysql_query("SELECT * FROM battle_str WHERE bid = '$bid'"); while ($tteam_stre = mysql_fetch_array($team_stre)) { $teams_stre_pres = 1; if ($tteam_stre[team]==1) { $team1_stre = $tteam_stre[stre]; } if ($tteam_stre[team]==2) { $team2_stre = $tteam_stre[stre]; } } if ($teams_stre_pres==1) { $teams_stre = $team1_stre+$team2_stre; } $players_list1 = mysql_query("SELECT * FROM $table_1 WHERE (team = '$enemy_team_temp') AND (dead = '0') AND (bid = '$bid')"); if (mysql_num_rows($players_list1) > 0) { $enemy_team_alive = 1;} $players_list2 = mysql_query("SELECT * FROM $table_1 WHERE (team = '$my_team_temp') AND (dead = '0') AND (bid = '$bid')"); if (mysql_num_rows($players_list2) > 0) { $my_team_alive = 1; } $my_group_list6 = mysql_query("SELECT * FROM battle_list WHERE (team!='$team') and (bid='$bid')"); while($this_player_list9 = mysql_fetch_array($my_group_list6)) { $result5 = mysql_query("SELECT Reg_IP,persid FROM players WHERE persid = '$this_player_list9[persid]'"); $result3 = mysql_fetch_array($result5); if ($result3[Reg_IP]=='бот') { $botid=$result3[persid]; } } if ($inf[HPnow] <= 0) { #print "я сдох"; include ("func_battle_end.php"); mysql_close($db); exit;