199 lines
13 KiB
PHP
199 lines
13 KiB
PHP
<?
|
|
if(!defined('GAME'))
|
|
{
|
|
die();
|
|
}
|
|
session_start();
|
|
$zv = array(1=>'light',2=>'admin',3=>'dark');
|
|
if($u->info['clan']>0){
|
|
$res = mysql_fetch_array(mysql_query("SELECT * FROM `clan` WHERE `id` = '".mysql_real_escape_string($u->info['clan'])."' LIMIT 1"));
|
|
$clan = $res['name'];
|
|
}else{
|
|
$clan = "";
|
|
}
|
|
if($_POST['enter'] && $_POST['pass']) {
|
|
$data = mysql_fetch_array(mysql_query("SELECT `id` FROM `moder` WHERE `align` = '".mysql_real_escape_string($u->info['align'])."' AND `trPass` = '".md5($_POST['pass'])."' LIMIT 1;"));
|
|
if($data){
|
|
$_SESSION['moder'] = md5(md5($u->info['id']));
|
|
}else{
|
|
echo'Îøèáêà âõîäà.';
|
|
}
|
|
}
|
|
if($u->info['admin']>0) {
|
|
$atp = 'Ïðèâåòñòâóþ òåáÿ àíãåë';
|
|
}
|
|
if($u->info['align']=='0.99'){
|
|
if ($u->info['sex'] == 0) {
|
|
$atp = 'Ìèðîçäàòåëü ñ íàìè, ñîáðàò';
|
|
}else{
|
|
$atp = 'Ìèðîçäàòåëü ñ íàìè, ñåñòðà';
|
|
}
|
|
}
|
|
if($u->info['align']>1 && $u->info['align']<2){
|
|
if($u->info['sex'] == 0) {
|
|
$atp = 'Äà ïðåáóäåò ñ òîáîé ñèëà, áðàò';
|
|
}else{
|
|
$atp = 'Äà ïðåáóäåò ñ òîáîé ñèëà, ñåñòðà';
|
|
}
|
|
}
|
|
if ($u->info['align'] == '3') {
|
|
if ($u->info['sex'] == 0) {
|
|
$atp = 'Ìóñîðùèê ñ íàìè, ñîáðàò';
|
|
}else{
|
|
$atp = 'Ìóñîðùèê ñ íàìè, ñåñòðà';
|
|
}
|
|
}
|
|
if($u->info['align']>3 && $u->info['align']<4){
|
|
if($u->info['sex'] == 0) {
|
|
$atp = 'Äà ïðåáóäåò ñ òîáîé ñèëà, áðàò';
|
|
}else{
|
|
$atp = 'Äà ïðåáóäåò ñ òîáîé ñèëà, ñåñòðà';
|
|
}
|
|
}
|
|
$p = mysql_fetch_array(mysql_query('SELECT * FROM `moder` WHERE `align` = "'.$u->info['align'].'" LIMIT 1'));
|
|
$zv = array(1=>'light',2=>'admin',3=>'dark');
|
|
$a = floor($p['align']);
|
|
if($u->info['admin']>0)
|
|
{
|
|
$zv = $zv[2];
|
|
}else{
|
|
$zv = $zv[$a];
|
|
}
|
|
|
|
?>
|
|
<SCRIPT src='https://<?=$c['img'];?>/js/commoninf.js'></SCRIPT>
|
|
<SCRIPT LANGUAGE="JavaScript" SRC="/js/sl2.22.js"></SCRIPT>
|
|
<SCRIPT LANGUAGE="JavaScript1.2" SRC="https://<?=$c['img'];?>/js/keypad.js"></SCRIPT>
|
|
<style>
|
|
.modpow {
|
|
background-color:#ddd5bf;
|
|
}
|
|
.mt {
|
|
background-color:#b1a993;
|
|
padding-left:10px;
|
|
padding-right:10px;
|
|
padding-top:5px;
|
|
padding-bottom:5px;
|
|
}
|
|
.md {
|
|
padding:10px;
|
|
}
|
|
</style>
|
|
<script>
|
|
function openMod(title,dat)
|
|
{
|
|
var d = document.getElementById('useMagic');
|
|
if(d!=undefined)
|
|
{
|
|
document.getElementById('modtitle').innerHTML = '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td valign="top">'+title+'</td><td width="30" valign="top"><div align="right"><a title="Çàêðûòü îêíî" onClick="closeMod(); return false;" href="#">x</a></div></td></tr></table>';
|
|
document.getElementById('moddata').innerHTML = dat;
|
|
d.style.display = '';
|
|
}
|
|
}
|
|
|
|
function closeMod()
|
|
{
|
|
var d = document.getElementById('useMagic');
|
|
if(d!=undefined)
|
|
{
|
|
document.getElementById('modtitle').innerHTML = '';
|
|
document.getElementById('moddata').innerHTML = '';
|
|
d.style.display = 'none';
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<TABLE width=100%>
|
|
<tr>
|
|
<TD align=center><h3><?=$atp;?> <SCRIPT>drwfl("<?=$u->info['login']?>",<?=$u->info['id']?>,"<?=$u->info['level']?>",<?=$u->info['align']?>,"<?=$clan?>")</SCRIPT> !</h3>
|
|
<TD width=100 align=right><INPUT style="width=30;" TYPE=button value="→" onclick="location='main.php?';">
|
|
</tr>
|
|
<tr>
|
|
<table>
|
|
<tr><td>
|
|
<? //ïîêàçûâàåì ïàíåëü ìîäåðàòîðà
|
|
$go = 0;
|
|
if(isset($_GET['go'])){$go = round($_GET['go']);}
|
|
if($go==2 && $u->info['admin']>0){
|
|
require_once('moder/new/editor.php');
|
|
}
|
|
if($go==1 && $p['editAlign']==1){
|
|
require_once('moder/new/editalign.php');
|
|
}
|
|
?>
|
|
<div id="useMagic" style="display:none; position:absolute; border:solid 1px #776f59; left: 50px; top: 186px;" class="modpow">
|
|
<div class="mt" id="modtitle"></div><div class="md" id="moddata"></div></div>
|
|
<?if($go==0){?>
|
|
<?if($u->info['align']>=0.99 && $u->info['align']<2 || $u->info['admin']>0){?>
|
|
<a href="#" onClick="openMod('<b>"Èñöåëåíèå"</b>','<form action=\'main.php?<?=$zv?>=1&usemod=<? echo $code; ?>\' method=\'post\'>Ëîãèí: <input type=\'text\' style=\'width:144px;\' id=\'logingo\' name=\'logingo\'><br> <input style=\'float:right;\' type=\'submit\' name=\'usevampir\' value=\'Èñï-òü\'></form>');"><img src="https://<?=$c['img'];?>/i/items/invoke_spellcure.gif" title="Èñöåëåíèå" /></a>
|
|
<a href="#" onClick="openMod('<b>"Ðàññåÿòü Òüìó"</b>','<form action=\'main.php?<?=$zv?>=1&usemod=<? echo $code; ?>\' method=\'post\'>Ëîãèí: <input type=\'text\' style=\'width:144px;\' id=\'logingo\' name=\'logingo\'><br> <input style=\'float:right;\' type=\'submit\' name=\'usevampir\' value=\'Èñï-òü\'></form>');"><img src="https://<?=$c['img'];?>/i/items/ATTACK.GIF" title="Ðàññåÿòü Òüìó" /></a>
|
|
<?}?>
|
|
<?if($u->info['align']>=3 && $u->info['align']<4 || $u->info['admin']>0){?>
|
|
<a href="#" onClick="openMod('<b>"Âàìïèðèçì"</b>','<form action=\'main.php?<?=$zv?>=1&usemod=<? echo $code; ?>\' method=\'post\'>Ëîãèí: <input type=\'text\' style=\'width:144px;\' id=\'logingo\' name=\'logingo\'><br> <input style=\'float:right;\' type=\'submit\' name=\'usevampir\' value=\'Èñï-òü\'></form>');"><img src="https://<?=$c['img'];?>/i/items/vampir.gif" title="Âàìïèðèçì" /></a>
|
|
<a href="#" onClick="openMod('<b>"Ïîìî÷ü Òåìíîìó Ñîáðàòó"</b>','<form action=\'main.php?<?=$zv?>=1&usemod=<? echo $code; ?>\' method=\'post\'>Ëîãèí: <input type=\'text\' style=\'width:144px;\' id=\'logingo\' name=\'logingo\'><br> <input style=\'float:right;\' type=\'submit\' name=\'usevampir\' value=\'Èñï-òü\'></form>');"><img src="https://<?=$c['img'];?>/i/items/ATTACK.GIF" title="Ïîìî÷ü òåìíîìó ñîáðàòó" /></a>
|
|
<?}?>
|
|
</td></tr></table>
|
|
<?}if(!$_SESSION['moder'] && $p['trPass']!=''){
|
|
?>
|
|
<TABLE align=center><TR><FORM action="main.php?<?=$zv?>" name="F2" method=POST><TD>
|
|
<FIELDSET><LEGEND><B><font color=blue>Ïðîâåðêà ïàðîëÿ</font></B> </LEGEND>
|
|
<TABLE>
|
|
<TR><TD valign=top>
|
|
<TABLE>
|
|
<TR><TD>Ïàðîëü</td><td> <INPUT style='width:90;' type=password value="" name=pass></td><TD style='padding: 0, 0, 3, 5'><img border=0 SRC="https://img.combats.com/i/misc/klav_transparent.gif" style='cursor: hand' onClick="KeypadShow(1, 'F2', 'pass', 'keypad2');"></TD></tr>
|
|
<TR><TD colspan=3 align=center><INPUT TYPE=submit value="Âîéòè" name=enter></td></tr>
|
|
</TABLE>
|
|
</TD>
|
|
<TD><div id="keypad2" align=center style="display: none;"></div></TD></TR>
|
|
</TABLE>
|
|
</FIELDSET>
|
|
</TD></TR></TABLE></FORM>
|
|
<?
|
|
}else{
|
|
/*ïîäêëþ÷àåì ñêðèïòû ê àáèëêàì ;)*/
|
|
$uer = '';
|
|
if(isset($_GET['usemod'])){
|
|
$srok = array(5=>'5 ìèíóò',15=>'15 ìèíóò',30=>'30 ìèíóò',60=>'îäèí ÷àñ',180=>'òðè ÷àñà',360=>'øåñòü ÷àñîâ',720=>'äâåíàäöàòü ÷àñîâ',1440=>'îäíè ñóòêè',4320=>'òðîå ñóòîê');
|
|
$srokt = array(1=>'1 äåíü',3=>'3 äíÿ',7=>'íåäåëþ',14=>'2 íåäåëè',30=>'ìåñÿö',60=>'2 ìåñÿöà',365=>'ãîä',24=>'áåññðî÷íî',6=>'÷àñèê');
|
|
if(isset($_POST['usem1'])){require_once('moder/usem1.php');}
|
|
elseif(isset($_POST['usem2'])){require_once('moder/usem2.php');}
|
|
elseif(isset($_POST['usesm'])){require_once('moder/usesm.php');}
|
|
elseif(isset($_POST['useban'])){require_once('moder/useban.php');}
|
|
elseif(isset($_POST['useunban'])){require_once('moder/useunban.php');}
|
|
elseif(isset($_POST['usehaos'])){require_once('moder/usehaos.php');}
|
|
elseif(isset($_POST['useshaos'])){require_once('moder/useshaos.php');}
|
|
|
|
}
|
|
/*ïîäêëþ÷àåì ñêðèïòû ê àáèëêàì ;)*/
|
|
if($go==0) {
|
|
if($u->info['admin']>0 || ($u->info['align']>1 && $u->info['align']<2) || ($u->info['align']>3 && $u->info['align']<4)){?>
|
|
<h4>Íàëîæèòü/Ñíÿòü çàêëÿòèÿ</h4>
|
|
<table width="100%">
|
|
<tr>
|
|
<td>
|
|
<? if($u->info['admin']>0){ echo '<a href="main.php?'.$zv.'&go=2"><img width="40" height="25" title="Ðåäàêòèðîâàòü êâåñòû, çàäàíèÿ è îáó÷àþùèå ïðîãðàììû" src="https://img.new-combats.com/editor2.gif"></a>'; } ?>
|
|
<? if($p['editAlign']==1){ echo '<a href="main.php?'.$zv.'&go=1"><img title="Ðåäàêòèðîâàòü âîçìîæíîñòè ïîä÷èíåííûõ" src="https://img.new-combats.com/editor.gif"></a>'; } ?>
|
|
<? if($p['m1']==1 || $p['citym1']==1){ ?> <a href="#" onClick="openMod('<b>Çàêëÿòèå ìîë÷àíèÿ</b>','<form action=\'main.php?<? echo $zv.'&usemod='.$code; ?>\' method=\'post\'>Ëîãèí ïåðñîíàæà: <input type=\'text\' style=\'width:144px;\' id=\'logingo\' name=\'logingo\'><br>Âðåìÿ çàêëÿòèÿ: <select style=\'margin-left:2px;\' name=\'time\'><option value=\'5\'>5 ìèíóò</option><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> <input type=\'submit\' name=\'usem1\' value=\'Èñï-òü\'></form>');"><img src="https://<?=$c['img'];?>/i/items/sleep.gif" title="Çàêëÿòèå ìîë÷àíèÿ" /></a> <? } ?>
|
|
<? if($p['m2']==1 || $p['citym2']==1){ ?> <a href="#" onClick="openMod('<b>Çàêëÿòèå ôîðóìíîãî ìîë÷àíèÿ</b>','<form action=\'main.php?<? echo $zv.'&usemod='.$code; ?>\' method=\'post\'>Ëîãèí ïåðñîíàæà: <input type=\'text\' style=\'width:144px;\' id=\'logingo\' name=\'logingo\'><br>Âðåìÿ çàêëÿòèÿ: <select style=\'margin-left:2px;\' name=\'time\'><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> <input type=\'submit\' name=\'usem2\' value=\'Èñï-òü\'></form>');"><img src="https://<?=$c['img'];?>/i/items/sleepf.gif" title="Çàêëÿòèå ôîðóìíîãî ìîë÷àíèÿ" /></a> <? } ?>
|
|
<? if($p['sm1']==1 || $p['sm2']==1 || $p['citysm1']==1 || $p['citysm2']==1){ ?><a href="#" onClick="openMod('<b>Çàêëÿòèå ôîðóìíîãî ìîë÷àíèÿ</b>','<form action=\'main.php?<? echo $zv.'&usemod='.$code; ?>\' method=\'post\'>Ëîãèí ïåðñîíàæà: <input type=\'text\' style=\'width:144px;\' id=\'logingo\' name=\'logingo\'><br>Ñíÿòü çàêëÿòèå: <select style=\'margin-left:2px;\' name=\'time\'><option value=\'1\'>÷àò</option><option value=\'2\'>ôîðóì</option><option value=\'3\'>÷àò + ôîðóì</option></select> <input type=\'submit\' name=\'usesm\' value=\'Èñï-òü\'></form>');"><img src="https://<?=$c['img'];?>/i/items/sleep_off.gif" title="Ñíÿòü çàêëÿòèå ìîë÷àíèÿ" /></a> <? } ?>
|
|
<? if($p['banned']==1 || $p['ban0']==1){ ?> <a href="#" onClick="openMod('<b>Çàêëÿòèå ñìåðòè</b>','<form action=\'main.php?<? echo $zv.'&usemod='.$code; ?>\' method=\'post\'>Ëîãèí ïåðñîíàæà: <input type=\'text\' style=\'width:144px;\' id=\'logingo\' name=\'logingo\'><br> <input style=\'float:right;\' type=\'submit\' name=\'useban\' value=\'Èñï-òü\'></form>');"><img src="https://<?=$c['img'];?>/i/items/pal_button6.gif" title="Çàêëÿòüå ñìåðòè" /></a> <? } ?>
|
|
<? if($p['unbanned']==1 || $u->info['admin']>0){ ?> <a href="#" onClick="openMod('<b>Ñíÿòü çàêëÿòèå ñìåðòè</b>','<form action=\'main.php?<? echo $zv.'&usemod='.$code; ?>\' method=\'post\'>Ëîãèí ïåðñîíàæà: <input type=\'text\' style=\'width:144px;\' id=\'logingo\' name=\'logingo\'><br> <input style=\'float:right;\' type=\'submit\' name=\'useunban\' value=\'Èñï-òü\'></form>');"><img src="https://<?=$c['img'];?>/i/items/pal_button7.gif" title="Ñíÿòü çàêëÿòüå ñìåðòè" /></a> <? } ?>
|
|
<? if($p['haos']==1){ ?> <a href="#" onClick="openMod('<b>Îòïðàâèòü â õàîñ</b>','<form action=\'main.php?<? echo $zv.'&usemod='.$code; ?>\' method=\'post\'>Ëîãèí ïåðñîíàæà: <input type=\'text\' style=\'width:144px;\' id=\'logingo\' name=\'logingo\'><br>Âðåìÿ çàêëÿòèÿ: <select style=\'margin-left:2px;\' name=\'time\'><option value=\'7\'>Íåäåëÿ</option><option value=\'14\'>2 íåäåëè</option><option value=\'30\'>Ìåñÿö</option><option value=\'60\'>2 ìåñÿöà</option><? if($p['haosInf']==1){ ?><option value=\'1\'>Áåññðî÷íî</option><? } ?> <input type=\'submit\' name=\'usehaos\' value=\'Èñï-òü\'></form>');"><img src="https://<?=$c['img'];?>/i/items/pal_button4.gif" title="Îòïðàâèòü â õàîñ" /></a> <? } ?>
|
|
<? if($p['shaos']==1 || $u->info['admin']>0){ ?> <a href="#" onClick="openMod('<b>Âûïóñòèòü èç õàîñà</b>','<form action=\'main.php?<? echo $zv.'&usemod='.$code; ?>\' method=\'post\'>Ëîãèí ïåðñîíàæà: <input type=\'text\' style=\'width:144px;\' id=\'logingo\' name=\'logingo\'><br> <input style=\'float:right;\' type=\'submit\' name=\'useshaos\' value=\'Èñï-òü\'></form>');"><img src="https://<?=$c['img'];?>/i/items/pal_button5.gif" title="Âûïóñòèòü èç õàîñà" /></a> <? } ?>
|
|
<? if($p['deletInfo']==1){ ?> <a href="#" onClick="openMod('<b>Îáåçëè÷èâàíèå</b>','<form action=\'main.php?<? echo $zv.'&usemod='.$code; ?>\' method=\'post\'>Ëîãèí ïåðñîíàæà: <input type=\'text\' style=\'width:144px;\' id=\'logingo\' name=\'logingo\'><br>Âðåìÿ çàêëÿòèÿ: <select style=\'margin-left:2px;\' name=\'time\'><option value=\'7\'>Íåäåëÿ</option><option value=\'14\'>2 íåäåëè</option><option value=\'30\'>Ìåñÿö</option><option value=\'60\'>2 ìåñÿöà</option><option value=\'1\'>Áåññðî÷íî</option> <input type=\'submit\' name=\'usedeletinfo\' value=\'Èñï-òü\'></form>');"><img src="https://<?=$c['img'];?>/i/items/cui.gif" title="Îáåçëè÷èâàíèå" /></a>
|
|
<a href="#" onClick="openMod('<b>Ñíÿòü çàêëÿòèå îáåçëè÷èâàíèÿ</b>','<form action=\'main.php?<? echo $zv.'&usemod='.$code; ?>\' method=\'post\'>Ëîãèí ïåðñîíàæà: <input type=\'text\' style=\'width:144px;\' id=\'logingo\' name=\'logingo\'><br> <input style=\'float:right;\' type=\'submit\' name=\'unusedeletinfo\' value=\'Èñï-òü\'></form>');"><img src="https://<?=$c['img'];?>/i/items/uncui.gif" title="Ñíÿòü îáåçëè÷èâàíèå" /></a> <? } ?>
|
|
|
|
|
|
|
|
|
|
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<?
|
|
}
|
|
}
|
|
}?>
|
|
|
|
|