예제 #1
0
파일: functions.php 프로젝트: ehmedov/www
function showPlayer_inf($myinfo)
{
    $result = mysql_query("SELECT count(*) FROM online WHERE login='******'");
    $db = mysql_fetch_array($result);
    showPlayer($myinfo);
    echo "<center>";
    echo "<B>" . strtoupper($myinfo['city_game']) . "</B><br>";
    if (!$myinfo["adminsite"]) {
        if ($db[0]) {
            echo "<small>Персонаж сейчас находится <B style='color:green'>OnLine.</b><BR>";
            $room = $myinfo["room"];
            include 'otaqlar.php';
            echo "Нахождение: <B>{$mesto}</B>";
            if ($myinfo["bs"]) {
                echo "<br>координаты [" . $myinfo["location"] . "]";
            }
        } else {
            $lv = mysql_query("SELECT MAX(time_stamp) as max FROM report WHERE login='******' and type='1'");
            $lastvisit = mysql_fetch_array($lv);
            echo "<small>Персонаж сейчас <B>Off-line</B><br>";
            echo "Последний вход в игру:<br>";
            echo "(" . $lastvisit['max'] . ")</small>";
        }
    } else {
        echo "<small>Персонаж сейчас <B>Off-line</B><br>";
        echo "Последний вход в игру:<br>";
        echo "(2011-11-10 18:47:08)</small>";
    }
    if ($myinfo["battle"]) {
        $id = (int) $myinfo["battle"];
        echo "<hr width=80%><small>Персонаж сейчас в <a class=us2 href='log.php?log={$id}' target='_blank'><small>поединке</small></a></small><BR>";
    }
    echo "</center>";
}
예제 #2
0
파일: right.php 프로젝트: ehmedov/www
$BOT_D = mysql_fetch_array(mysql_query("SELECT * FROM bot_temp WHERE battle_id='" . $bid . "' and bot_name='" . $protivnik . "'"));
if ($BOT_D) {
    $bot = 1;
    $opponent = $BOT_D["prototype"];
}
$results = mysql_fetch_array(mysql_query("SELECT * FROM users WHERE login='******'"));
if ($bot == 0) {
    showHPbattle($results);
} else {
    if ($bot == 1) {
        showHPBot($BOT_D);
    }
}
if ($P_HDATA["type"] != 55) {
    if ($BOT_D["zver"] == 0) {
        showPlayer($results);
    } else {
        if ($BOT_D["zver"] == 1) {
            showZver($BOT_D["prototype"]);
        }
    }
} else {
    echo "<center>";
    if (str_replace("Гигантская крыса", "", $BOT_D["bot_name"]) != $BOT_D["bot_name"]) {
        echo "<img src='img/obraz/les/krisa.jpg'>";
    } else {
        if (str_replace("Дикий Циклоп", "", $BOT_D["bot_name"]) != $BOT_D["bot_name"]) {
            echo "<img src='img/obraz/les/ciklop.jpg'>";
        } else {
            if (str_replace("Гигантский Червь", "", $BOT_D["bot_name"]) != $BOT_D["bot_name"]) {
                echo "<img src='img/obraz/les/cerv.jpg'>";
예제 #3
0
파일: player.php 프로젝트: ehmedov/www
				</tr>
				<tr><td><span></span></td></tr>	
				<?php 
}
?>
				</table>
				<script>top.setHP(<?php 
echo $hp[0] . "," . $hp[1] . ",100";
?>
);</script>
	    		<script>top.setMana(<?php 
echo $mana['0'] . "," . $mana['1'] . ",100";
?>
);</script>
				<?php 
showPlayer($db);
echo "<table cellspacing='3' border=0 cellpadding='0' width='220' align=left>";
for ($j = 0; $j <= 1; $j++) {
    echo "<tr>";
    for ($i = $j * 6 + 100; $i <= $j * 6 + 105; $i++) {
        echo "<td width=37>";
        showpic($db, $i, 0);
        echo " </td>";
    }
    unset($i);
    echo "</tr>";
}
echo "</table>";
unset($j);
?>
	
예제 #4
0
파일: hospital.php 프로젝트: ehmedov/www
</script>
<SCRIPT language="JavaScript" type="text/javascript" src="fight.js"></SCRIPT>
<h3>Больница</h3>
<font color=red><?php 
echo $msg;
?>
&nbsp;</font>
<table width=100%>
<tr valign=top>
<td>
	<?php 
showHPbattle($db);
showPlayer($db);
?>
</td>
<td>
	<div id='bernard'></div>
	<script>dialog();</script>
</td>
<td width=210>
	<?php 
$result = mysql_query("SELECT * FROM users WHERE login='******' limit 1");
$bot = mysql_fetch_Array($result);
mysql_free_result($result);
showHPbattle($bot);
showPlayer($bot);
?>
</td>
</tr>
</table>
예제 #5
0
     $template = "tour_player.tpl";
     $showList = true;
     savemember($smarty);
     showPlayer($smarty);
     break;
 case "confirmplayer":
     $template = "tour_player.tpl";
     $showList = true;
     confirmplayer($smarty);
     showPlayer($smarty);
     break;
 case "delplayer":
     $template = "tour_player.tpl";
     $showList = true;
     delplayer($smarty);
     showPlayer($smarty);
     break;
 case "scoreplayer":
     $template = "tour_player.tpl";
     $editDetail = true;
     editScore($smarty);
     break;
 case "savescore":
     $template = "tour_player.tpl";
     $editDetail = true;
     saveScore($smarty);
     editScore($smarty);
     break;
 case "result":
     $template = "tour_result.tpl";
     $smarty->assign("admin", true);