Exemple #1
0
     echo '<tr bgcolor="#333333" valign="middle">
 <td><font size="1" face="Verdana" color="#ffffff"><a href=http://' . domain_name . '/view/?userid=' . $act['user_id'] . ' target="_blank">' . $act['name'] . '</a></font></td>
 <td><font size="1" face="Verdana" color="#ffffff">' . $act['race_name'] . '</font></td>
 <td><font size="1" face="Verdana" color="#ffffff">' . $act['clevel'] . '</font></td>
 <td><font size="1" face="Verdana" color="#ffffff">' . $act['map_name'] . ': x-' . $act['map_xpos'] . ' y-' . $act['map_ypos'] . '</font></td>
 <td><font size="1" face="Verdana" color="#ffffff">';
     if (!empty($flagPath)) {
         echo '<img src=http://' . img_domain . '/' . $flagPath . ' border="0" title="' . $countryName . '" height="15">&nbsp;';
     }
     echo number2ip($act['host']) . ' </font></td>
 <td><font size="1" face="Verdana" color="#ffffff">';
     if (!empty($flagPathMore)) {
         echo '<img src=http://' . img_domain . '/' . $flagPathMore . ' border="0" title="' . $countryNameMore . '" height="15">&nbsp;';
     }
     echo $act['host_more'] . '</font></td>
 <td><font size="1" face="Verdana" color="#ff0000">' . get_delay_reason($act['delay_reason']) . '</font></td>
 <td><font size="1" face="Verdana" color="#ffffff">' . $act['func_id'] . '</font></td>';
     if ($adm['users'] >= 1) {
         echo '
   <td><font size="1" face="Verdana" color="#ffffff">' . $act['GP'] . '</font></td>
   <td><font size="1" face="Verdana">' . $act['EXP'] . '</font></td>
   <td><font size="1" face="Verdana" color="#ffffff">' . $act['email'] . '</font></td>
   <td><font size="1" face="Verdana" color="#ffffff"><a href="admin.php?opt=main&option=users&name_v=' . $act['name'] . '"><img width="20" height="20" src="http://' . img_domain . '/nav/show.gif" border="0"></a></font></td>';
         if ($act['boy'] != 0) {
             echo '<td><font size="1" face="Verdana" color="#ffffff"><a href="admin.php?opt=main&option=ip&sort=' . $sort . '&del_combat=' . $act['user_id'] . '"><img width="20" height="20" src="http://' . img_domain . '/nav/action_notattack.gif" border="0"></a></font></td>';
         } else {
             echo '<td>&nbsp;</td>';
         }
     }
     echo '</tr>';
 }
