Баг в админке
This commit is contained in:
parent
4e4f7011b1
commit
71002160b9
102
admin/admin.php
102
admin/admin.php
@ -550,7 +550,7 @@ if ($_POST['sbr_par']) {
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<?
|
||||
<?php
|
||||
if ($_POST['name']) {
|
||||
echo "Ждём лучших времён!";
|
||||
//if($_POST['razdel'] !=7) $goden_tmp=0; else */
|
||||
@ -586,115 +586,115 @@ $moj = expa($al['accses']);
|
||||
|
||||
switch ($_POST['use']) { /* Подключаем строго тот свиток который используем. 36 Свитков править. Мама дорогая! */
|
||||
case "cure150":
|
||||
include("./magic/cure150.php");
|
||||
include("../magic/cure150.php");
|
||||
break;
|
||||
case "al_neut_power":
|
||||
include("./magic/al_neut_power.php");
|
||||
include("../magic/al_neut_power.php");
|
||||
break;
|
||||
case "ct1":
|
||||
include("./magic/ct1.php");
|
||||
include("../magic/ct1.php");
|
||||
break;
|
||||
case "ct2":
|
||||
include("./magic/ct2.php");
|
||||
include("../magic/ct2.php");
|
||||
break;
|
||||
case "ct3":
|
||||
include("./magic/ct3.php");
|
||||
include("../magic/ct3.php");
|
||||
break;
|
||||
|
||||
case "sleep":
|
||||
include("./magic/sleep.php");
|
||||
include("../magic/sleep.php");
|
||||
break;
|
||||
case "sleepf":
|
||||
include("./magic/sleepf.php");
|
||||
include("../magic/sleepf.php");
|
||||
break;
|
||||
case "sleep_off":
|
||||
include("./magic/sleep_off.php");
|
||||
include("../magic/sleep_off.php");
|
||||
break;
|
||||
case "sleepf_off":
|
||||
include("./magic/sleepf_off.php");
|
||||
include("../magic/sleepf_off.php");
|
||||
break;
|
||||
case "haos":
|
||||
include("./magic/haos.php");
|
||||
include("../magic/haos.php");
|
||||
break;
|
||||
case "haos_off":
|
||||
include("./magic/haos_off.php");
|
||||
include("../magic/haos_off.php");
|
||||
break;
|
||||
case "obezl":
|
||||
include("./magic/obezl.php");
|
||||
include("../magic/obezl.php");
|
||||
break;
|
||||
case "obezl_off":
|
||||
include("./magic/obezl_off.php");
|
||||
include("../magic/obezl_off.php");
|
||||
break;
|
||||
case "death":
|
||||
include("./magic/death.php");
|
||||
include("../magic/death.php");
|
||||
break;
|
||||
case "death_off":
|
||||
include("./magic/death_off.php");
|
||||
include("../magic/death_off.php");
|
||||
break;
|
||||
case "ldadd":
|
||||
include("./magic/ldadd.php");
|
||||
include("../magic/ldadd.php");
|
||||
break;
|
||||
|
||||
case "attack":
|
||||
include("./magic/eattack.php");
|
||||
include("../magic/eattack.php");
|
||||
break;
|
||||
case "attack_t":
|
||||
include("./magic/attack_t.php");
|
||||
include("../magic/attack_t.php");
|
||||
break;
|
||||
case "battack":
|
||||
include("./magic/ebattack.php");
|
||||
include("../magic/ebattack.php");
|
||||
break;
|
||||
case "attackk_close":
|
||||
include("./magic/attackk_close.php");
|
||||
include("../magic/attackk_close.php");
|
||||
break;
|
||||
case "attackk_open":
|
||||
include("./magic/attackk_open.php");
|
||||
include("../magic/attackk_open.php");
|
||||
break;
|
||||
|
||||
case "pal_off":
|
||||
include("./magic/pal_off.php");
|
||||
include("../magic/pal_off.php");
|
||||
break;
|
||||
case "marry":
|
||||
include("./magic/marry.php");
|
||||
include("../magic/marry.php");
|
||||
break;
|
||||
case "unmarry":
|
||||
include("./magic/unmarry.php");
|
||||
include("../magic/unmarry.php");
|
||||
break;
|
||||
case "ct_all":
|
||||
include("./magic/ct_all.php");
|
||||
include("../magic/ct_all.php");
|
||||
break;
|
||||
case "check":
|
||||
include("./magic/check.php");
|
||||
include("../magic/check.php");
|
||||
break;
|
||||
case "brat":
|
||||
include("./magic/brat.php");
|
||||
include("../magic/brat.php");
|
||||
break;
|
||||
case "vampir":
|
||||
include("./magic/vampir.php");
|
||||
include("../magic/vampir.php");
|
||||
break;
|
||||
case "crush":
|
||||
include("./magic/devastate.php");
|
||||
include("../magic/devastate.php");
|
||||
break;
|
||||
case "def":
|
||||
include("./magic/defence.php");
|
||||
include("../magic/defence.php");
|
||||
break;
|
||||
case "bexit":
|
||||
include("./magic/bexit.php");
|
||||
include("../magic/bexit.php");
|
||||
break;
|
||||
case "vip":
|
||||
include("./magic/vips.php");
|
||||
include("../magic/vips.php");
|
||||
break;
|
||||
case "dlight":
|
||||
include("./magic/dlight.php");
|
||||
include("../magic/dlight.php");
|
||||
break;
|
||||
case "ddark":
|
||||
include("./magic/ddark.php");
|
||||
include("../magic/ddark.php");
|
||||
break;
|
||||
case "dneit":
|
||||
include("./magic/dneit.php");
|
||||
include("../magic/dneit.php");
|
||||
break;
|
||||
case "un_align":
|
||||
include("./magic/un_align.php");
|
||||
include("../magic/un_align.php");
|
||||
break;
|
||||
}
|
||||
|
||||
@ -978,7 +978,7 @@ echo "</div>";
|
||||
<option value='10'>Суперкрест</option>
|
||||
<option value='-1'>Снять склонность</option>
|
||||
</select> <input type='submit' value='Применить'></form>
|
||||
<?
|
||||
<?php
|
||||
# Даёт опыт.
|
||||
if ($_POST['kol_exp'] > 0) {
|
||||
$id_user = mysql_fetch_assoc(mysql_query("SELECT `id` FROM `users` WHERE `login`='" . $_POST['login_exp'] . "'"));
|
||||
@ -989,10 +989,10 @@ if ($_POST['kol_exp'] > 0) {
|
||||
if ($_POST['grn'] && $_POST['gr']) echo telegraph($_POST['grn'], $_POST['gr']);
|
||||
# Показывает невидимок.
|
||||
echo '<legend>Невидимки:</legend>';
|
||||
$prs = db::c()->query('SELECT `id`, `login` FROM `users` WHERE `invis` = 1 ORDER BY `id` DESC')->fetch_assoc();
|
||||
while ($prs) {
|
||||
$prs = db::c()->query('SELECT `id`, `login` FROM `users` WHERE `invis` = 1 ORDER BY `id` DESC');
|
||||
while ($prs->fetch_assoc()) {
|
||||
$effect = db::c()->query('SELECT `time` FROM `effects` WHERE `owner` = "?s" AND `type` = 1022 LIMIT 1', $prs['id'])->fetch_assoc();
|
||||
echo '<b>[id] = ' . $prs['id'] . ', ' . $prs['login'] . ' - [невидимка ' . substr($effect[0], strlen($effect[0]) - 4) . ']</b><br />';
|
||||
echo '<b>[id] = ' . $prs['id'] . ', ' . $prs['login'] . ' - [невидимка ' . substr($effect[0], strlen($effect['time']) - 4) . ']</b><br />';
|
||||
}
|
||||
# Системное сообщение.
|
||||
if ($_POST['newsmsg']) {
|
||||
@ -1224,7 +1224,7 @@ if (($user['deal'] == 1) || $user['admin'] == 1) {
|
||||
|
||||
function runmagic0(title, magic, name) {
|
||||
document.all("hint3").innerHTML = '<table width=100% cellspacing=1 cellpadding=0 bgcolor=CCC3AA><tr><td align=center><B>' + title + '</td><td width=20 align=right valign=top style="cursor: hand" onclick="closehint3();"><BIG><B>x</b></BIG></td></tr><tr><td colspan=2>' +
|
||||
'<form action="admin.php" method=POST><table width=100% cellspacing=0 cellpadding=2 bgcolor=FFF6DD><tr><td colspan=2><INPUT TYPE=hidden name=sd4 value="<? echo @$user['id']; ?>"><INPUT TYPE=hidden NAME="use" value="' + magic + '">' +
|
||||
'<form action="admin.php" method=POST><table width=100% cellspacing=0 cellpadding=2 bgcolor=FFF6DD><tr><td colspan=2><INPUT TYPE=hidden name=sd4 value="<?php echo @$user['id']; ?>"><INPUT TYPE=hidden NAME="use" value="' + magic + '">' +
|
||||
'Укажите логин персонажа:<small><BR>(можно щелкнуть по логину в чате)</TD></TR><TR><TD align=left><INPUT NAME="' + name + '">' +
|
||||
'<select style="background-color:#eceddf; color:#000000;" name="timer"><option value=15>15 мин</option></select>' +
|
||||
'</TD><TD width=30><INPUT TYPE="submit" value=" »» "></TD></TR></TABLE></FORM></td></tr></table>';
|
||||
@ -1252,7 +1252,7 @@ if (($user['deal'] == 1) || $user['admin'] == 1) {
|
||||
|
||||
function vipad(title, magic, name) {
|
||||
document.all("hint3").innerHTML = '<table width=100% cellspacing=1 cellpadding=0 bgcolor=CCC3AA><tr><td align=center><B>' + title + '</td><td width=20 align=right valign=top style="cursor: hand" onclick="closehint3();"><BIG><B>x</b></BIG></td></tr><tr><td colspan=2>' +
|
||||
'<form action="admin.php" method=POST><table width=100% cellspacing=0 cellpadding=2 bgcolor=FFF6DD><tr><td colspan=2><INPUT TYPE=hidden name=sd4 value="<? echo @$user['id']; ?>"><INPUT TYPE=hidden NAME="use" value="' + magic + '">' +
|
||||
'<form action="admin.php" method=POST><table width=100% cellspacing=0 cellpadding=2 bgcolor=FFF6DD><tr><td colspan=2><INPUT TYPE=hidden name=sd4 value="<?php echo @$user['id']; ?>"><INPUT TYPE=hidden NAME="use" value="' + magic + '">' +
|
||||
'Укажите логин персонажа:<small><BR>(можно щелкнуть по логину в чате)</TD></TR><TR><TD align=left><INPUT NAME="' + name + '">' +
|
||||
'<br /><select style="background-color:#eceddf; color:#000000;" name="vip_type"><option value=1>Silver</option><option value=2>Gold</option><option value=3>Platinum</option></select>' +
|
||||
'<select style="background-color:#eceddf; color:#000000;" name="time"><option value="1">1 Месяц</option><option value="2">2 Месяца</option><option value="3">3 Месяца</option><option value="4">4 Месяца</option><option value="5">5 Месяцев</option><option value="6">6 Месяцев</option><option value="99999999">Бесконечно</option></select>' +
|
||||
@ -1267,7 +1267,7 @@ if (($user['deal'] == 1) || $user['admin'] == 1) {
|
||||
|
||||
function runmagic(title, magic, name) {
|
||||
document.all("hint3").innerHTML = '<table width=100% cellspacing=1 cellpadding=0 bgcolor=CCC3AA><tr><td align=center><B>' + title + '</td><td width=20 align=right valign=top style="cursor: hand" onclick="closehint3();"><BIG><B>x</b></BIG></td></tr><tr><td colspan=2>' +
|
||||
'<form action="admin.php" method=POST><table width=100% cellspacing=0 cellpadding=2 bgcolor=FFF6DD><tr><td colspan=2><INPUT TYPE=hidden name=sd4 value="<? echo @$user['id']; ?>"><INPUT TYPE=hidden NAME="use" value="' + magic + '">' +
|
||||
'<form action="admin.php" method=POST><table width=100% cellspacing=0 cellpadding=2 bgcolor=FFF6DD><tr><td colspan=2><INPUT TYPE=hidden name=sd4 value="<?php echo @$user['id']; ?>"><INPUT TYPE=hidden NAME="use" value="' + magic + '">' +
|
||||
'Укажите логин персонажа:<small><BR>(можно щелкнуть по логину в чате)</TD></TR><TR><TD align=left><INPUT NAME="' + name + '">' +
|
||||
'<select style="background-color:#eceddf; color:#000000;" name="timer"><option value=15>15 мин</option><option value=30>30 мин</option>' +
|
||||
'<option value=60>1 час</option><option value=180>3 часа</option><option value=360>6 часов</option><option value=720>12 часов</option><option value=1440>сутки</option> </select>' +
|
||||
@ -1282,8 +1282,8 @@ if (($user['deal'] == 1) || $user['admin'] == 1) {
|
||||
|
||||
function RunMagicSelf(title, magic, name) {
|
||||
document.all("hint3").innerHTML = '<table width=100% cellspacing=1 cellpadding=0 bgcolor=CCC3AA><tr><td align=center><B>' + title + '</td><td width=20 align=right valign=top style="cursor: hand" onclick="closehint3();"><BIG><B>x</b></BIG></td></tr><tr><td colspan=2>' +
|
||||
'<form action="admin.php" method=POST><table width=100% cellspacing=0 cellpadding=2 bgcolor=FFF6DD><tr><td colspan=2><INPUT TYPE=hidden name=sd4 value="<? echo @$user['id']; ?>"> <INPUT TYPE=hidden NAME="use" value="' + magic + '">' +
|
||||
'Использовать возможность "Сила Нейтралитета?"</TD></TR><TR><TD align=left><INPUT TYPE=hidden NAME="' + name + '" VALUE="<? echo @$user['login']; ?>">' +
|
||||
'<form action="admin.php" method=POST><table width=100% cellspacing=0 cellpadding=2 bgcolor=FFF6DD><tr><td colspan=2><INPUT TYPE=hidden name=sd4 value="<?php echo @$user['id']; ?>"> <INPUT TYPE=hidden NAME="use" value="' + magic + '">' +
|
||||
'Использовать возможность "Сила Нейтралитета?"</TD></TR><TR><TD align=left><INPUT TYPE=hidden NAME="' + name + '" VALUE="<?php echo @$user['login']; ?>">' +
|
||||
'</TD><TD width=30><INPUT TYPE="submit" value=" »» " onclick="top.frames[\'main\'].Hint3Closed = false;"></TD></TR></TABLE></FORM></td></tr></table>';
|
||||
document.all("hint3").style.visibility = "visible";
|
||||
document.all("hint3").style.left = 100;
|
||||
@ -1296,7 +1296,7 @@ if (($user['deal'] == 1) || $user['admin'] == 1) {
|
||||
|
||||
function runmagicf(title, magic, name) {
|
||||
document.all("hint3").innerHTML = '<table width=100% cellspacing=1 cellpadding=0 bgcolor=CCC3AA><tr><td align=center><B>' + title + '</td><td width=20 align=right valign=top style="cursor: hand" onclick="closehint3();"><BIG><B>x</b></BIG></td></tr><tr><td colspan=2>' +
|
||||
'<form action="admin.php" method=POST><table width=100% cellspacing=0 cellpadding=2 bgcolor=FFF6DD><tr><td colspan=2><INPUT TYPE=hidden name=sd4 value="<? echo @$user['id']; ?>"> <INPUT TYPE=hidden NAME="use" value="' + magic + '">' +
|
||||
'<form action="admin.php" method=POST><table width=100% cellspacing=0 cellpadding=2 bgcolor=FFF6DD><tr><td colspan=2><INPUT TYPE=hidden name=sd4 value="<?php echo @$user['id']; ?>"> <INPUT TYPE=hidden NAME="use" value="' + magic + '">' +
|
||||
'Укажите логин персонажа:<small><BR>(можно щелкнуть по логину в чате)</TD></TR><TR><TD align=left><INPUT NAME="' + name + '">' +
|
||||
'<select style="background-color:#eceddf; color:#000000;" name="timer"><option value=15>15 мин<option value=30>30 мин<option value=60>1 час' +
|
||||
'<option value=180>3 часа<option value=360>6 часов<option value=720>12 часов<option value=1440>сутки<option value=4320>3 суток<option value=10080>неделя</select>' +
|
||||
@ -1311,7 +1311,7 @@ if (($user['deal'] == 1) || $user['admin'] == 1) {
|
||||
|
||||
function runmagic1(title, magic, name) {
|
||||
document.all("hint3").innerHTML = '<table width=100% cellspacing=1 cellpadding=0 bgcolor=CCC3AA><tr><td align=center><B>' + title + '</td><td width=20 align=right valign=top style="cursor: hand" onclick="closehint3();"><BIG><B>x</b></BIG></td></tr><tr><td colspan=2>' +
|
||||
'<form action="admin.php" method=POST><table width=100% cellspacing=0 cellpadding=2 bgcolor=FFF6DD><tr><td colspan=2><INPUT TYPE=hidden name=sd4 value="<? echo @$user['id']; ?>"> <INPUT TYPE=hidden NAME="use" value="' + magic + '">' +
|
||||
'<form action="admin.php" method=POST><table width=100% cellspacing=0 cellpadding=2 bgcolor=FFF6DD><tr><td colspan=2><INPUT TYPE=hidden name=sd4 value="<?php echo @$user['id']; ?>"> <INPUT TYPE=hidden NAME="use" value="' + magic + '">' +
|
||||
'Укажите логин персонажа:<small><BR>(можно щелкнуть по логину в чате)</TD></TR><TR><TD align=left><INPUT NAME="' + name + '">' +
|
||||
'</TD><TD width=30><INPUT TYPE="submit" value=" »» "></TD></TR></TABLE></FORM></td></tr></table>';
|
||||
document.all("hint3").style.visibility = "visible";
|
||||
@ -1324,7 +1324,7 @@ if (($user['deal'] == 1) || $user['admin'] == 1) {
|
||||
|
||||
function runmagic2(title, magic, name) {
|
||||
document.all("hint3").innerHTML = '<table width=100% cellspacing=1 cellpadding=0 bgcolor=CCC3AA><tr><td align=center><B>' + title + '</td><td width=20 align=right valign=top style="cursor: hand" onclick="closehint3();"><BIG><B>x</b></BIG></td></tr><tr><td colspan=2>' +
|
||||
'<form action="admin.php" method=POST><table width=100% cellspacing=0 cellpadding=2 bgcolor=FFF6DD><tr><td colspan=2><INPUT TYPE=hidden name=sd4 value="<? echo @$user['id']; ?>"> <INPUT TYPE=hidden NAME="use" value="' + magic + '">' +
|
||||
'<form action="admin.php" method=POST><table width=100% cellspacing=0 cellpadding=2 bgcolor=FFF6DD><tr><td colspan=2><INPUT TYPE=hidden name=sd4 value="<?php echo @$user['id']; ?>"> <INPUT TYPE=hidden NAME="use" value="' + magic + '">' +
|
||||
'Укажите логин персонажа:<small><BR>(можно щелкнуть по логину в чате)</TD></TR><TR><TD align=left><INPUT NAME="' + name + '">' +
|
||||
'<select style="background-color:#eceddf; color:#000000;" name="timer"><option value=2>2 дня<option value=3>3 дня<option value=7>неделя<option value=14>2 недели' +
|
||||
'<option value=30>1 месяц<option value=60>2 месяца<option value=365>бессрочно</select>' +
|
||||
@ -1339,7 +1339,7 @@ if (($user['deal'] == 1) || $user['admin'] == 1) {
|
||||
|
||||
function runmagic3(title, magic, name) {
|
||||
document.all("hint3").innerHTML = '<table width=100% cellspacing=1 cellpadding=0 bgcolor=CCC3AA><tr><td align=center><B>' + title + '</td><td width=20 align=right valign=top style="cursor: hand" onclick="closehint3();"><BIG><B>x</b></BIG></td></tr><tr><td colspan=2>' +
|
||||
'<form action="admin.php" method=POST><table width=100% cellspacing=0 cellpadding=2 bgcolor=FFF6DD><tr><td colspan=2><INPUT TYPE=hidden name=sd4 value="<? echo @$user['id']; ?>"> <INPUT TYPE=hidden NAME="use" value="' + magic + '">' +
|
||||
'<form action="admin.php" method=POST><table width=100% cellspacing=0 cellpadding=2 bgcolor=FFF6DD><tr><td colspan=2><INPUT TYPE=hidden name=sd4 value="<?php echo @$user['id']; ?>"> <INPUT TYPE=hidden NAME="use" value="' + magic + '">' +
|
||||
'Укажите логин персонажа:<small><BR>(можно щелкнуть по логину в чате)</TD></TR><TR><TD align=left><INPUT NAME="' + name + '">' +
|
||||
'<br>Причина: <INPUT size=25 NAME="palcom"></TD><TD width=30><INPUT TYPE="submit" value=" »» "></TD></TR></TABLE></FORM></td></tr></table>';
|
||||
document.all("hint3").style.visibility = "visible";
|
||||
@ -1352,7 +1352,7 @@ if (($user['deal'] == 1) || $user['admin'] == 1) {
|
||||
|
||||
function runmagic4(title, magic, name, name1) {
|
||||
document.all("hint3").innerHTML = '<table width=100% cellspacing=1 cellpadding=0 bgcolor=CCC3AA><tr><td align=center><B>' + title + '</td><td width=20 align=right valign=top style="cursor: hand" onclick="closehint3();"><BIG><B>x</b></BIG></td></tr><tr><td colspan=2>' +
|
||||
'<form action="admin.php" method=POST><table width=100% cellspacing=0 cellpadding=2 bgcolor=FFF6DD><tr><td><INPUT TYPE=hidden name=sd4 value="<? echo @$user['id']; ?>"> <INPUT TYPE=hidden NAME="use" value="' + magic + '">' +
|
||||
'<form action="admin.php" method=POST><table width=100% cellspacing=0 cellpadding=2 bgcolor=FFF6DD><tr><td><INPUT TYPE=hidden name=sd4 value="<?php echo @$user['id']; ?>"> <INPUT TYPE=hidden NAME="use" value="' + magic + '">' +
|
||||
'Укажите логин жениха: <INPUT NAME="' + name + '">' +
|
||||
'<br>Укажите логин невесты: <INPUT NAME="' + name1 + '">' +
|
||||
'<br><center><INPUT TYPE="submit" value=" »» "></center></TD></TR></TABLE></FORM></td></tr></table>';
|
||||
|
Loading…
Reference in New Issue
Block a user