game gui
This commit is contained in:
parent
33f05ab742
commit
75a85099dc
210
buttons.php
210
buttons.php
@ -6,7 +6,6 @@ if ($_SESSION['uid'] == null) {
|
||||
include_once "config.php";
|
||||
include_once "functions.php";
|
||||
|
||||
$user = db::c()->query('SELECT `klan`,`align`,`level`,`deal` FROM `users` WHERE `id` = ?i', $_SESSION['uid'])->fetch_assoc();
|
||||
header("Cache-Control: no-cache");
|
||||
|
||||
if ($_GET['header']) {
|
||||
@ -52,12 +51,12 @@ if ($_GET['header']) {
|
||||
}
|
||||
|
||||
.chheadpas {
|
||||
background: url(http://i.oldbk.com/i/chat/chat_passive.jpg) no-repeat;
|
||||
background: url(i/chat/chat_passive.jpg) no-repeat;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.chheadact {
|
||||
background: url(http://i.oldbk.com/i/chat/chat_aaactive.jpg) no-repeat;
|
||||
background: url(i/chat/chat_aaactive.jpg) no-repeat;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@ -225,23 +224,12 @@ if ($_GET['header']) {
|
||||
<tr>
|
||||
<td height="26"> </a></td>
|
||||
<td nowrap width="26" height="26"></td>
|
||||
<td nowrap width=115 height="26" id="ctab1" class="chheadact" onclick="ctab(1); return false;"><a href="#"
|
||||
id="wtab1"
|
||||
class="chmtext">Общий
|
||||
чат</a></td>
|
||||
<? if ((int)$user['align'] == 1 || $user['align'] == 1.5 || $user['align'] == 1.7 || $user['align'] == 1.75 || $user['align'] == 1.91 || $user['align'] == 1.92 || $user['align'] == 1.97 || $user['align'] == 1.98 || $user['align'] == 1.99 || $user['align'] == 2.99) { ?>
|
||||
<td nowrap width=115 height="26" id="ctab4" class="chheadpas" onclick="ctab(4); return false;"><a
|
||||
href="#" id="wtab4" onclick="ctab(4); return false;" class="chmtext">Пал. чат</a></td>
|
||||
<? } ?>
|
||||
<td nowrap width=115 height="26" id="ctab8" class="chheadpas" onclick="ctab(8); return false;"><a href="#"
|
||||
id="wtab8"
|
||||
onclick="ctab(8); return false;"
|
||||
class="chmtext">Торговый</a>
|
||||
</td>
|
||||
<td nowrap width=115 height="26" id="ctab5" class="chheadpas" onclick="ctab(5); return false;"><a href="#"
|
||||
id="wtab5"
|
||||
onclick="ctab(5); return false;"
|
||||
class="chmtext">Системные</a>
|
||||
<td nowrap width=115 height="26" id="ctab1" class="chheadact" onclick="ctab(1); return false;">
|
||||
<a href="#" id="wtab1" class="chmtext">Общий чат</a></td>
|
||||
<td nowrap width=115 height="26" id="ctab8" class="chheadpas" onclick="ctab(8); return false;">
|
||||
<a href="#" id="wtab8" onclick="ctab(8); return false;" class="chmtext">Торговый</a></td>
|
||||
<td nowrap width=115 height="26" id="ctab5" class="chheadpas" onclick="ctab(5); return false;">
|
||||
<a href="#" id="wtab5" onclick="ctab(5); return false;" class="chmtext">Системные</a>
|
||||
</td>
|
||||
<td height="26" width="100%"> </a></td>
|
||||
</tr>
|
||||
@ -260,18 +248,7 @@ if ($_GET['header']) {
|
||||
<div id="oMenu" style="position: absolute; border:1px solid #666; background-color:#CCC; display:none; "></div>
|
||||
<div id="ClearMenu" style="position: absolute; border:1px solid #666; background-color: #e2e0e0; display: none;"></div>
|
||||
|
||||
<? } else {
|
||||
|
||||
$now = "night";
|
||||
if (date("H") <= 5) {
|
||||
$tme = mktime(6, 1, 0);
|
||||
} elseif (date("H") < 22) {
|
||||
$tme = mktime(22, 1, 0);
|
||||
} else {
|
||||
$tme = mktime(6, 1, 0, date("n"), date("j") + 1, 0);
|
||||
}
|
||||
$left = $tme - time();
|
||||
?>
|
||||
<? } else { ?>
|
||||
<html>
|
||||
<head>
|
||||
<meta content="text/html; charset=utf-8" http-equiv="Content-type"/>
|
||||
@ -344,17 +321,6 @@ $left = $tme - time();
|
||||
document.F1.text.value = strarr.join(' ');
|
||||
}
|
||||
|
||||
function sw_translit() {
|
||||
top.ChatTranslit = !top.ChatTranslit;
|
||||
if (top.ChatTranslit) {
|
||||
document.all('b___translit').src = b___translit_on.src;
|
||||
document.all('b___translit').alt = b___translit_on.alt;
|
||||
} else {
|
||||
document.all('b___translit').src = b___translit_off.src;
|
||||
document.all('b___translit').alt = b___translit_off.alt;
|
||||
}
|
||||
}
|
||||
|
||||
function sw_filter() {
|
||||
top.ChatOm = !top.ChatOm;
|
||||
if (top.ChatOm) {
|
||||
@ -368,40 +334,6 @@ $left = $tme - time();
|
||||
}
|
||||
}
|
||||
|
||||
function sw_sys() {
|
||||
top.ChatSys = !top.ChatSys;
|
||||
if (top.ChatSys) {
|
||||
document.all('b___sys').src = b___sys_on.src;
|
||||
document.all('b___sys').alt = b___sys_on.alt;
|
||||
document.F1.sys.value = '1';
|
||||
} else {
|
||||
document.all('b___sys').src = b___sys_off.src;
|
||||
document.all('b___sys').alt = b___sys_off.alt;
|
||||
document.F1.sys.value = '';
|
||||
}
|
||||
}
|
||||
|
||||
function sw_slow() {
|
||||
if (top.ChatSlow) {
|
||||
if (top.ChatTimerID >= 0) {
|
||||
top.StopRefreshChat();
|
||||
document.all('b___slow').src = b___chat_off.src;
|
||||
document.all('b___slow').alt = b___chat_off.alt;
|
||||
} else {
|
||||
top.ChatSlow = false;
|
||||
top.ChatDelay = top.ChatNormDelay;
|
||||
top.RefreshChat();
|
||||
document.all('b___slow').src = b___slow_off.src;
|
||||
document.all('b___slow').alt = b___slow_off.alt;
|
||||
}
|
||||
} else {
|
||||
top.ChatSlow = true;
|
||||
document.all('b___slow').src = b___slow_on.src;
|
||||
document.all('b___slow').alt = b___slow_on.alt;
|
||||
top.ChatDelay = top.ChatSlowDelay;
|
||||
top.RefreshChat();
|
||||
}
|
||||
}
|
||||
|
||||
function subm() {
|
||||
t = top.frames['chat'].currenttab;
|
||||
@ -411,33 +343,12 @@ $left = $tme - time();
|
||||
}
|
||||
}
|
||||
|
||||
var b___translit_on = new Image;
|
||||
b___translit_on.src = "i/b___translit_on.gif";
|
||||
b___translit_on.alt = "(включено) Преобразовывать транслит в русский текст";
|
||||
var b___translit_off = new Image;
|
||||
b___translit_off.src = "i/b___translit_off.gif";
|
||||
b___translit_off.alt = "(выключено) Преобразовывать транслит в русский текст";
|
||||
var b___filter_on = new Image;
|
||||
b___filter_on.src = "i/b___filter_on.gif";
|
||||
b___filter_on.alt = "(включено) Показывать в чате только сообщения адресованные мне";
|
||||
var b___filter_off = new Image;
|
||||
b___filter_off.src = "i/b___filter_off.gif";
|
||||
b___filter_off.alt = "(выключено) Показывать в чате только сообщения адресованные мне";
|
||||
var b___sys_on = new Image;
|
||||
b___sys_on.src = "i/b___sys_on.gif";
|
||||
b___sys_on.alt = "(включено) Показывать в чате системные сообщения";
|
||||
var b___sys_off = new Image;
|
||||
b___sys_off.src = "i/b___sys_off.gif";
|
||||
b___sys_off.alt = "(выключено) Показывать в чате системные сообщения";
|
||||
var b___slow_on = new Image;
|
||||
b___slow_on.src = "i/b___slow_on.gif";
|
||||
b___slow_on.alt = "(включено) Медленное обновление чата (раз в минуту)";
|
||||
var b___slow_off = new Image;
|
||||
b___slow_off.src = "i/b___slow_off.gif";
|
||||
b___slow_off.alt = "(выключено) Медленное обновление чата (раз в минуту)";
|
||||
var b___chat_off = new Image;
|
||||
b___chat_off.src = "i/b___chat_off.gif";
|
||||
b___chat_off.alt = "Обновление чата выключено!";
|
||||
|
||||
function IsIE(elem) {
|
||||
ss = top.frames['chat'].document.getElementById('mes').offsetHeight;
|
||||
@ -552,22 +463,6 @@ $left = $tme - time();
|
||||
|
||||
window.onresize = rslength;
|
||||
</script>
|
||||
|
||||
<script language="VBScript">
|
||||
sub flashsound_FSCommand(byval command, byval args)
|
||||
call flashsound_DoFSCommand(command, args)
|
||||
end sub
|
||||
|
||||
</script>
|
||||
|
||||
<script language=JavaScript>
|
||||
function SoundB() {
|
||||
if (top.SoundOff == true)
|
||||
top.frames['bottom'].document.getElementById('but_sound').src = 'i/zvuk.gif';
|
||||
else top.frames['bottom'].document.getElementById('but_sound').src = 'i/zvuk_off.gif';
|
||||
top.SoundOff = !top.SoundOff;
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body marginheight=0 marginwidth=0 bgcolor=#E6E6E6 onload="top.strt();"> <!-- rslength(); -->
|
||||
@ -588,79 +483,22 @@ end sub
|
||||
style="width: 100%;" autocomplete="off" placeholder="Введите текст сообщения"/>
|
||||
</TD>
|
||||
<td nowrap id="T3">
|
||||
<a href="javascript:void(0)" onclick="if(top.ChatTranslit) { trns(); } document.forms[0].submit()"
|
||||
title="Добавить текст в чат"><IMG SRC="i/buttons/b___ok.gif" WIDTH=30 HEIGHT=30 BORDER=0
|
||||
ALT="Добавить текст в чат"></a><IMG SRC="i/buttons/1x1.gif"
|
||||
WIDTH="8" HEIGHT="1" BORDER=0
|
||||
ALT="">
|
||||
<a href="javascript:void(0)" onclick="clearnew(event);" title="Очистить строку ввода"><IMG
|
||||
SRC="i/buttons/b___clear.gif" WIDTH=30 HEIGHT=30 BORDER=0 ALT="Очистить строку ввода"></a><a
|
||||
href="javascript:void(0)" onclick="sw_filter();"
|
||||
title="(выключено) Показывать в чате только сообщения адресованные мне"><IMG
|
||||
SRC="i/buttons/b___filter_off.gif" WIDTH=30 HEIGHT=30 BORDER=0 name="b___filter"
|
||||
ALT="(выключено) Показывать в чате только сообщения адресованные мне"></a><a
|
||||
href="javascript:void(0)" onclick="sw_sys();"
|
||||
title="(выключено) Показывать в чате системные сообщения"><IMG SRC="i/buttons/b___sys_off.gif"
|
||||
WIDTH=30 HEIGHT=30 BORDER=0
|
||||
name="b___sys"
|
||||
ALT="(выключено) Показывать в чате системные сообщения"></a><a
|
||||
href="javascript:void(0)" onclick="sw_slow();"
|
||||
title="(выключено) Медленное обновление чата (раз в минуту)"><IMG
|
||||
SRC="i/buttons/b___slow_off.gif" WIDTH=30 HEIGHT=30 BORDER=0 name="b___slow"
|
||||
ALT="(выключено) Медленное обновление чата (раз в минуту)"></a><img
|
||||
src="i/buttons/b___translit_off.gif"
|
||||
alt="(выключено) Преобразовывать транслит в русский текст (правила перевода см. в энциклопедии)"
|
||||
name="b___translit" width="30" height="30" id="b___translit" style="cursor: hand;"
|
||||
onclick="sw_translit();"><a href="javascript:void(0)" onclick="SoundB()" title="Звуки"><IMG
|
||||
SRC="i/buttons/zvuk_off.gif" id="but_sound" WIDTH=30 HEIGHT=30 BORDER=0></a><a
|
||||
href="javascript:void(0)" onclick="smiles()" title="Смайлики"><IMG SRC="i/buttons/1x1.gif"
|
||||
WIDTH="8" HEIGHT="1" BORDER=0
|
||||
ALT=""><IMG
|
||||
SRC="i/buttons/b___smile.gif" WIDTH=30 HEIGHT=30 BORDER=0 ALT="Смайлики"></a>
|
||||
</TD>
|
||||
<a href="javascript:void(0)" onclick="if(top.ChatTranslit) { trns(); } document.forms[0].submit()" title="Добавить текст в чат">
|
||||
<IMG SRC="i/buttons/b___ok.gif" ALT="Добавить текст в чат">
|
||||
</a>
|
||||
<IMG SRC="i/buttons/1x1.gif" WIDTH="8" HEIGHT="1" BORDER=0 ALT="">
|
||||
<a href="javascript:void(0)" onclick="clearnew(event);" title="Очистить строку ввода">
|
||||
<IMG SRC="i/buttons/b___clear.gif" ALT="Очистить строку ввода">
|
||||
</a>
|
||||
<a href="javascript:void(0)" onclick="sw_filter();" title="(выключено) Показывать в чате только сообщения адресованные мне">
|
||||
<IMG SRC="i/buttons/b___filter_off.gif" name="b___filter" ALT="(выключено) Показывать в чате только сообщения адресованные мне">
|
||||
</a>
|
||||
<a href="javascript:void(0)" onclick="smiles()" title="Смайлики">
|
||||
<IMG SRC="i/buttons/1x1.gif" WIDTH="8" HEIGHT="1" BORDER=0 ALT="">
|
||||
<IMG SRC="i/buttons/b___smile.gif" ALT="Смайлики">
|
||||
</a>
|
||||
</td>
|
||||
<td width="19" id="T4"><img src="i/buttons/b___1.gif" width="16" height="30" alt=""/></td>
|
||||
<td align="right" nowrap="nowrap" bgcolor="BAB7B3" id="T5">
|
||||
<?php
|
||||
echo "<a href=\"javascript:void(0)\" title=\"Настройки/Инвентарь\"><IMG SRC=\"/i/$now/a___inv.gif\" WIDTH=30 HEIGHT=30 BORDER=0 ALT=\"Настройки/Инвентарь\" onclick=\"top.cht('main.php?edit='+Math.random())\"></a>";
|
||||
echo "<a href=\"javascript:void(0)\" title=\"Реликты\"><IMG SRC=\"/design/i/buttons/otheralign.png\" WIDTH=30 HEIGHT=30 BORDER=0 ALT=\"Реликты\" onclick=\"top.cht('relikt.php?edit='+Math.random())\"></a>";
|
||||
|
||||
if ($user['level'] > 1) {
|
||||
echo "<a class=\"buttons\" href=\"javascript:void(0)\" title=\"Друзья\"><img src=\"i/friend.gif\" width=30 height=30 border=0 onclick=\"top.cht('friend.php?edit='+Math.random())\" /></a>";
|
||||
}
|
||||
|
||||
if ($user['level'] > 3) {
|
||||
echo "<a class=\"buttons\" href=\"javascript:void(0)\" onclick=\"top.cht('give.php')\" title=\"Передачи\"><img src=\"i/b__give.gif\" width=30 height=30 border=0 /></a>";
|
||||
}
|
||||
|
||||
if ($user['klan']) {
|
||||
echo "<a class=\"buttons\" href=\"javascript:void(0)\" onclick=\"top.cht('klan.php?'+Math.random())\" title=\"Клан\"><img src=\"i/clan.gif\" width=30 height=30 border=0 /></a>";
|
||||
#echo "<a class=\"buttons\" href=\"javascript:void(0)\" onclick=\"top.cht('__modules/clan_panel.php?'+Math.random())\" title=\"Клан\"><img src=\"i/clan.gif\" width=30 height=30 border=0 /></a>";
|
||||
}
|
||||
|
||||
if ($user['deal'] == 1) {
|
||||
echo "<a class=\"buttons\" href=\"javascript:void(0)\" onclick=\"top.cht('orden.php')\" title=\"Дилерская панель\"><IMG SRC=\"i/chatalign_7.gif\" WIDTH=30 HEIGHT=30 BORDER=0 /></a>";
|
||||
} elseif ((($user['align'] > 1) && ($user['align'] < 2)) || (($user['align'] > 2) && ($user['align'] < 3))) {
|
||||
echo "<a class=\"buttons\" href=\"javascript:void(0)\" onclick=\"top.cht('moderators.php?'+Math.random())\" title=\"Клан\"><img src=\"i/clan.gif\" width=30 height=30 border=0 /></a>";
|
||||
echo "<a class=\"buttons\" href=\"javascript:void(0)\" onclick=\"top.cht('orden.php')\" title=\"Склонность\"><img src=\"i/a___pal.gif\" width=30 height=30 border=0 /></a>";
|
||||
} elseif ($user['align'] == 2) {
|
||||
echo "<a class=\"buttons\" href=\"javascript:void(0)\" onclick=\"top.cht('orden.php')\" title=\"Склонность\"><img src=\"i/chatalign_2.gif\" width=30 height=30 border=0 /></a>";
|
||||
} elseif ($user['align'] == 3) {
|
||||
echo "<a class=\"buttons\" href=\"javascript:void(0)\" onclick=\"top.cht('orden.php')\" title=\"Склонность\"><img src=\"i/chatalign_3.gif\" width=30 height=30 border=0 /></a>";
|
||||
} elseif ($user['align'] == 6) {
|
||||
echo "<a class=\"buttons\" href=\"javascript:void(0)\" onclick=\"top.cht('orden.php')\" title=\"Склонность\"><img src=\"i/chatalign_6.gif\" width=30 height=30 border=0 /></a>";
|
||||
}
|
||||
|
||||
echo "<a class=\"buttons\" href=\"/forum.php\" target=\"_blank\" title=\"Форум\"><img src=\"i/a__forum.gif\" width=30 height=30 border=0 /></a>";
|
||||
|
||||
$CH = date("H");
|
||||
$CM = date("i");
|
||||
$CS = date("s");
|
||||
?>
|
||||
<a href="javascript:void(0)" title="Выход из игры"><IMG SRC="/i/<?= $now ?>/a___ext.gif" WIDTH=30
|
||||
HEIGHT=30 BORDER=0
|
||||
onclick="if (confirm('Выйти из игры?')) top.window.location='index.php?exit=0.560057875997465'"></a>
|
||||
</TD>
|
||||
<td width="9" valign="middle" bgcolor="BAB7B3"><img src="/i/<?= $now ?>/bkf_l_r1_06.gif" width="9" height="30"></td>
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
|
32
ch.php
32
ch.php
@ -29,7 +29,7 @@ if (isset($_GET['online']) && $_GET['online'] != null) {
|
||||
$user['room'] = (int)$_GET['room'];
|
||||
}
|
||||
if ($u->i()['caveleader'] > 0) {
|
||||
$data = mysql_query('
|
||||
$data = db::c()->query('
|
||||
SELECT
|
||||
`align`,
|
||||
`u`.`id`,
|
||||
@ -60,16 +60,16 @@ if (isset($_GET['online']) && $_GET['online'] != null) {
|
||||
$ch4 = '_passive';
|
||||
$ch5 = '_passive';
|
||||
} elseif ($user['room'] == 760) {
|
||||
$forest = mysql_fetch_array(mysql_query('SELECT `id`, `room`, `time`, `user`, `data` FROM `forest` WHERE `user` = "' . $user['id'] . '" LIMIT 1'));
|
||||
$sp = mysql_query('SELECT `id`, `room`, `user` FROM `forest` WHERE `room` = "' . $forest['room'] . '"');
|
||||
while ($pl = mysql_fetch_array($sp)) {
|
||||
$forest = db::c()->query('SELECT `id`, `room`, `time`, `user`, `data` FROM `forest` WHERE `user` = "' . $user['id'] . '" LIMIT 1')->fetch_assoc();
|
||||
$sp = db::c()->query('SELECT `id`, `room`, `user` FROM `forest` WHERE `room` = "' . $forest['room'] . '"');
|
||||
while ($pl = $sp->fetch_assoc()) {
|
||||
$uss .= ', ';
|
||||
$uss .= $pl['user'];
|
||||
}
|
||||
if ($uss != '') {
|
||||
$uss = ltrim($uss, ', ');
|
||||
}
|
||||
$data = mysql_query('
|
||||
$data = db::c()->query('
|
||||
SELECT
|
||||
`align`,
|
||||
`u`.`id`,
|
||||
@ -100,7 +100,7 @@ if (isset($_GET['online']) && $_GET['online'] != null) {
|
||||
$ch4 = '_passive';
|
||||
$ch5 = '_passive';
|
||||
} else {
|
||||
$data = mysql_query('
|
||||
$data = db::c()->query('
|
||||
SELECT
|
||||
`align`,
|
||||
`u`.`id`,
|
||||
@ -239,7 +239,7 @@ if (isset($_GET['online']) && $_GET['online'] != null) {
|
||||
<td nowrap>
|
||||
<script>
|
||||
<?php
|
||||
while ($row = mysql_fetch_array($data)) {
|
||||
while ($row = $data->fetch_assoc()) {
|
||||
if ($row['in_battle'] > 0) {
|
||||
$in_battle = 1;
|
||||
} else {
|
||||
@ -417,23 +417,23 @@ if (isset($_GET['online']) && $_GET['online'] != null) {
|
||||
}
|
||||
}
|
||||
if ($ks > 0) {
|
||||
mysql_query("UPDATE `users` SET `chattime` = '" . ($lastpost + 1) . "' WHERE `id` = {$user['id']} LIMIT 1");
|
||||
db::c()->query("UPDATE `users` SET `chattime` = '" . ($lastpost + 1) . "' WHERE `id` = {$user['id']} LIMIT 1");
|
||||
}
|
||||
echo "</script><script>top.srld();</script>";
|
||||
mysql_query("UPDATE `online` SET `date` = " . time() . " WHERE `id` = {$user['id']} LIMIT 1");
|
||||
db::c()->query("UPDATE `online` SET `date` = " . time() . " WHERE `id` = {$user['id']} LIMIT 1");
|
||||
die();
|
||||
} else {
|
||||
if (strpos($_GET['text'], "private") !== FALSE && $user['level'] < 1) {
|
||||
preg_match_all("/\[(.*)\]/U", $_GET['text'], $matches);
|
||||
for ($ii = 0; $ii < count($matches[1]); $ii++) {
|
||||
$dde = mysql_fetch_array(mysql_query("SELECT `id` FROM `users` WHERE (`deal` = 1 OR (`align`>1 AND `align`<2)) AND `login` = '" . trim($matches[1][$ii]) . "' LIMIT 1 ;"));
|
||||
$dde = db::c()->query("SELECT `id` FROM `users` WHERE (`deal` = 1 OR (`align`>1 AND `align`<2)) AND `login` = '" . trim($matches[1][$ii]) . "' LIMIT 1 ;")->fetch_assoc();
|
||||
if (!$dde['id']) {
|
||||
exit();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (@trim($_GET['text']) != null) {
|
||||
$rr = mysql_fetch_array(mysql_query("SELECT `id` FROM `effects` WHERE `type` = 2 AND `owner` = {$user['id']};"));
|
||||
$rr = db::c()->query("SELECT `id` FROM `effects` WHERE `type` = 2 AND `owner` = {$user['id']};")->fetch_assoc();
|
||||
|
||||
|
||||
# Ограничения на ввод символов в чат!
|
||||
@ -502,17 +502,17 @@ if (isset($_GET['online']) && $_GET['online'] != null) {
|
||||
|
||||
preg_match_all("/\[(.*)\]/U", $_GET['text'], $matches);
|
||||
for ($i = 0; $i < count($matches[1]); $i++) {
|
||||
$prs = mysql_fetch_array(mysql_query('SELECT `id`, `auto_text`, `login` FROM `users` WHERE `login` = "' . mysql_real_escape_string($matches[1][$i]) . '" LIMIT 1'));
|
||||
$prs = db::c()->query('SELECT `id`, `auto_text`, `login` FROM `users` WHERE `login` = "' . mysql_real_escape_string($matches[1][$i]) . '" LIMIT 1')->fetch_assoc();
|
||||
if (isset($prs['id']) && $prs['auto_text'] == 1 && $user['login'] != $prs['login']) {
|
||||
$txt = mysql_fetch_array(mysql_query('SELECT `text` FROM `auto_text` WHERE `owner` = "' . $prs['id'] . '" LIMIT 1'));
|
||||
$txt = db::c()->query('SELECT `text` FROM `auto_text` WHERE `owner` = "' . $prs['id'] . '" LIMIT 1')->fetch_assoc();
|
||||
$_GET['text'] = 'private [' . $user['login'] . '] Атоответчик (' . $prs['login'] . '): ' . $txt['text'];
|
||||
}
|
||||
#$_GET['text'] = 'private ['.$user['login'].'] '.trim($matches[1][$i]);
|
||||
}
|
||||
|
||||
$prs = mysql_fetch_array(mysql_query('SELECT `id`, `auto_text`, `login` FROM `users` WHERE `login` = "' . mysql_real_escape_string($math[2]) . '" LIMIT 1'));
|
||||
$prs = db::c()->query('SELECT `id`, `auto_text`, `login` FROM `users` WHERE `login` = "' . mysql_real_escape_string($math[2]) . '" LIMIT 1')->fetch_assoc();
|
||||
if (isset($prs['id']) && $prs['auto_text'] == 1 && $user['login'] != $prs['login']) {
|
||||
$txt = mysql_fetch_array(mysql_query('SELECT `text` FROM `auto_text` WHERE `owner` = "' . $prs['id'] . '" LIMIT 1'));
|
||||
$txt = db::c()->query('SELECT `text` FROM `auto_text` WHERE `owner` = "' . $prs['id'] . '" LIMIT 1')->fetch_assoc();
|
||||
$_GET['text'] = 'private [' . $user['login'] . '] Атоответчик (' . $prs['login'] . '): ' . $txt['text'];
|
||||
#addchp('<font color=red>Автоответчик</font> ('.$prs['login'].'): '.$txt['text'], '{[]}'.$user['login'].'{[]}');
|
||||
}
|
||||
@ -521,7 +521,7 @@ if (isset($_GET['online']) && $_GET['online'] != null) {
|
||||
$_GET['text'] = tolink($_GET['text']);
|
||||
|
||||
if ($user['invis'] == 1) {
|
||||
$tme = mysql_fetch_row(mysql_query("SELECT `time` FROM `effects` WHERE `owner` = '$user[id]' AND `type` = '1022'"));
|
||||
$tme = db::c()->query("SELECT `time` FROM `effects` WHERE `owner` = '$user[id]' AND `type` = '1022'")->fetch_assoc();
|
||||
$user['login'] = '</a><b><i>невидимка ' . substr($tme[0], strlen($tme[0]) - 4) . '</i></b>';
|
||||
}
|
||||
|
||||
|
2
give.php
2
give.php
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php die('Передачи запрещены!');
|
||||
session_start();
|
||||
if(!isset($_SESSION['uid'])) { header("Location: index.php"); }
|
||||
include("config.php");
|
||||
|
@ -38,11 +38,18 @@
|
||||
<body>
|
||||
<div>
|
||||
<ul>
|
||||
<li><a href="#" target="main"><img src="http://placehold.it/32x32" /></a></li>
|
||||
<li><a href="/user_anketa.php" title="Анкета" target="main"><img src="http://placehold.it/32x32" /></a></li>
|
||||
<li><a href="/blocknote.php" title="Блокнот" target="main"><img src="http://placehold.it/32x32" /></a></li>
|
||||
<li><a href="/friend.php" title="Друзья" target="main"><img src="http://placehold.it/32x32" /></a></li>
|
||||
<li><a href="/main.php?edit=1" title="Инвентарь" target="main"><img src="http://placehold.it/32x32" /></a></li>
|
||||
<li><a href="/relikt.php?edit=1" title="Реликты" target="main"><img src="http://placehold.it/32x32" /></a></li>
|
||||
<li><a href="/give.php" title="Передачи" target="main"><img src="http://placehold.it/32x32/ff3333" /></a></li>
|
||||
<li><a href="/klan.php" title="Клан" target="main"><img src="http://placehold.it/32x32/ff33ff" /></a></li>
|
||||
<li><a href="/orden.php" title="Особые умения" target="main"><img src="http://placehold.it/32x32/33ff33" /></a></li>
|
||||
<li><a href="/moderators.php" title="Модераторы" target="main"><img src="http://placehold.it/32x32/33ff33" /></a></li>
|
||||
<li><a href="/forum.php" title="Форум" target="main"><img src="http://placehold.it/32x32" /></a></li>
|
||||
<li><a href="/forum.php" title="Форум" target="main"><img src="http://placehold.it/32x32/ff0000" /></a></li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user