Ivor Barhansky
36bf662112
Upload code Изменил(а) на 'README.md' Изменил(а) на 'README.md' Reviewed-on: https://src.lopar.us/lopar/AntiBK/pulls/1 Co-Authored-By: Ivor Barhansky <lopar@noreply.lopar.us> Co-Committed-By: Ivor Barhansky <lopar@noreply.lopar.us>
75 lines
2.7 KiB
PHP
75 lines
2.7 KiB
PHP
<?
|
||
define('AntiBK', true);
|
||
|
||
include_once("engline/config.php");
|
||
include_once("engline/dbsimple/Generic.php");
|
||
include_once("engline/functions/functions_info.php");
|
||
|
||
$adb = DbSimple_Generic::connect($database['adb']);
|
||
$adb->query("SET NAMES ? ",$database['db_encoding']);
|
||
$adb->setErrorHandler("databaseErrorHandler");
|
||
|
||
$char = Char::initialization(0, $adb);
|
||
|
||
$db = $adb->selectRow("SELECT `name`,
|
||
`glava`,
|
||
`name_short`
|
||
FROM `clan`
|
||
WHERE `name_short` = ?s", $clan);
|
||
$top = "Произошла ошибка:<br><br><span class='err'>";
|
||
$bot = "</span><br><br><a href='javascript: window.history.go(-1);' class='us2'>Назад</a><hr>";
|
||
$name_s = $db['name_short'];
|
||
$name = $db['name'];
|
||
$glava = $db['glava'];
|
||
if (empty($clan)) die("$top Неверный запрос.$bot");
|
||
else if (!$name_s) die("$top Нет информации о клане $name_s.$bot");
|
||
|
||
$orden = $char->getLogin('turn', $glava);
|
||
?>
|
||
<html>
|
||
<head>
|
||
<title>Анти Бойцовский Клуб - Информация о клане <?echo $name;?></title>
|
||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||
<meta http-equiv="Content-Language" content="ru">
|
||
<link rel="StyleSheet" href="styles/style.css" type="text/css">
|
||
</head>
|
||
<body topMargin="5" rightMargin="0" bottomMargin="0" bgcolor="#dedede">
|
||
<table width="100%" cellspacing="0" cellpadding="0">
|
||
<tr>
|
||
<td width="100%" align="center" valign="top" colspan="2">
|
||
<?
|
||
echo "Информация о клане: <b>\"$name\"</b>";
|
||
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr>";
|
||
echo "<td width='50%'>Уровень: <b>0</b></td>";
|
||
echo "<td>Знак клана: <img src='img/clan/$name_s.gif' border='0' title='$name_s'> ";
|
||
echo (!empty($orden)) ?"Склонность: $orden" :"";
|
||
echo "</td></tr>";
|
||
echo "<tr>";
|
||
echo "<td width='50%'>Рейтинг: <b>0</b></td>";
|
||
echo "<td>Тип правления: <b><font color='green'>Демократия</font></b></td>";
|
||
echo "</tr></table><hr>";
|
||
?>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td width="50%" valign="top">
|
||
<?
|
||
echo "Глава клана: ".$char->getLogin('clan', $glava);
|
||
?>
|
||
</td>
|
||
<td width="50%" valign="top">
|
||
Бойцы клана:<br>
|
||
<?
|
||
$rows = $adb->selectCol("SELECT `login`
|
||
FROM `characters`
|
||
WHERE `clan_short` = ?s
|
||
ORDER BY `exp` DESC", $name_s);
|
||
foreach ($rows as $num => $clan_player)
|
||
echo $char->getLogin('clan', $clan_player)."<br>";
|
||
echo "Всего: <b>".count($rows)."</b>";
|
||
?>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</body>
|
||
</html>
|