game/modules_data/_mod.php
2022-06-07 00:30:34 +03:00

2000 lines
104 KiB
PHP

<?
if(!defined('GAME'))
{
die();
}
session_start();
$rang = '';
if(floor($u->info['align'])==1)
{
$rang = 'Ïàëàäèí';
}elseif(floor($u->info['align'])==3)
{
$rang = 'Òàðìàí';
}elseif($u->info['admin']>0){
$rang = 'Àíãåë';
}else{
$rang = '<i>Íåèçâåñòíîå ñóùåñòâî</i>';
}
/*
if($u->info['admin'] == 0) {
if(
($u->info['city'] == 'capitalcity' && $rang == 'Òàðìàí') ||
($u->info['city'] == 'newcapitalcity' && $rang == 'Ïàëàäèí')
) {
die('<center><br>Çàïðåùåíî ïîëüçîâàòüñÿ ìîäåðàòîðñêèìè ôóíêöèÿìè íà âðàæåñêîé òåððèòîðèè.</center>');
}
}
*/
if(isset($_GET['exitMod']))
{
unset($_SESSION['palpsw']);
}
if(isset($_GET['remod']))
{
if($_GET['remod']==1)
{
$_SESSION['remod'] = 3;
}else{
$_SESSION['remod'] = 1;
}
}
$zv = array(1=>'light',2=>'admin',3=>'dark');
$merror = '';
if($u->info['admin']>0)
{
if($_SESSION['remod']==3 || !isset($_SESSION['remod']))
{
$u->info['align'] = '3.99';
}elseif($_SESSION['remod']==1)
{
$u->info['align'] = '1.99';
}
}
$mod_login = $u->info['login'];
if($u->info['invise'] > 0) {
$mod_login = "<i>Íåâèäèìêà</i>";
}
//âîçìîæíîñòè (ïåðå÷èñëÿåì)
$vz_id = array(
0=>'m1',
1=>'mm1',
2=>'m2',
3=>'mm2',
4=>'sm1',
5=>'sm2',
6=>'citym1',
7=>'citym2',
8=>'citysm1',
9=>'citysm2',
10=>'addld',
11=>'cityaddld',
12=>'seeld',
13=>'telegraf',
14=>'f1',
15=>'f2',
16=>'f3',
17=>'f4',
18=>'f5',
19=>'f6',
20=>'f7',
21=>'f8',
22=>'boi',
23=>'elka',
24=>'haos',
25=>'haosInf',
26=>'deletInfo',
27=>'zatoch',
28=>'banned',
29=>'unbanned',
30=>'readPerevod',
31=>'provItm',
32=>'provMsg',
33=>'trPass',
34=>'shaos',
35=>'szatoch',
36=>'editAlign',
37=>'priemIskl',
38=>'proverka',
39=>'marry',
40=>'ban0',
41=>'useunnoper',
42=>'usenoper',
43=>'useunalign',
44=>'usealign1',
45=>'usealign3',
46=>'usealign7',
47=>'useuntravm',
48=>'heal',
49=>'invis',
50=>'attack',
51=>'sex',
52=>'unbtl',
53=>'nick',
54=>'testchat',
55=>'newuidinv');
//íàçâàíèÿ âîçìîæíîñòåé
$vz = array(
'm1'=>'Çàêëÿòèå ìîë÷àíèÿ',
'mm1'=>'Çàêëÿòèå ìîë÷àíèÿ (3 äí.)',
'm2'=>'Çàêëÿòèå ôîðóìíîãî ìîë÷àíèÿ',
'mm2'=>'Çàêëÿòèå ôîðóìíîãî ìîë÷àíèÿ (3 äí.)',
'sm1'=>'Ñíÿòü ìîë÷àíêó',
'sm2'=>'Ñíÿòü ôîðóìíóþ ìîë÷àíêó',
'citym1'=>'Çàêëÿòèå ìîë÷àíèÿ (ìåæäóãîðîäíÿÿ)',
'citym2'=>'Çàêëÿòèå ôîðóìíîãî ìîë÷àíèÿ (ìåæäóãîðîäíÿÿ)',
'citysm1'=>'Ñíÿòü ìîë÷àíêó (ìåæäóãîðîäíÿÿ)',
'citysm2'=>'Ñíÿòü ôîðóìíóþ ìîë÷àíêó (ìåæäóãîðîäíÿÿ)',
'addld'=>'Äîáàâèòü çàïèñü â ëè÷íîå äåëî',
'cityaddld'=>'Äîáàâèòü çàïèñü â ëè÷íîå äåëî (ìåæäóãîðîäíÿÿ)',
'seeld'=>'Ïðîñìîòð ëè÷íîãî äåëà',
'telegraf'=>'Òåëåãðàô',
'f1'=>'Ôîðóì. Îòâåò â îòâåòå',
'f2'=>'Ôîðóì. Óäàëåíèå îòâåòà',
'f3'=>'Ôîðóì. Âîññòàíîâëåíèå òåìû',
'f4'=>'Ôîðóì. Óäàëåíèå òåìû',
'f5'=>'Ôîðóì. Ïåðåìåùåíèå òåìû',
'f6'=>'Ôîðóì. Ïðèêðåïëåíèå / Îòêðåïëåíèå òåìû',
'f7'=>'Ôîðóì. Âîçîáíîâëåíèå îáñóæäåíèÿ',
'f8'=>'Ôîðóì. Çàêðûòèå îáñóæäåíèÿ',
'boi'=>'Ìîäåðàöèÿ áîåâ',
'elka'=>'Ìîäåðàöèÿ ¸ëêè',
'haos'=>'Õàîñ',
'haosInf'=>'Õàîñ (áåññðî÷íî)',
'deletInfo'=>'Ñíÿòü / Íàëîæèòü Îáåçëè÷èâàíèå',
'zatoch'=>'Çàòî÷åíèå ïåðñîíàæà',
'banned'=>'Áëîêèðîâêà ïåðñîíàæà',
'unbanned'=>'Ðàçáëîêèðîâêà ïåðñîíàæà',
'readPerevod'=>'Ïðîñìîòð ïåðåâîäîâ',
'provItm'=>'Ïðîâåðêà èíâåíòàðÿ',
'provMsg'=>'Ïðîâåðêà ñîîáùåíèé',
'trPass'=>'Òðåáóåò ïàðîëü',
'shaos'=>'Ñíÿòü õàîñ',
'szatoch'=>'Âûïóñòèòü èç çàòî÷åíèÿ',
'editAlign'=>'Ôóíêöèè óïðàâëåíöà',
'priemIskl'=>'Ïðèåì / Èñêëþ÷åíèå',
'proverka'=>'Ïðîâåðêà íà ÷èñòîòó',
'marry'=>'Îáâåí÷àòü / Ðàçâåñòè',
'ban0'=>'Áëîêèðîâêà [0] óðîâíåé',
'useunnoper'=>'Ñíÿòü çàïðåò íà ïåðåäà÷è',
'usenoper'=>'Çàïðåò íà ïåðåäà÷è',
'useunalign'=>'Ñíÿòü ñêëîííîñòü\êëàí',
'usealign1'=>'Âûäàòü ñâåòëóþ ñêëîííîñòü',
'usealign3'=>'Âûäàòü òåìíóþ ñêëîííîñòü',
'usealign7'=>'Âûäàòü íåéòðàëüíóþ ñêëîííîñòü',
'useuntravm'=>'Âûëå÷èòü òðàâìó ( 1000 øò. â ìåñÿö íà âñåõ )',
'heal'=>'Ñâèòêè âîññòàíîâëåíèÿ ( 1000 øò. â ìåñÿö íà âñåõ )',
'invis'=>'Ñâèòîê íåâèäèìêè',
'attack'=>'Ñâèòîê íàïàäåíèÿ ( 1000 øò. â ìåñÿö íà âñåõ )',
'sex'=>'Ñìåíà ïîëà',
'unbtl'=>'Âûòàùèòü ïåðñîíàæà èç áîÿ',
'nick'=>'Ñìåíà ëîãèíà',
'testchat'=>'Ïðîâåðèòü ñîîáùåíèå',
'newuidinv'=>'Ïðîâåðêà èíâåíòàðÿ');
echo '<script type="text/javascript" src="js/jquery.js"></script>';
$p = mysql_fetch_array(mysql_query('SELECT * FROM `moder` WHERE `align` = "'.$u->info['align'].'" LIMIT 1'));
if(isset($p['id']) || $u->info['align']==1 || $u->info['align']==3)
{
if($u->info['admin']>0)
{
$p['editAlign'] = 1;
}
if(isset($_GET['enter']) && $p['trPass']!='')
{
if($u->info['admin']>0 && $_POST['psw']=='admin$enter')
{
$_POST['psw'] = $p['trPass'];
}else{
$_POST['psw'] = md5($_POST['psw']);
}
if($_POST['psw']==$p['trPass'])
{
$_SESSION['palpsw'] = $_POST['psw'];
}else{
$merror = '<br><center><font color="red"><b>Íåâåðíûé ïàðîëü.</b></font></center><br>';
}
}
$a = floor($p['align']);
if($u->info['admin']>0)
{
$zv = $zv[2];
}else{
$zv = $zv[$a];
}
if($_SESSION['palpsw']==$p['trPass'] || $p['trPass'] == '')
{
//ïîêàçûâàåì ïàíåëü ìîäåðàòîðà
$go = 0;
if(isset($_GET['go']))
{
$go = round($_GET['go']);
}
if(isset($_POST['newuidinv'],$_POST['pometka52017'])) {
$_GET['newuidinv'] = $_POST['newuidinv'];
}
if(isset($_GET['newuidinv'])) {
$_GET['newuidinv'] = htmlspecialchars($_GET['newuidinv']);
include('_inv_moder.php');
die();
}
if($go == 3 && $u->info['admin'] > 0) {
?>
<table width="100%">
<tr>
<td align="center"><h3>Ðåäàêòèðîâàíèå îáó÷àþùèõ êâåñòîâ</h3></td>
<td width="150" align="right"><input type="button" value="&gt;" onclick="location='main.php?<? echo $zv; ?>';" />
<input type="button" value="Âåðíóòüñÿ" onclick="location='main.php?go=3&amp;<? echo $zv; ?>';" />
<? if($u->info['admin']>0){ ?>
<input type="button" class="btn btn-success" value="<? if($a==1){ echo 'Ïàíåëü ïàëàäèíà'; }else{ echo 'Ïàíåëü òàðìàíà'; } ?>" onclick="location='main.php?go=1&amp;<? echo $zv; ?>&amp;remod=<? echo $a; ?>';" />
<? } ?>
<? if($p['trPass']!=''){ ?>
<input type="button" value="X" title="Çàêðûòü äîñòóï" onclick="location='main.php?<? echo $zv.'&rnd='.$code; ?>&amp;exitMod=1';" />
<? } ?></td>
</tr>
<tr>
<td><?
if($merror!='')
{
echo '<font color="red">'.$merror.'</font>';
}
?>
<?
$sx = array('Ìóæñêîé','Æåíñêèé','Îáùèé');
if(isset($_GET['eq'])) {
$pl = mysql_fetch_array(mysql_query('SELECT * FROM `an_quest` WHERE `id` = "'.mysql_real_escape_string($_GET['eq']).'" LIMIT 1'));
if(isset($pl['id'])) {
if(isset($_POST['pl_name'])) {
$pl['name'] = $_POST['pl_name'];
$pl['sex'] = $_POST['pl_sex'];
$pl['ico_bot'] = $_POST['pl_ico_bot'];
$pl['name_bot'] = $_POST['pl_name_bot'];
$pl['info'] = $_POST['pl_info'];
$pl['act'] = $_POST['pl_act'];
$pl['next'] = $_POST['pl_next'];
$pl['win'] = $_POST['pl_win'];
$pl['data'] = $_POST['pl_data'];
$pl['room'] = $_POST['pl_room'];
$pl['module'] = $_POST['pl_module'];
mysql_query('UPDATE `an_quest` SET
`name` = "'.mysql_real_escape_string($pl['name']).'",
`sex` = "'.mysql_real_escape_string($pl['sex']).'",
`ico_bot` = "'.mysql_real_escape_string($pl['ico_bot']).'",
`name_bot` = "'.mysql_real_escape_string($pl['name_bot']).'",
`info` = "'.mysql_real_escape_string($pl['info']).'",
`act` = "'.mysql_real_escape_string($pl['act']).'",
`next` = "'.mysql_real_escape_string($pl['next']).'",
`win` = "'.mysql_real_escape_string($pl['win']).'",
`data` = "'.mysql_real_escape_string($pl['data']).'",
`room` = "'.mysql_real_escape_string($pl['room']).'",
`module` = "'.mysql_real_escape_string($pl['module']).'"
WHERE `id` = "'.$pl['id'].'" LIMIT 1');
$pl = mysql_fetch_array(mysql_query('SELECT * FROM `an_quest` WHERE `id` = "'.mysql_real_escape_string($_GET['eq']).'" LIMIT 1'));
}
?>
<form method="post" action="main.php?<?=$zv?>&go=3&eq=<?=$pl['id']?>">
#id: <?=$pl['id']?><br />
Íàçâàíèå êâåñòà: <input style="width:200px;" name="pl_name" type="text" value="<?=$pl['name']?>" /><br />
<hr />
Ïîë: <input style="width:20px;" name="pl_sex" type="text" value="<?=$pl['sex']?>" /><br />
Êàðòèíêà áîòà: <input style="width:216px;" name="pl_ico_bot" type="text" value="<?=$pl['ico_bot']?>" /><br />
Èìÿ áîòà: <input style="width:253px;" name="pl_name_bot" type="text" value="<?=$pl['name_bot']?>" />
<hr />
<br />
Èíôîðìàöèÿ:<br /><textarea style="width:330px;" name="pl_info"><?=$pl['info']?></textarea><br />
Äåéñòâèå: <input style="width:255px;" name="pl_act" type="text" value="<?=$pl['act']?>" /><br />
Ñëåäóþùèé êâåñò: <input style="width:200px;" name="pl_next" type="text" value="<?=$pl['next']?>" /><br />
Íàãðàäà: <input style="width:200px;" name="pl_win" type="text" value="<?=$pl['win']?>" /> (îïûò|êð|åêð|ïðåäìåòû)<br />
Äàòà: <input style="width:200px;" name="pl_data" type="text" value="<?=$pl['data']?>" /><br />
<hr />
Êîìíàòà (òðåáóåò): <input name="pl_room" type="text" value="<?=$pl['room']?>" /><br />
Ìîäóëü, äåéñòâèå (òðåáóåò): <input name="pl_module" type="text" value="<?=$pl['module']?>" /><hr />
<input type="submit" value="Ñîõðàíèòü êâåñò" />
</form>
<?
}else{
echo '<center>Êâåñò íå íàéäåí.</center>';
}
}else{
echo '<a href="main.php?'.$zv.'&go=3&add=1">Äîáàâèòü íîâûé êâåñò</a><hr>';
if(isset($_GET['del'])) {
mysql_query('DELETE FROM `an_quest` WHERE `id` = "'.mysql_real_escape_string($_GET['del']).'" LIMIT 1');
}elseif(isset($_GET['add'])) {
mysql_query('INSERT INTO `an_quest` (`sex`) VALUES ("0") ');
}
$sp = mysql_query('SELECT * FROM `an_quest`');
while( $pl = mysql_fetch_array($sp) ) {
echo '<div><span style="width:50px;display:inline-block;">#'.$pl['id'].'</span><b><span style="width:250px;display:inline-block;">'.$pl['name'].' ('.$sx[$pl['sex']].')</span></b> &nbsp; <a href="main.php?'.$zv.'&go=3&eq='.$pl['id'].'">Èçìåíèòü</a> <a href="main.php?'.$zv.'&go=3&del='.$pl['id'].'">Óäàëèòü</a></div><hr>';
}
}
?>
</td>
</tr>
</table>
<?
}elseif($go==2 && $u->info['admin']>0)
{
if(isset($_POST['q_name']))
{
$qd = array();
/* Array ([q_act_atr_1] => 0 [q_act_val_1] => [q_tr_atr_1] => 0 [q_tr_val_1] => [q_ng_atr_1] => 0 [q_ng_val_1] => [q_nk_atr_NaN] => 0
[q_nk_val_NaN] => [q_info] => test îïèñàíèå [q_line1] => 1 [q_line2] => 1 [q_fast] => 1 [q_fast_city] => capitalcity [q_align1] => 1 [q_align2] => 1 [q_align3] => 1 ) */
$qd['name'] = $_POST['q_name'];
$qd['lvl'] = explode('-',$_POST['q_lvl']);
$qd['info'] = $_POST['q_info'];
if($_POST['q_line1']==1)
{
$qd['line'] = $_POST['q_line2'];
}
if($_POST['q_fast']==1)
{
$qd['city'] = $_POST['q_fast_city'];
$gd['fast'] = 1;
}
if($_POST['align1']==1)
{
$qd['align'] = 1;
}elseif($_POST['align2']==1)
{
$qd['align'] = 3;
}elseif($_POST['align3']==1)
{
$qd['align'] = 7;
}elseif($_POST['align4']==1)
{
$qd['align'] = 2;
}
$i = 1;
while($i!=-1)
{
if(isset($_POST['q_act_atr_'.$i]))
{
if($_POST['q_act_val_'.$i]!='')
{
$qd['act_date'] .= $_POST['q_act_atr_'.$i].':=:'.$_POST['q_act_val_'.$i].':|:';
}
}else{
$i = -2;
$qd['act_date'] = trim($qd['act_date'],':|:');
}
$i++;
}
$i = 1;
while($i!=-1)
{
if(isset($_POST['q_tr_atr_'.$i]))
{
if($_POST['q_tr_val_'.$i]!='')
{
$qd['tr_date'] .= $_POST['q_tr_atr_'.$i].':=:'.$_POST['q_tr_val_'.$i].':|:';
}
}else{
$i = -2;
$qd['tr_date'] = trim($qd['tr_date'],':|:');
}
$i++;
}
$i = 1;
while($i!=-1)
{
if(isset($_POST['q_ng_atr_'.$i]))
{
if($_POST['q_ng_val_'.$i]!='')
{
$qd['win_date'] .= $_POST['q_ng_atr_'.$i].':=:'.$_POST['q_ng_val_'.$i].':|:';
}
}else{
$i = -2;
$qd['win_date'] = trim($qd['win_date'],':|:');
}
$i++;
}
$i = 1;
while($i!=-1)
{
if(isset($_POST['q_nk_atr_'.$i]))
{
if($_POST['q_nk_val_'.$i]!='')
{
$qd['lose_date'] .= $_POST['q_nk_atr_'.$i].':=:'.$_POST['q_nk_val_'.$i].':|:';
}
}else{
$i = -2;
$qd['lose_date'] = trim($qd['lose_date'],':|:');
}
$i++;
}
mysql_query('INSERT INTO `quests` (`name`,`min_lvl`,`max_lvl`,`tr_date`,`act_date`,`win_date`,`lose_date`,`info`,`line`,`align`,`city`,`fast`) VALUES (
"'.mysql_real_escape_string($qd['name']).'","'.mysql_real_escape_string($qd['lvl'][0]).'","'.mysql_real_escape_string($qd['lvl'][1]).'",
"'.mysql_real_escape_string($qd['tr_date']).'","'.mysql_real_escape_string($qd['act_date']).'","'.mysql_real_escape_string($qd['win_date']).'",
"'.mysql_real_escape_string($qd['lose_date']).'","'.mysql_real_escape_string($qd['info']).'","'.mysql_real_escape_string($qd['line']).'",
"'.mysql_real_escape_string($qd['align']).'","'.mysql_real_escape_string($qd['city']).'","'.mysql_real_escape_string($qd['fast']).'")');
}
?>
<script>
function nqst(){ if(document.getElementById('addNewquest').style.display == ''){ document.getElementById('addNewquest').style.display = 'none'; }else{ document.getElementById('addNewquest').style.display = ''; } }
var adds = [0,0,0,0];
function addqact()
{
var dd = document.getElementById('qact');
adds[0]++;
dd.innerHTML = 'Àòðèáóò: <select name="q_act_atr_'+adds[0]+'" id="q_act_atr_'+adds[0]+'">'+
'<option value="0"></option>'+
'<option value="go_loc">ïåðåéòè â ëîêàöèþ</option>'+
'<option value="go_mod">ïåðåéòè â ìîäóëü</option>'+
'<option value="on_itm">îäåòü ïðåäìåò</option>'+
'<option value="un_itm">ñíÿòü ïðåäìåò</option>'+
'<option value="use_itm">èñïîëüçîâàòü ïðåäìåò</option>'+
'<option value="useon_itm">èñïîëüçîâàòü ïðåäìåò íà</option>'+
'<option value="dlg_nps">ïîãîâîðèòü ñ NPS</option>'+
'<option value="tk_itm">ïîëó÷èòü ïðåäìåò</option>'+
'<option value="del_itm">âûêèíóòü ïðåäìåò</option>'+
'<option value="buy_itm">êóïèòü ïðåäìåò</option>'+
'<option value="kill_bot">óáèòü ìîíñòðà</option>'+
'<option value="kill_you">óáèòü êëîíà</option>'+
'<option value="kill_user">óáèòü èãðîêà</option>'+
'<option value="all_stats">ðàñòàâèòü ñòàòû</option>'+
'<option value="all_skills">ðàñòàâèòü óìåíèÿ</option>'+
'<option value="all_navik">ðàññòàâèòü íàâûêè</option>'+
'<option value="min_online">ïðîáûòü ìèíóò â îíëàéíå</option>'+
'<option value="min_btl">ïðîâåñòè áîåâ</option>'+
'<option value="min_winbtl">ïðîâåñòè áîåâ (ïîáåä)</option>'+
'<option value="tk_znak">ïîëó÷èòü çíà÷îê</option>'+
'<option value="end_quests">çàâåðøèòü êâåñò</option>'+
'<option value="end_qtime">âðåìÿ âûïîëíåíèÿ êâåñòà (â ìèíóòàõ)</option>'+
'</select>, çíà÷åíèå: <input style="width:100px" name="q_act_val_'+adds[0]+'" value=""><br>'+dd.innerHTML;
}
function addqtr()
{
var dd = document.getElementById('qtr');
adds[1]++;
dd.innerHTML = 'Àòðèáóò: <select name="q_tr_atr_'+adds[1]+'" id="q_tr_atr_'+adds[1]+'">'+
'<option value="0"></option>'+
'<option value="tr_endq">Çàâåðøèòü êâåñòû</option>'+
'<option value="tr_botitm">Èç ìîíñòðîâ ïàäàþò ïðåäìåòû (â ïåùåðàõ)</option>'+
'<option value="tr_winitm">Ïîñëå ïîáåäû ïàäàþò ïðåäìåòû</option>'+
'<option value="tr_zdr">Çàäåðæêà ìåæäó âûïîëíåíèåì (â ÷àñàõ)</option>'+
'<option value="tr_tm1">Ïåðåîäè÷íîñòü êâåñòà (íà÷àëî)</option>'+
'<option value="tr_tm2">Ïåðåîäè÷íîñòü êâåñòà (êîíåö)</option>'+
'<option value="tr_raz">Ñêîëüêî ðàç ìîæíî ïðîõîäèòü êâåñò</option>'+
'<option value="tr_raz2">Ñêîëüêî ïîïûòîê ïðîéòè êâåñò</option>'+
'<option value="tr_dn">Íàõîæäåíèå â ïåùåðå</option>'+
'<option value="tr_x">Íàõîæäåíèå â êîîðäèíàòå X</option>'+
'<option value="tr_y">Íàõîæäåíèå â êîîðäèíàòå Y</option>'+
'</select>, çíà÷åíèå: <input style="width:100px" name="q_tr_val_'+adds[1]+'" value=""><br>'+dd.innerHTML;
}
function addqng()
{
var dd = document.getElementById('qng');
adds[2]++;
dd.innerHTML = 'Àòðèáóò: <select name="q_ng_atr_'+adds[2]+'" id="q_ng_atr_'+adds[2]+'">'+
'<option value="0"></option>'+
'<option value="add_cr">Äîáàâèòü Êðåäèòû</option>'+
'<option value="add_ecr">Äîáàâèòü Åêðåäèòû</option>'+
'<option value="add_itm">Äîáàâèòü ïðåäìåò</option>'+
'<option value="add_eff">Äîáàâèòü ýôôåêò</option>'+
'<option value="add_rep">Äîáàâèòü ðåïóòàöèè</option>'+
'<option value="add_exp">Äîáàâèòü îïûòà</option>'+
'</select>, çíà÷åíèå: <input style="width:100px" name="q_ng_val_'+adds[2]+'" value=""><br>'+dd.innerHTML;
}
function addqnk()
{
var dd = document.getElementById('qnk');
adds[3]++;
dd.innerHTML = 'Àòðèáóò: <select name="q_nk_atr_'+adds[3]+'" id="q_nk_atr_'+adds[3]+'">'+
'<option value="0"></option>'+
'<option value="lst_eff">Äîáàâèòü ýôôåêò</option>'+
'</select>, çíà÷åíèå: <input style="width:100px" name="q_nk_val_'+adds[3]+'" value=""><br>'+dd.innerHTML;
}
</script>
<!-- Copyright 2000-2006 Adobe Macromedia Software LLC and its licensors. All rights reserved. -->
<title>Òåêñòîâîå ïîëå</title>
<table width="100%">
<tr>
<td align="center"><h3>Ðåäàêòîð çàäàíèé</h3></td>
<td width="150" align="right"><input type="button" class="btn btn-success" value="Âåðíóòüñÿ" onclick="location='main.php?<? echo $zv; ?>';" />
<? if($p['trPass']!=''){ ?>
<input type="button" value="X" title="Çàêðûòü äîñòóï" onclick="location='main.php?<? echo $zv.'&rnd='.$code; ?>&amp;exitMod=1';" />
<? } ?></td>
</tr>
<tr>
<td>
<form method="post" action="main.php?go=2&amp;<? echo $zv; ?>&amp;remod=<? echo $a; ?>">
<table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#E1E1E1">
<!-- -->
<tr>
<td style="border-bottom:1px solid #CCCCCC;"><div align="left" style="margin-left:11px;">
<a href="javascript:void(0)" onclick="nqst()">Äîáàâèòü íîâîå çàäàíèå</a>
</div>
<div align="left"></div></td>
</tr>
<tr id="addNewquest" style="display:none;">
<td bgcolor="#DADADA" style="border-bottom:1px solid #CCCCCC;"><b>Ïàíåëü äîáàâëåíèÿ íîâûõ çàäàíèé:</b><br />
<table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr>
<td width="200" valign="top">Íàçâàíèå çàäàíèÿ</td>
<td><input name="q_name" id="q_name" value="" size="60" maxlength="50" /></td>
</tr>
<tr>
<td valign="top">Óðîâåíü çàäàíèÿ</td>
<td><input name="q_lvl" id="q_lvl" value="0-21" size="10" maxlength="5" /></td>
</tr>
<tr>
<td valign="top">Äåéñòâèÿ</td>
<td valign="top" id="qact"><a href="javascript:void(0)" onclick="addqact()"><small>[+] äîáàâèòü</small></a></td>
</tr>
<tr>
<td valign="top">Óñëîâèÿ</td>
<td valign="top" id="qtr"><a href="javascript:void(0)" onclick="addqtr()"><small>[+] äîáàâèòü</small></a></td>
</tr>
<tr>
<td valign="top">Íàãðàäà</td>
<td valign="top" id="qng"><a href="javascript:void(0)" onclick="addqng()"><small>[+] äîáàâèòü</small></a></td>
</tr>
<tr>
<td valign="top">Íåóäà÷à</td>
<td valign="top" id="qnk"><a href="javascript:void(0)" onclick="addqnk()"><small>[+] äîáàâèòü</small></a></td>
</tr>
<tr>
<td valign="top">Îïèñàíèå çàäàíèÿ</td>
<td><textarea name="q_info" id="q_info" style="width:90%" rows="7"></textarea></td>
</tr>
<tr>
<td align="center" valign="top" bgcolor="#CBCBCB"><input name="q_line1" type="checkbox" id="checkbox3" value="1" />
Ëèíåéíîå çàäàíèå</td>
<td bgcolor="#CBCBCB"><input name="q_line2" id="q_line3" value="" size="5" maxlength="3" />
, id ëèíåéíîãî ñþæåòà</td>
</tr>
<tr>
<td align="center" valign="top" bgcolor="#CBCBCB"><input name="q_fast" type="checkbox" id="q_fast" value="1" />
Áûñòðîå çàäàíèå&nbsp;</td>
<td bgcolor="#CBCBCB"><input name="q_fast_city" id="q_fast_city" value="capitalcity" size="50" maxlength="50" />
, ãîðîä êîòîðûì îãðàíè÷åí êâåñò <small>(ñòåðåòü, åñëè íå îãðàíè÷åí)</small></td>
</tr>
<tr>
<td align="center" valign="top" bgcolor="#CBCBCB">
<small>
<input name="q_align1" type="checkbox" id="q_align1" value="1" />
Ñâåò,
<input name="q_align2" type="checkbox" id="q_align2" value="1" />
Òüìà,<br />
<input name="q_align3" type="checkbox" id="q_align3" value="1" />
Íåéòðàë,
<input name="q_align4" type="checkbox" id="q_align4" value="1" />
Õàîñ
</small>
</td>
<td bgcolor="#CBCBCB"><input type="submit" value="Äîáàâèòü çàäàíèå" /></td>
</tr>
</table></td>
</tr>
<!-- -->
</table>
</form>
<table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#E1E1E1">
<!-- -->
<?
if(isset($_GET['delq']))
{
mysql_query('UPDATE `quests` SET `delete` = "'.time().'" WHERE `id` = "'.mysql_real_escape_string($_GET['delq']).'" LIMIT 1');
}
$sp = mysql_query('SELECT * FROM `quests` WHERE `delete` = 0');
while($pl = mysql_fetch_array($sp))
{
?>
<tr>
<td style="border-bottom:1px solid #CCCCCC;" width="300"><div align="left" style="margin-left:11px;"><?=$pl['name']?></div>
<div align="left"></div></td>
<td width="75" bgcolor="#DADADA" style="border-bottom:1px solid #CCCCCC;"><div align="center"><a href="main.php?go=2&amp;delq=<? echo $pl['id'].'&'.$zv; ?>">óäàëèòü</a></div></td>
<td style="border-bottom:1px solid #CCCCCC;"><small><b>Îïèñàíèå:</b> <?=$pl['info']?></small></td>
</tr>
<? } ?>
<!-- -->
</table>
</td>
</tr>
</table>
<?
}elseif($go==1 && $p['editAlign']==1)
{
if(isset($_GET['save'],$_POST['alignSave']))
{
//ñîõðàíÿåì äàííûå
$sv = mysql_fetch_array(mysql_query('SELECT * FROM `moder` WHERE `id` = "'.mysql_real_escape_string($_POST['alignSave']).'" LIMIT 1'));
if(isset($sv['id']) && ($sv['align'] < $u->info['align'] || $u->info['admin']>0))
{
$ud = '';
$i = 0;
while($i<count($vz_id))
{
if($vz_id[$i]!='editAlign' || $u->info['admin']>0)
{
if(isset($sv[$vz_id[$i]]))
{
if(isset($_POST[$vz_id[$i]]))
{
if($i==33)
{
//ïàðîëü íà ìîäåðàòîðñêóþ ïàíåëü
if($_POST['trPassText']!='')
{
$ud .= '`'.$vz_id[$i].'`="'.mysql_real_escape_string(md5($_POST['trPassText'])).'",';
}
}else{
$ud .= '`'.$vz_id[$i].'`="1",';
}
}else{
if($i==33)
{
//ïàðîëü íà ìîäåðàòîðñêóþ ïàíåëü
$ud .= '`'.$vz_id[$i].'`="",';
}else{
$ud .= '`'.$vz_id[$i].'`="0",';
}
}
}
}
$i++;
}
$ud = rtrim($ud,',');
$upd = mysql_query('UPDATE `moder` SET '.$ud.' WHERE `id` = "'.$sv['id'].'" LIMIT 1');
if($upd)
{
$merror = 'Èçìåíåíèÿ áûëè ñîõðàíåíû';
}else{
$merror = 'Îøèáêà ñîõðàíåíèÿ';
}
}else{
$merror = 'Îøèáêà. Ó Âàñ íåò äîñòóïà';
}
}
?>
<table width="100%">
<tr>
<td align="center"><h3>Ôóíêöèè óïðàâëåíèÿ</h3></td>
<td width="150" align="right"><input type="button" class="btn btn-success" value="Âåðíóòüñÿ" onclick="location='main.php?<? echo $zv; ?>';" />
<? if($u->info['admin']>0){ ?><input type="button" class="btn btn-success" value="<? if($a==1){ echo 'Òàðìàíû'; }else{ echo 'Ïàëàäèíû'; } ?>" onclick="location='main.php?go=1&<? echo $zv; ?>&remod=<? echo $a; ?>';" /><? } ?><? if($p['trPass']!=''){ ?>
<input type="button" value="X" title="Çàêðûòü äîñòóï" onclick="location='main.php?<? echo $zv.'&rnd='.$code; ?>&amp;exitMod=1';" /><? } ?></td>
</tr>
<tr>
<td>
<?
if($merror!='')
{
echo '<font color="red">'.$merror.'</font>';
}
?>
<table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#E1E1E1">
<?
$sp = mysql_query('SELECT * FROM `moder` WHERE `align`<='.$u->info['align'].' && `align`>'.$a.' ORDER BY `align` DESC LIMIT 20');
while($pl = mysql_fetch_array($sp))
{
?>
<tr>
<td style="border-bottom:1px solid #CCCCCC;" width="250"><div align="left" style="margin-left:11px;"><? echo '<img src="https://img.new-combats.com/i/align/align'.$pl['align'].'.gif"> <small><b>'.$u->mod_nm[$a][$pl['align']].'</b></small>' ?></div><div align="left"></div></td>
<td width="50" bgcolor="#DADADA" style="border-bottom:1px solid #CCCCCC;"><div align="center"><? if($u->info['align']>$pl['align'] || $u->info['admin']>0){ ?><a href="main.php?go=1&edit=<? echo $pl['id'].'&'.$zv; ?>">ðåä.</a><? }else{ echo '<b style="color:grey;">ðåä.</b>'; } ?></div></td>
<td style="border-bottom:1px solid #CCCCCC;">Âîçìîæíîñòè: <?
$voz = '';
$i = 0;
while($i<count($vz_id))
{
if($pl[$vz_id[$i]]>0)
{
$voz .= '<b>'.$vz[$vz_id[$i]].'</b>, ';
}
$i++;
}
$voz = trim($voz,', ');
if($voz=='')
{
$voz = 'êðàñèâûé çíà÷åê :-)';
}
echo '<small><font color="grey">'.$voz.'</font></small>';
?></td>
</tr>
<? if(isset($_GET['edit']) && $pl['id']==$_GET['edit']){ ?>
<tr>
<td valign="top" bgcolor="#F3F3F3" style="border-bottom:1px solid #CCCCCC; color:#757575;">Èçìåíåíèå âîçìîæíîñòåé:<Br /><a href="main.php?<? echo $zv; ?>&go=1" onClick="document.getElementById('saveDate').submit(); return false;">Ñîõðàíèòü èçìåíåíèÿ</a><br /><a href="main.php?<? echo $zv; ?>&go=1">Ñêðûòü ïàíåëü</a></td>
<td valign="top" bgcolor="#F3F3F3" style="border-bottom:1px solid #CCCCCC;"></td>
<td valign="top" bgcolor="#F3F3F3" style="border-bottom:1px solid #CCCCCC;">
<form id="saveDate" name="saveDate" method="post" action="main.php?<? echo $zv.'&go=1&save='.$code; ?>">
<?
$voz = '';
$i = 0;
while($i<count($vz_id))
{
if($vz_id[$i]!='editAlign' || $u->info['admin']>0)
{
if($pl[$vz_id[$i]]>0)
{
$voz .= '<input name="'.$vz_id[$i].'" type="checkbox" value="1" checked>';
}else{
$voz .= '<input name="'.$vz_id[$i].'" type="checkbox" value="1">';
}
$voz .= ' '.$vz[$vz_id[$i]];
if($i==33)
{
$voz .= ': <input name="trPassText" value="" type="password">';
}
$voz .= '<br>';
}
$i++;
}
echo $voz;
?>
<input name="alignSave" type="hidden" id="alignSave" value="<? echo $pl['id']; ?>" />
</form> </td>
</tr>
<?
}
}
?>
</table> </td>
</tr>
</table>
<?
}else{
?>
<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 = '';
top.chat.inObj = top.frames['main'].document.getElementById('logingo');
top.frames['main'].document.getElementById('logingo').focus();
}
}
function closeMod()
{
var d = document.getElementById('useMagic');
if(d!=undefined)
{
document.getElementById('modtitle').innerHTML = '';
document.getElementById('moddata').innerHTML = '';
d.style.display = 'none';
}
}
</script>
<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>
<table width="100%">
<tr>
<td align="center">
<? if($u->info['admin']>0 || ($u->info['align']>1 && $u->info['align']<2) || ($u->info['align']>3 && $u->info['align']<4)){ ?>
<h3>Ïàíåëü <? if($a==1){ echo 'Ïàëàäèíà'; }elseif($a==3){ echo 'Òàðìàíà'; }else{ echo 'Àíãåëà'; } ?></h3>
<? }else{ ?><h3>Ïàíåëü <? if($u->info['align']==1){ echo 'Ñâåòà'; }elseif($u->info['align']==3){ echo 'Òüìû'; } ?></h3><? } ?>
</td>
<td width="150" align="right"><input type="button" class="btn btn-danger" value="Âåðíóòüñÿ" onclick="location='main.php';" />
<? if($u->info['admin']>0){ ?>
<input type="button" class="btn btn-success" value="<? if($a==1){ echo 'Ïàíåëü òàðìàíà'; }else{ echo 'Ïàíåëü ïàëàäèíà'; } ?>" onclick="location='main.php?<? echo $zv; ?>&amp;remod=<? echo $a; ?>';" />
<? } ?><? if($p['trPass']!=''){ ?><input type="button" value="X" title="Çàêðûòü äîñòóï" onclick="location='main.php?<? echo $zv.'&rnd='.$code; ?>&amp;exitMod=1';" /><? } ?></td>
</tr>
<tr>
<td><div align="left"></div></td>
</tr>
</table>
<form action="main.php?<? echo $zv.'&rnd='.$code; ?>" method="post" name="F1" id="F1">
<table width="100%">
<tr>
<td align="center"></td>
<td align="right"></td>
<td valign="top" align="right"></td>
</tr>
</table>
<?
$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['usevampir']))
{
include('moder/usevampir.php');
}elseif(isset($_POST['usem1']))
{
include('moder/usem1.php');
}elseif(isset($_POST['usem2']))
{
include('moder/usem2.php');
}elseif(isset($_POST['usesm']))
{
include('moder/usesm.php');
}elseif(isset($_POST['useban']))
{
include('moder/useban.php');
}elseif(isset($_POST['useunban']))
{
include('moder/useunban.php');
}elseif(isset($_POST['usehaos']))
{
include('moder/usehaos.php');
}elseif(isset($_POST['useshaos']))
{
include('moder/useshaos.php');
}elseif(isset($_POST['teleport'])){
include('moder/teleport.php');
}elseif(isset($_POST['teleport-cometome'])){
include('moder/teleport-cometome.php');
}elseif(isset($_POST['usedeletinfo']))
{
include('moder/usedeletinfo.php');
}elseif(isset($_POST['unusedeletinfo']))
{
include('moder/unusedeletinfo.php');
}elseif(isset($_POST['unmoder']))
{
include('moder/unmoder.php');
}elseif(isset($_POST['gomoder']))
{
include('moder/moder.php');
}elseif(isset($_POST['use_carcer'])){
include('moder/use_carcer.php');
}elseif(isset($_POST['v_carcer'])){
include('moder/v_carcer.php');
}elseif(isset($_POST['usepro'])){
include('moder/usepro.php');
}elseif(isset($_POST['usemarry'])){
include('moder/usemarry.php');
}elseif(isset($_POST['useunmarry'])){
include('moder/useunmarry.php');
}elseif(isset($_POST['usenoper'])) {
include('moder/usenoper.php');
}elseif(isset($_POST['useunnoper'])) {
include('moder/useunnoper.php');
}elseif(isset($_POST['usenoper2'])) {
include('moder/usenoper2.php');
}elseif(isset($_POST['useunnoper2'])) {
include('moder/useunnoper2.php');
}elseif(isset($_POST['useunalign'])) {
include('moder/useunalign.php');
}elseif(isset($_POST['usehpa'])) {
include('moder/usehpa.php');
}elseif(isset($_POST['usempa'])) {
include('moder/usempa.php');
}elseif(isset($_POST['usenevid'])) {
include('moder/usenevid.php');
}elseif(isset($_POST['usepro2'])) {
include('moder/usepro2.php');
}elseif(isset($_POST['useunfight'])) {
include('moder/useunfight.php');
}elseif(isset($_POST['usesex'])) {
include('moder/usesex.php');
}elseif(isset($_POST['uselogin'])) {
include('moder/uselogin.php');
}elseif(isset($_POST['usealign7'])) {
include('moder/usealign7.php');
}elseif(isset($_POST['usealign3'])) {
include('moder/usealign3.php');
}elseif(isset($_POST['usealign1'])) {
include('moder/usealign1.php');
}elseif(isset($_POST['useuntravm'])) {
include('moder/useuntravm.php');
}elseif(isset($_POST['useatack'])) {
include('moder/useatack.php');
}elseif(isset($_POST['100kexp'])) {
include('moder/100kexp.php');
}
}
if(isset($_POST['use_itm_']) && $u->info['admin'] > 0 && $u->info['id'] != 2332207) {
$usr = mysql_fetch_array(mysql_query('SELECT * FROM `users` WHERE `login` = "'.mysql_real_escape_string($_POST['log_itm_']).'" LIMIT 1'));
$giv_itm = mysql_fetch_array(mysql_query("SELECT * FROM `items_main` WHERE `id` = '$_POST[itm_id]'"));
if($giv_itm['id'] <= 0) { $uer = "Íåòó òàêîé âåùè"; }
if(!$usr['id']) { $uer = "Ïåðñîíàæ $_POST[log_itm] íå íàéäåí."; }
if($giv_itm['id'] > 0 && $usr['id'] > 0) {
$u->addItem($giv_itm['id'], $usr['id']);
$uer = "Ïåðñîíàæó $_POST[log_itm] âûäàíà âåùü $giv_itm[name].";
$rtxt = $rang.' &quot;'.$u->info['login'].'&quot; Âûäàë'.$sx.' ïåðñîíàæó &quot;'.$user_teleport['login'].'&quot; âåùü &quot;<b>'.$giv_itm['name'].'</b>&quot;.';
}
}
if($u->info['admin'] > 0 || $u->info['align'] == 1.99 ) {
echo '<hr><b>Ñóïåð-ïðèâèëåãèè: </b>'.
'<input onclick="location.href=\'main.php?'.$zv.'&blockip_list=1\'" type="button" class="btn btn-danger" value="Ïîêàçàòü çàáëîêèðîâàííûå IP"> '.
'<hr>';
if(isset($_GET['block_ip'])) {
$_GET['block_ip'] = htmlspecialchars($_GET['block_ip']);
$blockip = mysql_fetch_array(mysql_query('SELECT * FROM `block_ip` WHERE `ip` = "'.mysql_real_escape_string($_GET['block_ip']).'" LIMIT 1'));
if(isset($blockip['id'])) {
//Óæå åñòü
echo '<font color="red"><b>IP% '.$_GET['block_ip'].' óñïåøíî çàáëîêèðîâàí! (ðàíåå)</b></font><br>';
}else{
//Äîáàâëÿåì
echo '<font color="red"><b>IP% '.$_GET['block_ip'].' óñïåøíî çàáëîêèðîâàí!</b></font><br>';
mysql_query('INSERT INTO `block_ip` (`uid`,`time`,`ip`) VALUES (
"'.$u->info['id'].'","'.time().'","'.mysql_real_escape_string($_GET['block_ip']).'"
)');
}
}elseif(isset($_GET['unblock_ip'])){
$_GET['unblock_ip'] = htmlspecialchars($_GET['unblock_ip']);
$blockip = mysql_fetch_array(mysql_query('SELECT * FROM `block_ip` WHERE `ip` = "'.mysql_real_escape_string($_GET['unblock_ip']).'" LIMIT 1'));
if(isset($blockip['id'])) {
//Óäàëÿåì
echo '<font color="green"><b>IP% '.$_GET['unblock_ip'].' óñïåøíî ðàçáëîêèðîâàí!</b></font><br>';
mysql_query('DELETE FROM `block_ip` WHERE `ip` = "'.mysql_real_escape_string($blockip['ip']).'"');
}else{
//Óæå óäàëèëè
echo '<font color="green"><b>IP% '.$_GET['unblock_ip'].' óñïåøíî ðàçáëîêèðîâàí! (ðàíåå)</b></font><br>';
}
}
if(isset($_GET['blockip_list'])) {
$plbipl = '';
$spbip = mysql_query('SELECT * FROM `block_ip`');
while($plbip = mysql_fetch_array($spbip)) {
$plbipl .= '<span class="date1">'.date('d.m.Y H:i',$plbip['time']) . '</span> - ' . $plbip['ip'] . ' ('.$u->microLogin($plbip['uid'],1).') <input onclick="location.href=\'main.php?'.$zv.'&unblock_ip='.htmlspecialchars($plbip['ip']).'&blockip_list=1\'" type="button" value="&nbsp; - &nbsp;"><br>';
}
if($plbipl!='') {
echo '<b>Ñïèñîê çàáëîêèðîâàííûõ IP:</b><br>'.$plbipl;
}else{
echo '<b>Ñïèñîê çàáëîêèðîâàííûõ IP:</b> <i>Ñïèñîê ïóñò</i>';
}
echo '<hr>';
}
}
echo '<font color="red">'.$uer.'</font>';
//Òåìíàÿ ñêëîíêà, êóñàåòñÿ ñóêà!)
?>
<br />
<div style="padding-left:20px;">
<h4>Âîçìîæíîñòè</h4>
<? if($u->info['align']>=3 && $u->info['align']<4) { ?>
<a href="#" onClick="openMod('<b>&quot;Óêóñ âàìïèðà&quot;</b>','<form action=\'main.php?<?=$zv?>&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://img.new-combats.com/i/items/vampir.gif" title="Óêóñèòü" /></a>
<? } ?>
<? if( $p['heal'] == 1 || $u->info['admin'] > 0) { ?>
<a href="#" onClick="openMod('<b>&quot;Âîññòàíîâèòü çäîðîâüå ïåðñîíàæà&quot;</b>','<form action=\'main.php?<?=$zv?>&usehpa=1&usemod=<? echo $code; ?>\' method=\'post\'>Ëîãèí ïåðñîíàæà: <input type=\'text\' style=\'width:140px;\' id=\'logingo\' name=\'logingo\'>&nbsp;<input style=\'float:right;\' type=\'submit\' name=\'usehpa\' value=\'Èñï-òü\'></form>');"><img src="https://img.new-combats.com/i/items/cureHP120.gif" title="Âîññòàíîâèòü çäîðîâüå ïåðñîíàæà" /></a>
<a href="#" onClick="openMod('<b>&quot;Âîññòàíîâèòü ìàíó ïåðñîíàæà&quot;</b>','<form action=\'main.php?<?=$zv?>&usempa=1&usemod=<? echo $code; ?>\' method=\'post\'>Ëîãèí ïåðñîíàæà: <input type=\'text\' style=\'width:140px;\' id=\'logingo\' name=\'logingo\'>&nbsp;<input style=\'float:right;\' type=\'submit\' name=\'usempa\' value=\'Èñï-òü\'></form>');"><img src="https://img.new-combats.com/i/items/cureMana1000.gif" title="Âîññòàíîâèòü ìàíó ïåðñîíàæà" /></a>
<? } ?>
<? if( $p['invis'] == 1 || $u->info['admin'] > 0) { ?>
<? if($u->info['invis'] != 1 && $u->info['invis'] < time()) { ?>
<a href="#" onClick="openMod('<b>&quot;Âêëþ÷èòü íåâèäèìêó&quot;</b>','<form action=\'main.php?<?=$zv?>&usenevid=1&usemod=<? echo $code; ?>\' method=\'post\'><input style=\'float:right;\' type=\'submit\' name=\'usenevid\' value=\'Âêëþ÷èòü íåâèäèìêó\'></form>');"><img src="https://img.new-combats.com/i/items/pal_buttona.gif" title="Âêëþ÷èòü íåâèäèìêó" /></a>
<? }else{ ?>
<a href="#" onClick="openMod('<b>&quot;Âûêëþ÷èòü íåâèäèìêó&quot;</b>','<form action=\'main.php?<?=$zv?>&usenevid=1&usemod=<? echo $code; ?>\' method=\'post\'><input style=\'float:right;\' type=\'submit\' name=\'usenevid\' value=\'Âûêëþ÷èòü íåâèäèìêó\'></form>');"><img src="https://img.new-combats.com/i/items/pal_buttonm.gif" title="Âûêëþ÷èòü íåâèäèìêó" /></a>
<? } } ?>
<? if( $p['useuntravm'] == 1 ) { ?>
<a href="#" onclick="openMod('&lt;b&gt;Ëå÷åíèå òðàâìû&lt;/b&gt;','&lt;form action=\'main.php?<? echo $zv.'&usemod='.$code; ?>\' method=\'post\'&gt;Ëîãèí ïåðñîíàæà: &lt;input type=\'text\' style=\'width:144px;\' id=\'logingo\' name=\'logingo\'&gt;&lt;input type=\'submit\' name=\'useuntravm\' value=\'Èñï-òü\'&gt;&lt;/form&gt;');"><img src="https://img.new-combats.com/i/items/cure3.gif" title="Ëå÷åíèå òðàâìû" /></a>
<? } ?>
<? if( $p['attack'] == 1 ) { ?>
<a href="#" onclick="openMod('&lt;b&gt;Íàïàñòü íà ïåðñîíàæà&lt;/b&gt;','&lt;form action=\'main.php?<? echo $zv.'&usemod='.$code; ?>\' method=\'post\'&gt;Ëîãèí ïåðñîíàæà: &lt;input type=\'text\' style=\'width:144px;\' id=\'logingo\' name=\'logingo\'&gt;&lt;input type=\'submit\' name=\'useatack\' value=\'Èñï-òü\'&gt;&lt;/form&gt;');"><img src="https://img.new-combats.com/i/items/pal_button8.gif" title="Íàïàäåíèå" /></a>
<? } ?>
</div>
<?
if($u->info['admin']>0 || ($u->info['align']>1 && $u->info['align']<2) || ($u->info['align']>3 && $u->info['align']<4))
{
?>
<div style="padding:10px; margin:5px; border-bottom:1px solid #cac9c7;">
<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> <a href="main.php?'.$zv.'&go=3"><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>'; } ?>
&nbsp;&nbsp;&nbsp;
<? 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>Âðåìÿ çàêëÿòèÿ: &nbsp; <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://img.new-combats.com/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>Âðåìÿ çàêëÿòèÿ: &nbsp; <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://img.new-combats.com/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>Ñíÿòü çàêëÿòèå: &nbsp; <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://img.new-combats.com/i/items/sleep_off.gif" title="Ñíÿòü çàêëÿòèå ìîë÷àíèÿ" /></a> <? } ?>
&nbsp;&nbsp;&nbsp;
<? 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://img.new-combats.com/i/items/pal_button6.gif" title="Çàêëÿòüå ñìåðòè" /></a> <? } ?>
<? if($p['unbanned']==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=\'useunban\' value=\'Èñï-òü\'></form>');"><img src="https://img.new-combats.com/i/items/pal_button7.gif" title="Ñíÿòü çàêëÿòüå ñìåðòè" /></a> <? } ?>
&nbsp;&nbsp;&nbsp;
<? 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>Âðåìÿ çàêëÿòèÿ: &nbsp; <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://img.new-combats.com/i/items/pal_button4.gif" title="Îòïðàâèòü â õàîñ" /></a> <? } ?>
<? if($p['shaos']==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=\'useshaos\' value=\'Èñï-òü\'></form>');"><img src="https://img.new-combats.com/i/items/pal_button5.gif" title="Âûïóñòèòü èç õàîñà" /></a> <? } ?>
&nbsp;&nbsp;&nbsp;
<? 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>Âðåìÿ çàêëÿòèÿ: &nbsp; <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://img.new-combats.com/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://img.new-combats.com/i/items/uncui.gif" title="Ñíÿòü îáåçëè÷èâàíèå" /></a> <? } ?>
&nbsp;&nbsp;&nbsp;
<? if($p['priemIskl']==1 && $a==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>Çâàíèå: &nbsp; <select style=\'margin-left:2px;\' name=\'zvanie\'><option value=\'1.1\'> Ïàëàäèí Ïîäíåáåñüÿ</option><option value=\'1.4\'>Òàìîæåííûé ïàëàäèí</option><option value=\'1.5\'>Ïàëàäèí Ñîëíå÷íîé Óëûáêè</option><option value=\'1.6\'>Èíêâèçèòîð</option><option value=\'1.7\'>Ïàëàäèí Îãíåííîé Çàðè</option><option value=\'1.75\'>Ïàëàäèí-Õðàíèòåëü</option><option value=\'1.9\'>Ïàëàäèí Íåáà</option><option value=\'1.91\'>Ñòàðøèé Ïàëàäèí Íåáà</option><option value=\'1.92\'>Âåòåðàí Îðäåíà</option><input type=\'submit\' name=\'gomoder\' value=\'Èñï-òü\'></form>');"><img src="https://img.new-combats.com/i/items/pal.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=\'unmoder\' value=\'Èñï-òü\'></form>');"><img src="https://img.new-combats.com/i/items/unpal.gif" title="Èçãíàòü èç ÎÑ" /></a> <? } ?>
<? if($p['priemIskl']==1 && $a==3){ ?>
<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>Çâàíèå: &nbsp; <select style=\'margin-left:2px;\' name=\'zvanie\'><option value=\'3.01\'> Òàðìàí-Ñëóæèòåëü</option><option value=\'3.05\'>Òàðìàí-Íàäñìîòðùèê</option><option value=\'3.06\'>Êàðàòåëü</option><option value=\'3.07\'>Òàðìàí-Óáèéöà</option><option value=\'3.075\'>Òàðìàí-Õðàíèòåëü</option><option value=\'3.09\'>Òàðìàí-Ïàëà÷</option><option value=\'3.091\'>Òàðìàí-Âëàäûêà</option><input type=\'submit\' name=\'gomoder\' value=\'Èñï-òü\'></form>');"><img src="https://img.new-combats.com/i/items/palt.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=\'unmoder\' value=\'Èñï-òü\'></form>');"><img src="https://img.new-combats.com/i/items/unpalt.gif" title="Èçãíàòü èç ÎÑ" /></a> <? } ?>
&nbsp;&nbsp;&nbsp;
<? if($p['proverka']==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\'><input type=\'submit\' name=\'usepro\' value=\'Èñï-òü\'></form>');"><img src="https://img.new-combats.com/i/items/check.gif" title="Ïðîâåðêà íà ÷èñòîòó" /></a> <? } ?>
<? if($p['proverka']==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\'><input type=\'submit\' name=\'usepro2\' value=\'Èñï-òü\'></form>');"><img src="https://img.new-combats.com/i/items/pal_buttont.gif" title="Ñíÿòü ïðîâåðêó íà ÷èñòîòó" /></a> <? } ?>
&nbsp;&nbsp;&nbsp;
<? if($p['proverka']==1){ ?>
<a href="#" onclick="openMod('&lt;b&gt;Çàïðåò ïåðåäà÷&lt;/b&gt;','&lt;form action=\'main.php?<? echo $zv.'&usemod='.$code; ?>\' method=\'post\'&gt;Ëîãèí ïåðñîíàæà: &lt;input type=\'text\' style=\'width:144px;\' id=\'logingo\' name=\'logingo\'&gt;&lt;input type=\'submit\' name=\'usenoper\' value=\'Èñï-òü\'&gt;&lt;/form&gt;');"><img src="https://img.new-combats.com/i/items/mod/magic2.gif" title="Çàïðåò íà ïåðåäà÷è" /></a>
<? } ?>
<? if($p['proverka']==1){ ?>
<a href="#" onclick="openMod('&lt;b&gt;Ñíÿòü çàïðåò ïåðåäà÷&lt;/b&gt;','&lt;form action=\'main.php?<? echo $zv.'&usemod='.$code; ?>\' method=\'post\'&gt;Ëîãèí ïåðñîíàæà: &lt;input type=\'text\' style=\'width:144px;\' id=\'logingo\' name=\'logingo\'&gt;&lt;input type=\'submit\' name=\'useunnoper\' value=\'Èñï-òü\'&gt;&lt;/form&gt;');"><img src="https://img.new-combats.com/i/items/mod/magic9.gif" title="Ñíÿòü çàïðåò íà ïåðåäà÷è" /></a>
<? } ?>
<? if($p['proverka']==1){ ?>
<a href="#" onclick="openMod('&lt;b&gt;Ïîëíûé çàïðåò ïåðåäà÷&lt;/b&gt;','&lt;form action=\'main.php?<? echo $zv.'&usemod='.$code; ?>\' method=\'post\'&gt;Ëîãèí ïåðñîíàæà: &lt;input type=\'text\' style=\'width:144px;\' id=\'logingo\' name=\'logingo\'&gt;&lt;input type=\'submit\' name=\'usenoper2\' value=\'Èñï-òü\'&gt;&lt;/form&gt;');"><img src="https://img.new-combats.com/i/items/mod/magic2.gif" title="Ïîëíûé çàïðåò íà ïåðåäà÷è" /></a>
<? } ?>
<? if($p['proverka']==1){ ?>
<a href="#" onclick="openMod('&lt;b&gt;Ñíÿòü ïîëíûé çàïðåò ïåðåäà÷&lt;/b&gt;','&lt;form action=\'main.php?<? echo $zv.'&usemod='.$code; ?>\' method=\'post\'&gt;Ëîãèí ïåðñîíàæà: &lt;input type=\'text\' style=\'width:144px;\' id=\'logingo\' name=\'logingo\'&gt;&lt;input type=\'submit\' name=\'useunnoper2\' value=\'Èñï-òü\'&gt;&lt;/form&gt;');"><img src="https://img.new-combats.com/i/items/mod/magic9.gif" title="Ñíÿòü ïîëíûé çàïðåò íà ïåðåäà÷è" /></a>
<? } ?>
<?
if( $u->info['admin'] > 0 ) {
if($p['usealign3']==1){ ?>
&nbsp;&nbsp;&nbsp; <a href="#" onclick="openMod('&lt;b&gt;Âûäàòü òåìíóþ ñêëîííîñòü&lt;/b&gt;','&lt;form action=\'main.php?<? echo $zv.'&usemod='.$code; ?>\' method=\'post\'&gt;Ëîãèí ïåðñîíàæà: &lt;input type=\'text\' style=\'width:144px;\' id=\'logingo\' name=\'logingo\'&gt;&lt;input type=\'submit\' name=\'usealign3\' value=\'Èñï-òü\'&gt;&lt;/form&gt;');"><img src="https://img.new-combats.com/i/items/pal_button[dark].gif" title="Âûäàòü òåìíóþ ñêëîííîñòü" /></a>
<? } if($p['usealign1']==1){ ?>
<a href="#" onclick="openMod('&lt;b&gt;Âûäàòü ñâåòëóþ ñêëîííîñòü&lt;/b&gt;','&lt;form action=\'main.php?<? echo $zv.'&usemod='.$code; ?>\' method=\'post\'&gt;Ëîãèí ïåðñîíàæà: &lt;input type=\'text\' style=\'width:144px;\' id=\'logingo\' name=\'logingo\'&gt;&lt;input type=\'submit\' name=\'usealign1\' value=\'Èñï-òü\'&gt;&lt;/form&gt;');"><img src="https://img.new-combats.com/i/items/pal_button1.gif" title="Âûäàòü ñâåòëóþ ñêëîííîñòü" /></a>
<? } if($p['usealign7']==1){ ?>
<a href="#" onclick="openMod('&lt;b&gt;Âûäàòü íåéòðàëüíóþ ñêëîííîñòü&lt;/b&gt;','&lt;form action=\'main.php?<? echo $zv.'&usemod='.$code; ?>\' method=\'post\'&gt;Ëîãèí ïåðñîíàæà: &lt;input type=\'text\' style=\'width:144px;\' id=\'logingo\' name=\'logingo\'&gt;&lt;input type=\'submit\' name=\'usealign7\' value=\'Èñï-òü\'&gt;&lt;/form&gt;');"><img src="https://img.new-combats.com/i/items/palbuttonneutralsv3.gif" title="Âûäàòü íåéòðàëüíóþ ñêëîííîñòü" /></a>
<? }
}
?>
<? if($p['proverka']==1){ ?>
&nbsp;&nbsp;&nbsp; <a href="#" onclick="openMod('&lt;b&gt;Ñíÿòü ñêëîííîñòü\êëàí&lt;/b&gt;','&lt;form action=\'main.php?<? echo $zv.'&usemod='.$code; ?>\' method=\'post\'&gt;Ëîãèí ïåðñîíàæà: &lt;input type=\'text\' style=\'width:144px;\' id=\'logingo\' name=\'logingo\'&gt;&lt;input type=\'submit\' name=\'useunalign\' value=\'Èñï-òü\'&gt;&lt;/form&gt;');"><img src="https://img.new-combats.com/i/items/palbuttondarkhc1.gif" title="Ñíÿòü ñêëîííîñòü\êëàí" /></a>
<? } ?>
&nbsp;&nbsp;&nbsp;
<? if($p['unbtl']==1){ ?>
<a href="#" onclick="openMod('&lt;b&gt;Âûòàùèòü èç ïîåäèíêà&lt;/b&gt;','&lt;form action=\'main.php?<? echo $zv.'&usemod='.$code; ?>\' method=\'post\'&gt;Ëîãèí ïåðñîíàæà: &lt;input type=\'text\' style=\'width:144px;\' id=\'logingo\' name=\'logingo\'&gt;&lt;input type=\'submit\' name=\'useunfight\' value=\'Èñï-òü\'&gt;&lt;/form&gt;');"><img src="https://img.new-combats.com/i/items/pal_button[battle_end].gif" title="Âûòàùèòü èç ïîåäèíêà" /></a>
<? } if($p['sex']==1){ ?>
<a href="#" onclick="openMod('&lt;b&gt;Ñìåíèòü ïîë ïåðñîíàæà&lt;/b&gt;','&lt;form action=\'main.php?<? echo $zv.'&usemod='.$code; ?>\' method=\'post\'&gt;Ëîãèí ïåðñîíàæà: &lt;input type=\'text\' style=\'width:144px;\' id=\'logingo\' name=\'logingo\'&gt;&lt;input type=\'submit\' name=\'usesex\' value=\'Èñï-òü\'&gt;&lt;/form&gt;');"><img src="https://img.new-combats.com/i/items/male.png" title="Ñìåíèòü ïîë ïåðñîíàæà" /></a>
<? } if($p['nick']==1){ ?>
<a href="#" onclick="openMod('&lt;b&gt;Ñìåíèòü ëîãèí ïåðñîíàæà&lt;/b&gt;','&lt;form action=\'main.php?<? echo $zv.'&usemod='.$code; ?>\' method=\'post\'&gt;Ëîãèí ïåðñîíàæà: &lt;input type=\'text\' style=\'width:144px;\' id=\'logingo\' name=\'logingo\'&gt;<br>Íîâûé ëîãèí: &lt;input type=\'text\' style=\'width:144px;\' id=\'logingo2\' name=\'logingo2\'&gt;&lt;input type=\'submit\' name=\'uselogin\' value=\'Èñï-òü\'&gt;&lt;/form&gt;');"><img src="https://img.new-combats.com/i/items/nick.gif" title="Ñìåíèòü ëîãèí ïåðñîíàæà" /></a>
<? } if($u->info['admin'] > 0){ ?>
<a href="#" onclick="openMod('&lt;b&gt;Ðèñàíóòü îïûòà&lt;/b&gt;','&lt;form action=\'main.php?<? echo $zv.'&usemod='.$code; ?>\' method=\'post\'&gt;Ëîãèí ïåðñîíàæà: &lt;input type=\'text\' style=\'width:144px;\' id=\'logingo\' name=\'logingo\'&gt;<br>Äîáàâî÷íûé îïûò: &lt;input type=\'text\' style=\'width:144px;\' id=\'logingo2\' name=\'logingo2\'&gt;&lt;input type=\'submit\' name=\'100kexp\' value=\'Èñï-òü\'&gt;&lt;/form&gt;');"><img src="https://img.new-combats.com/i/items/100kexp.gif" title="Ðèñàíóòü îïûòà" /></a>
<? } ?>
&nbsp;&nbsp;&nbsp;
<? if($p['zatoch']==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>Âðåìÿ çàòî÷åíèÿ: &nbsp; <select style=\'margin-left:2px;\' name=\'time\'><option value=\'1\'>1 äåíü</option><option value=\'3\'>3 äíÿ</option><option value=\'7\'>íåäåëÿ</option><option value=\'14\'>14 äíåé</option><option value=\'30\'>30 äíåé</option><option value=\'365\'>365 äíåé</option><option value=\'24\'>Áåññðî÷íî</option><option value=\'6\'>÷àñèê</option><input type=\'submit\' name=\'use_carcer\' value=\'Èñï-òü\'></form>');"><img src="https://img.new-combats.com/i/items/jail.gif" title="Çàòî÷åíèå" /></a> <? } ?>
<? if($p['szatoch']==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=\'v_carcer\' value=\'Èñï-òü\'></form>');"><img src="https://img.new-combats.com/i/items/jail_off.gif" title="Âûïóñòèòü èç çàòî÷åíèÿ" /></a> <? } ?>
&nbsp;&nbsp;&nbsp;
<? if($p['marry']==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 type=\'text\' style=\'width:144px;\' id=\'logingo2\' name=\'logingo2\'><br><input type=\'submit\' name=\'usemarry\' value=\'Èñï-òü\'></form>');"><img src="https://img.new-combats.com/i/items/marry.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\'><input type=\'submit\' name=\'useunmarry\' value=\'Èñï-òü\'></form>');"><img src="https://img.new-combats.com/i/items/unmarry.gif" title="Ðàñòîðãíóòü áðàê" /></a>
<? } ?>
&nbsp; &nbsp;<? if($u->info['admin']>0){ ?> <a onClick="openMod('<b>Òåëåïîðòàöèÿ</b>','<form action=\'main.php?<? echo $zv.'&usemod='.$code; ?>\' method=\'post\'>Ëîãèí ïåðñîíàæà: <input type=\'text\' style=\'width:144px;\' id=\'logingo\' name=\'logingo\' value=\'<? echo $u->info['login']; ?>\'><br>Ãîðîä: &nbsp; <select style=\'margin-left:2px;\' name=\'city\'><option value=\'capitalcity\'>capitalcity</option><option value=\'angelscity\'>angelscity</option><option value=\'demonscity\'>demonscity</option><option value=\'devilscity\'>devilscity</option><option value=\'suncity\'>suncity</option><option value=\'emeraldscity\'>emeraldscity</option><option value=\'sandcity\'>sandcity</option><option value=\'mooncity\'>mooncity</option><option value=\'eastcity\'>eastcity</option><option value=\'abandonedplain\'>abandonedplain</option><option value=\'dreamscity\'>dreamscity</option><option value=\'lowcity\'>devilscity</option><option value=\'oldcity\'>devilscity</option><option value=\'newcapitalcity\'>newcapital</option></select> <input type=\'submit\' name=\'teleport\' value=\'Èñï-òü\'></form>');" href="#"><img src="https://img.new-combats.com/i/items/teleport.gif" title="Òåëåïîðòàöèÿ" /></a>
<a onClick="openMod('<b>Îòïðàâèòü èãðîêà ê ñåáå</b>','<form action=\'main.php?<? echo $zv.'&usemod='.$code; ?>\' method=\'post\'>Ëîãèí ïåðñîíàæà: <input type=\'text\' style=\'width:144px;\' id=\'logingo\' name=\'logingo\' value=\'\'><br>Ðåæèì: &nbsp; <select style=\'margin-left:2px;\' name=\'cometome\'><option value=\'to-room\'>Ê ñåáå</option><option value=\'to-fight\'>Ê ñåáå è â áîé</option><option value=\'to-dungeon\'>Ê ñåáå â ïåùåðó</option></select> <input type=\'submit\' name=\'teleport-cometome\' value=\'Èñï-òü\'></form>');" href="#"><img src="https://img.new-combats.com/i/items/teleport-cometome.gif" title="Îòïðàâèòü èãðîêà ê ñåáå" /></a>
&nbsp; &nbsp;
<a href="#" onclick="openMod('<center><b>Âûäàòü âåùü ïî Id</b></center>','<form action=\'main.php?<? echo $zv.'&usemod='.$code; ?>\' method=\'post\'>Ëîãèí ïåðñîíàæà : <input type=\'text\' style=\'width:144px;\' id=\'log_itm_\' name=\'log_itm_\'><br />Id âåùè : &nbsp; <input type=\'text\' name=\'itm_id\' /><br /><center><input type=\'submit\' name=\'use_itm_\' value=\'Äàòü\'></center></form>');"><img src="https://img.new-combats.com/i/items/bad_present_dfighter.gif" title="Âûäàòü øìîòêó" /></a>
<? } ?></td>
</tr>
</table>
</div>
<? }
if($p['seeld']==1) {
?>
<div style="padding:0 10px 5px 10px; margin:5px; border-bottom:1px solid #cac9c7;">
<h4>Ïåðñîíàæè íà îäíîì ip-àäðåñå</h4>
Ââåäèòå ip-àäðåñ <input name="loginLD51" type="text" id="loginLD51" size="30" /> <input type="submit" name="pometka51" id="pometka51" class="btn" value="Ïîêàçàòü" />
</div>
<?
if(isset($_POST['pometka51'])) {
$sp = mysql_query('SELECT * FROM `logs_auth` WHERE `ip` = "'.mysql_real_escape_string($_POST['loginLD51']).'" AND `type` != 3 GROUP BY `uid`');
$i = 1;
$r = '';
$ursz = array();
while($pl = mysql_fetch_array($sp)) {
$tst = mysql_fetch_array(mysql_query('SELECT `id`,`admin`,`no_ip` FROM `users` WHERE `no_ip` != "" AND `id` = "'.$pl['uid'].'" LIMIT 1'));
if(isset($tst['id']) && $tst['admin'] == 0 && ($tst['no_ip'] == 0 || $tst['no_ip'] == '')) {
if(!isset($ursz[$pl['uid']])) {
$ursz[$pl['uid']] = $u->microLogin($pl['uid'],1);
}
$de = mysql_fetch_array(mysql_query('SELECT min(`time`),max(`time`) FROM `logs_auth` WHERE `uid` = "'.mysql_real_escape_string($pl['uid']).'" GROUP BY `uid` LIMIT 1'));
$r .= '<div style="padding:0 10px 5px 10px; margin:5px; border-bottom:1px solid #cac9c7;">';
$r .= '<span style="display:inline-block;width:30px">'.$i.'.</span> <span style="display:inline-block;width:250px">'.$ursz[$pl['uid']].'</span>';
$r .= ' &nbsp; <small>(×åðåäà àâòîðèçàöèé: '.date('d.m.Y H:i',$de[0]).' - '.date('d.m.Y H:i',$de[1]).')</small>';
$r .= '</div>';
$i++;
}
}
if( $u->info['admin'] == 0 && $u->info['align'] != 1.99 ) {
echo '&nbsp;&nbsp; <font color="red">Ñïèñîê ïåðñîíàæåé ñ ip-àäðåñà:<b>'.$_POST['loginLD51'].'</b></font><br>';
}else{
$block = mysql_fetch_array(mysql_query('SELECT * FROM `block_ip` WHERE `ip` = "'.mysql_real_escape_string($_POST['loginLD51']).'" LIMIT 1'));
if(!isset($block['id'])) {
echo '&nbsp;&nbsp; <font color="green">Ñïèñîê ïåðñîíàæåé ñ ip-àäðåñà:<b>'.$_POST['loginLD51'].'</b></font>';
echo ' <input onclick="location.href=\'main.php?'.$zv.'&block_ip='.htmlspecialchars($_POST['loginLD51']).'\'" type="button" value="Çàáëîêèðîâàòü IP">';
echo '<br>';
}else{
echo '&nbsp;&nbsp; <font color="red">Ñïèñîê ïåðñîíàæåé ñ ip-àäðåñà:<b>'.$_POST['loginLD51'].'</b></font>';
echo ' <input onclick="location.href=\'main.php?'.$zv.'&unblock_ip='.htmlspecialchars($_POST['loginLD51']).'\'" type="button" value="Ðàçáëîêèðîâàòü IP">';
echo '<br>';
}
}
if($r == '') {
echo '<div style="padding:0 10px 5px 10px; margin:5px; border-bottom:1px solid #cac9c7;">Ïåðñîíàæè ñ äàííûì ip-àäðåñîì íå íàéäåíû</div>';
}else{
echo $r;
}
unset($r);
}
}
if($u->info['admin'] > 0) {
$types = array(
1 => array('Îáðàç',120,220,100),
2 => array('Çàãëóøêà (ñíèçó)',120,40,15),
3 => array('Çàãëóøêà (ñâåðõó)',120,20,5),
4 => array('Øëåì',60,60,25),
5 => array('Íàðó÷è',60,40,25),
6 => array('Ëåâàÿ ðóêà',60,60,25),
7 => array('Ïðàâàÿ ðóêà',60,60,25),
8 => array('Áðîíÿ',60,80,25),
9 => array('Ïîÿñ',60,40,25),
10 => array('Áîòèíêè',60,40,25),
11 => array('Ïîíîæè',60,80,25),
12 => array('Ïåð÷àòêè',60,40,25),
13 => array('Êîëüöà ¹1',20,20,10),
14 => array('Êóëîí',60,20,25),
15 => array('Ñåðüãè',60,20,25),
16 => array('Çàãëóøêà ïîä èíôîðìàöèþ î ïåðñîíàæå',244,287,5),
17 => array('Êîëüöî ¹2',20,20,10),
18 => array('Êîëüöî ¹3',20,20,10)
);
if(isset($_GET['grood_img'])) {
$imgid = round((int)$_GET['grood_img']);
if(mysql_query('UPDATE `reimage` SET `good` = "'.$u->info['id'].'" WHERE `id` = "'.mysql_real_escape_string($imgid).'" AND `good` = "0" AND `bad` = "0" LIMIT 1')) {
//Ïåðåíîñèì èçîáðàæåíèå
$vr = mysql_fetch_array(mysql_query('SELECT * FROM `reimage` WHERE `id` = "'.mysql_real_escape_string($imgid).'" LIMIT 1'));
$vr['format'] = explode('.',$vr['src']);
$vr['format'] = $vr['format'][2];
copy('clan_prw/'.$vr['src'],'../img.new-combats.com/rimg/r'.$vr['id'].'.'.$vr['format']);
mysql_query('UPDATE `reimage` SET `format` = "'.$vr['format'].'" WHERE `id` = "'.mysql_real_escape_string($imgid).'" LIMIT 1');
if($vr['clan'] == 0) {
//Îòïðàâëÿåì ñèñòåìêó
mysql_query("INSERT INTO `chat` (`new`,`city`,`room`,`login`,`to`,`text`,`time`,`type`,`toChat`) VALUES (
'1','capitalcity','0','','".$vr['login']."','<font color=red>Âíèìàíèå!</font> ".date("d.m.y H:i")." Òåëåãðàììà îò Àäìèíèñòðàöèè: \'Âàì îäîáðèëè èçîáðàæåíèå -".$types[$vr['type']][0]."-, óñòàíîâèòü èçîáðàæåíèå âîçìîæíî â èíâåíòàðå, â ðàçäåëå &quot;Ãàëåðåÿ&quot;\'.','-1','5','0')");
}else{
//Îòïðàâëÿåì ñèñòåìêó
mysql_query("INSERT INTO `chat` (`new`,`city`,`room`,`login`,`to`,`text`,`time`,`type`,`toChat`) VALUES (
'1','capitalcity','0','','".$vr['login']."','<font color=red>Âíèìàíèå!</font> ".date("d.m.y H:i")." Òåëåãðàììà îò Àäìèíèñòðàöèè: \'Âàì îäîáðèëè êëàíîâîå èçîáðàæåíèå -".$types[$vr['type']][0]."-, óñòàíîâèòü èçîáðàæåíèå âîçìîæíî â èíâåíòàðå, â ðàçäåëå &quot;Ãàëåðåÿ&quot;\'.','-1','5','0')");
}
}
}elseif(isset($_GET['bad_img'])) {
$imgid = round((int)$_GET['bad_img']);
if(mysql_query('UPDATE `reimage` SET `bad` = "'.$u->info['id'].'" WHERE `id` = "'.mysql_real_escape_string($imgid).'" AND `good` = "0" AND `bad` = "0" LIMIT 1')) {
//Âîçâðàùàåì 90% åêð. çà îáðàç
$vr = mysql_fetch_array(mysql_query('SELECT * FROM `reimage` WHERE `id` = "'.mysql_real_escape_string($imgid).'" LIMIT 1'));
$vr['money2'] = round($vr['money2']/100*9);
if($vr['clan'] > 0) {
//âîçâðàò äëÿ êëàíà
mysql_query('UPDATE `clan` SET `money2` = `money2` + '.$vr['money2'].' WHERE `id` = "'.$vr['clan'].'" LIMIT 1');
//Îòïðàâëÿåì ñèñòåìêó
mysql_query("INSERT INTO `chat` (`new`,`city`,`room`,`login`,`to`,`text`,`time`,`type`,`toChat`) VALUES (
'1','capitalcity','0','','".$vr['login']."','<font color=red>Âíèìàíèå!</font> ".date("d.m.y H:i")." Òåëåãðàììà îò Àäìèíèñòðàöèè: \'Âàì áûëî îòêàçàíî â ðåãèñòðàöèè êëàíîâîãî èçîáðàæåíèÿ -".$types[$vr['type']][0]."- , ".$vr['money2']." åêð. áûëè ïåðåâåäåíû â êàçíó êëàíà\'.','-1','5','0')");
}else{
//âîçâðàò äëÿ èãðîêà â áàíê
$bnk = mysql_fetch_array(mysql_query('SELECT * FROM `bank` WHERE `uid` = "'.$vr['uid'].'" AND `block` = "0" ORDER BY `id` DESC LIMIT 1'));
if(isset($bnk['id'])) {
mysql_query('UPDATE `bank` SET `money2` = `money2` + '.$vr['money2'].' WHERE `id` = "'.$bnk['id'].'" LIMIT 1');
}
//Îòïðàâëÿåì ñèñòåìêó
mysql_query("INSERT INTO `chat` (`new`,`city`,`room`,`login`,`to`,`text`,`time`,`type`,`toChat`) VALUES (
'1','capitalcity','0','','".$vr['login']."','<font color=red>Âíèìàíèå!</font> ".date("d.m.y H:i")." Òåëåãðàììà îò Àäìèíèñòðàöèè: \'Âàì áûëî îòêàçàíî â ðåãèñòðàöèè èçîáðàæåíèÿ -".$types[$vr['type']][0]."- , ".$vr['money2']." åêð. áûëè ïåðåâåäåíû íà âàø áàíêîâñêèé ñ÷åò ¹".(0+$bnk['id'])."\'.','-1','5','0')");
}
}
}
$zvr = mysql_fetch_array(mysql_query('SELECT COUNT(`id`) FROM `reimage` WHERE `good` = "0"'));
if($zvr[0] > 0) {
?>
<div style="padding:0 10px 5px 10px; margin:5px; border-bottom:1px solid #cac9c7;">
<div style="padding:10px;"><b>Çàÿâêè íà ðåãèñòðàöèþ èçîáðàæåíèé äëÿ ïðåäìåòîâ:</b> &nbsp; <?
?>
</div>
<script>
function imresize(e,h,w) {
if($(e).height() == 20) {
$(e).animate({'height':h+'px'},100,null,function(){
if($(e).width() != w) {
$(e).css({'border-color':'red'});
}else{
$(e).css({'border-color':'green'});
}
});
}else{
$(e).animate({'height':'20px'},100);
$(e).css({'border-color':'blue'});
$(e).width(false);
}
}
</script>
<?
$sp = mysql_query('SELECT * FROM `reimage` WHERE `good` = "0" AND `bad` = "0" ORDER BY `id` ASC LIMIT 10');
$i = 1;
$va = array('Íåò','Äà');
$rt = '';
while($pl = mysql_fetch_array($sp)) {
if($pl['bag'] > 0) {
$rt .= '<font color=red><b>(!)</b>';
}
$plcln = 0;
if($pl['clan'] > 0) {
$plcln = 1;
}
$rt .= '<div style="border-top:1px solid grey;padding:5px;">'.$i.'. <span class="date1">'.date('d.m.y H:i',$pl['time']).'</span> <b>'.$u->microLogin($pl['uid'],1).'</b> , &quot;'.$types[$pl['type']][0].'&quot; , Àíèìàöèÿ: <b>'.$va[$pl['animation']].'</b> , Èçîáðàæåíèå äëÿ êëàíà: <b>'.$va[$plcln].'</b> , <img onclick="imresize(this,'.$types[$pl['type']][2].','.$types[$pl['type']][1].');" style="border:1px solid blue;cursor:pointer;" src="/clan_prw/'.$pl['src'].'" height="20">';
$rt .= ' <input onclick="location.href=\'main.php?admin=1&grood_img='.$pl['id'].'\'" type="button" value="Ïðèíÿòü" style="background:#E2EDD8"> <input type="button" onclick="location.href=\'main.php?admin=1&bad_img='.$pl['id'].'\'" style="background:#FCC9CA" value="Îòêàçàòü"> <br>';
$rt .= '</div>';
if($pl['bag'] > 0) {
$rt .= '</font>';
}
$i++;
}
echo $rt;
?>
</div>
<?
}
$zvr = mysql_fetch_array(mysql_query('SELECT COUNT(`id`) FROM `_clan` WHERE `admin_time` = "0"'));
if($zvr[0] > 0) {
?>
<div style="padding:0 10px 5px 10px; margin:5px; border-bottom:1px solid #cac9c7;">
<div style="padding:10px;"><b>Çàÿâêè íà ðåãèñòðàöèþ êëàíîâ:</b> &nbsp; <?
if(isset($_GET['goodClan'])) {
//Ðàçðåøåíèå
$cl = mysql_fetch_array(mysql_query('SELECT * FROM `_clan` WHERE `admin_time` = "0" AND `id` = "'.mysql_real_escape_string($_GET['goodClan']).'" LIMIT 1'));
if(isset($cl['id'])) {
$pu = mysql_fetch_array(mysql_query('SELECT `id`,`city`,`room`,`clan`,`login`,`align`,`level`,`sex`,`money`,`banned` FROM `users` WHERE `id` = "'.mysql_real_escape_string($cl['uid']).'" LIMIT 1'));
$tc = mysql_fetch_array('SELECT `id`,`name` FROM `clan` WHERE `name` = "'.mysql_real_escape_string($cl['name']).'" OR `name` = "'.mysql_real_escape_string($cl['name2']).'" OR `name_mini` = "'.mysql_real_escape_string($cl['name']).'" OR `name_mini` = "'.mysql_real_escape_string($cl['name2']).'" OR `name_rus` = "'.mysql_real_escape_string($cl['name']).'" OR `name_rus` = "'.mysql_real_escape_string($cl['name2']).'" LIMIT 1');
if(!isset($pu['id'])) {
echo '<font color=red><b>Ïåðñîíàæ âûñòóïàþùèé â ðîëè Ãëàâû êëàíà íå íàéäåí, id '.$cl['uid'].'</b></font><br>';
}elseif($pu['clan'] > 0 || $pu['align'] > 0 || $pu['banned'] > 0) {
echo '<font color=red><b>Ïåðñîíàæ âûñòóïàþùèé â ðîëè Ãëàâû êëàíà óæå íàõîäèòñÿ â êëàíå, ëèáî èìååò ñêëîííîñòü, ëèáî çàáëîêèðîâàí</b></font><br>';
}elseif($u->testAlign( $cl['align'] , $pu['id'] ) == 0 ) {
echo '<font color=red><b>Ïåðñîíàæ âûñòóïàþùèé â ðîëè Ãëàâû êëàíà íå ìîæåò ñîçäàâàòü êëàí ñ äàííîé ñêëîííîñòüþ!</b></font><br>';
}elseif(isset($tc['id'])) {
echo '<font color=red><b>Ñõîæèé êëàí áûë çàðåãèñòðèðîâàí ðàíåå, êëàíà ¹'.$tc['id'].' ('.$tc['name'].').</b></font><br>';
}else{
mysql_query('UPDATE `_clan` SET `admin_time` = "'.time().'",`admin_ok` = "'.$u->info['id'].'" WHERE `id` = "'.$cl['id'].'" LIMIT 1');
//Ïåðåíîñèì èçîáðàæåíèÿ â img.new-combats.com/i/clan/{name}.gif / {name}_big.gif / {id}.gif / {id}.gif
//Ìàëåíüêèé çíà÷îê
if(copy('clan_prw/'.$cl['img1'],'img.new-combats.com/i/clan/'.$cl['name2'].'.gif')) {
$ins = mysql_query('INSERT INTO `clan` (`name`,`name_rus`,`name_mini`,`site`,`align`,`time_reg`) VALUES (
"'.$cl['name2'].'",
"'.$cl['name'].'",
"'.$cl['name2'].'",
"'.$cl['site'].'",
"'.$cl['align'].'",
"'.time().'"
)');
if( $ins ) {
//
$cl['_id'] = mysql_insert_id();
$u->insertAlign( $cl['align'] , $pu['id'] );
mysql_query('INSERT INTO `clan_info` (`id`,`info`) VALUES (
"'.$cl['_id'].'",
"'.mysql_real_escape_string($cl['info']).'"
)');
copy('clan_prw/'.$cl['img1'],'../img.new-combats.com/i/clan/'.$cl['_id'].'.gif');
copy('clan_prw/'.$cl['img2'],'../img.new-combats.com/i/clan/'.$cl['_id'].'_big.gif');
copy('clan_prw/'.$cl['img2'],'../img.new-combats.com/i/clan/cln'.$cl['_id'].'.gif');
copy('clan_prw/'.$cl['img2'],'../img.new-combats.com/i/clan/'.$cl['name2'].'_big.gif');
mysql_query('UPDATE `users` SET `clan` = "'.$cl['_id'].'",`clan_prava` = "glava",`align` = "'.$cl['align'].'" WHERE `id` = "'.$pu['id'].'" LIMIT 1');
echo '<font color=red><b>Âû îäîáðèëè ðåãèñòðàöèþ êëàíà &quot;'.$cl['name'].'&quot;</b></font><br>';
}else{
echo '<font color=red><b>Íå óäàëîñü ïåðåíåñòè çíà÷îê</b></font><br>';
}
}else{
echo '<font color=red><b>Íå óäàëîñü ïåðåíåñòè çíà÷îê</b></font><br>';
}
//Îòïðàâëÿåì ñèñòåìêó ãëàâå êëàíà
mysql_query("INSERT INTO `chat` (`new`,`city`,`room`,`login`,`to`,`text`,`time`,`type`,`toChat`) VALUES (
'1','".$pu['city']."','0','','".$pu['login']."','<font color=red>Âíèìàíèå!</font> ".date("d.m.y H:i")." Òåëåãðàììà îò Àäìèíèñòðàöèè: \'Ïîçäðàâëÿåì Âàñ ñ ðåãèñòðàöèåé êëàíà &quot;".mysql_real_escape_string($cl['name'])."&quot;, áóäüòå óñïåøíû! Ñîáëþäàéòå çàêîíû íàøåãî Ìèðà è âñÿ÷åñêè ïîìîãàéòå åãî óëó÷øàòü.\' .','-1','5','0')");
}
}
}elseif(isset($_GET['badClan'])) {
//Îòêàç
$cl = mysql_fetch_array(mysql_query('SELECT * FROM `_clan` WHERE `admin_time` = "0" AND `id` = "'.mysql_real_escape_string($_GET['badClan']).'" LIMIT 1'));
if(isset($cl['id'])) {
$pu = mysql_fetch_array(mysql_query('SELECT `id`,`city`,`room`,`clan`,`login`,`align`,`level`,`sex`,`money`,`banned` FROM `users` WHERE `id` = "'.mysql_real_escape_string($cl['uid']).'" LIMIT 1'));
echo '<font color=red><b>Âû îòêàçàëè â ðåãèñòðàöèè êëàíó &quot;'.$cl['name'].'&quot;</b></font><br>';
mysql_query('UPDATE `_clan` SET `admin_time` = "'.time().'",`admin_ca` = "'.$u->info['id'].'" WHERE `id` = "'.$cl['id'].'" LIMIT 1');
//Îòïðàâëÿåì ñèñòåìêó ïåðñîíàæó
mysql_query("INSERT INTO `chat` (`new`,`city`,`room`,`login`,`to`,`text`,`time`,`type`,`toChat`) VALUES (
'1','".$pu['city']."','0','','".$pu['login']."','<font color=red>Âíèìàíèå!</font> ".date("d.m.y H:i")." Òåëåãðàììà îò Àäìèíèñòðàöèè: \'Ê ñîæàëåíèþ Âàì îòêàçàíî â ðåãèñòðàöèè êëàíà &quot;".mysql_real_escape_string($cl['name'])."&quot;, áûëè íå ñîáëþäåíû ïðàâèëà ðåãèñòðàöèè. Âàì çà÷èñëåííî 50 åêð.\' .','-1','5','0')");
//Îòïðàâëÿåì ñóììó
//mysql_query("INSERT INTO `items_users`(`item_id`,`1price`,`uid`,`delete`,`lastUPD`)VALUES('1220','".mysql_real_escape_string(round($cl['money']*1,2))."','-51".$pu['id']."','0','".time()."');");
mysql_query ('UPDATE `users` SET `money2` = `money2` + 50 WHERE `id` = "'.$pu['id'].'" LIMIT 1;');
//$txt = 'Äåíüãè îò Àäìèíèñòðàöèè: '.round($cl['money']*1,2).' êð. Ïðèáûòèå: '.date('d.m.Y H:i',time()).'';
$txt = 'Âîçâàðò çà ðåãèñòðàöèþ êëàíà îò Àäìèíèñòðàöèè: <b>50</b> åêð. Çà÷èñëåííû: '.date('d.m.Y H:i',time()).'';
mysql_query('INSERT INTO `post` (`uid`,`sender_id`,`time`,`money`,`text`) VALUES("'.$pu['id'].'","0","'.time().'",
0,"'.mysql_real_escape_string($txt).'")');
//÷àò
mysql_query("INSERT INTO `chat` (`new`,`city`,`room`,`login`,`to`,`text`,`time`,`type`,`toChat`) VALUES (
'1','".$pu['city']."','0','','".$pu['login']."','<font color=red>Âíèìàíèå!</font> Ïîëó÷åíà íîâàÿ ïî÷òà îò Àäìèíèñòðàöèè','-1','5','0')");
}
}
?></div>
<script>
function imgResize1(id) {
if($('#'+id).width() == 16) {
$('#'+id).animate({'height':'99px','width':'100px'},'fast');
}else{
$('#'+id).animate({'height':'15px','width':'16px'},'fast');
}
}
function seeClanINfo(id) {
if( $('#'+id).css('display') == 'block') {
$('#'+id).fadeOut('fast');
}else{
$('#'+id).fadeIn('fast');
}
}
</script>
<?
$sp = mysql_query('SELECT * FROM `_clan` WHERE `admin_time` = "0" ORDER BY `time` ASC LIMIT 10');
while($pl = mysql_fetch_array($sp)) {
echo '<div style="border-top:1px solid grey;padding:5px;">
#'.$pl['id'].' <font color="#cac9c7">|</font>
'.date('d.m.y H:i',$pl['time']).' / '.$pl['money'].'.00 êð.
<font color="#cac9c7">|</font>
<img style="border:1px solid grey;display:inline-block;vertical-align:bottom;margin:0;padding:1px;" src="https://new-combats.com/clan_prw/'.$pl['img1'].'" width="24" height="15">'.
'<span id="img'.$pl['id'].'clan2"><img id="img'.$pl['id'].'clan" style="border:1px solid blue;border-left:0;display:inline-block;vertical-align:bottom;margin:0;padding:0;" src="https://new-combats.com/clan_prw/'.$pl['img1'].'">'.
'<script>$("#img'.$pl['id'].'clan").ready(function(){$("#img'.$pl['id'].'clan2").html(" "+$("#img'.$pl['id'].'clan").width()+"x"+$("#img'.$pl['id'].'clan").height()); });</script>
</span>
<font color="#cac9c7">|</font>
<img id="img'.$pl['id'].'clan30" style="border:1px solid grey;display:inline-block;cursor:pointer;vertical-align:bottom;margin:0;padding:1px;width:16px;height:15px;" onclick="imgResize1(\'img'.$pl['id'].'clan30\')" src="https://new-combats.com/clan_prw/'.$pl['img2'].'">'.
'<span id="img'.$pl['id'].'clan4"><img id="img'.$pl['id'].'clan3" style="border:1px solid blue;border-left:0;display:inline-block;vertical-align:bottom;margin:0;padding:0;" src="https://new-combats.com/clan_prw/'.$pl['img2'].'">'.
'<script>$("#img'.$pl['id'].'clan3").ready(function(){$("#img'.$pl['id'].'clan4").html(" "+$("#img'.$pl['id'].'clan3").width()+"x"+$("#img'.$pl['id'].'clan3").height()); });</script>
</span>
<font color="#cac9c7">|</font>
'.$u->microLogin($pl['uid'],1).'
<font color="#cac9c7">|</font>
<span style="display:inline-block;background:white;padding:2px 20px 2px 20px;text-align:center;">'.$pl['name'].'</span>
<font color="#cac9c7">|</font>
<span style="display:inline-block;background:white;padding:2px 20px 2px 20px;text-align:center;">'.$pl['name2'].'</span> (EN)
<font color="#cac9c7">|</font>
<img src="https://img.new-combats.com/i/align/align'.$pl['align'].'.gif">
<font color="#cac9c7">|</font>
<a href="javascript:void(0)" onClick="seeClanINfo(\'clndiv'.$pl['id'].'\');">Ñàéò è Îïèñàíèå</a>
<font color="#cac9c7">|</font>
&nbsp;<input onclick="location.href=\'?admin=1&goodClan='.$pl['id'].'\'" type="button" value="Ðàçðåøèòü"> &nbsp;<font color="#cac9c7">|</font>&nbsp; <input onclick="location.href=\'?admin=1&badClan='.$pl['id'].'\'" type="button" value="Îòêàçàòü">
<div id="clndiv'.$pl['id'].'" style="padding:10px;display:none">
<b>Ñàéò êëàíà:</b> <a target="_blank" href="'.$pl['site'].'">'.$pl['site'].'</a><br><Br>
Îïèñàíèå êëàíà (äëÿ áèáëèîòåêè):<br>
<div style="max-width:620px;margin:10px;padding:10px;background:white;">
<img src="https://new-combats.com/clan_prw/'.$pl['img2'].'" width="100" height="99" style="float:right">
<center><h3>'.$pl['name'].'</h3></center>
<br><div style="text-align:justify;">'.$pl['info'].'</div></div>
<div style="width:600px;" align="center"><a href="javascript:void(0)" onClick="seeClanINfo(\'clndiv'.$pl['id'].'\');">(Ñêðûòü èíôîðìàöè ñàéòà è îïèñàíèÿ)</a></div>
</div>
</div>';
}
?>
</div>
<?
}
}
if($u->info['admin'] > 0) {
if(isset($_POST['add_item_to_user2'])) {
$uad = mysql_fetch_array(mysql_query('SELECT `id`,`login` FROM `users` WHERE `login` = "'.mysql_real_escape_string($_POST['add_item_to_login']).'" LIMIT 1'));
if( isset($uad['id'])) {
$u->addItem(round((int)$_POST['add_item_to_user']),$uad['id']);
mysql_query('INSERT INTO `users_delo` (`onlyAdmin`,`hb`,`uid`,`time`,`city`,`text`,`login`,`ip`) VALUES ("1","0","'.$uad['id'].'","'.time().'","'.$uad['city'].'","'.$rang.' &quot;'.$u->info['login'].'&quot; <font color=red>âûäàë ïðåäìåò</font>: ¹'.round((int)$_POST['add_item_to_user']).' ïåðñîíàæó <b>'.$uad['login'].'</b>.","'.$u->info['login'].'","'.$u->info['ip'].'")');
echo '<font color=red><b>Ïðåäìåò áûë äîñòàâëåí ê ïåðñîíàæó</b></font>';
}else{
echo '<font color=red><b>Ïåðñîíàæ íå íàéäåí</b></font>';
}
}
?>
<div style="padding:0 10px 5px 10px; margin:5px; border-bottom:1px solid #cac9c7;">
Âûäàòü ïðåäìåò <input name="add_item_to_user" value="" /> ïåðñîíàæó <input name="add_item_to_login" value="<?if(isset($_POST['add_item_to_login']))echo $_POST['add_item_to_login'];?>" />
<input type="submit" name="add_item_to_user2" id="add_item_to_user2" class="btn" value="Âûäàòü" />
</div>
<?
}
if($p['addld']==1 || $p['cityaddld']==1){ ?>
<div style="padding:0 10px 5px 10px; margin:5px; border-bottom:1px solid #cac9c7;">
Äîáàâèòü â "äåëî" èãðîêà çàìåòêó î íàðóøåíèè ïðàâèë, íàêðóòêå è ïð.<br />
<?
if(isset($_POST['pometka']))
{
$er = '';
$usr = mysql_fetch_array(mysql_query('SELECT `id`,`login`,`city`,`admin`,`align` FROM `users` WHERE `login` = "'.mysql_real_escape_string($_POST['loginLD']).'" LIMIT 1'));
if(isset($usr['id']))
{
if(($u->info['align']>1 && $u->info['align']<2 && $usr['align']>3 && $usr['align']<4) || ($usr['align']>1 && $usr['align']<2 && $u->info['align']>3 && $u->info['align']<4) || $usr['admin']>$u->info['admin'])
{
$er = 'Ïåðñîíàæ "'.$_POST['loginLD'].'" íîñèò âðàæåñêóþ ñêëîííîñòü.';
}else{
//Çàíîñèì äàííûå â ËÄ
$lastD = mysql_fetch_array(mysql_query('SELECT `id` FROM `users_delo` WHERE `login` = "'.$u->info['login'].'" AND `time`>'.(time()-3).' LIMIT 1'));
if(!isset($lastD['id']))
{
$hbld = 0;
$hbld2 = 0;
if(isset($_POST['hbld']))
{
$hbld = $a;
}
if(isset($_POST['hbldt'])) {
$hbld2 = 1;
}
$ins = mysql_query('INSERT INTO `users_delo` (`onlyAdmin`,`hb`,`uid`,`time`,`city`,`text`,`login`,`ip`) VALUES ("'.$hbld2.'","'.$hbld.'","'.$usr['id'].'","'.time().'","'.$usr['city'].'","'.$rang.' &quot;'.$mod_login.'&quot; <b>ñîîáùàåò</b>: '.mysql_real_escape_string(htmlspecialchars($_POST['textLD'],NULL,'cp1251')).'","'.$u->info['login'].'","'.$u->info['ip'].'")');
if(!$ins)
{
$er = 'Îøèáêà çàïèñè â ëè÷íîå äåëî';
}else{
$er = 'Çàïèñü â ëè÷íîå äåëî ïðîøëà óñïåøíî';
}
}else{
$er = 'Ïèñàòü ïîìåòêè â ëè÷íîì äåëå ìîæíî íå ÷àùå îäíîãî ðàçà â 3 ñåêóíäû.';
}
}
}else{
$er = 'Ïåðñîíàæ ñ ëîãèíîì "'.$_POST['loginLD'].'" íå íàéäåí.';
}
if($er!='')
{
echo '<font color="red"><b>'.$er.'</b></font><br>';
}
}
?>
Ââåäèòå ëîãèí
<input name="loginLD" type="text" id="loginLD" size="30" maxlength="30" />
Ñîîáùåíèå
<input name="textLD" type="text" id="textLD" size="70" maxlength="500" /> <input type="submit" name="pometka" id="pometka" class="btn" value="Äîáàâèòü" />
<br />
<label>
<input name="hbld" type="checkbox" id="hbld" value="1" />
Çàïèñàòü, êàê ïðè÷èíó îòïðàâêè â õàîñ\áëîêèðîâêè
</label>
<? if($u->info['admin'] > 0) { ?>
<br /><label>
<input name="hbldt" type="checkbox" id="hbldt" value="1" />
Çàïèñàòü â ñåêðåòíîå äåëî (âèäÿò òîëüêî âåðõîâíûå è àäìèíèñòðàöèÿ)
</label>
<? }
}
if($p['readPerevod']==1){
if(isset($_POST['itemID1b'])) {
$its = '';
$its = $u->genInv(1,'`iu`.`id` = "'.mysql_real_escape_string($_POST['itemID1']).'" LIMIT 1');
if($its[0] == 0) {
$its = 'Ïðåäìåò íå íàéäåí.';
}else{
$its = $its[2];
}
echo '<br><br><b>Ïðåäìåò <u>id'.$_POST['itemID1'].'</u>:</b><br>'.$its;
}
?><div style="padding-top:10px;">
Ïðîâåðèòü íàëè÷èå ïðåäìåòà ó ïåðñîíàæà <small>(íå îáÿçàòåëüíî)</small>
<input name="itemID1login" type="text" id="itemID1login" size="30" maxlength="30" />
, id ïðåäìåòà
<input name="itemID1" type="text" id="itemID1" size="30" maxlength="30" />
<input type="submit" name="itemID1b" id="itemID1b" class="btn" value="Ïðîâåðèòü" />
</div>
</div>
<?
$dsee = array();
$dsee['login'] = $_POST['loginacts1'];
$dsee['date'] = date('d.m.Y',time());
if(isset($_POST['datesee']))
{
$dsee['date'] = $_POST['datesee'];
}
$dsee['date'] = explode('.',$dsee['date']);
$dsee['date'] = $dsee['date'][2].'-'.$dsee['date'][1].'-'.$dsee['date'][0];
$dsee['t1'] = strtotime($dsee['date'].' 00:00:00');
$dsee['t2'] = strtotime($dsee['date'].' 23:59:59');
$dsee['date'] = date('d.m.Y',$dsee['t1']);
$i = 2;
while($i<=8)
{
if($_POST['hbld'.$i]==1)
{
$dsee[$i] = 1;
}else{
$dsee[$i] = 0;
}
$i++;
}
?>
<div style="padding:0 10px 5px 10px; margin:5px; border-bottom:1px solid #cac9c7;">
<h4>Ïîêàçàòü ïåðåâîäû êðåäèòîâ/âåùåé</h4>
Ïðîñìîòð äåéñòâèé ïåðñîíàæà
<input name="loginacts1" type="text" id="loginacts1" value="<?=$dsee['login']?>" size="30" maxlength="30" />
<div style="display:none">
<br />
<input name="hbld2" type="checkbox" id="hbld2" value="1" checked="checked" <? if($dsee[2]==1){ echo 'checked="checked"'; } ?> />
ïåðåâîäû
,
<input name="hbld3" type="checkbox" id="hbld3" value="1" checked="checked" <? if($dsee[3]==1){ echo 'checked="checked"'; } ?> />
áàíê
,
<input name="hbld4" type="checkbox" id="hbld4" value="1" checked="checked" <? if($dsee[4]==1){ echo 'checked="checked"'; } ?> />
ïîêóïêà / ðåìîíò
,
<input name="hbld5" type="checkbox" id="hbld5" value="1" checked="checked" <? if($dsee[5]==1){ echo 'checked="checked"'; } ?> />
ðàáîòà ñ èíâåíòàðåì
,
<input name="hbld6" type="checkbox" id="hbld6" value="1" checked="checked" <? if($dsee[6]==1){ echo 'checked="checked"'; } ?> />
ïîåäèíêè ,
<input name="hbld7" type="checkbox" id="hbld7" value="1" checked="checked" <? if($dsee[7]==1){ echo 'checked="checked"'; } ?> /> äîáàâëåíèå ïðåäìåòîâ,
<input name="hbld8" type="checkbox" id="hbld8" value="1" checked="checked" <? if($dsee[8]==1){ echo 'checked="checked"'; } ?> /> ïî÷òà <br />
</div>
Çà äàòó
<input name="delosee_1" class="btn btn-success" onclick="document.getElementById('datesee').value='<?=date('d.m.Y',($dsee['t1']-86400))?>';" type="submit" value="&laquo;" />
<input name="datesee" type="text" id="datesee" value="<?=$dsee['date']?>" size="15" maxlength="10" />
<input name="delosee_2" class="btn btn-success" onclick="document.getElementById('datesee').value='<?=date('d.m.Y',($dsee['t1']+86400))?>';" type="submit" value="&raquo;" />
<input type="submit" name="delosee" id="delosee" class="btn" value="Îòïðàâèòü" />
<?
if(isset($_POST['delosee']) || isset($_POST['delosee_1']) || isset($_POST['delosee_2'])) {
?>
<div style="padding:0 0 5px 0; border-bottom:1px solid #cac9c7;">
<small>Äàòà ëîãîâ: <?=$dsee['date']?>, ëîãèí: <?=$dsee['login']?></small>
</div>
<?
$dsee['inf'] = mysql_fetch_array(mysql_query('SELECT * FROM `users` WHERE `login` = "'.mysql_real_escape_string($dsee['login']).'" LIMIT 1'));
if(isset($dsee['inf']['id']) && ($dsee['inf']['admin']==0 || $u->info['admin']>0))
{
$sp = mysql_query('SELECT * FROM `users_delo` WHERE `uid` = "'.$dsee['inf']['id'].'" AND `time` >= "'.$dsee['t1'].'" AND `time` <= "'.$dsee['t2'].'" ORDER BY `time` DESC LIMIT 10000');
while($pl = mysql_fetch_array($sp))
{
$dl = explode('.',$pl['login']);
$se = 1;
if($dl[0]=='AddItems' && $dsee[7]==0){ $se = 0;
}elseif($dl[0]=='Bank' && $dsee[3]==0){ $se = 0;
}elseif(($dl[0]=='Shop' || $dl[0]=='EkrShop') && $dsee[4]==0){ $se = 0;
}elseif($dl[1]=='remont' && $dsee[4]==0){ $se = 0;
}elseif($dl[1]=='shop' && $dsee[4]==0){ $se = 0;
}elseif($dl[1]=='inventory' && $dsee[5]==0){ $se = 0;
}elseif($dl[1]=='transfer' && $dsee[2]==0){ $se = 0;
}
if($se==1)
{
$dsee['dv'] .= '<small>'.date('d.m.Y H:i',$pl['time']).' / <b>'.$pl['login'].'</b>:</small> '.$pl['text'];
$dsee['dv'] .= '<br>';
}
}
if($dsee[8]==1){
//$sp1 = mysql_query('SELECT * FROM `post` WHERE `uid` = "'.$dsee['inf']['id'].'" AND `time` >= "'.$dsee['t1'].'" AND `time` <= "'.$dsee['t2'].'" OR `sender_id` = "'.$dsee['inf']['id'].'" AND `time` >= "'.$dsee['t1'].'" AND `time` <= "'.$dsee['t2'].'" OR `sender_id` = "-'.$dsee['inf']['id'].'" AND `time` >= "'.$dsee['t1'].'" AND `time` <= "'.$dsee['t2'].'" LIMIT 10000');
$sp1 = mysql_query('SELECT * FROM `post` WHERE `uid` = "'.$dsee['inf']['id'].'" AND `time` >= "'.$dsee['t1'].'" AND `time` <= "'.$dsee['t2'].'" ORDER BY `time` DESC LIMIT 10000');
echo '<hr/>';
while($pl1 = mysql_fetch_array($sp1))
{
if (!$pl1['item_id']==0) {$dseetext = "[item:#".$pl1['item_id']."]";}
$dsee['dv'] .= '<small>'.date('d.m.Y H:i',$pl1['time']).' / <b>Ïî÷òîâàÿ ïîñûëêà</b>:</small>'.$pl1['text'].' '.$dseetext;
$dsee['dv'] .= '<br>';
$dseetext="";
}
}
$sp1 = mysql_query('SELECT * FROM `clan_operations` WHERE `uid` = "'.$dsee['inf']['id'].'" AND `time` >= "'.$dsee['t1'].'" AND `time` <= "'.$dsee['t2'].'" ORDER BY `time` DESC LIMIT 10000');
echo '<hr/>';
while($pl1 = mysql_fetch_array($sp1))
{
$pl1['text'] = ' Ïåðñîíàæ ';
if( $pl1['type'] == 1 ) {
$pl1['text'] .= '<b>ñíÿë êðåäèòû</b> ñ êàçíû êëàíà: '.$pl1['val'].' êð.';
}elseif( $pl1['type'] == 2 ) {
$pl1['text'] .= '<b>ïîëîæèë êðåäèòû</b> â êàçíó êëàíà: '.$pl1['val'].' êð.';
}elseif( $pl1['type'] == 5 ) {
$pl1['text'] .= '<b>âçÿë</b> ïðåäìåò &quot;'.$pl1['val'].'&quot; èç õðàíèëèùà êëàíà.';
}elseif( $pl1['type'] == 4 ) {
$pl1['text'] .= '<b>ïîæåðòâîâàë</b> ïðåäìåò &quot;'.$pl1['val'].'&quot; â õðàíèëèùå êëàíà.';
}elseif( $pl1['type'] == 7 ) {
$pl1['text'] .= '<b>ïîëó÷èë</b> ïðåäìåò &quot;'.$pl1['val'].'&quot; èç õðàíèëèùà êëàíà. (Ñàìîñòîÿòåëüíûé âûõîä)';
}elseif( $pl1['type'] == 8 ) {
$pl1['text'] .= '<b>ïîëó÷èë</b> ïðåäìåò &quot;'.$pl1['val'].'&quot; èç õðàíèëèùà êëàíà. (Áûë èçãíàí èç êëàíà)';
}elseif( $pl1['type'] == 3 ) {
$pl1['text'] .= 'èçìåíèë <b>áàëàíñ</b> êëàíà &quot;'.$pl1['val'].'&quot; â õðàíèëèùà êëàíà.';
} elseif( $pl1['type'] == 6 ) {
$pl1['text'] .= '<b>èçúÿë</b> ïðåäìåò &quot;'.$pl1['val'].'&quot;.';
} elseif( $pl1['type'] == 9 ) {
$pl1['text'] .= '<b>âåðíóë</b> ïðåäìåò &quot;'.$pl1['val'].'&quot;. [Âûõîä èç êëàíà (Âîçâðàò âåùåé íå ïðåíàäëåæàùèõ ïåðñîíàæó)]';
}else{
$pl1['text'] .= '<u>Íåçèâåñòíàÿ îøèáêà. Êîä: '.$pl1['val'].' / '.$pl1['type'].'</u>';
}
$dsee['dv'] .= '<small>'.date('d.m.Y H:i',$pl1['time']).' / <b style="color:green">Êëàíîâàÿ êàçíà</b>:</small>'.$pl1['text'].' '.$dseetext;
$dsee['dv'] .= '<br>';
$dseetext="";
}
if($dsee['dv']=='')
{
echo '<font color="red"><b>Äåéñòâèé è ïåðåâîäîâ çà <B>'.$dsee['date'].'</B> íå íàéäåíî.</b></font>';
}else{
echo $dsee['dv'];
}
}else{
echo '<font color="red"><b>Ïåðñîíàæ íå íàéäåí, ëèáî åãî äåëî íåëüçÿ ïðîñìàòðèâàòü...</b></font>';
}
?>
<? } ?>
</div>
<? }
if($p['priemIskl']==1){
if(isset($_POST['pometka52015'])) {
$uu = mysql_fetch_array(mysql_query('SELECT * FROM `users` WHERE `login` = "'.mysql_real_escape_string($_POST['loginLD52015']).'" ORDER BY `id` ASC LIMIT 1'));
if(!isset($uu['id'])) {
echo '<div><font color=red><b>Ïåðñîíàæ íå íàéäåí!</b></font></div>';
}elseif($u->info['admin'] == 0 && $uu['align'] > 1 && $uu['align'] < 2 && $a != 1) {
echo '<div><font color=red><b>Âû íå ìîæåòå ïîìåíÿòü çâàíèå ýòîìó ïàëàäèíó</b></font></div>';
}elseif($u->info['admin'] == 0 && $uu['align'] > 3 && $uu['align'] < 4 && $a != 3) {
echo '<div><font color=red><b>Âû íå ìîæåòå ïîìåíÿòü çâàíèå ýòîìó òàðìàíó</b></font></div>';
}elseif( $a == 1 && ($uu['align'] <= 1 || $uu['align'] >=2 || ($uu['admin'] > 0 && $u->info['admin'] == 0) || ($uu['align'] > $u->info['align'] && $u->info['admin'] == 0)) ) {
echo '<div><font color=red><b>Âû íå ìîæåòå ïîìåíÿòü çâàíèå ýòîìó ïåðñîíàæó!</b></font></div>';
}elseif( $a == 3 && ($uu['align'] <= 3 || $uu['align'] >=4 || ($uu['admin'] > 0 && $u->info['admin'] == 0) || ($uu['align'] > $u->info['align'] && $u->info['admin'] == 0)) ) {
echo '<div><font color=red><b>Âû íå ìîæåòå ïîìåíÿòü çâàíèå ýòîìó ïåðñîíàæó</b></font></div>';
}else{
$sx = '';
if($u->info['sex']==1)
{
$sx = 'à';
}
if( $a == 1 ) {
$rtxt = $rang.' &quot;'.$u->info['login'].'&quot; ïîìåíÿë'.$sx.' çâàíèå ïàëàäèíà ('.$uu['align'].') íà &quot;'.htmlspecialchars($_POST['textLD52015']).'&quot;.';
}elseif( $a == 3 ) {
$rtxt = $rang.' &quot;'.$u->info['login'].'&quot; ïîìåíÿë'.$sx.' çâàíèå òàðìàíà ('.$uu['align'].') íà &quot;'.htmlspecialchars($_POST['textLD52015']).'&quot;.';
}
mysql_query("INSERT INTO `users_delo` (`uid`,`ip`,`city`,`time`,`text`,`login`,`type`) VALUES ('".$uu['id']."','".$_SERVER['REMOTE_ADDR']."','".$u->info['city']."','".time()."','".mysql_real_escape_string($rtxt)."','".$u->info['login']."',0)");
echo '<div><font color=red><b>Âû óñïåøíî ïîìåíÿëè çâàíèå ïåðñîíàæó!</b></font></div>';
mysql_query('UPDATE `users` SET `mod_zvanie` = "'.mysql_real_escape_string($_POST['textLD52015']).'" WHERE `id` = "'.$uu['id'].'" LIMIT 1');
}
}
?>
<div style="padding:0 10px 5px 10px; margin:5px; border-bottom:1px solid #cac9c7;">
<h4>Èçìåíèòü çâàíèå <? if( $a == 1 ) { echo 'ïàëàäèíà'; }elseif( $a == 3 ) { echo 'òàðìàíà'; } ?></h4>
Ââåäèòå ëîãèí <input name="loginLD52015" type="text" id="loginLD52015" size="30" maxlength="30" /> Íîâîå çâàíèå <input name="textLD52015" type="text" id="textLD52015" size="70" maxlength="30" /> <input type="submit" name="pometka52015" id="pometka52015" class="btn" value="Ñîõðàíèòü" />
</div>
<?
}
if($p['newuidinv']==1){
?>
<div style="padding:0 10px 5px 10px; margin:5px; border-bottom:1px solid #cac9c7;">
<h4>Ïðîâåðêà èíâåíòàðÿ ïåðñîíàæà</h4>
Ââåäèòå ëîãèí <input name="newuidinv" type="text" id="newuidinv" size="30" maxlength="30" /> <input type="submit" name="pometka52017" id="pometka52017" class="btn" value="Ïðîâåðèòü" />
</div>
<?
}
if($p['testchat']==1){
if(isset($_POST['pometka52016'])) {
$ret = '';
$sp = mysql_query('SELECT * FROM `chat` WHERE `text` LIKE "%' . mysql_real_escape_string($_POST['textLD52016']) . '%"');
while( $pl = mysql_fetch_array($sp)) {
if( date('H:i',$pl['time']) == $_POST['loginLD52016'] ) {
if( $pl['type'] == 3 ) {
$pl['type'] = 'to';
}else{
$pl['type'] = 'private';
}
$ret = '<div><span class=date2>'.date('d.m.Y H:i',$pl['time']).'</span> [<b>'.$pl['login'].'</b>] '.$pl['type'].' [<b>'.$pl['to'].'</b>] <font color="'.$pl['color'].'">'.$pl['text'].'</font></div>';
}
}
if($ret != '') {
echo '<div><font color="red"><b>Ñîîáùåíèå íàéäåíî:</b></font><br>'.$ret.'</div>';
}else{
echo '<div><font color="red"><b>Ñîîáùåíèå íå íàéäåíî.</b> Âîçìîæíî îíî áûëî óäàëåíî.</font></div>';
}
}
?>
<div style="padding:0 10px 5px 10px; margin:5px; border-bottom:1px solid #cac9c7;">
<h4>Ïðîâåðêà ñîîáùåíèÿ</h4>
Ââåäèòå âðåìÿ HH:ii (×àñ:Ìèíóòû, ñåé÷àñ <?=date('H:i')?>) <input name="loginLD52016" type="text" id="loginLD52016" size="30" maxlength="30" /> Òåêñò ñîîáùåíèÿ <input name="textLD52016" type="text" id="textLD52016" size="70" maxlength="30" /> <input type="submit" name="pometka52016" id="pometka52016" class="btn" value="Ïðîâåðèòü" />
</div>
<?
}
if($p['telegraf']==1) {
if(isset($_POST['pometka5'])) {
$tous = mysql_fetch_array(mysql_query('SELECT * FROM `users` WHERE `login` = "'.mysql_real_escape_string($_POST['loginLD5']).'" LIMIT 1'));
if(isset($tous['id'])) {
if($u->info['align'] > 1 && $u->info['align'] < 2) {
$zvnt = 'Ïàëàäèí <b>'.$mod_login.'</b> ñîîáùàåò';
$zvno = 'Îðäåí Ñâåòà';
}elseif($u->info['align'] > 3 && $u->info['align'] < 4) {
$zvnt = 'Ìîäåðàòîð <b>'.$mod_login.'</b> ñîîáùàåò';
$zvno = 'Ìîäåðàòîð';
}elseif($u->info['admin'] > 0) {
$zvnt = 'Àäìèíèñòðàöèÿ ñîîáùàåò';
$zvno = 'Àäìèíèñòðàöèÿ';
}else{
$zvnt = 'Àäìèíèñòðàöèÿ ñîîáùàåò.';
$zvno = 'Àäìèíèñòðàöèÿ';
}
mysql_query('INSERT INTO `telegram` (`uid`,`from`,`tema`,`text`,`time`) VALUES ("'.$tous['id'].'","<b><font color=red>'.$zvno.'</font></b>","'.$zvnt.'","'.mysql_real_escape_string(htmlspecialchars($_POST['textLD5'],NULL,'cp1251')).'","'.time().'")');
echo '<font color="red"><b>Ñîîáùåíèå óñïåøíî îòïðàâëåíî</b></font>';
}else{
echo '<font color="red"><b>Ïåðñîíàæ íå íàéäåí...</b></font>';
}
}
?>
<div style="padding:0 10px 5px 10px; margin:5px; border-bottom:1px solid #cac9c7;">
<h4>Îòïðàâèòü òåëåãðàô</h4>
Ââåäèòå ëîãèí <input name="loginLD5" type="text" id="loginLD5" size="30" maxlength="30" /> Ñîîáùåíèå <input name="textLD5" type="text" id="textLD5" size="70" maxlength="1000" /> <input type="submit" name="pometka5" id="pometka5" class="btn" value="Íàïèñàòü" />
</div>
<?
}
if(($u->info['align'] > 1 && $u->info['align'] < 2) || ($u->info['align'] > 3 && $u->info['align'] < 4) || $u->info['admin'] > 0) {
?>
<div style="padding:0 10px 5px 10px; margin:5px; border-bottom:1px solid #cac9c7;">
<h4>Ïðîñìîòð ñïèñêà íåâèäèìîê</h4>
<?
if(isset($_POST['pometka587'])) {
$sp = mysql_query('SELECT `id`,`login` FROM `users` WHERE `invis` = 1 OR `invis` > "'.time().'"');
$html = '';
while( $pl = mysql_fetch_array($sp) ) {
$html .= $u->microLogin($pl['id'],1) . ' -> <b>'.$pl['login'].'</b> (id '.$pl['id'].')<br>';
}
if($html == '') {
$html = '<b style="color:red">Íåò ïåðñîíàæåé-íåâèäèìîê</b>';
}
echo $html.'<br>';
}
?>
<input type="submit" name="pometka587" id="pometka587" class="btn" value="Ïîêàçàòü ñïèñîê íåâèäèìîê" />
</div>
<?
}
if($p['telegraf']==1) {
if($u->info['align'] > 1 && $u->info['align'] < 2 && $u->info['admin'] == 0) {
$zvnt = 'Ïàëàäèí <b>'.$mod_login.'</b> ñîîáùàåò:';
$zvno = 'Îðäåí Ñâåòà';
}elseif($u->info['align'] > 3 && $u->info['align'] < 4 && $u->info['admin'] == 0) {
$zvnt = 'Ìîäåðàòîð <b>'.$mod_login.'</b> ñîîáùàåò:';
$zvno = 'Ìîäåðàòîð';
}elseif($u->info['admin'] > 0) {
$zvnt = 'Àäìèíèñòðàòîð <b>'.$mod_login.'</b> ñîîáùàåò:';
$zvno = 'Àäìèíèñòðàöèÿ';
}else{
$zvnt = 'Àäìèíèñòðàöèÿ ñîîáùàåò:';
$zvno = 'Àäìèíèñòðàöèÿ';
}
if(isset($_POST['pometka577'])) {
//$tous = mysql_fetch_array(mysql_query('SELECT * FROM `users` WHERE `login` = "'.mysql_real_escape_string($_POST['loginLD5']).'" LIMIT 1'));
//if(isset($tous['id'])) {
//mysql_query('INSERT INTO `telegram` (`uid`,`from`,`tema`,`text`,`time`) VALUES ("'.$tous['id'].'","<b><font color=red>'.$zvno.'</font></b>","'.$zvnt.'","'.mysql_real_escape_string(htmlspecialchars($_POST['textLD5'],NULL,'cp1251')).'","'.time().'")');
if(isset($_POST['hbld577'])) {
$_POST['textLD577'] = ''.$zvnt.' '.$_POST['textLD577'];
}else{
$_POST['textLD577'] = '<b>'.$zvno.'</b> ñîîáùàåò: '.$_POST['textLD577'];
}
mysql_query('INSERT INTO `chat` (`invis`,`da`,`delete`,`molch`,`new`,`login`,`to`,`city`,`room`,`time`,`type`,`spam`,`text`,`toChat`,`color`,`typeTime`,`sound`,`global`) VALUES (
"'.$u->info['invis'].'",
"1",
"0",
"0",
"1",
"",
"",
"'.$u->info['city'].'",
"0",
"'.time().'",
"6",
"0",
"'.mysql_real_escape_string($_POST['textLD577']).'",
"0",
"red",
"0",
"0",
"0")');
echo '<font color="red"><b>Ñîîáùåíèå óñïåøíî îòïðàâëåíî</b></font>';
//}else{
// echo '<font color="red"><b>Ïåðñîíàæ íå íàéäåí...</b></font>';
//}
}
?>
<div style="padding:0 10px 5px 10px; margin:5px; border-bottom:1px solid #cac9c7;">
<h4>Ìåãàôîí</h4>
Ñîîáùåíèå <input name="textLD577" type="text" id="textLD577" size="70" maxlength="1000" /> <input type="submit" name="pometka577" id="pometka577" class="btn" value="Íàïèñàòü" />
<br />
<input name="hbld577" type="checkbox" id="hbld577" value="1" /> Îòïðàâèòü ñîîáùåíèå îò ñâîåãî ëîãèíà &quot;<?=$zvnt?>&quot;
</div>
<?
}
if($p['seeld']==1) {
$pld520 = date('d.m.Y');
if( isset($_POST['loginLD520']) ) {
$pld520 = $_POST['loginLD520'];
}
$pld520TS = strtotime(str_replace(".", "-", $pld520));
$pld520 = date('d.m.Y',$pld520TS);
?>
<div style="padding:0 10px 5px 10px; margin:5px; border-bottom:1px solid #cac9c7;">
<h4>Ðåãèñòðàöèè ïåðñîíàæåé</h4>
Äàòà ðåãèñòðàöèè
<input name="pometka520" class="btn btn-success" onclick="document.getElementById('loginLD520').value='<?=date('d.m.Y',($pld520TS-86400))?>';" type="submit" value="&laquo;" />
<input value="<?=$pld520?>" name="loginLD520" type="text" id="loginLD520" size="20" maxlength="10" />
<input name="pometka520" class="btn btn-success" onclick="document.getElementById('loginLD520').value='<?=date('d.m.Y',($pld520TS+86400))?>';" type="submit" value="&raquo;" />
<input type="submit" name="pometka520" id="pometka520" class="btn" value="Ïîêàçàòü" />
<?
if( isset($_POST['pometka520'])) {
$sp = mysql_query('SELECT `users`.`id`,`users`.`host_reg`,`users`.`banned`,`users`.`battle`,`users`.`online`,`users`.`molch1`,`users`.`bithday` FROM `users` LEFT JOIN `stats` ON `stats`.`id` = `users`.`id` WHERE `users`.`bithday` != "01.01.1800" AND `stats`.`bot` = 0 AND `users`.`timereg` >= '.$pld520TS.' AND `users`.`timereg` < '.($pld520TS+86400).' ORDER BY `users`.`id` ASC');
$i = 1;
echo '<br><b><font color=red>Ïåðñîíàæè çàðåãèñòðèðîâàííûå '.$pld520.'</font></b>';
while( $pl = mysql_fetch_array($sp) ) {
$urt5202 = '<br>'.$i.'. '.$u->microLogin($pl['id'],1).'';
if( $pl['banned'] > 0 ) {
$urt5202 = '<font color=red>'.$urt5202.'</font>';
}elseif( $pl['online'] > time()-520 ) {
$urt5202 = '<font color=green>'.$urt5202.'</font>';
}
if( $pl['molch1'] > time() ) {
$urt5202 .= ' <img title="Íà ïåðñîíàæå ìîë÷àíêà" src=https://img.new-combats.com/i/sleep2.gif width=24 height=15>';
}
if( $pl['battle'] > 0 ) {
$urt5202 .= ' <a href="/logs.php?log='.$pl['battle'].'" target="_blank"><img src=https://img.new-combats.com/i/fighttype0.gif title="Ïåðñîíàæ â ïîåäèíêå"></a>';
}
if( $pl['host_reg'] > 0 ) {
$urt5202 .= ' &nbsp; <small>(Ðåôåðàë ïåðñîíàæà '.$u->microLogin($pl['host_reg'],1).')</small>';
}
$urt520 .= $urt5202;
$i++;
}
echo $urt520;
unset($urt520,$i,$pl,$sp);
}
?>
</div>
<div style="padding:0 10px 5px 10px; margin:5px; border-bottom:1px solid #cac9c7;">
<h4>Àâòîðèçàöèè ñ ip-àäðåñà (ïîñëåäíèå 100)</h4>
Ââåäèòå ip-àäðåñ <input name="loginLD52" type="text" id="loginLD52" size="30" maxlength="30" /> <input type="submit" name="pometka52" id="pometka52" class="btn" value="Ïîêàçàòü" />
<input type="submit" name="pometka53" id="pometka53" class="btn" value="Ïîêàçàòü (íåóäà÷íûå)" />
</div>
<?
if(isset($_POST['pometka52']) || isset($_POST['pometka53'])) {
if(isset($_POST['pometka53'])) {
$sp = mysql_query('SELECT * FROM `logs_auth` WHERE `ip` = "'.mysql_real_escape_string($_POST['loginLD52']).'" AND `type` = "3" ORDER BY `id` DESC LIMIT 100');
}else{
$sp = mysql_query('SELECT * FROM `logs_auth` WHERE `ip` = "'.mysql_real_escape_string($_POST['loginLD52']).'" ORDER BY `id` DESC LIMIT 100');
}
$i = 1;
$r = '';
$ursz = array();
while($pl = mysql_fetch_array($sp)) {
$tst = mysql_fetch_array(mysql_query('SELECT `id`,`admin`,`no_ip` FROM `users` WHERE `id` = "'.$pl['uid'].'" LIMIT 1'));
if(isset($tst['id']) && $tst['admin'] == 0 && ($tst['no_ip'] == '' && $tst['no_ip'] == 0)) {
if(!isset($ursz[$pl['uid']])) {
$ursz[$pl['uid']] = $u->microLogin($pl['uid'],1);
}
$r .= '<div style="padding:0 10px 5px 10px; margin:5px; border-bottom:1px solid #cac9c7;">';
$r .= '<span style="display:inline-block;width:30px">'.$i.'.</span> <span style="display:inline-block;width:250px">'.$ursz[$pl['uid']].'</span>';
if($pl['type']==3) {
$r .= '<span style="display:inline-block;width:100px;color:red;">íåóäà÷íî</span>';
}else{
$r .= '<span style="display:inline-block;width:100px;color:green;">óñïåøíî</span>';
}
$r .= ' &nbsp; '.date('d.m.Y H:i',$pl['time']).'';
$r .= '</div>';
$i++;
}
}
echo '&nbsp;&nbsp; <font color="red">Ñïèñîê ïîñëåäíèõ 100 àâòîðèçàöèé ñ ip-àäðåñîì:<b>'.$_POST['loginLD51'].'</b></font><br>';
if($r == '') {
if(isset($_POST['pometka53'])) {
echo '<div style="padding:0 10px 5px 10px; margin:5px; border-bottom:1px solid #cac9c7;">Àâòîðèçàöèè ñ äàííûì ip-àäðåñîì íå íàéäåíû (íåóäà÷íûå)</div>';
}else{
echo '<div style="padding:0 10px 5px 10px; margin:5px; border-bottom:1px solid #cac9c7;">Àâòîðèçàöèè ñ äàííûì ip-àäðåñîì íå íàéäåíû</div>';
}
}else{
echo $r;
}
unset($r);
}
}
if($u->info['admin'] > 0 || $u->info['align'] == 1.99){
$dsee = array();
if(!isset($_POST['smod1'])) {
$_POST['smod1'] = date('d.m.Y');
}
$dsee['date'] = explode('.',$_POST['smod1']);
$dsee['date'] = $dsee['date'][2].'-'.$dsee['date'][1].'-'.$dsee['date'][0];
$dsee['t1'] = strtotime($dsee['date'].' 00:00:00');
$dsee['t2'] = strtotime($dsee['date'].' 23:59:59');
$dsee['date'] = date('d.m.Y',$dsee['t1']);
?>
<div style="padding:0 10px 5px 10px; margin:5px; border-bottom:1px solid #cac9c7;">
<h4>Ïîêàçàòü ëîã äåéñòâèé ìîäåðàòîðîâ</h4>
Ïîêàçàòü äåéñòâèÿ çà <input name="smod1" type="text" id="smod1" value="<?=$_POST['smod1']?>" size="11" maxlength="10" />
Ëîãèí ìîäåðàòîðà <input name="smod2" type="text" id="smod2" value="<?=$_POST['smod2']?>" size="30" maxlength="30" />
<input type="submit" name="delosee3" id="delosee3" class="btn" value="Ïîèñê" />
</div>
<?
if(isset($_POST['delosee3'])) {
$sp = mysql_query('SELECT * FROM `users_delo` WHERE `login` = "'.mysql_real_escape_string($_POST['smod2']).'" AND `time` >= '.$dsee['t1'].' AND `time` <= '.$dsee['t2'].'');
$rdl = '';
while($pl = mysql_fetch_array($sp)) {
$rdl .= '<div style="padding:0 10px 5px 10px; margin:5px; border-bottom:1px solid #cac9c7;">';
$rdl .= '<div style="display:inline-block;width:150px;color:green">'.date('d.m.Y H:i:s',$pl['time']).'</div>';
$rdl .= $pl['text'].' ïåðñîíàæó '.$u->microLogin($pl['uid'],1);
$rdl .= '</div>';
}
if($rdl == '') {
$rdl = 'Ìîäåðàòîð íå ñîâåðøàë äåéñòâèé çà äàííîå ÷èñëî';
}
echo $rdl;
}
} ?>
</form>
<?
}
//ïîêàçûâàåì ïàíåëü ìîäåðàòîðà
}else{
echo $merror.'<form action="main.php?'.$zv.'&enter='.$code.'" method="post"><center><br><br><br>Äëÿ âõîäà â ïàíåëü òðåáóåòñÿ ïàðîëü<hr>Ââåäèòå ïàðîëü: <input value="" name="psw" type="password"><input type="submit" value="îê" /><br><small style="color:grey;">Åñëè Âû íå óãàäàåòå ïàðîëü áîëüøå òðåõ ðàç<br>äîñòóï â ïàíåëü áóäåò çàáëîêèðîâàí íà ñóòêè.</small></form>';
}
}
?>