Exemple #2
0
     exit('Не определен аватар!');
 }
 $MainHeight = 100;
 $img = ImageCreateTrueColor(490, $MainHeight);
 function win2uni($s)
 {
     $s = convert_cyr_string($s, 'w', 'i');
     for ($result = '', $i = 0; $i < strlen($s); $i++) {
         $charcode = ord($s[$i]);
         $result .= $charcode > 175 ? "&#" . (1040 + ($charcode - 176)) . ";" : $s[$i];
     }
     return $result;
 }
 $reason = '';
 if (time() - $row['last_active'] <= 300) {
     $reason = get_delay_reason(get_delay_reason_id($row['user_id']));
 }
 if ($row['sklon'] == 1) {
     //нейтральные
     $text_color_1 = "FFFF00";
     $text_color_2 = "FFFFFF";
     $color_1 = "000000";
     $color_2 = "00CC66";
 } elseif ($row['sklon'] == 2) {
     //светлые
     $text_color_1 = "FFFF00";
     $text_color_2 = "FFFFFF";
     $color_1 = "000000";
     $color_2 = "FF0000";
 } elseif ($row['sklon'] == 3) {
     //темные
Exemple #3
0
function show_user($user)
{
    global $keeper, $guest, $admin;
    $user_data = mysql_fetch_array(myquery("SELECT * FROM game_users_data WHERE user_id='" . $user['user_id'] . "'"));
    $klan = myquery("SELECT * FROM game_clans WHERE clan_id='" . $user['clan_id'] . "'");
    $klan = mysql_fetch_array($klan);
    echo '<center><font face=verdana size=2 color=ff0000><b>' . $user['name'] . '</font> (' . mysql_result(myquery("SELECT name FROM game_har WHERE id=" . $user['race'] . ""), 0, 0) . ' ' . $user['clevel'] . ' уровня)</b>';
    if ($user_data['sex'] == "male") {
        echo '<br><font color=#80FFFF>(Парень)</font>';
    }
    if ($user_data['sex'] == "female") {
        echo '<br><font color=#FF00FF>(Девушка)</font>';
    }
    if ($user_data['dr_date'] > 0 or $user_data['dr_month'] > 0 or $user_data['dr_year'] > 0) {
        echo '<br>День рождения: ' . $user_data['dr_date'] . '.' . $user_data['dr_month'] . '.' . $user_data['dr_year'] . '';
    }
    echo '</center>';
    $user_date = date('d.m.Y : H:i:s', $user_data['last_visit']);
    echo '<center><b>Последний раз игрок был: <font color=ff0000>"' . $user_date . '"</font>';
    if ($user_data['rego_time'] > 0) {
        $user_date = date('d.m.Y : H:i:s', $user_data['rego_time']);
        echo '<center><b>Персонаж зарегистрирован: <font color=ff0000>"' . $user_date . '"</font>';
    }
    $vozrast_year = floor($user_data['vozrast'] / 12);
    $vozrast_mes = $user_data['vozrast'] - $vozrast_year * 12;
    $vozrast = '' . $vozrast_year . ' л. ' . $vozrast_mes . ' мес.';
    echo '<center><b>Возраст игрока: <font color=ff0000>"' . $vozrast . '"</font>';
    if ($user['vsadnik'] > 20) {
        $konn = myquery("SELECT gv.* FROM game_vsadnik gv JOIN game_users_horses guh ON guh.horse_id=gv.id WHERE guh.user_id='" . $user['user_id'] . "' limit 1");
        $kon = mysql_fetch_array($konn);
        echo '<center><br><b>Всадник! Сидит на <font color=ff0000>"' . $kon['nazv'] . '"</font>';
    }
    echo '<br>';
    echo '<br><font color="White" size=2><b><center>Реинкарнация игрока:</font> <font color=#FF0000 size=2>' . $user['reinc'] . '</center></b>';
    echo '<br>
		<br><font color="White" size=2 face=verdana>Склонность игрока: ';
    if ($user['clan_id'] == 1) {
        echo '<img src="http://' . img_domain . '/sklon/admin.gif" border="0">&nbsp;&nbsp;<span style="color:#D0D0D0;font-weight:800;">Высшая</span>';
    } elseif ($user['sklon'] == 0) {
        echo '&nbsp;&nbsp;Без склонности';
    } elseif ($user['sklon'] == 1) {
        echo '<img src="http://' . img_domain . '/sklon/neutral.gif" border="0">&nbsp;&nbsp;<span style="color:#D0D0D0;font-weight:800;">Нейтральная</span>';
    } elseif ($user['sklon'] == 2) {
        echo '<img src="http://' . img_domain . '/sklon/light.gif" border="0">&nbsp;&nbsp;<span style="color:#FFFFC0;font-weight:800;">Светлая</span>';
    } elseif ($user['sklon'] == 3) {
        echo '<img src="http://' . img_domain . '/sklon/dark.gif" border="0">&nbsp;&nbsp;<span style="color:#969696;font-weight:800;">Темная</span>';
    }
    echo '<center><table border="0" cellpadding="0" cellspacing="0">';
    if ($klan['clan_id'] != 0) {
        list($rating, $zvanie) = mysql_fetch_array(myquery("SELECT clan_rating,clan_zvanie FROM game_users_data WHERE user_id='" . $user['user_id'] . "'"));
        echo '<tr><td colspan="3" valign="top">';
        echo '<font color=#FF0000 size=2><b><center>Клан игрока: <a href="http://' . domain_name . '/view/?clan=' . $klan['clan_id'] . '">' . $klan['nazv'] . '</a></center></b></font><br>';
        if ($rating != '0') {
            echo '<center><font color=ffff00>   Рейтинг в клане - <b>' . $rating . '</b></font><br>';
        }
        if ($zvanie != '') {
            echo '<center><font color=ffff00>   Звание в клане - <b>' . $zvanie . '</b></font><br>';
        }
        echo '<br></td></tr>';
    }
    /*
    		$sel_mag = myquery("SELECT * FROM game_mag WHERE name='".$user['name']."' AND town>0");
    		while ($mag = mysql_fetch_array($sel_mag))
    		{
    			if ($mag['town']>0)
    			{
    				$sel_town = myquery("SELECT rustown FROM game_gorod WHERE town = '".$mag['town']."'");
    				list($rustown) = mysql_fetch_array($sel_town);
    				echo'<tr><td colspan="4" valign="top" align="center"><b><font color="ff00ff">Маг города</font> '.$rustown.'</b> ('.$mag['status'].')<br></td></tr>';
    			}
    		}
    		$sel_house = myquery("SELECT * FROM game_houses WHERE user_id=".$user['user_id']." LIMIT 1");
    		if ($sel_house!=false AND mysql_num_rows($sel_house)>0)
    		{
    			$house = mysql_fetch_array($sel_house);
    			if ($house['town_id']>0 AND $house['type']>0)
    			{
    				$sel_town = myquery("SELECT rustown FROM game_gorod WHERE town = '".$house['town_id']."'");
    				list($rustown) = mysql_fetch_array($sel_town);
    				if ($house['buildtime']<time())
    				{
    					echo'<tr><td colspan="4" valign="top" align="center"><b><font color="ff00ff">Дом игрока в городе</font> '.$rustown.'</b><br></td></tr>';
    				}
    				else
    				{
    					echo'<tr><td colspan="4" valign="top" align="center"><b><font color="ff00ff">Дом игрока в городе</font> '.$rustown.'</b> (строится)<br></td></tr>';
    				}
    			}
    }
    */
    if ($user_data['user_rating'] > 0) {
        echo '<tr height="25"><td colspan="4" valign="middle" align="center"><b><font color="#80FF80">Персональный рейтинг игрока</font>: ' . $user_data['user_rating'] . '</b></td></tr>';
    }
    if ($user_data['karma'] > 0) {
        echo '<tr height="25"><td colspan="4" valign="middle" align="center"><b><font color="#80FF80">КАРМА игрока</font>: ' . $user_data['karma'] . '</b></td></tr>';
    }
    if ($user_data['karma'] < 0) {
        echo '<tr height="25"><td colspan="4" bgcolor="white" valign="middle" align="center"><b><font color="#000000">КАРМА игрока: ' . $user_data['karma'] . '</font></b></td></tr>';
    }
    // Модераторская опция - подозрение на мультоводство
    if ($keeper or $admin) {
        $sel_mult = mysql_result(myquery("SELECT count(*) FROM game_activity_mult WHERE name='" . $user['name'] . "'"), 0, 0);
        if ($sel_mult > 0) {
            echo '<tr><td colspan="4" valign="top" align="center"><b><font color="ff00ff">Игрок заподозрен в мультоводстве!</b><br></td></tr>';
        }
    }
    echo '<tr><td valign="top" align=center><img src="http://' . img_domain . '/avatar/' . $user['avatar'] . '" align=center></td>
        <td align="center" valign=top>';
    echo '<table border="0" cellpadding="2" cellspacing="0">';
    if ($user['HP_MAX'] == 0) {
        $bar_percentage = 0;
    } else {
        $bar_percentage = number_format($user['HP'] / $user['HP_MAX'] * 100, 0);
    }
    if ($bar_percentage >= '100') {
        $append_string = '<img src="http://' . img_domain . '/bar/bar_green.gif" width="100" height="7" border="0">';
    } elseif ($bar_percentage <= '0') {
        $append_string = '<img src="http://' . img_domain . '/bar/bar_empty.gif" width="100" height="7" border="0">';
    } else {
        $append_string = '<img src="http://' . img_domain . '/bar/bar_empty.gif" width="' . (100 - $bar_percentage) . '" height="7" border="0"><img src="http://' . img_domain . '/bar/bar_green.gif" width="' . $bar_percentage . '" height="7" border="0">';
    }
    echo '<tr><td>Здоровье: ' . $user['HP'] . ' / ' . $user['HP_MAX'] . '</td></tr>
		<tr><td colspan="2"><div align="right"><img src="http://' . img_domain . '/bar/bar_side.gif" width="1" height="7" border="0">' . $append_string . '<img src="http://' . img_domain . '/bar/bar_side.gif" width="1" height="7" border="0"><br><img
		src="http://' . img_domain . '/nav/x.gif" width="0" height="0" vspace="2" border="0"></div></td></tr>';
    if ($user['MP_MAX'] == 0) {
        $bar_percentage = 0;
    } else {
        $bar_percentage = number_format($user['MP'] / $user['MP_MAX'] * 100, 0);
    }
    if ($bar_percentage >= '100') {
        $append_string = '<img src="http://' . img_domain . '/bar/bar_orange.gif" width="100" height="7" border="0">';
    } elseif ($bar_percentage <= '0') {
        $append_string = '<img src="http://' . img_domain . '/bar/bar_empty.gif" width="100" height="7" border="0">';
    } else {
        $append_string = '<img src="http://' . img_domain . '/bar/bar_empty.gif" width="' . (100 - $bar_percentage) . '" height="7" border="0"><img src="http://' . img_domain . '/bar/bar_orange.gif" width="' . $bar_percentage . '" height="7" border="0">';
    }
    echo '<tr><td>Мана: ' . $user['MP'] . ' / ' . $user['MP_MAX'] . '</td></tr>
		<tr><td colspan="2"><div align="right"><img src="http://' . img_domain . '/bar/bar_side.gif" width="1" height="7" border="0">' . $append_string . '<img src="http://' . img_domain . '/bar/bar_side.gif" width="1" height="7" border="0"><br><img src="http://' . img_domain . '/nav/x.gif" width="0" height="0" vspace="2" border="0"></div></td></tr>';
    if ($user['STM_MAX'] == 0) {
        $bar_percentage = 0;
    } else {
        $bar_percentage = number_format($user['STM'] / $user['STM_MAX'] * 100, 0);
    }
    if ($bar_percentage >= '100') {
        $append_string = '<img src="http://' . img_domain . '/bar/bar_yellow.gif" width="100" height="7" border="0">';
    } elseif ($bar_percentage <= '0') {
        $append_string = '<img src="http://' . img_domain . '/bar/bar_empty.gif" width="100" height="7" border="0">';
    } else {
        $append_string = '<img src="http://' . img_domain . '/bar/bar_empty.gif" width="' . (100 - $bar_percentage) . '" height="7" border="0"><img src="http://' . img_domain . '/bar/bar_yellow.gif" width="' . $bar_percentage . '" height="7" border="0">';
    }
    echo '<tr><td>Энергия: ' . $user['STM'] . ' / ' . $user['STM_MAX'] . '</td></tr><tr><td colspan="2"><div align="right"><img src="http://' . img_domain . '/bar/bar_side.gif" width="1" height="7" border="0">' . $append_string . '<img src="http://' . img_domain . '/bar/bar_side.gif" width="1" height="7" border="0"><br><img src="http://' . img_domain . '/nav/x.gif" width="0" height="0" vspace="2" border="0"></div></td></tr>';
    if ($user['PR_MAX'] == 0) {
        $bar_percentage = 0;
    } else {
        $bar_percentage = number_format($user['PR'] / $user['PR_MAX'] * 100, 0);
    }
    if ($bar_percentage >= '100') {
        $append_string = '<img src="http://' . img_domain . '/bar/bar_red.gif" width="100" height="7" border="0">';
    } elseif ($bar_percentage <= '0') {
        $append_string = '<img src="http://' . img_domain . '/bar/bar_empty.gif" width="100" height="7" border="0">';
    } else {
        $append_string = '<img src="http://' . img_domain . '/bar/bar_empty.gif" width="' . (100 - $bar_percentage) . '" height="7" border="0"><img src="http://' . img_domain . '/bar/bar_red.gif" width="' . $bar_percentage . '" height="7" border="0">';
    }
    echo '<tr><td>Прана: ' . $user['PR'] . ' / ' . $user['PR_MAX'] . '</td></tr><tr><td colspan="2"><div align="right"><img src="http://' . img_domain . '/bar/bar_side.gif" width="1" height="7" border="0">' . $append_string . '<img src="http://' . img_domain . '/bar/bar_side.gif" width="1" height="7" border="0"><br><img src="http://' . img_domain . '/nav/x.gif" width="0" height="0" vspace="2" border="0"></div></td></tr>';
    echo '</table>';
    echo '</td><td align="left" valign="top">
		<table border="0" cellpadding="0" cellspacing="0">
		<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img align="middle" src="http://' . img_domain . '/har/sil.gif" alt="Сила"> Сила: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td>' . $user['STR'] . '';
    if ($user['STR'] > $user['STR_MAX']) {
        echo '(+' . ($user['STR'] - $user['STR_MAX']) . ')';
    }
    echo '</td></tr>
		<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img align="middle" src="http://' . img_domain . '/har/int.gif" alt="Интеллект"> Интеллект: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td align="right">' . $user['NTL'] . '';
    if ($user['NTL'] > $user['NTL_MAX']) {
        echo '(+' . ($user['NTL'] - $user['NTL_MAX']) . ')';
    }
    echo '</td></tr>
		<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img align="middle" src="http://' . img_domain . '/har/lov.gif" alt="Ловкость"> Ловкость: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td align="right">' . $user['PIE'] . '';
    if ($user['PIE'] > $user['PIE_MAX']) {
        echo '(+' . ($user['PIE'] - $user['PIE_MAX']) . ')';
    }
    echo '</td></tr>
		<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img align="middle" src="http://' . img_domain . '/har/vit.gif" alt="Защита"> Защита: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td align="right">' . $user['VIT'] . '';
    if ($user['VIT'] > $user['VIT_MAX']) {
        echo '(+' . ($user['VIT'] - $user['VIT_MAX']) . ')';
    }
    echo '</td></tr>
		<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img align="middle" src="http://' . img_domain . '/har/dex.gif" alt="Выносливость"> Выносливость: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td align="right">' . $user['DEX'] . '';
    if ($user['DEX'] > $user['DEX_MAX']) {
        echo '(+' . ($user['DEX'] - $user['DEX_MAX']) . ')';
    }
    echo '</td></tr>
		<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img align="middle" src="http://' . img_domain . '/har/mud.gif" alt="Мудрость"> Мудрость: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td align="right">' . $user['SPD'] . '';
    if ($user['SPD'] > $user['SPD_MAX']) {
        echo '(+' . ($user['SPD'] - $user['SPD_MAX']) . ')';
    }
    echo '</td></tr>
		<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img align="middle" src="http://' . img_domain . '/har/ud.gif" alt="Удача"> Удача: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td align="right">' . $user['lucky'] . '';
    if ($user['lucky'] > $user['lucky_max']) {
        echo '(+' . ($user['lucky'] - $user['lucky_max']) . ')';
    }
    echo '</td></tr>
		</table></td></tr>
		<tr><td colspan="3" valign="top" align=center><br /><b>Общий вес</b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
    $prov = mysql_result(myquery("SELECT count(*) FROM game_wm WHERE user_id=" . $user['user_id'] . " AND type=1"), 0, 0);
    if ($prov > 0) {
        echo min($user['CW'], $user['CC']);
    } else {
        echo $user['CW'];
    }
    echo ' / ' . $user['CC'] . '<br />&nbsp; </td></tr>
        <tr><td colspan="2 width="500">';
    $user_id1 = $user['user_id'];
    PrintInv($user_id1, 1);
    echo '</td>

		<td valign="top"><br />
		<table border="0" cellpadding="0" cellspacing="0">
		<tr><td colspan="2" width="81%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT color=#ffff00 size=1><B>Специализации:</B></FONT></td></tr>';
    $sel_skill = myquery("SELECT gs.name, gus.* FROM game_users_skills gus, game_skills gs WHERE user_id=" . $user['user_id'] . " AND gus.skill_id=gs.id ORDER BY gs.sgroup DESC, gs.name");
    if (mysql_num_rows($sel_skill) > 0) {
        while ($sk = mysql_fetch_array($sel_skill)) {
            echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . $sk['name'] . ': </td><td>' . $sk['level'] . ' </td></tr>';
        }
    }
    /*		if ($user['MS_KULAK']!='0') echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img align="middle" src="http://'.img_domain.'/har/kulak.gif" alt="Искусство кулачного боя"> Кулачный бой: </td><td>' . $user['MS_KULAK'] . '</td></tr>';
    		if ($user['MS_WEAPON']!='0') echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img align="middle" src="http://'.img_domain.'/har/weapon.gif" alt="Эксперт воинских умений"> Эксперт воинских умений: </td><td>' . $user['MS_WEAPON'] . '</td></tr>';
    		if ($user['MS_LUK']!='0') echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img align="middle" src="http://'.img_domain.'/har/luk.gif" alt="Мастер стрелкового оружия"> Мастер стрелк.оружия: </td><td>' . $user['MS_LUK'] . '</td></tr>';
    		if ($user['MS_THROW']!='0') echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img align="middle" src="http://'.img_domain.'/har/throw.gif" alt="Мастер метательного оружия"> Мастер метат.оружия: </td><td>' . $user['MS_THROW'] . '</td></tr>';
    		if ($user['MS_SWORD']!='0') echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img align="middle" src="http://'.img_domain.'/har/rub.gif" alt="Мастер рубящего оружия"> Мастер рубящ.оружия: </td><td>' . $user['MS_SWORD'] . '</td></tr>';
    		if ($user['MS_AXE']!='0') echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img align="middle" src="http://'.img_domain.'/har/drob.gif" alt="Мастер дробящего оружия"> Мастер дроб.оружия: </td><td>' . $user['MS_AXE'] . '</td></tr>';
    		if ($user['MS_SPEAR']!='0') echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img align="middle" src="http://'.img_domain.'/har/kol.gif" alt="Мастер колющего оружия"> Мастер колющ.оружия: </td><td>' . $user['MS_SPEAR'] . '</td></tr>';
    		if ($user['MS_ART']!='0') echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img align="middle" src="http://'.img_domain.'/har/art.gif" alt="Эксперт артефактов"> Эксп. артефактов: </td><td>' . $user['MS_ART'] . '</td></tr>';
    		if ($user['MS_VSADNIK']!='0') echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img align="middle" src="http://'.img_domain.'/har/ezda.jpg" alt="Верховая езда"> Верховая езда: </td><td>' . $user['MS_VSADNIK'] . '</td></tr>';
    		if ($user['MS_KUZN']!='0') echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img align="middle" src="http://'.img_domain.'/har/kuzn.jpg" alt="Кузнец"> Кузнец: </td><td>' . $user['MS_KUZN'] . '</td></tr>';
    		if ($user['MS_PARIR']!='0') echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img align="middle" src="http://'.img_domain.'/har/parir.gif" alt="Мастер парирования"> Парирование: </td><td>' . $user['MS_PARIR'] . '</td></tr>';
    		if ($user['MS_LEK']!='0') echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img align="middle" src="http://'.img_domain.'/har/lekar.gif" alt="Лекарь"> Лекарь: </td><td>' . $user['MS_LEK'] . '</td></tr>';
    		if ($user['MS_VOR']!='0') echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img align="middle" src="http://'.img_domain.'/har/vor.gif" alt="Вор"> Вор: </td><td>' . $user['MS_VOR'] . '</td></tr>';
    
    		echo'<tr><td colspan="2">&nbsp;</td></tr><tr><td colspan="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT color=#ffff00 size=1><B><font face="Verdana">Навыки</font>:</B></FONT><font size="1">&nbsp;</font></td></tr>';
    
    		if ($user['skill_war']!='0') echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Воин: </td><td>' . $user['skill_war'] . ' </td></tr>';
    		if ($user['skill_music']!='0') echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Бард: </td><td>' . $user['skill_music'] . ' </td></tr>';
    		if ($user['skill_cook']!='0') echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Волшебник: </td><td>' . $user['skill_cook'] . ' </td></tr>';
    		if ($user['skill_art']!='0') echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Лучник: </td><td>' . $user['skill_art'] . ' </td></tr>';
    		if ($user['skill_explor']!='0') echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Паладин: </td><td>' . $user['skill_explor'] . ' </td></tr>';
    		if ($user['skill_craft']!='0') echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Варвар: </td><td>' . $user['skill_craft'] . ' </td></tr>';
    		if ($user['skill_card']!='0') echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Вор: </td><td>' . $user['skill_card'] . ' </td></tr>';
    		if ($user['skill_pet']!='0') echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Друид: </td><td>' . $user['skill_pet'] . ' </td></tr>';
    		if ($user['skill_uknow']!='0') echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Разбойник: </td><td>' . $user['skill_uknow'] . ' </td>';
    */
    echo '<tr><td colspan="2">&nbsp;</td></tr><tr><td colspan="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT color=#ffff00 size=1><B><font face="Verdana">Умения</font>:</B></FONT><font size="1">&nbsp;</font></td></tr>';
    $sel_craft = myquery("SELECT * FROM game_users_crafts WHERE user_id=" . $user['user_id'] . " AND (profile=1 OR craft_index<=2)");
    if (mysql_num_rows($sel_craft) > 0) {
        while ($cr = mysql_fetch_array($sel_craft)) {
            $craft_level = CraftSpetsTimeToLevel($cr['craft_index'], $cr['times']);
            echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . get_craft_name($cr['craft_index']) . ': </td><td title="Уровень">' . $craft_level . ' </td></tr>';
        }
    }
    $guild_test = myquery("SELECT * FROM game_users_guild WHERE user_id=" . $user['user_id'] . "");
    if (mysql_num_rows($guild_test) == 1) {
        $guild = mysql_fetch_array($guild_test);
        echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Наёмник: </td><td title="Уровень">' . $guild['guild_lev'] . ' </td></tr>';
    }
    echo '<tr><td colspan=2>&nbsp;</td></tr>
		<tr><td colspan=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT color=#ffff00 size=1><B><font face="Verdana">Достижения</font>:</B></FONT><font size="1">&nbsp;</font></td></tr>

		<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img align="middle" src="http://' . img_domain . '/har/win1.gif" alt="Побед"> Побед: </td><td>' . $user['win'] . '</td></tr>';
    //<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img align="middle" src="http://'.img_domain.'/har/lose1.gif" alt="Поражений"> Поражений: </td><td>' . $user['lose'] . '</td></tr>
    echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img align="middle" src="http://' . img_domain . '/har/win2.gif" alt="Побед в Две Башни"> Побед в Две Башни: </td><td>' . $user['arcomage_win'] . '</td></tr>
		<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img align="middle" src="http://' . img_domain . '/har/lose2.gif" alt="Поражений в Две Башни"> Поражений в Две Башни: </td><td>' . $user['arcomage_lose'] . '</td></tr>';
    if ($user['maze_win'] > 0) {
        echo '
			<tr><td colspan=2>&nbsp;</td></tr>
			<tr style="color:#FF00FF;"><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img align="middle" src="http://' . img_domain . '/har/win.jpg" alt="Пройдено Лабиринтов"> Пройдено Лабиринтов: </td><td style="font-weight:700;">' . $user['maze_win'] . '</td></tr>';
    }
    echo '
        <tr><td colspan=2>&nbsp;</td></tr>
        <tr><td colspan="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://' . domain_name . '/view/?log=' . $user['name'] . '">Смотреть лог битв</a></td></tr>';
    list($last) = mysql_fetch_array(myquery("SELECT last_active FROM game_users_active WHERE user_id='" . $user['user_id'] . "'"));
    if (time() - $last <= 300) {
        echo '<tr><td colspan=2>&nbsp;</td></tr>
			<tr><td colspan=2><FONT color=#ffff00 size=1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B><font face="Verdana">Сейчас находится в игре:</font></B></FONT><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' . get_delay_reason(get_delay_reason_id($user['user_id'])) . '</td></tr>';
    } else {
        echo '<tr><td colspan=2>&nbsp;</td></tr>
			<tr><td colspan=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT color=#ffff00 size=1><B><font face="Verdana">Сейчас не в игре</font></B></FONT></td></tr>';
    }
    $sel = myquery("SELECT * FROM game_users_brak WHERE ((user1='" . $user["user_id"] . "' OR user2='" . $user["user_id"] . "') AND status=1)");
    if (mysql_num_rows($sel)) {
        $usr = mysql_fetch_array($sel);
        if ($user['user_id'] == $usr['user1']) {
            $usr_id = $usr['user2'];
        } else {
            $usr_id = $usr['user1'];
        }
        $sel = myquery("SELECT name FROM game_users WHERE user_id='" . $usr_id . "'");
        if (!mysql_num_rows($sel)) {
            $sel = myquery("SELECT name FROM game_users_archive WHERE user_id='" . $usr_id . "'");
        }
        list($name1) = mysql_fetch_array($sel);
        echo '<tr><td>&nbsp;</td></tr>
			<tr><td><FONT color=#FF00FF size=1 face="Tahoma"><img src="http://' . img_domain . '/wedding/wedring2.gif" width=50 height=50 align="right">Состоит в браке с <b><font size=2>' . $name1 . '</font></b><br>Брак зарегистрирован ' . $usr['datareg'] . '</FONT></td></tr>';
    }
    echo '</table></td></tr>';
    $user_id = $user['user_id'];
    $SELECT = myquery("SELECT game_medal.nazv AS nazv, game_medal.opis AS opis,game_medal.image AS image,game_medal_users.zachto AS zachto FROM game_medal_users JOIN game_medal ON game_medal.id = game_medal_users.medal_id WHERE user_id={$user_id} ORDER BY game_medal.id");
    if (mysql_num_rows($SELECT)) {
        echo '<tr><td colspan="3" valign="top"><FONT color=#ffff00 size=1><B><font face="Verdana">&nbsp;&nbsp;&nbsp;Медали игрока</font>:</B></FONT>&nbsp;&nbsp;';
        QuoteTable('open');
        while ($med = mysql_fetch_array($SELECT)) {
            ?>
				<a  onmousemove=movehint(event) onmouseover="showhint('<font color=ff0000><b><?php 
            echo '' . $med['nazv'] . '';
            ?>
</b></font>','<font color=000000><?php 
            echo '' . $med['opis'] . '<hr>' . replace_enter(htmlspecialchars($med['zachto'])) . '';
            echo '</font>';
            ?>
</font>',0,1,event)" onmouseout="showhint('','',0,0,event)">
				<img src="<?php 
            echo 'http://' . img_domain . '/medal/' . $med['image'] . '';
            ?>
"></a>
				<?php 
        }
        QuoteTable('close');
        echo '</td></tr>';
    }
    $SELECT = myquery("SELECT * FROM game_gift WHERE user_to={$user_id} AND che=1 AND time_send>=" . (time() - 15 * 24 * 60 * 60) . "");
    if (mysql_num_rows($SELECT)) {
        echo '<tr><td colspan="3" valign="top"><FONT color=#ffff00 size=1><B><font face="Verdana">&nbsp;&nbsp;&nbsp;Открытки</font>:</B></FONT><br>';
        QuoteTable('open');
        while ($card = mysql_fetch_array($SELECT)) {
            list($user_from) = mysql_fetch_array(myquery("(SELECT name FROM game_users WHERE user_id=" . $card['user_from'] . ") UNION (SELECT name FROM game_users_archive WHERE user_id=" . $card['user_from'] . ")"));
            ?>
<a  onmousemove=movehint(event) onmouseover="showhint('<font color=ff0000><b><?php 
            echo ' От ' . $user_from . '';
            ?>
</b></font>','<font color=000000><?php 
            echo '' . replace_enter($card['gift_text']) . '<br><br><hr><font size=1>Отправлена: ' . date("d.m.Y H:i", $card['time_send']) . '</font>';
            ?>
</font>',0,1,event)" onmouseout="showhint('','',0,0,event)">
			<img src="<?php 
            echo 'http://' . img_domain . '/gift/gallery/' . $card['gift_img'] . '';
            ?>
"></a>&nbsp;
			<?php 
        }
        QuoteTable('close');
        echo '</td></tr>';
    }
    echo '<tr><td colspan="3" valign="top"><FONT color=#ffff00 size=1><B><font face="Verdana">&nbsp;&nbsp;&nbsp;Личная информация</font>:</B></FONT><br>
		&nbsp;&nbsp;<b>Статус:</b> ' . $user_data['STATUS'] . '<br>
		&nbsp;&nbsp;<b>Город:</b> ' . $user_data['gorod'] . '<br>
		&nbsp;&nbsp;<b>Хобби:</b>';
    QuoteTable('open');
    if (!isset($user_data['hobbi']) or $user_data['hobbi'] == '') {
        $user_data['hobbi'] = 'Информация не заполнена';
    }
    echo ' ' . nl2br($user_data['hobbi']) . '';
    QuoteTable('close');
    echo '&nbsp;&nbsp;<b>Информация:</b>';
    QuoteTable('open');
    if (!isset($user_data['info']) or $user_data['info'] == '') {
        $user_data['info'] = 'Информация не заполнена';
    }
    echo ' ' . nl2br($user_data['info']) . '';
    QuoteTable('close');
    echo '</td></tr>';
    $sel = myquery("SELECT * FROM game_nakaz WHERE user_id='" . $user['user_id'] . "' order by date_nak asc");
    if (mysql_num_rows($sel)) {
        echo '<tr><td colspan="3" valign="top"><FONT color=#ffff00 size=1><B><font face="Verdana"><br>&nbsp;&nbsp;&nbsp;Наказания</font>:</B></FONT><br>';
        QuoteTable('open');
        echo '<table cellspacing=1 cellpadding=1>';
        while ($nak = mysql_fetch_array($sel)) {
            echo '<tr>';
            echo '<td>' . date("d.m.Y H:i:s", $nak['date_nak']) . '</td>';
            if ($nak['nakaz'] == 'prison') {
                echo '<td>Каторга на <b><font color=#ff0000>' . $nak['date_zak'] . '</font></b> оборотов мифрильного ворота.</td>';
            } else {
                if ($nak['date_zak'] == '0') {
                    echo '<td><FONT color=#ffff00 size=1><b>НАВЕЧНО !!!</b></font></td>';
                } else {
                    $bantime = '';
                    if ($nak['date_zak'] / 3600 < 1) {
                        $bantime = '' . round($nak['date_zak'] / 60, 0) . ' мин.';
                    } elseif ($nak['date_zak'] / 86400 < 1) {
                        $hour = floor($nak['date_zak'] / 3600);
                        $minute = round(($nak['date_zak'] - $hour * 3600) / 60, 0);
                        $bantime = '' . $hour . ' час. ' . $minute . ' мин.';
                    } else {
                        $day = floor($nak['date_zak'] / 86400);
                        $nakaz['date_zak'] = $nak['date_zak'] - $day * 86400;
                        $hour = floor($nak['date_zak'] / 3600);
                        $minute = round(($nak['date_zak'] - $hour * 3600) / 60, 0);
                        $bantime = '' . $day . ' дн. ' . $hour . ' час. ' . $minute . ' мин.';
                    }
                    echo '<td>на <b><font color=#ff0000>' . $bantime . '</font></b></td>';
                }
            }
            echo '<td> (' . mysqlresult(myquery("SELECT name FROM game_zakon WHERE id=" . $nak['id_zakon'] . ""), 0, 0) . ') </td>';
            if ($nak['text'] != '') {
                echo '<td>Причина: ' . $nak['text'] . '</td>';
            }
            echo '</tr>';
        }
        echo '</table>';
        QuoteTable('close');
        echo '</td></tr>';
    }
    echo '</table>';
}
Exemple #4
0
            $player['map_xpos'] = $player_map_xpos;
            $player['map_ypos'] = $player_map_ypos;
            if ($char['clan_id'] == 1 or $user_id == 9665) {
                echo '<a href="?func=online&teleport_map_name=' . $player["map_name"] . '&teleport_map_xpos=' . $player["map_xpos"] . '&teleport_map_ypos=' . $player["map_ypos"] . '"><img src="http://' . img_domain . '/nav/show.gif" border="0"></a>';
            }
            echo '<a href="http://' . domain_name . '/view/?userid=' . $player["user_id"] . '" target="_blank"><img src="http://' . img_domain . '/nav/i.gif" border=0 alt="Инфо"></a>&nbsp;';
            echo '<a href="?func=pm&pm=write&new&komu=' . $player["name"] . '" title="Написать личное сообщение"><img src="http://' . img_domain . '/pm/new_pm.gif" border="0" alt="Написать личное сообщение"></a>&nbsp;';
            if ($player['clan_id'] != '0') {
                echo '<img src="http://' . img_domain . '/clan/' . $player['clan_id'] . '.gif">&nbsp;';
            }
            $type = '';
            echo '' . $player['name'] . ' (' . mysql_result(myquery("SELECT name FROM game_har WHERE id=" . $player['race'] . ""), 0, 0) . ' ' . $player['clevel'] . ' уровня)   ';
            $map_name = mysql_result(myquery("SELECT name FROM game_maps WHERE id='" . $player['map_name'] . "'"), 0, 0);
            echo $map_name . ' x-' . $player['map_xpos'] . ' y-' . $player['map_ypos'] . '';
            if ($player['delay_reason'] == 2 or $player['delay_reason'] == 5 or $player['func'] == 'boy' or $player['func'] == 'wait') {
                echo ' <font size=1 color=ff0000 face=verdana><b>' . get_delay_reason($player['delay_reason']) . '</b></font>';
            }
            echo '<br>';
        }
        OpenTable('close');
    }
}
echo '</td><td width="172" valign="top">';
include 'inc/template_stats.inc.php';
echo '</td></tr></table>';
?>

