function ShowCombatLog($combat_id, $log_hod) { global $char; $log_message = show_combat_log($combat_id, $log_hod, '99%'); if ($log_message != '') { echo '<center><div id="log_boy" style="width:95%; border: 2px groove #008000; padding:2px; max-height:160px; overflow: auto;">'; echo $log_message; echo '</div></center>'; ?> <script language="JavaScript" type="text/javascript"> try { log = document.getElementById("log_table"); for (var i = log.rows.length-1; i>=0; i--) { if (log.rows[i].cells[1].textContent=="<?php echo $char['name']; ?> ") { log.rows[i].bgColor="#282828"; } else if (log.rows[i].cells[2].textContent.indexOf("<?php echo $char['name']; ?> ")>-1) { log.rows[i].bgColor="#580000"; } } } catch(e) {} </script> <?php } }
echo ' <b>Бой рас</b><br>'; } if ($boy['type'] == 8) { echo ' <b>Турнирная дуэль</b><br>'; } if ($boy['type'] == 9) { echo ' <b>Турнирный бой</b><br>'; } echo 'Всего ходов: ' . $boy['hod'] . '<br><br> '; $path = "/home/vhosts/rpg.su/web/combat/log"; if (domain_name == 'localhost') { $path = "../combat/log"; } //$file1 = $path."/".$war.".dat"; //if (file_exists($file1)) {include($file1);}; echo show_combat_log($war); /* echo '<br>'; $file2 = $path."/".$war."_stat.dat"; if (file_exists($file2)) {include($file2);}; */ if (isset($pass) and $pass == 'elfzone') { $selchat = myquery("SELECT * FROM game_combats_chat WHERE boy={$war} ORDER BY id ASC"); while ($ch = mysql_fetch_array($selchat)) { echo '<br>' . $ch['chat'] . ''; } } /* if (isset($sys) and isset($pass) and $pass=='elfzone') { echo'<br>';
echo ' <b>Турнирный групповой бой</b><br>'; } if ($log['type'] == 10) { echo ' <b>Бой с тенью</b><br>'; } if ($log['type'] == 11) { echo ' <b>Турнирный хаотичный бой</b><br>'; } echo 'Всего ходов: ' . $log['hod'] . '<br><br> '; $path = "/home/vhosts/rpg.su/web/combat/log"; if (domain_name == 'localhost') { $path = "../combat/log"; } //include($path."/".$log_id.".dat"); //echo '<br>'; echo show_combat_log($log_id); if ($adm['log_war'] >= 2) { $sel_chat = myquery("SELECT * FROM game_combats_chat WHERE boy={$log_id} ORDER BY id"); while ($ch = mysql_fetch_array($sel_chat)) { echo '<br>' . $ch['chat'] . ''; } } echo '<br>'; $file2 = $path . "/" . $log_id . "_stat.dat"; if (file_exists($file2)) { include $file2; } } } else { echo 'Логи боев:<br><hr><br>'; $view = myquery("(select game_combats_log.boy,game_combats_log.time,game_combats_log.hod,game_users.name from game_combats_log,game_users,game_combats_users WHERE game_combats_log.time>=" . (time() - 24 * 60 * 60) . " AND game_combats_log.time<=" . time() . " AND game_combats_users.boy=game_combats_log.boy AND game_users.user_id=game_combats_users.user_id) UNION (select game_combats_log.boy,game_combats_log.time,game_combats_log.hod,game_users_archive.name from game_combats_log,game_users_archive,game_combats_users WHERE game_combats_log.time>=" . (time() - 24 * 60 * 60) . " AND game_combats_log.time<=" . time() . " AND game_combats_users.boy=game_combats_log.boy AND game_users_archive.user_id=game_combats_users.user_id)");
if ($type == 7) { echo '<center><b><font color=#FF0080>Бой рас</font></b></center><br>'; } if ($type == 8) { echo '<center><b><font color=#FF0080>Турнирная дуэль</font></b></center><br>'; } if ($type == 9) { echo '<center><b><font color=#FF0080>Турнирный групповой бой</font></b></center><br>'; } if ($type == 10) { echo '<center><b><font color=#FF0080>Бой с тенью</font></b></center><br>'; } if ($type == 11) { echo '<center><b><font color=#FF0080>Турнирный хаотичный бой</font></b></center><br>'; } //echo $log['message']; echo show_combat_log($log['combat_id'], $log['hod']); echo '<hr><br>'; } echo ' <br/>Завершить текущий бой игрока: <br/><br/><form action="admin.php?opt=main&option=log_war&user" method="post"> Имя: <input name="user" type="text" size="25" id="keyword" onkeyup="handleKeyUp(event)"> <div style="display:none;" id="scroll"><div id="suggest"></div></div> <br/><input name="submit" type="submit" value="Выполнить"> </form></div><script>init();</script>'; echo '<br><br><a href="?opt=main&option=log_war">Обновить</a><br>'; echo '</center>'; } if (function_exists("save_debug")) { save_debug(); }