<script language="JavaScript" type="text/javascript">
p = new Array( );
function ge( a ) { if( document.all ) return document.all[a]; else return document.getElementById( a ); }
function load( pp, str ) { if( p[pp] ) return; p[pp] = 1; parent.game.xssa.location.href = str; }
Exemple #5
0
	else
	{
		$output_string.='Игрока нет на этой гексе';
	}
}
*/
if (isset($menu)) {
    $prov = myquery("select game_users.*,game_users_func.func_id from game_users,game_users_map,game_users_func where game_users.user_id='{$menu}' and game_users.user_id=game_users_map.user_id AND game_users_map.map_xpos='" . $char['map_xpos'] . "' and game_users_map.map_ypos='" . $char['map_ypos'] . "' and game_users_map.map_name='" . $char['map_name'] . "' AND game_users.user_id=game_users_func.user_id");
    if (mysql_num_rows($prov)) {
        $up = mysql_fetch_array($prov);
        $output_string .= '<table cellpadding="0" cellspacing="5" border="0">';
        $output_string .= '<tr><td colspan=2 align="center"><b>';
        if ($up['clan_id'] != 0) {
            $output_string .= '<a href="http://' . domain_name . '/view/?clan=' . $up['clan_id'] . '" target="_blank"><img src="http://' . img_domain . '/clan/' . $up['clan_id'] . '.gif" border=0></a> ';
        }
        $output_string .= '<font face=verdana size=2 color=ff0000>' . $up['name'] . '</font> (' . mysql_result(myquery("SELECT name FROM game_har WHERE id=" . $up['race'] . ""), 0, 0) . ' ' . $up['clevel'] . ' уровня)</b><br> Последнее действие: <b>' . get_delay_reason(get_delay_reason_id($up['user_id'])) . '</b>';
        if ($up['vsadnik'] > 20) {
            $output_string .= '<br><font face=verdana size=2 color=ff0000><b>Всадник!</b></font>';
        }
        $output_string .= '<br> Возможные действия:</td></tr>';
        $output_string .= '<tr><td><a href="http://' . domain_name . '/view/?userid=' . $up["user_id"] . '" target="_blank"">Информация</a></td></tr>';
        if ($up['clan_id'] != '0') {
            $output_string .= '<tr><td><a href="http://' . domain_name . '/view/?clan=' . $up['clan_id'] . '" target="_blank"">Информация о клане</a></td></tr>';
        }
        if ($up['name'] != $char['name']) {
            $output_string .= '<tr><td><a href="?func=pm&pm=write&komu=' . $up["name"] . '">Послать сообщение</a></td></tr>';
        }
        $num = 0;
        $map = mysql_fetch_array(myquery("SELECT * FROM game_maps WHERE id = '" . $char['map_name'] . "'"));
        //if ($char['MS_LEK']!='0' and ($up['func_id']!='1')) $output_string.='<tr><td><a href="?func=main&lek='.$up['user_id'].'">Лечить (Специализация '.$char['MS_LEK'].' уровня)</a></td></tr>';
        //if ($char['MS_VOR']!='0') $output_string.='<tr><td><a href="?func=main&vor='.$up['name'].'">Воровство (Специализация '.$char['MS_VOR'].' уровня)</a></td></tr>';
       if (mysql_num_rows($klan)) {
           $clans = mysql_fetch_array($klan);
           echo '<img src="http://' . img_domain . '/clan/' . $clans['clan_id'] . '.gif" align=top>&nbsp;<font face=Verdana size=1 color="CCCCCC"><b>' . $clans['nazv'] . '</b></font><br>';
           $per = myquery("select view_active_users.*,game_users_map.*,game_maps.name as mapname from view_active_users,game_users_map,game_maps where view_active_users.clan_id=" . $char['clan_id'] . " and view_active_users.user_id<>{$user_id} and view_active_users.user_id=game_users_map.user_id and game_maps.id=game_users_map.map_name order by name ASC");
           if (mysql_num_rows($per)) {
               echo 'Клан онлайн:<br>';
               while ($elf = mysql_fetch_array($per)) {
                   $map_name0 = $elf['map_name'];
                   $map_xpos0 = $elf['map_xpos'];
                   $map_ypos0 = $elf['map_ypos'];
                   if ($user_id == 612 or $user_id == 36051 or $user_id == 1 or $user_id == 28591 or domain_name == 'localhost') {
                       echo '<a href="?func=' . $func . '&teleport_map_name=' . $map_name0 . '&teleport_map_xpos=' . $map_xpos0 . '&teleport_map_ypos=' . $map_ypos0 . '"><img src="http://' . img_domain . '/nav/show.gif" border="0"></a>';
                   }
                   echo '' . $elf['name'] . ' <font color=ff0000> (' . $elf['mapname'] . ' ' . $map_xpos0 . ', ' . $map_ypos0 . ')</font>';
                   if (in_array($elf['delay_reason'], array(2, 11, 12, 14, 15, 16, 17, 18, 49, 48))) {
                       echo ' <br><font size=1 color=ff0000 face=verdana>' . get_delay_reason($elf['delay_reason']) . '</font>';
                   }
                   echo '<br>';
               }
           } else {
               echo '<font color=ff0000>Союзников нет</font><br>';
           }
           echo '<center><a href="act.php?func=pm&pm=write_clan_online&cl=' . $clans['clan_id'] . '">Сообщить онлайн</a><br>
 		<a href="act.php?func=pm&pm=write_clan&cl=' . $clans['clan_id'] . '">Сообщить всем</a></center>';
       }
   }
   // Боты
   echo '</div><div class="tab-page" id="module05"><h6 class="tab">Боты</h6><script type="text/javascript">tabPane0.addTabPage( document.getElementById( "module05" ) );</script>';
   PrintFavNpc();
   //Конь
   echo '</div><div class="tab-page" id="module06"><h6 class="tab">Конь</h6><script type="text/javascript">tabPane0.addTabPage( document.getElementById( "module06" ) );</script>';