game/modules_data/_clan_oldversion.php

3414 lines
187 KiB
PHP
Raw Normal View History

2022-06-06 21:30:34 +00:00
<?
if (!defined('GAME')) {
die();
}
2022-06-06 21:30:34 +00:00
$res = mysql_fetch_array(
mysql_query("SELECT * FROM `clan` WHERE `id` = '" . mysql_real_escape_string($u->info['clan']) . "' LIMIT 1")
);
2022-06-06 21:30:34 +00:00
$cpr = explode('|', $u->info['clan_prava']);
if (!isset($res['id'])) {
die('<27><><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.');
2022-06-06 21:30:34 +00:00
}
if (!isset($_GET['events']) && !isset($_GET['diplom']) && !isset($_GET['control']) && !isset($_GET['deposit']) && !isset($_GET['titul']) && !isset($_GET['rules']) && !isset($_GET['info']) && !isset($_GET['members'])) {
$_GET['events'] = 1;
2022-06-06 21:30:34 +00:00
}
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
$tt = [
0 => ['000000000', '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'],
1 => [0, '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>'],
2 => [0, '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>'],
3 => [0, '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'],
4 => [0, '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'],
5 => [0, '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'],
6 => [0, '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>'],
7 => [0, '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>'],
8 => [0, '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>'],
9 => [0, '<27><><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD>'],
10 => [0, '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD>'],
11 => [0, '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD>'],
12 => [0, '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'],
13 => [0, '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'],
14 => [0, '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>'],
15 => [0, 0],
15 => [0, 0],
16 => [0, 0],
17 => [0, 0],
18 => [0, 0],
19 => [0, 0],
20 => [0, 0],
];
2022-06-06 21:30:34 +00:00
if ($u->info['clan_prava'] != 'glava') {
$utitl = mysql_fetch_array(
mysql_query('SELECT * FROM `clan_tituls` WHERE `id` = "' . $u->info['clan_prava'] . '" LIMIT 1')
);
if (!isset($utitl['id'])) {
$utitl = mysql_fetch_array(mysql_query('SELECT * FROM `clan_tituls` WHERE `id` = 2 LIMIT 1'));
}
2022-06-06 21:30:34 +00:00
} else {
$utitl = mysql_fetch_array(mysql_query('SELECT * FROM `clan_tituls` WHERE `id` = 1 LIMIT 1'));
2022-06-06 21:30:34 +00:00
}
if (isset($utitl['id'])) {
$i = 1;
while ($i < count($tt)) {
if ($utitl['prava'][$i] > 0) {
$tt[$i][0] = 1;
}
$i++;
}
2022-06-06 21:30:34 +00:00
}
$u->info['tt'] = $tt;
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>
$lvl_exp = [
0 => 0,
1 => 500000,
2 => 2000000,
3 => 5500000,
4 => 10500000,
5 => 20500000,
6 => 35500000,
7 => 65500000,
];
2022-06-06 21:30:34 +00:00
if ($res['exp'] >= $lvl_exp[$res['level'] + 1]) {
$res['level']++;
mysql_query('UPDATE `clan` SET `level` = "' . $res['level'] . '" WHERE `id` = "' . $res['id'] . '" LIMIT 1');
mysql_query(
'INSERT INTO `clan_news` (`clan`,`time`,`ddmmyyyy`,`uid`,`ip`,`login`,`title`,`text`) VALUES (
"' . $res['id'] . '","' . time() . '","' . date(
'd.m.Y'
) . '","0","127.0.0.1","<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>","<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>","<22><><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ' . $res['level'] . '!"
)'
);
2022-06-06 21:30:34 +00:00
}
//<2F><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>
$lvl_prava = [
0 => [8, 0, 0, 0, 0, 50, 20, 200],
1 => [12, 1, 0, 0, 0, 50, 20, 200],
2 => [16, 1, 0, 0, 0, 50, 20, 200],
3 => [20, 1, 0, 0, 0, 50, 20, 200],
4 => [24, 1, 1, 0, 0, 100, 40, 200],
5 => [28, 1, 1, 0, 0, 100, 40, 200],
6 => [32, 1, 1, 0, 0, 100, 40, 200],
7 => [36, 1, 1, 0, 0, 200, 80, 200],
8 => [40, 1, 1, 1, 1, 200, 80, 200],
9 => [44, 1, 1, 1, 1, 200, 80, 200],
10 => [48, 1, 1, 1, 1, 200, 80, 200],
11 => [52, 1, 1, 1, 1, 200, 80, 200],
]
2022-06-06 21:30:34 +00:00
?>
<script type="text/javascript" src="js/jquery.js"></script>
<style>
body {
background-image: url(https://img.new-combats.com/i/clanpanel/klan_img_44.jpg);
}
2022-06-06 21:30:34 +00:00
.a {
text-decoration: none;
color: #333333;
font-size: 10px;
}
2022-06-06 21:30:34 +00:00
.a:hover {
text-decoration: none;
color: #333333;
font-size: 10px;
}
2022-06-06 21:30:34 +00:00
.clanimg {
padding-right: 5px;
margin-bottom: -2px;
}
2022-06-06 21:30:34 +00:00
.infimg {
margin-left: 2px;
margin-bottom: -1px;
}
2022-06-06 21:30:34 +00:00
#clanpanel {
width: 100%;
height: 32px;
color: #333333;
font-weight: bold;
font-size: 11px;
min-width: 1250px;
}
2022-06-06 21:30:34 +00:00
#clanpanel .head {
float: left;
width: 75px;
height: 18px;
font-size: 11px;
background-image: url(https://img.new-combats.com/i/clanpanel/klan_img_03.jpg);
background-repeat: no-repeat;
}
2022-06-06 21:30:34 +00:00
#clanpanel .panel {
float: left;
width: 100%;
height: 32px;
font-size: 11px;
background-image: url(https://img.new-combats.com/i/clanpanel/klan_img_08.jpg);
background-repeat: repeat-x;
}
2022-06-06 21:30:34 +00:00
#clanpanel .foot {
float: left;
width: 75px;
height: 12px;
font-size: 11px;
background-image: url(https://img.new-combats.com/i/clanpanel/klan_img_27.jpg);
background-repeat: no-repeat;
}
2022-06-06 21:30:34 +00:00
.tabs ul {
list-style: none;
float: left;
margin: 0px;
padding: 0px;
}
2022-06-06 21:30:34 +00:00
.name {
float: left;
color: #990000;
height: 32px;
padding-left: 85px;
background-image: url(https://img.new-combats.com/i/clanpanel/klan_s3r3_07.jpg);
background-repeat: no-repeat;
line-height: 32px;
padding-right: 15px;
}
2022-06-06 21:30:34 +00:00
.clanicon {
padding-right: 10px;
margin-bottom: -2px;
}
2022-06-06 21:30:34 +00:00
.tabs .events {
float: left;
height: 32px;
padding-left: 60px;
background-image: url(https://img.new-combats.com/i/clanpanel/klan_img_09.jpg);
background-repeat: no-repeat;
line-height: 32px;
padding-right: 20px;
}
2022-06-06 21:30:34 +00:00
.tabs .control {
float: left;
height: 32px;
padding-left: 60px;
background-image: url(https://img.new-combats.com/i/clanpanel/klan_img_11.jpg);
background-repeat: no-repeat;
line-height: 32px;
padding-right: 20px;
}
2022-06-06 21:30:34 +00:00
.tabs .deposit {
float: left;
height: 32px;
padding-left: 60px;
background-image: url(https://img.new-combats.com/i/clanpanel/klan_img_13.jpg);
background-repeat: no-repeat;
line-height: 32px;
padding-right: 20px;
}
2022-06-06 21:30:34 +00:00
.tabs .clanart {
float: left;
height: 32px;
padding-left: 60px;
background-image: url(https://img.new-combats.com/i/clanpanel/klan_img_17.jpg);
background-repeat: no-repeat;
line-height: 32px;
padding-right: 20px;
}
2022-06-06 21:30:34 +00:00
.tabs .rules {
float: left;
height: 32px;
padding-left: 60px;
background-image: url(https://img.new-combats.com/i/clanpanel/klan_img_19.jpg);
background-repeat: no-repeat;
line-height: 32px;
padding-right: 20px;
}
2022-06-06 21:30:34 +00:00
.tabs .info {
float: left;
height: 32px;
padding-left: 60px;
background-image: url(https://img.new-combats.com/i/clanpanel/klan_img_21.jpg);
background-repeat: no-repeat;
line-height: 32px;
padding-right: 20px;
}
2022-06-06 21:30:34 +00:00
.tabs .members {
float: left;
height: 32px;
padding-left: 60px;
background-image: url(https://img.new-combats.com/i/clanpanel/klan_img_23.jpg);
background-repeat: no-repeat;
line-height: 32px;
padding-right: 20px;
}
2022-06-06 21:30:34 +00:00
.tabs .last {
float: right;
width: 15px;
height: 32px;
background-image: url(https://img.new-combats.com/i/clanpanel/klan_img_25.jpg);
background-repeat: no-repeat;
}
2022-06-06 21:30:34 +00:00
#clancontent {
width: 100%;
float: left;
padding-top: 25px;
}
2022-06-06 21:30:34 +00:00
.eventsblock {
}
2022-06-06 21:30:34 +00:00
.legtitle {
font-weight: bold;
padding: 0px 5px 0px 5px;
color: #990000;
}
2022-06-06 21:30:34 +00:00
.legcontent {
padding: 0px 5px 0px 5px;
}
2022-06-06 21:30:34 +00:00
.section {
width: 100%;
2022-06-06 21:30:34 +00:00
margin: 0 0 30px;
}
2022-06-06 21:30:34 +00:00
ul.tabs {
height: 28px;
line-height: 25px;
list-style: none;
margin: 0px;
padding: 0px;
font-size: 10px;
color: #666;
}
2022-06-06 21:30:34 +00:00
.tabs li {
float: left;
position: relative;
cursor: pointer;
font-size: 10px;
}
2022-06-06 21:30:34 +00:00
.tabs li a {
color: #666;
font-size: 10px;
}
2022-06-06 21:30:34 +00:00
.tabs li:hover,
.vertical .tabs li:hover {
2022-06-06 21:30:34 +00:00
}
2022-06-06 21:30:34 +00:00
li.current a {
color: #333333;
font-size: 10px;
2022-06-06 21:30:34 +00:00
}
2022-06-06 21:30:34 +00:00
.box {
width: 100%;
float: left;
display: none;
padding-top: 25px;
}
.box.visible {
display: block;
}
.modpow {
background-color: #ddd5bf;
}
.mt {
background-color: #b1a993;
padding-left: 10px;
padding-right: 10px;
padding-top: 5px;
padding-bottom: 5px;
}
.md {
padding: 10px;
}
2022-06-06 21:30:34 +00:00
</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="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" onClick="closeMod(); return false;" href="#">x</a></div></td></tr></table>';
document.getElementById('moddata').innerHTML = dat;
d.style.display = '';
}
}
2022-06-06 21:30:34 +00:00
function closeMod() {
var d = document.getElementById('useMagic');
if (d != undefined) {
document.getElementById('modtitle').innerHTML = '';
document.getElementById('moddata').innerHTML = '';
d.style.display = 'none';
}
}
2022-06-06 21:30:34 +00:00
function addNewEvent() {
openMod('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
'<form method="post" action="main.php?clan&events&add=<?=$code?>"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <input name="titleadd" value="" style="width:335px;" type="text"><br><textarea name="textadd" style="width:412px;" rows="5"></textarea><br><div align="right"><input type="submit" value="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"></div></form>');
}
2022-06-06 21:30:34 +00:00
function addNewTitul() {
openMod('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>',
'<form method="post" action="main.php?clan&titul&add=<?=$code?>"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <input name="tituladd" value="" style="width:235px;" type="text"><br><small style="float:left">(<28><> <20><><EFBFBD><EFBFBD><EFBFBD> 30-<2D><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)</small><input style="float:right" type="submit" value="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>"></div></form>');
}
2022-06-06 21:30:34 +00:00
</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>
2022-06-06 21:30:34 +00:00
</div>
<input style="float:right;margin:1px" type="button" value="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" onClick="document.location='main.php'">
<input style="float:right;margin:1px" type="button" value="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
onClick="document.location='<?= $_SERVER['REQUEST_URI'] ?>'">
2022-06-06 21:30:34 +00:00
<?
if ($u->info['clan_prava'] != 'glava') {
if (isset($_GET['clan_exit']) && $u->newAct($_GET['sd4']) == true) {
if ($u->info['money'] >= 50) {
$txt = '<27><><EFBFBD><EFBFBD><EFBFBD> <img src="https://img.new-combats.com/i/align/align' . $u->info['align'] . '.gif" style="vertical-align:bottom"><img src="https://img.new-combats.com/i/clan/' . $res['name'] . '.gif" style="vertical-align:bottom"><a href="javascript:void(0)">' . $u->info['login'] . '</a>[' . $u->info['level'] . ']<a target="_blank" title="<22><><EFBFBD>. <20> ' . $u->info['login'] . '" href="info/' . $u->info['id'] . '"><img src="https://img.new-combats.com/i/inf_' . $u->info['cityreg'] . '.gif"></a> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>. (50 <20><>.)';
mysql_query(
'INSERT INTO `clan_news` (`clan`, `time`, `ddmmyyyy`, `uid`, `ip`, `login`, `title`, `text`) VALUES ("' . $res['id'] . '", "' . time(
) . '", "' . date(
'd.m.Y'
) . '", "0", "127.0.0.1", "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>", "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>", "' . mysql_real_escape_string(
$txt
) . '")'
);
mysql_query(
'UPDATE `users` SET `palpro` = 0, `clan` = 0, `align` = 0, `clan_prava` = "0|0|0|0", `money` = `money` - 50 WHERE `id` = "' . $u->info['id'] . '" LIMIT 1'
);
$ar = $u->rem_itm_cl($u->info, $res['id'], 7);
} else {
echo '<script>setTimeout("alert(\'<27><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 50 <20><>.\');",500)</script>';
}
}
?>
<input style="float:right;margin:1px;margin-right:50px;color:red;" type="button" value="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> (50 <20><>.)"
onClick="document.location='main.php?clan&clan_exit=1&sd4=<?= $u->info['nextAct'] ?>'">
2022-06-06 21:30:34 +00:00
<? } ?>
<br>
<div class="section">
<div id="clanpanel">
<div class="head" style="position:relative"><img
src="https://img.new-combats.com/i/align/align<?= $res['align']; ?>.gif"
style="position:absolute;top:23px;left:40px;"/></div>
<div class="panel" style="white-space:nowrap;min-width:1000px;">
<div class="name" onclick='location.href="main.php?clan&events"' title="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>"
style="cursor:pointer"><img class="clanicon"
src="https://img.new-combats.com/i/clan/<?= $res['name_mini']; ?>.gif"><?= $res['name']; ?>
</div>
<ul class="tabs">
<!--<li class="events"><a href="main.php?clan&events"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></a></li>-->
<? if ($tt[11][0] == 1) { ?>
<li class="control"><a href="main.php?clan&control"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></a></li><? } ?>
<? if ($tt[3][0] == 1) { ?>
<li class="deposit"><a href="main.php?clan&deposit"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></a></li><? } ?>
<? if ($tt[11][0] > 0) { ?>
<li class="clanart"><a href="main.php?clan&titul"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></a></li><? } ?>
<li class="rules"><a href="main.php?clan&rules"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></a></li>
<li class="info"><a href="main.php?clan&info"><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></a></li>
<li class="members"><a href="main.php?clan&members"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></a></li>
<? if ($tt[12][0] == 1) { ?>
<li class="rules"><a href="main.php?clan&diplom"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></a></li>
<? } ?>
<li class="last"></li>
</ul>
</div>
<div class="foot"></div>
</div><? if (isset($_GET['events'])) { ?>
<div class="box visible">
<style>
.leftimg {
float: left; /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> */
margin: 17px 17px 17px 7px; /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
}
.rightimg {
float: right; /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> */
margin: 17px 7px 17px 17px; /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
}
.dnbx {
width: 25px;
height: 22px;
background-color: #ecece4;
vertical-align: middle;
text-align: center;
display: inline-block;
margin: 1px;
padding-top: 3px;
cursor: default;
}
.dnbx1 {
width: 25px;
height: 22px;
background-color: #ecece4;
vertical-align: middle;
text-align: center;
display: inline-block;
margin: 1px;
padding-top: 3px;
cursor: default;
}
.dnbx5 {
height: 22px;
background-color: #ecece4;
vertical-align: middle;
text-align: center;
display: inline-block;
margin: 1px;
padding-top: 3px;
cursor: default;
}
.dnbx:hover {
width: 25px;
height: 22px;
background-color: #dbdad5;
vertical-align: middle;
text-align: center;
display: inline-block;
margin: 1px;
padding-top: 3px;
cursor: default;
}
.dnbx2 {
width: 25px;
height: 22px;
background-color: #b5b4b1;
color: #ecebe6;
vertical-align: middle;
text-align: center;
display: inline-block;
margin: 1px;
padding-top: 3px;
cursor: default;
}
</style>
<fieldset style="border:1px dashed #eeeeee">
<legend><span class="legtitle"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></span></legend>
<?
$c_r = '';
$c_c = '';
$c_p = '';
if (isset($_GET['add'], $_POST['textadd']) && $tt[2][0] == 1) {
$lmsg = mysql_fetch_array(
mysql_query(
'SELECT `id` FROM `clan_news` WHERE `uid` = "' . $u->info['id'] . '" AND `time` > ' . (time(
) - 10) . ' LIMIT 1'
)
);
if (isset($lmsg['id'])) {
$c_r .= '<font color="#FF0000"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20> 10 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font><br>';
} else {
$tadd = htmlspecialchars($_POST['textadd'], null, 'cp1251');
$ttadd = htmlspecialchars($_POST['titleadd'], null, 'cp1251');
if (str_replace(' ', '', str_replace(' ', '', $tadd)) == '') {
$c_r .= '<font color="#FF0000"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font><br>';
} elseif (str_replace(' ', '', str_replace(' ', '', $ttadd)) == '') {
$c_r .= '<font color="#FF0000"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font><br>';
} else {
$tadd = str_replace("\n", '<br>', $tadd);
mysql_query(
'INSERT INTO `clan_news` (`clan`,`time`,`ddmmyyyy`,`uid`,`ip`,`login`,`title`,`text`) VALUES (
"' . $res['id'] . '","' . time() . '","' . date(
'd.m.Y'
) . '","' . $u->info['id'] . '","' . $u->info['ip'] . '","' . $u->info['login'] . '","' . mysql_real_escape_string(
$ttadd
) . '","' . mysql_real_escape_string($tadd) . '"
)'
);
$c_r .= '<font color="#FF0000"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font><br>';
}
}
} elseif (isset($_GET['delete']) && $tt[2][0] == 1) {
$upd = mysql_query(
'UPDATE `clan_news` SET `delete` = "' . $u->info['id'] . '" WHERE `clan` = "' . $res['id'] . '" AND `delete` = "0" AND `uid` != "0" AND `id` = "' . mysql_real_escape_string(
$_GET['delete']
) . '" LIMIT 1'
);
if ($upd) {
$c_r .= '<font color="#FF0000"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font><br>';
} else {
$c_r .= '<font color="#FF0000"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font><br>';
}
}
$dd = date('d');
$mm = date('m');
$yy = date('Y');
if (isset($_GET['mm'])) {
$mm = ceil((int)$_GET['mm']);
}
if (isset($_GET['dd'])) {
$dd = ceil((int)$_GET['dd']);
}
if (isset($_GET['yy'])) {
$yy = ceil((int)$_GET['yy']);
}
$mml = ceil($mm) - 1;
$mmr = ceil($mm) + 1;
$yyl = $yy;
$yyr = $yy;
if ($mml < 1) {
$yyl--;
$mml = 12;
}
if ($mmr > 12) {
$yyr++;
$mmr = 1;
}
$dds = ['', '<27><>', '<27><>', '<27><>', '<27><>', '<27><>', '<font color="#981115"><3E><></font>', '<font color="#981115"><3E><></font>'];
$mms = ['', '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>', '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>', '<27><><EFBFBD><EFBFBD>', '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>', '<27><><EFBFBD>', '<27><><EFBFBD><EFBFBD>', '<27><><EFBFBD><EFBFBD>', '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>', '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>', '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>', '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>', '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'];
$num = 0;
$lday = 0;
for ($i = 0; $i < 7; $i++) {
$dayofweek = date('w', mktime(0, 0, 0, $mm, $day_count, $yy));
$dayofweek = $dayofweek - 1;
if ($dayofweek == -1) {
$dayofweek = 6;
}
if ($dayofweek == $i) {
$week[$num][$i] = $day_count;
$lday = $day_count;
$day_count++;
} else {
$week[$num][$i] = "";
}
}
function freenews($d, $m, $y)
{
global $res;
$r = $d;
if ($d < 9) {
$d = '0' . $d;
}
if ($m < 9) {
$m = '0' . ((int)$m);
}
$n = mysql_fetch_array(
mysql_query(
'SELECT `id` FROM `clan_news` WHERE `clan` = "' . $res['id'] . '" AND `delete` = "0" AND `ddmmyyyy` = "' . $d . '.' . $m . '.' . $y . '" LIMIT 1'
)
);
if (isset($n['id'])) {
$r = '<a style="text-decoration:underline;" href="?clan&events&ftr=1&mm=' . $m . '&yy=' . $y . '&dd=' . $d . '">' . $r . '</a>';
}
return $r;
}
$i = 1;
$c_c .= '<div style="width:260px;border:1px solid #9d9d9d;padding:10px;background-color:#ecebe7">';
if ($tt[2][0] > 0) {
$c_c .= '<center><input type="button" value="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" onClick="addNewEvent();"></center><br>';
}
$c_c .= '<div><span style="float:left" class="dnbx" title="' . $mms[$mml] . ' ' . $yyl . '" onclick="location=\'?clan&events&mm=' . $mml . '&yy=' . $yyl . '\'">&lt;</span><span style="float:right" class="dnbx" onclick="location=\'?clan&events&mm=' . $mmr . '&yy=' . $yyr . '\'" title="' . $mms[$mmr] . ' ' . $yyr . '">&gt;</span><center class="dnbx5">' . $yy . ' ' . $mms[ceil(
$mm
)] . '</center></div><br>';
while ($i <= 49) {
if ($i <= 7) {
$c_c .= '<small class="dnbx1"><b>' . $dds[$i] . '</b></small>';
} else {
if ($i - 7 > 7) {
$lday++;
if (date('d', mktime(0, 0, 0, $mm, $lday)) == $lday) {
if ($lday == date('d') && $mm == ceil(date('m')) && $yy == date('Y')) {
$c_c .= '<span class="dnbx2">' . freenews($lday, $mm, $yy) . '</span>';
} else {
$c_c .= '<span class="dnbx">' . freenews($lday, $mm, $yy) . '</span>';
}
} else {
$c_c .= '<span class="dnbx1">&nbsp;</span>';
}
} else {
if ($week[0][$i - 8] > 0) {
if ($week[0][$i - 8] == date('d') && $mm == ceil(date('m')) && $yy == date('Y')) {
$c_c .= '<span class="dnbx2">' . freenews($week[0][$i - 8], $mm, $yy) . '</span>';
} else {
$c_c .= '<span class="dnbx"">' . freenews($week[0][$i - 8], $mm, $yy) . '</span>';
}
} elseif ($lday > 0) {
$c_c .= '<span class="dnbx1">&nbsp;</span>';
}
}
}
if ($i == 7 || $i == 14 || $i == 21 || $i == 28 || $i == 35 || $i == 42) {
if ($lday > 0 || $i != 14) {
$c_c .= '<br>';
}
}
$i++;
}
$c_c .= '</div>';
if ($tt[1][0] == 1) {
$cnftr = '';
if (isset($_GET['ftr'])) {
if ($_GET['ftr'] == 1) {
$dd1 = $dd;
$mm1 = $mm;
$yy1 = $yy;
if ($dd1 < 9) {
$dd1 = '0' . $dd1;
}
if ($mm1 < 9) {
$mm1 = '0' . $mm1;
}
$cnftr = ' AND `ddmmyyyy` = "' . mysql_real_escape_string(
$dd1 . '.' . $mm1 . '.' . $yy1
) . '"';
}
}
$pg = round((int)$_GET['pg']);
if ($pg < 1) {
$pg = 1;
}
$pgssee = ceil(($pg - 1) * 5);
$pgs = mysql_fetch_array(
mysql_query(
'SELECT COUNT(`id`) FROM `clan_news` WHERE `clan` = "' . $res['id'] . '" AND `delete` = "0"' . $cnftr
)
);
$pgs = $pgs[0];
$pga = ceil($pgs / 5);
$i = 1;
while ($i <= $pga) {
if ($pg == $i) {
$c_p .= ' <b>' . $i . '</b> ';
} else {
if (isset($_GET['ftr'])) {
$c_p .= ' <a href="?clan&events&dd=' . $dd . '&mm=' . $mm . '&yy=' . $yy . '&ftr=' . $_GET['ftr'] . '&pg=' . $i . '">' . $i . '</a> ';
} else {
$c_p .= ' <a href="?clan&events&pg=' . $i . '">' . $i . '</a> ';
}
}
$i++;
}
if ($c_p != '') {
$c_p = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: ' . $c_p;
}
$sp = mysql_query(
'SELECT * FROM `clan_news` WHERE `clan` = "' . $res['id'] . '" AND `delete` < 1' . $cnftr . ' ORDER BY `id` DESC LIMIT ' . mysql_real_escape_string(
$pgssee
) . ',5'
);
while ($pl = mysql_fetch_array($sp)) {
if ($pl['uid'] > 0) {
$login = $u->microLogin($pl['uid'], 1);
if ($tt[2][0] == 1) {
$pl['text'] = '<img src="https://img.new-combats.com/i/clear.gif" width="13" height="13" title="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" class="leftimg" style="cursor:pointer" onclick="location=\'main.php?clan&events&pg=' . ceil(
$pg
) . '&delete=' . $pl['id'] . '\'">' . $pl['text'];
}
} else {
$login = '';
}
$c_r .= '
2022-06-06 21:30:34 +00:00
<table width="100%" border="0" style="border:1px solid #aeaeae" cellspacing="0" cellpadding="5">
<tr>
<td bgcolor="#c4c3c1"><div style="float:left"><i>' . date(
'd.m.Y H:i', $pl['time']
) . '</i> &nbsp; &nbsp; &nbsp; <a class="a" href="javascript:void(0)">' . $pl['title'] . '</a></div><div style="float:right">' . $login . '</div></td>
2022-06-06 21:30:34 +00:00
</tr>
<tr>
<td>' . $pl['text'] . '</td>
2022-06-06 21:30:34 +00:00
</tr>
</table><br>';
}
}
if ($c_r == '') {
$c_r .= '<br><br><br><br><br><br><br><br><center><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></center>';
}
?>
<table width="100%" border="0" cellspacing="0" cellpadding="10">
<tr>
<td align="left" valign="top"><?= $c_r ?></td>
<td width="300" align="center" valign="top"><?= $c_c ?></td>
</tr>
<tr>
<td align="right" valign="top"><?= $c_p ?></td>
<td align="left" valign="top">&nbsp;</td>
</tr>
</table>
</fieldset>
</div>
<? }elseif (isset($_GET['control'])) { ?>
<script>
function changeLogin(selObj) {
selid = selObj.options[selObj.selectedIndex].value;
$('#sn_titul').val($('#slg' + selid).attr('vtitul'));
$('#sn_zvanie').val($('#slg' + selid).attr('vzvanie'));
$('#sn_canals').val($('#slg' + selid).attr('vcanals'));
if ($('#slg' + selid).attr('vtitul') == '<27><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>') {
$('#rp_titul').attr({'disabled': 'disabled'});
$('#sn_zvanie').attr({'disabled': 'disabled'});
$('#sn_canals').attr({'disabled': 'disabled'});
$('#rp_save').attr({'disabled': 'disabled'});
} else {
$('#rp_titul').attr({'disabled': false});
$('#sn_zvanie').attr({'disabled': false});
$('#sn_canals').attr({'disabled': false});
$('#rp_save').attr({'disabled': false});
}
}
</script>
<div class="box visible">
<div style="border-bottom:1px solid #cac9c7;margin-bottom:5px;padding-bottom:5px;">
<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <a
href="javascript:void(0)"><? if ($res['politic'] == 1) { ?><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><? } else { ?><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><? } ?></a>
</div>
<?
$c_pr = [
100, //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
50, //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
100 //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>
];
if (isset($_POST['svb_canals']) && $tt[11][0] == 1) {
echo '<font color="#FF0000"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font><br>';
$res['canals'] = $_POST['svb_canals'];
$rce = explode();
$i = 1;
while ($i <= 9) {
$i++;
}
mysql_query(
'UPDATE `clan` SET `canals` = "' . mysql_real_escape_string(
$res['canals']
) . '" WHERE `id` = "' . $res['id'] . '" LIMIT 1'
);
} elseif (isset($_POST['svb_give_money']) && $tt[7][0] == 1) {
$mn = round((int)$_POST['svb_give_money'], 2);
if ($mn >= 0.01) {
if ($res['money1'] < $mn) {
echo '<font color="#FF0000"><b><3E> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font><br>';
} else {
$res['money1'] -= $mn;
$u->info['money'] += $mn;
echo '<font color="#FF0000"><b><3E><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> ' . $mn . ' <20><>.</b></font><br>';
mysql_query(
'UPDATE `clan` SET `money1` = "' . mysql_real_escape_string(
$res['money1']
) . '" WHERE `id` = "' . $res['id'] . '" LIMIT 1'
);
mysql_query(
'UPDATE `users` SET `money` = "' . mysql_real_escape_string(
$u->info['money']
) . '" WHERE `id` = "' . $u->info['id'] . '" LIMIT 1'
);
mysql_query(
'INSERT INTO `clan_operations` (`clan`,`time`,`type`,`text`,`val`,`uid`) VALUES ("' . $res['id'] . '","' . time(
) . '","1","' . $u->info['login'] . '","' . mysql_real_escape_string(
$mn
) . '","' . $u->info['id'] . '")'
);
}
}
} elseif (isset($_POST['svb_take_money']) && $tt[6][0] == 1) {
$mn = round((int)$_POST['svb_take_money'], 2);
if ($mn >= 0.01) {
if ($u->info['money'] < $mn) {
echo '<font color="#FF0000"><b><3E> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font><br>';
} else {
$res['money1'] += $mn;
$u->info['money'] -= $mn;
echo '<font color="#FF0000"><b><3E><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> ' . $mn . ' <20><>.</b></font><br>';
mysql_query(
'UPDATE `clan` SET `money1` = "' . mysql_real_escape_string(
$res['money1']
) . '" WHERE `id` = "' . $res['id'] . '" LIMIT 1'
);
mysql_query(
'UPDATE `users` SET `money` = "' . mysql_real_escape_string(
$u->info['money']
) . '" WHERE `id` = "' . $u->info['id'] . '" LIMIT 1'
);
mysql_query(
'INSERT INTO `clan_operations` (`clan`,`time`,`type`,`text`,`val`,`uid`) VALUES ("' . $res['id'] . '","' . time(
) . '","2","' . $u->info['login'] . '","' . mysql_real_escape_string(
$mn
) . '","' . $u->info['id'] . '")'
);
}
}
} elseif (isset($_POST['invite']) && ($_POST['invite'] == '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' || $_POST['invite'] == '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' || $_POST['invite'] == '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>') && $tt[11][0] == 1) {
if ($_POST['invite'] == "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" && $tt[10][0] == 1) {
$usr = mysql_fetch_array(
mysql_query(
'SELECT * FROM `users` WHERE `login` = "' . mysql_real_escape_string(
$_POST['logingo']
) . '" AND `clan` = "' . $res['id'] . '" LIMIT 1'
)
);
//$ttus = mysql_fetch_array(mysql_query('SELECT * FROM `clan_tituls` WHERE `id` = "'.$usr['clan_prava'].'" LIMIT 1'));
if (!isset($usr['id'])) {
echo '<font color="#FF0000"><b><3E><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD></b></font><br>';
} elseif ($tt['prioritet'] >= $utitl['prioritet']) {
echo '<font color="#FF0000"><b><3E><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font><br>';
} elseif ($u->info['money'] < $c_pr[1]) {
echo '<font color="#FF0000"><b><3E> <20><><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>. <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: ' . $c_pr[1] . ' <20><>.)</b></font><br>';
} elseif ($usr['clan_prava'] == 'galva' && $u->info['clan_prava'] != 'glava') {
echo '<font color="#FF0000"><b><3E><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font><br>';
} else {
$ar = $u->rem_itm_cl($usr, $res['id'], 8);
mysql_query(
'UPDATE `users` SET `palpro` = 0, `clan_prava` = 0, `clan` = 0, `mod_zvanie` = "", `align` = 0 WHERE `id` = "' . $usr['id'] . '" LIMIT 1'
);
$u->info['money'] -= $c_pr[1];
mysql_query(
'UPDATE `users` SET `money` = "' . $u->info['money'] . '" WHERE `id` = "' . $u->info['id'] . '" LIMIT 1'
);
$c_r .= '<font color="#FF0000"><b><3E><><EFBFBD><EFBFBD><EFBFBD> &quot;' . $usr['login'] . '&quot; <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD> <20><> ' . $c_pr[1] . ' <20><>.</b></font><br>';
$txt = '<27><><EFBFBD><EFBFBD><EFBFBD> <img src="https://img.new-combats.com/i/align/align' . $u->info['align'] . '.gif" style="vertical-align:bottom"><img src="https://img.new-combats.com/i/clan/' . $res['name'] . '.gif" style="vertical-align:bottom"><a href="javascript:void(0)">' . $u->info['login'] . '</a>[' . $u->info['level'] . ']<a target="_blank" title="<22><><EFBFBD>. <20> ' . $u->info['login'] . '" href="info/' . $u->info['id'] . '"><img src="https://img.new-combats.com/i/inf_' . $u->info['cityreg'] . '.gif"></a> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <img src="https://img.new-combats.com/i/align/align' . $u->info['align'] . '.gif" style="vertical-align:bottom"><img src="https://img.new-combats.com/i/clan/' . $res['name'] . '.gif" style="vertical-align:bottom"><a href="javascript:void(0)">' . $usr['login'] . '</a>[' . $usr['level'] . ']<a target="_blank" title="<22><><EFBFBD>. <20> ' . $usr['login'] . '" href="info/' . $usr['id'] . '"><img src="https://img.new-combats.com/i/inf_' . $usr['cityreg'] . '.gif"></a>';
mysql_query(
'INSERT INTO `clan_news` (`clan`,`time`,`ddmmyyyy`,`uid`,`ip`,`login`,`title`,`text`) VALUES (
"' . $res['id'] . '","' . time() . '","' . date(
'd.m.Y'
) . '","0","127.0.0.1","<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>","<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>","' . mysql_real_escape_string(
$txt
) . '"
)'
);
}
} elseif ($_POST['invite'] == "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" && $u->info['clan_prava'] == 'glava') {
$usr = mysql_fetch_array(
mysql_query(
'SELECT * FROM `users` WHERE `login` = "' . mysql_real_escape_string(
$_POST['logingo']
) . '" AND `clan` = "' . $res['id'] . '" AND `banned` = "0" LIMIT 1'
)
);
if (!isset($usr['id'])) {
echo '<font color="#FF0000"><b><3E><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD></b></font><br>';
} elseif ($u->info['money'] < $c_pr[2]) {
echo '<font color="#FF0000"><b><3E> <20><><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>. <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: ' . $c_pr[2] . ' <20><>.)</b></font><br>';
} elseif ($usr['clan_prava'] == 'galva') {
echo '<font color="#FF0000"><b><3E><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD></b></font><br>';
} else {
mysql_query(
'UPDATE `users` SET `clan_prava` = "glava", `clan` = "' . $res['id'] . '", `mod_zvanie` = "<22><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>", `align` = "' . $res['align'] . '" WHERE `id` = "' . $usr['id'] . '" LIMIT 1'
);
$u->info['money'] -= $c_pr[2];
mysql_query(
'UPDATE `users` SET `clan_prava` = "2", `mod_zvanie` = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>", `money` = "' . $u->info['money'] . '" WHERE `id` = "' . $u->info['id'] . '" LIMIT 1'
);
$c_r .= '<font color="#FF0000"><b><3E><><EFBFBD><EFBFBD><EFBFBD> &quot;' . $usr['login'] . '&quot; <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> ' . $c_pr[0] . ' <20><>.</b></font><br>';
$txt = '<27><><EFBFBD><EFBFBD><EFBFBD> <img src="https://img.new-combats.com/i/align/align' . $u->info['align'] . '.gif" style="vertical-align:bottom"><img src="https://img.new-combats.com/i/clan/' . $res['name'] . '.gif" style="vertical-align:bottom"><a href="javascript:void(0)">' . $u->info['login'] . '</a>[' . $u->info['level'] . ']<a target="_blank" title="<22><><EFBFBD>. <20> ' . $u->info['login'] . '" href="info/' . $u->info['id'] . '"><img src="https://img.new-combats.com/i/inf_' . $u->info['cityreg'] . '.gif"></a> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <img src="https://img.new-combats.com/i/align/align' . $u->info['align'] . '.gif" style="vertical-align:bottom"><img src="https://img.new-combats.com/i/clan/' . $res['name'] . '.gif" style="vertical-align:bottom"><a href="javascript:void(0)">' . $usr['login'] . '</a>[' . $usr['level'] . ']<a target="_blank" title="<22><><EFBFBD>. <20> ' . $usr['login'] . '" href="info/' . $usr['id'] . '"><img src="https://img.new-combats.com/i/inf_' . $usr['cityreg'] . '.gif"></a> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <b><3E><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD></b>';
mysql_query(
'INSERT INTO `clan_news` (`clan`,`time`,`ddmmyyyy`,`uid`,`ip`,`login`,`title`,`text`) VALUES (
"' . $res['id'] . '","' . time() . '","' . date(
'd.m.Y'
) . '","0","127.0.0.1","<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>","<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>","' . mysql_real_escape_string(
$txt
) . '"
)'
);
}
} elseif ($_POST['invite'] == "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" && $tt[9][0] == 1) {
$is_cl = mysql_fetch_row(
mysql_query("SELECT COUNT(*) FROM `users` WHERE `clan` = '" . $res['id'] . "'")
);
$usr = mysql_fetch_array(
mysql_query(
'SELECT * FROM `users` WHERE `login` = "' . mysql_real_escape_string(
$_POST['logingo']
) . '" AND `clan` != "' . $res['id'] . '" LIMIT 1'
)
);
if (!isset($usr['id'])) {
echo '<font color="#FF0000"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font><br>';
} elseif ($usr['clan_prava'] == 'galva') {
echo '<font color="#FF0000"><b><3E><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD></b></font><br>';
} elseif ($usr['palpro'] < time()) {
echo '<font color="#FF0000"><b><3E><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font><br>';
} elseif ($u->info['money'] < $c_pr[0]) {
echo '<font color="#FF0000"><b><3E> <20><><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>. <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD> (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: ' . $c_pr[0] . ' <20><>.)</b></font><br>';
} elseif ($usr['clan'] != '0' || $usr['align'] != '0') {
echo '<font color="#FF0000"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font><br>';
} elseif ($is_cl[0] >= $lvl_prava[$res['level']][0]) {
echo '<font color="#FF0000"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>.</b></font><br>';
} else {
mysql_query(
'UPDATE `users` SET `palpro` = "0",`clan_prava` = "2",`clan` = "' . $res['id'] . '",`mod_zvanie` = "",`align` = "' . $res['align'] . '" WHERE `id` = "' . $usr['id'] . '" LIMIT 1'
);
$u->info['money'] -= $c_pr[0];
mysql_query(
'UPDATE `users` SET `money` = "' . $u->info['money'] . '" WHERE `id` = "' . $u->info['id'] . '" LIMIT 1'
);
echo '<font color="#FF0000"><b><3E><><EFBFBD><EFBFBD><EFBFBD> &quot;' . $usr['login'] . '&quot; <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD> <20><> ' . $c_pr[0] . ' <20><>.</b></font><br>';
$txt = '<27><><EFBFBD><EFBFBD><EFBFBD> <img src="https://img.new-combats.com/i/align/align' . $u->info['align'] . '.gif" style="vertical-align:bottom"><img src="https://img.new-combats.com/i/clan/' . $res['name'] . '.gif" style="vertical-align:bottom"><a href="javascript:void(0)">' . $u->info['login'] . '</a>[' . $u->info['level'] . ']<a target="_blank" title="<22><><EFBFBD>. <20> ' . $u->info['login'] . '" href="info/' . $u->info['id'] . '"><img src="https://img.new-combats.com/i/inf_' . $u->info['cityreg'] . '.gif"></a> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <img src="https://img.new-combats.com/i/align/align' . $u->info['align'] . '.gif" style="vertical-align:bottom"><img src="https://img.new-combats.com/i/clan/' . $res['name'] . '.gif" style="vertical-align:bottom"><a href="javascript:void(0)">' . $usr['login'] . '</a>[' . $usr['level'] . ']<a target="_blank" title="<22><><EFBFBD>. <20> ' . $usr['login'] . '" href="info/' . $usr['id'] . '"><img src="https://img.new-combats.com/i/inf_' . $usr['cityreg'] . '.gif"></a>';
mysql_query(
'INSERT INTO `clan_news` (`clan`,`time`,`ddmmyyyy`,`uid`,`ip`,`login`,`title`,`text`) VALUES (
"' . $res['id'] . '","' . time() . '","' . date(
'd.m.Y'
) . '","0","127.0.0.1","<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>","<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>","' . mysql_real_escape_string(
$txt
) . '"
)'
);
}
}
}
?>
<? if ($tt[9][0] > 0) { ?>
<div style="border-bottom:1px solid #cac9c7;margin-bottom:5px;padding-bottom:5px;">
<input style="width:144px;" value="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD>"
onClick="openMod('<b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD></b>','<form action=\'main.php?clan&control&priem\' method=\'post\'><3E><><EFBFBD><EFBFBD><EFBFBD>: <input type=\'text\' style=\'width:244px;\' id=\'logingo\' name=\'logingo\'><br> <input style=\'float:right;\' type=\'submit\' name=\'invite\' value=\'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\'></form>');"
type="button"/>
(<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <?= $c_pr[0] ?><b> <20><>.</b>)<br/>
(<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)<br/>
</div>
<? } ?>
<? if ($tt[10][0] > 0) { ?>
<div style="border-bottom:1px solid #cac9c7;margin-bottom:5px;padding-bottom:5px;">
<input type="button" style="width:144px;" value="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD>"
onClick="openMod('<b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD></b>','<form action=\'main.php?clan&control&unpriem\' method=\'post\'><3E><><EFBFBD><EFBFBD><EFBFBD>: <input type=\'text\' style=\'width:244px;\' id=\'logingo\' name=\'logingo\'><br> <input style=\'float:right;\' type=\'submit\' name=\'invite\' value=\'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\'></form>');">
(<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <?= $c_pr[1] ?><b> <20><>.</b>)<br/>
</div>
<? } ?>
<? if ($u->info['clan_prava'] == 'glava') { ?>
<div style="border-bottom:1px solid #cac9c7;margin-bottom:5px;padding-bottom:5px;">
<input style="width:144px;" value="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>"
onClick="openMod('<b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD></b>','<form action=\'main.php?clan&control&newglava\' method=\'post\'><3E><><EFBFBD><EFBFBD><EFBFBD>: <input type=\'text\' style=\'width:244px;\' id=\'logingo\' name=\'logingo\'><br> <input style=\'float:right;\' type=\'submit\' name=\'invite\' value=\'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\'></form>');"
type="button"/> (<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)<br/>
</div>
<? } ?>
<? if ($tt[11][0] > 0) { ?>
<fieldset>
<legend><span class="legtitle"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></span></legend>
<?
if (isset($_GET['saveuser']) && $tt[11][0] == 1) {
//[rp_login] => 0 [rp_titul] => 0 [rp_zvanie] => [rp_canals] =>
$c_r = '';
$usr = mysql_fetch_array(
mysql_query(
'SELECT * FROM `users` WHERE `id` = "' . mysql_real_escape_string(
$_POST['rp_login']
) . '" AND `clan` = "' . $res['id'] . '" LIMIT 1'
)
);
if (isset($usr['id'])) {
if ($usr['clan_prava'] != 'glava') {
$tt = mysql_fetch_array(
mysql_query(
'SELECT * FROM `clan_tituls` WHERE `id` = "' . $usr['clan_prava'] . '" LIMIT 1'
)
);
if ($tt['prioritet'] < $utitl['prioritet']) {
//<2F><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>
if ((int)$_POST['rp_titul'] > 0) {
$tt_new = mysql_fetch_array(
mysql_query(
'SELECT * FROM `clan_tituls` WHERE `id` = "' . mysql_real_escape_string(
$_POST['rp_titul']
) . '" AND `clan` = "' . $res['id'] . '" LIMIT 1'
)
);
if (isset($tt_new['id'])) {
if ($tt_new['prioritet'] < $utitl['prioritet']) {
mysql_query(
'UPDATE `users` SET `clan_prava` = "' . $tt_new['id'] . '" WHERE `id` = "' . $usr['id'] . '" LIMIT 1'
);
$c_r .= '<font color="#FF0000"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> &quot;' . $usr['login'] . '&quot; <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> &quot;' . $tt_new['name'] . '&quot;</b></font><br>';
if ($tt_new['prioritet'] < $tt['prioritet']) {
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
$txt = '<27><><EFBFBD><EFBFBD><EFBFBD> <img src="https://img.new-combats.com/i/align/align' . $u->info['align'] . '.gif" style="vertical-align:bottom"><img src="https://img.new-combats.com/i/clan/' . $res['name'] . '.gif" style="vertical-align:bottom"><a href="javascript:void(0)">' . $u->info['login'] . '</a>[' . $u->info['level'] . ']<a target="_blank" title="<22><><EFBFBD>. <20> ' . $u->info['login'] . '" href="info/' . $u->info['id'] . '"><img src="https://img.new-combats.com/i/inf_' . $u->info['cityreg'] . '.gif"></a> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <img src="https://img.new-combats.com/i/align/align' . $u->info['align'] . '.gif" style="vertical-align:bottom"><img src="https://img.new-combats.com/i/clan/' . $res['name'] . '.gif" style="vertical-align:bottom"><a href="javascript:void(0)">' . $usr['login'] . '</a>[' . $usr['level'] . ']<a target="_blank" title="<22><><EFBFBD>. <20> ' . $usr['login'] . '" href="info/' . $usr['id'] . '"><img src="https://img.new-combats.com/i/inf_' . $usr['cityreg'] . '.gif"></a> <20><> &quot;<b>' . $tt_new['name'] . '</b>&quot;';
} else {
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
$txt = '<27><><EFBFBD><EFBFBD><EFBFBD> <img src="https://img.new-combats.com/i/align/align' . $u->info['align'] . '.gif" style="vertical-align:bottom"><img src="https://img.new-combats.com/i/clan/' . $res['name'] . '.gif" style="vertical-align:bottom"><a href="javascript:void(0)">' . $u->info['login'] . '</a>[' . $u->info['level'] . ']<a target="_blank" title="<22><><EFBFBD>. <20> ' . $u->info['login'] . '" href="info/' . $u->info['id'] . '"><img src="https://img.new-combats.com/i/inf_' . $u->info['cityreg'] . '.gif"></a> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> &quot;<b>' . $tt_new['name'] . '</b>&quot; <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <img src="https://img.new-combats.com/i/align/align' . $u->info['align'] . '.gif" style="vertical-align:bottom"><img src="https://img.new-combats.com/i/clan/' . $res['name'] . '.gif" style="vertical-align:bottom"><a href="javascript:void(0)">' . $usr['login'] . '</a>[' . $usr['level'] . ']<a target="_blank" title="<22><><EFBFBD>. <20> ' . $usr['login'] . '" href="info/' . $usr['id'] . '"><img src="https://img.new-combats.com/i/inf_' . $usr['cityreg'] . '.gif"></a>';
}
mysql_query(
'INSERT INTO `clan_news` (`clan`,`time`,`ddmmyyyy`,`uid`,`ip`,`login`,`title`,`text`) VALUES (
"' . $res['id'] . '","' . time() . '","' . date(
'd.m.Y'
) . '","0","127.0.0.1","<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>","<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>","' . mysql_real_escape_string(
$txt
) . '"
)'
);
} else {
$c_r .= '<font color="#FF0000"><b><3E><> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font><br>';
}
}
}
mysql_query(
'UPDATE `users` SET `mod_zvanie` = "' . mysql_real_escape_string(
$_POST['rp_zvanie']
) . '",`ccanals` = "' . mysql_real_escape_string(
$_POST['rp_canals']
) . '" WHERE `id` = "' . $usr['id'] . '" LIMIT 1'
);
$c_r .= '<font color="#FF0000"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font><br>';
} else {
$c_r .= '<font color="#FF0000"><b><3E><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font><br>';
}
} else {
$c_r .= '<font color="#FF0000"><b><3E><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font><br>';
}
} else {
$c_r .= '<font color="#FF0000"><b><3E><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD> ' . $res['name'] . '</b></font><br>';
}
}
echo $c_r;
?>
<form method="post" action="main.php?clan&control&saveuser">
<div style="border-bottom:1px solid #cac9c7;margin-bottom:5px;padding-bottom:5px;">
<div style="display:inline-block;width:150px;"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:</div>
<select onchange="changeLogin(this);" style="width:211px;" name="rp_login">
<option value="0" style="color:#CCCCCC"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></option>
<?
$sp = mysql_query(
'SELECT `id`,`login`,`clan_prava`,`ccanals`,`mod_zvanie` FROM `users` WHERE `clan` = "' . $res['id'] . '"'
);
while ($pl = mysql_fetch_array($sp)) {
$cp = mysql_fetch_array(
mysql_query(
'SELECT * FROM `clan_tituls` WHERE `id` = "' . mysql_real_escape_string(
$pl['clan_prava']
) . '" LIMIT 1'
)
);
if ($pl['clan_prava'] == 'glava') {
$cp['name'] = '<27><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>';
}
echo '<option id="slg' . $pl['id'] . '" value="' . $pl['id'] . '" vtitul="' . $cp['name'] . '" vzvanie="' . $pl['mod_zvanie'] . '" vcanals="' . $pl['ccanals'] . '">' . $pl['login'] . '</option>';
}
?></select>
</div>
<div style="border-bottom:1px solid #cac9c7;margin-bottom:5px;padding-bottom:5px;">
<div style="display:inline-block;width:150px;"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:</div>
<input id="sn_titul" style="width:211px;" disabled="disabled" name="rp_canals" type="text"/>
</div>
<div style="border-bottom:1px solid #cac9c7;margin-bottom:5px;padding-bottom:5px;">
<div style="display:inline-block;width:150px;"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:</div>
<select style="width:211px;" id="rp_titul" name="rp_titul">
<option value="0" style="color:#CCCCCC"><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></option>
<?
$sp = mysql_query(
'SELECT * FROM `clan_tituls` WHERE `clan` = "' . $res['id'] . '" AND `delete` = "0" LIMIT 25'
);
while ($pl = mysql_fetch_array($sp)) {
echo '<option value="' . $pl['id'] . '">' . $pl['name'] . '</option>';
}
?></select>
</div>
<div style="border-bottom:1px solid #cac9c7;margin-bottom:5px;padding-bottom:5px;">
<div style="display:inline-block;width:150px;"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></div>
</div>
<div style="border-bottom:1px solid #cac9c7;margin-bottom:5px;padding-bottom:5px;">
<div style="display:inline-block;width:150px;"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:</div>
<input style="width:211px;" id="sn_zvanie" name="rp_zvanie" type="text"/>
</div>
<div>
<div style="display:inline-block;width:150px;"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>:</div>
<input style="width:211px;" id="sn_canals" name="rp_canals" type="text"/><br/>
<small>(<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>. <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: 1,3,7. <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: 1-9)</small> <input name="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" type="submit" id="rp_save"
value="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"/>
</div>
</form>
</fieldset>
<form method="post" enctype="multipart/form-data" action="?clan&control&save_canals">
<div style="border-bottom:1px solid #cac9c7;margin-bottom:5px;padding-top:10px;padding-bottom:5px;">
<div style="display:inline-block;width:150px;"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>:</div>
<input style="width:211px;" id="svb_canals" value="<?= $res['canals'] ?>" name="svb_canals"
type="text"/> <input name="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" type="submit" id="rp_save" value="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"/><br/>
<small>(<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>. <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: 2,4,8. <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
1-9)</small>
</div>
</form>
<? } ?>
<? if ($tt[5][0] == 1) { ?>
<? if ($tt[7][0] > 0 && $res['money2'] > 0) { ?>
<fieldset>
<legend><span class="legtitle"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></span></legend>
<form action="?clan&control&buy_imgae" method="post" enctype="multipart/form-data">
<?
/* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
if (isset($_GET['gdload'])) {
echo '<b style="color:red"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>! <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> &quot;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>&quot;.</b><br>';
} elseif (isset($_POST['img_load1type'])) {
$data = [
'obraz' => $_FILES['load_image1'],
'sex' => round((int)$_POST['img_load3type']),
'w' => '',
'h' => '',
'type' => round((int)$_POST['img_load1type']),
'animation' => round((int)$_POST['img_load2type']),
];
$ers = '';
if ($data['sex'] != 0 && $data['sex'] != 1) {
$ers = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>! <20><> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!';
} elseif ($data['animation'] != 0 && $data['animation'] != 1) {
$ers = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>! <20><> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!';
} elseif ($data['type'] < 1 || $data['type'] > 18) {
$ers = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>! <20><> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!';
}
$types = [
1 => ['<27><><EFBFBD><EFBFBD><EFBFBD>', 120, 220, 100],
2 => ['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD><EFBFBD><EFBFBD>)', 120, 40, 15],
3 => ['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)', 120, 20, 5],
4 => ['<27><><EFBFBD><EFBFBD>', 60, 60, 25],
5 => ['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>', 60, 40, 25],
6 => ['<27><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>', 60, 60, 25],
7 => ['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>', 60, 60, 25],
8 => ['<27><><EFBFBD><EFBFBD><EFBFBD>', 60, 80, 25],
9 => ['<27><><EFBFBD><EFBFBD>', 60, 40, 25],
10 => ['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>', 60, 40, 25],
11 => ['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>', 60, 80, 25],
12 => ['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>', 60, 40, 25],
13 => ['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>1', 20, 20, 10],
14 => ['<27><><EFBFBD><EFBFBD><EFBFBD>', 60, 20, 25],
15 => ['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>', 60, 20, 25],
16 => ['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>', 244, 287, 5],
17 => ['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>2', 20, 20, 10],
18 => ['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>3', 20, 20, 10],
];
$data['price'] = $types[$data['type']][3];
if ($data['price'] > $res['money2']) {
$ers = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>! <20> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.';
}
if ($ers != '') {
echo '<b style="color:red">' . $ers . '</b><br>';
} else {
/* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
$imgname = md5(
rand(0, 1000000000000) . '&' . rand(0, 10000000) . '&' . microtime()
);
$upload = new Uploader('load_image1', $imgname);
$upload->setSavePath('clan_prw/');
$upload->setMaxFileSize(.35);
$upload->setDimensions($types[$data['type']][1], $types[$data['type']][2]);
if ($file = $upload->saveimg()) {
$size = getimagesize(
"https://new-combats.com/clan_prw/" . htmlspecialchars(
$file[1], null, 'cp1251'
)
);
$bag = 0;
if ($types[$data['type']][1] != $size[0] || $types[$data['type']][2] != $size[1]) {
$bag = 1;
}
mysql_query(
'INSERT INTO `reimage` (`login`,`uid`,`time`,`src`,`clan`,`type`,`sex`,`animation`,`w`,`h`,`bag`) VALUES (
"' . $u->info['login'] . '",
"' . $u->info['id'] . '","' . time() . '",
"' . mysql_real_escape_string(htmlspecialchars($file[1], null, 'cp1251')) . '",
"' . $u->info['clan'] . '",
"' . mysql_real_escape_string($data['type']) . '",
"' . mysql_real_escape_string($data['sex']) . '",
"' . mysql_real_escape_string($data['animation']) . '",
"' . mysql_real_escape_string((int)$size[0]) . '",
"' . mysql_real_escape_string((int)$size[1]) . '",
"' . $bag . '"
)'
);
$res['money2'] -= $data['price'];
mysql_query(
'UPDATE `clan` SET `money2` = "' . $res['money2'] . '" WHERE `id` = "' . $res['id'] . '" LIMIT 1'
);
die('<meta http-equiv="refresh" content="0; URL=/main.php?clan&control&gdload">');
} else {
echo '<b style="color:red">' . Uploader::$error . '</b><br>';
}
}
}
?>
<select name="img_load1type">
<option value="0"><b><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></option>
<option value="0"><b><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></option>
<option value="1">- <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> [<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: 120x220] (100 <EFBFBD><EFBFBD><EFBFBD>.)</option>
<option value="2">- <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>) [<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: 120x40] (15 <EFBFBD><EFBFBD><EFBFBD>.)</option>
<option value="3">- <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>) [<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: 120x20] (5 <EFBFBD><EFBFBD><EFBFBD>.)</option>
<option value="0"><b><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></option>
<option value="4">- <EFBFBD><EFBFBD><EFBFBD><EFBFBD> [<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: 60x60] (25 <EFBFBD><EFBFBD><EFBFBD>.)</option>
<option value="5">- <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> [<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: 60x40] (25 <EFBFBD><EFBFBD><EFBFBD>.)</option>
<option value="6">- <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> [<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: 60x60] (25 <EFBFBD><EFBFBD><EFBFBD>.)</option>
<option value="7">- <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> [<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: 60x60] (25 <EFBFBD><EFBFBD><EFBFBD>.)</option>
<option value="8">- <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> [<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: 60x80] (25 <EFBFBD><EFBFBD><EFBFBD>.)</option>
<option value="9">- <EFBFBD><EFBFBD><EFBFBD><EFBFBD> [<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: 60x40] (25 <EFBFBD><EFBFBD><EFBFBD>.)</option>
<option value="10">- <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> [<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: 60x40] (25 <EFBFBD><EFBFBD><EFBFBD>.)</option>
<option value="11">- <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> [<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: 60x80] (25 <EFBFBD><EFBFBD><EFBFBD>.)</option>
<option value="12">- <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> [<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: 60x40] (25 <EFBFBD><EFBFBD><EFBFBD>.)</option>
<option value="13">- <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD>1 [<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: 20x20] (10 <EFBFBD><EFBFBD><EFBFBD>.)</option>
<option value="17">- <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD>2 [<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: 20x20] (10 <EFBFBD><EFBFBD><EFBFBD>.)</option>
<option value="18">- <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD>3 [<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: 20x20] (10 <EFBFBD><EFBFBD><EFBFBD>.)</option>
<option value="14">- <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> [<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: 60x20] (25 <EFBFBD><EFBFBD><EFBFBD>.)</option>
<option value="15">- <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> [<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: 60x20] (25 <EFBFBD><EFBFBD><EFBFBD>.)</option>
<option value="16"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> [<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: 244x287] (5 <EFBFBD><EFBFBD><EFBFBD>.)
</option>
</select><br/>
<select name="img_load2type" id="img_load2type">
<option value="0"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)</option>
<option><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)(<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)</option>
</select><br/>
<select name="img_load3type" id="img_load3type">
<option value="-1"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD></option>
<option value="0"><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></option>
<option value="1"><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></option>
</select><br/>
<small style="color:red;"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 350 <EFBFBD><EFBFBD>!</small>
<br/>
<input type="file" name="load_image1" id="load_image1"/>
<button type="submit"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></button>
<br/>
<small style="color:red;"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!</small>
<small> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <a href="#"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></a>,
<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.</small>
</form>
</fieldset>
<? } ?>
<? if ($tt[7][0] > 0 && $u->info['clan'] == 17 || $u->info['clan'] == 1) { ?>
<fieldset>
<legend><span class="legtitle"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></span></legend>
<?
$p['m1'] = 1;
$srok = [15 => '15 <20><><EFBFBD><EFBFBD><EFBFBD>', 30 => '30 <20><><EFBFBD><EFBFBD><EFBFBD>', 60 => '<27><><EFBFBD><EFBFBD> <20><><EFBFBD>', 180 => '<27><><EFBFBD> <20><><EFBFBD><EFBFBD>', 360 => '<27><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>', 720 => '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>', 1440 => '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>', 4320 => '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>'];
if (isset($_GET['usemod'])) {
if (isset($_POST['usem1'])) {
include('moder/usem1.php');
} elseif (isset($_POST['teleport'])) {
include('moder/teleport.php');
}
}
?>
<table>
<a href="#"
onClick="openMod('<b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b>','<form action=\'main.php?<? echo 'clan=1&control&usemod=' . $code; ?>\' method=\'post\'><3E><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <input type=\'text\' style=\'width:144px;\' id=\'logingo\' name=\'logingo\'><br><3E><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: &nbsp; <select style=\'margin-left:2px;\' name=\'time\'><option value=\'5\'>5 <20><><EFBFBD><EFBFBD><EFBFBD></option><option value=\'30\'>30 <20><><EFBFBD><EFBFBD><EFBFBD></option><option value=\'60\'>1 <20><><EFBFBD></option><option value=\'4320\'>3 <20><><EFBFBD><EFBFBD><EFBFBD></option></select> <input type=\'submit\' name=\'usem1\' value=\'<27><><EFBFBD>-<2D><>\'></form>');"><img
src="https://img.new-combats.com/i/items/silence30.gif"
title="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"/></a>
&nbsp;
<a onClick="openMod('<b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b>','<form action=\'main.php?<? echo 'clan=1&control&usemod=' . $code; ?>\' method=\'post\'><3E><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <input type=\'text\' style=\'width:144px;\' id=\'logingo\' name=\'logingo\' value=\'<? echo $u->info['login']; ?>\'><br><3E><><EFBFBD><EFBFBD><EFBFBD>: &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=\'<27><><EFBFBD>-<2D><>\'></form>');"
href="#"><img src="https://img.new-combats.com/i/items/teleport.gif"
title="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"/></a></table>
</fieldset>
<? } ?>
<fieldset>
<legend><span class="legtitle"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></span></legend>
<form method="post" action="?clan&control&give_money">
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <?= $res['money1'] ?> <20><>. <? if ($res['money2'] > 0) { ?><br/>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <?= $res['money2'] ?> <20><><EFBFBD>.
<input type="button" value="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"/><? } ?><br/>
<? if ($tt[7][0] > 0) { ?>
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <input id="svb_give_money" name="svb_give_money" value="0" type="text"/>
<input type="submit" value=">>"/>
<? } ?>
</form>
<? if ($tt[6][0] > 0) { ?>
<form method="post" action="?clan&control&take_money">
<div style="border-top:1px solid #cac9c7;margin-top:5px;padding-top:5px;">
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <input id="svb_take_money" name="svb_take_money" value="0"
type="text"/> <input type="submit" value=">>"/>
<small>(<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <?= $u->info['money'] ?><EFBFBD><EFBFBD>.)</small>
</div>
</form>
<? } ?>
</fieldset>
<? } ?>
<? if ($tt[11][0] > 0 && $tt[3][0] == 1) { ?>
<form method="post" action="?clan&control&vipiska">
<div style="margin-top:5px;padding-top:5px;">
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <small>(<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 1<EFBFBD><EFBFBD>.)</small> <input id="svb_vipiska"
name="svb_vipiska"
value="<?= date(
'd.m.Y'
) ?>" type="text"/>
<input type="submit" value="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"/>
</div>
</form>
<? } ?>
</div>
2022-06-06 21:30:34 +00:00
<?
}elseif (isset($_GET['diplom']) && $tt[12][0] == 1) {
if ($tt[14][0] == 1) {
if (isset($_GET['clanwars'])) {
//RadioGroup1
$cln = mysql_fetch_array(
mysql_query(
'SELECT * FROM `clan` WHERE `name` = "' . mysql_real_escape_string($_POST['logingo']) . '" LIMIT 1'
)
);
if (isset($cln['id'])) {
if ($cln['id'] == $res['id']) {
$rn = [
'<font color="#FF0000"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> :-)</b></font><br>',
'<font color="#FF0000"><b><3E><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!</b></font><br>',
'<font color="#FF0000"><b><3E><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>!</b></font><br>'];
echo $rn[rand(0, 2)];
} elseif ($cln['join1'] == $res['join1'] && $res['join1'] > 0) {
echo '<font color="#FF0000"><b><3E><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font><br>';
} elseif ($cln['join2'] == $res['join2'] && $res['join2'] > 0) {
echo '<font color="#FF0000"><b><3E><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font><br>';
} else {
$lwar = mysql_fetch_array(
mysql_query(
'SELECT * FROM `clan_wars` WHERE `time_finish` > ' . time(
) . ' AND ((`clan1` = "' . $cln['id'] . '" AND `clan2` = "' . $res['id'] . '") OR (`clan2` = "' . $cln['id'] . '" AND `clan1` = "' . $res['id'] . '")) LIMIT 1 '
)
);
if (!isset($lwar['id'])) {
$mkr = 300;
$tpcw = 1;
if ($_POST['RadioGroup1'] == 2) {
$mkr = 600;
$tpcw = 2;
}
if (true == true) {
echo '<font color="#FF0000"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font><br>';
} elseif ($mkr > $res['money1']) {
echo '<font color="#FF0000"><b><3E> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font><br>';
} else {
mysql_query(
'UPDATE `clan` SET `money1` = `money1` - ' . $mkr . ' WHERE `id` = "' . $res['id'] . '" LIMIT 1'
);
mysql_query(
'INSERT INTO `clan_wars` (`clan1`,`clan2`,`time_start`,`time_finish`,`type`,`text`) VALUES ("' . $res['id'] . '","' . $cln['id'] . '","' . time(
) . '","' . (time() + 60 * 60 * 24 * 3) . '","' . $tpcw . '","<22><><EFBFBD><EFBFBD><EFBFBD>!")'
);
mysql_query(
'INSERT INTO `clan_operations` (`clan`,`time`,`type`,`text`,`val`,`uid`) VALUES ("' . $res['id'] . '","' . time(
) . '","4","' . $u->info['login'] . '","clanwar_' . $mkr . '_' . $cln['id'] . '","' . $u->info['id'] . '")'
);
echo '<font color="#FF0000"><b><3E><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> &quot;' . $cln['name'] . '&quot; <20><> ' . $mkr . ' <20><>.</b></font><br>';
}
} else {
echo '<font color="#FF0000"><b><3E><> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font><br>';
}
}
} else {
echo '<font color="#FF0000"><b><3E><><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font><br>';
}
}
}
?>
<br/><br/>
<fieldset>
<legend><span class="legtitle"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></span></legend>
<? if ($tt[14][0] == 1) { ?>
<input onClick="openMod('<b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD></b>','<form action=\'main.php?clan&diplom&clanwars\' method=\'post\'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>: <input type=\'text\' style=\'width:244px;\' id=\'logingo\' name=\'logingo\'><br><label><input type=\'radio\' name=\'RadioGroup1\' value=\'1\' id=\'RadioGroup1_0\'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> (300 <20><>.)</label><br><span style=\'float:left\'><label><input type=\'radio\' name=\'RadioGroup1\' value=\'2\' id=\'RadioGroup1_1\'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> (600<30><30>.)</label></span><input style=\'float:right;\' type=\'submit\' name=\'invite\' value=\'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\'></form>');"
type="submit" name="button" id="button" value="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>"/>
<? } ?>
<br/>
<div style="border:1px solid #CECECE;padding:10px;">
2022-06-06 21:30:34 +00:00
<?
$ms = '';
$sp = mysql_query(
'SELECT * FROM `clan_wars` WHERE (`clan1` = "' . $res['id'] . '" OR `clan2` = "' . $res['id'] . '") AND `time_finish` > "' . time(
) . '"'
);
while ($pl = mysql_fetch_array($sp)) {
$cln1 = mysql_fetch_array(
mysql_query('SELECT * FROM `clan` WHERE `id` = "' . $pl['clan1'] . '" LIMIT 1')
);
$cln2 = mysql_fetch_array(
mysql_query('SELECT * FROM `clan` WHERE `id` = "' . $pl['clan2'] . '" LIMIT 1')
);
$ms .= '<div style="border:1px solid #CECECE;padding:10px;"><3E><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <b><img style="vertical-align:bottom" src="https://img.new-combats.com/i/clan/' . $cln1['name_mini'] . '.gif">' . $cln1['name'] . '</b> <20> <b><img style="vertical-align:bottom" src="https://img.new-combats.com/i/clan/' . $cln2['name_mini'] . '.gif">' . $cln2['name'] . '</b>.<br>';
if ($pl['text'] != '') {
$ms .= '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>: <i>' . $pl['text'] . '</i><br>';
}
$ms .= '<27><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>: ' . date('d.m.Y H:i', $pl['time_start']) . ' - ' . date(
'd.m.Y H:i', $pl['time_finish']
) . '</div>';
}
if ($ms == '') {
?>
<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
<?
} else {
echo $ms;
}
?>
2022-06-06 21:30:34 +00:00
</div>
</fieldset>
<fieldset>
<legend><span class="legtitle"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></span></legend>
<? if ($tt[13][0] == 1) {
if (isset($_GET['joint']) && $tt[13][0] == 1) {
if ($_GET['joint'] == 1) {
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD>
$nm = htmlspecialchars($_POST['logingo'], null, 'cp1251');
$cnm = mysql_fetch_array(
mysql_query(
'SELECT * FROM `clan_joint` WHERE `name` = "' . mysql_real_escape_string(
$nm
) . '" AND `type` = "1" LIMIT 1'
)
);
if (isset($cnm['id'])) {
$cnmz = mysql_fetch_array(
mysql_query(
'SELECT * FROM `clan_join` WHERE `alians` = "' . $cnm['id'] . '" AND `clan` = "' . $res['id'] . '" AND `time_end` = "0" AND `time_start` = "0" AND `type` = "1" LIMIT 1'
)
);
if (isset($cnmz['id'])) {
echo '<font color="#FF0000"><b><3E><><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></b></font><br>';
} elseif ($res['join1'] > 0) {
echo '<font color="#FF0000"><b><3E><><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD></b></font><br>';
} else {
mysql_query(
'UPDATE `clan` SET `join1` = "' . $cnm['id'] . '" WHERE `id` = "' . $res['id'] . '" LIMIT 1'
);
echo '<font color="#FF0000"><b><3E><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD> &quot;' . $cnm['name'] . '&quot;</b></font><br>';
mysql_query(
'INSERT INTO `clan_join` (`clan`,`alians`,`time`,`type`) VALUES ("' . $res['id'] . '","' . $cnm['id'] . '","' . time(
) . '","1")'
);
}
} else {
echo '<font color="#FF0000"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font><br>';
}
} else {
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
$nm = htmlspecialchars($_POST['logingo'], null, 'cp1251');
$cnm = mysql_fetch_array(
mysql_query(
'SELECT * FROM `clan_joint` WHERE `name` = "' . mysql_real_escape_string(
$nm
) . '" AND `type` = "2" LIMIT 1'
)
);
if (isset($cnm['id'])) {
$cnmz = mysql_fetch_array(
mysql_query(
'SELECT * FROM `clan_join` WHERE `alians` = "' . $cnm['id'] . '" AND `clan` = "' . $res['id'] . '" AND `time_end` = "0" AND `time_start` = "0" AND `type` = "2" LIMIT 1'
)
);
if (isset($cnmz['id'])) {
echo '<font color="#FF0000"><b><3E><><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font><br>';
} elseif ($res['join1'] == 0) {
echo '<font color="#FF0000"><b><3E><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD></b></font><br>';
} elseif ($res['join2'] > 0) {
echo '<font color="#FF0000"><b><3E><><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font><br>';
} else {
mysql_query(
'UPDATE `clan` SET `join1` = "' . $cnm['id'] . '" WHERE `id` = "' . $res['id'] . '" LIMIT 1'
);
echo '<font color="#FF0000"><b><3E><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> &quot;' . $cnm['name'] . '&quot;</b></font><br>';
mysql_query(
'INSERT INTO `clan_join` (`clan`,`alians`,`time`,`type`) VALUES ("' . $res['id'] . '","' . $cnm['id'] . '","' . time(
) . '","2")'
);
}
} else {
echo '<font color="#FF0000"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font><br>';
}
}
} elseif (isset($_GET['newjoint']) && $tt[13][0] == 1) {
if ($_GET['newjoint'] == 1) {
//<2F><><EFBFBD><EFBFBD><EFBFBD>
if ($res['join1'] > 0) {
echo '<font color="#FF0000"><b><3E><><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD></b></font><br>';
} else {
$nm = htmlspecialchars($_POST['logingo'], null, 'cp1251');
if (str_replace(' ', '', str_replace(' ', '', $nm)) == '') {
echo '<font color="#FF0000"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD></b></font><br>';
} else {
$cnm = mysql_fetch_array(
mysql_query(
'SELECT `id` FROM `clan_joint` WHERE `name` = "' . mysql_real_escape_string(
$nm
) . '" LIMIT 1'
)
);
if (!isset($cnm['id'])) {
mysql_query(
'INSERT INTO `clan_joint` (`time_open`,`name`,`type`,`clan_open`,`clan_glava`) VALUES ("' . time(
) . '","' . mysql_real_escape_string(
$nm
) . '","1","' . $res['id'] . '","' . $res['id'] . '")'
);
$id = mysql_insert_id();
$res['join1'] = $id;
mysql_query(
'INSERT INTO `clan_join` (`clan`,`alians`,`time`,`type`,`time_start`) VALUES ("' . $res['id'] . '","' . $id . '","' . time(
) . '","1","' . time() . '")'
);
mysql_query(
'UPDATE `clan` SET `join1` = "' . $id . '" WHERE `id` = "' . $res['id'] . '" LIMIT 1'
);
echo '<font color="#FF0000"><b><3E><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> &quot;' . $nm . '&quot;</b></font><br>';
} else {
echo '<font color="#FF0000"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font><br>';
}
}
}
} else {
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
if ($res['join1'] == 0) {
echo '<font color="#FF0000"><b><3E><><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD></b></font><br>';
} elseif ($res['join2'] > 0) {
echo '<font color="#FF0000"><b><3E><><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font><br>';
} else {
$nm = htmlspecialchars($_POST['logingo'], null, 'cp1251');
if (str_replace(' ', '', str_replace(' ', '', $nm)) == '') {
echo '<font color="#FF0000"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font><br>';
} else {
$cnm = mysql_fetch_array(
mysql_query(
'SELECT `id` FROM `clan_joint` WHERE `name` = "' . mysql_real_escape_string(
$nm
) . '" LIMIT 1'
)
);
if (!isset($cnm['id'])) {
mysql_query(
'INSERT INTO `clan_joint` (`time_open`,`name`,`type`,`clan_open`,`clan_glava`) VALUES ("' . time(
) . '","' . mysql_real_escape_string(
$nm
) . '","2","' . $res['id'] . '","' . $res['id'] . '")'
);
$id = mysql_insert_id();
$res['join2'] = $id;
mysql_query(
'INSERT INTO `clan_join` (`clan`,`alians`,`time`,`type`,`time_start`) VALUES ("' . $res['id'] . '","' . $id . '","' . time(
) . '","2","' . time() . '")'
);
mysql_query(
'UPDATE `clan` SET `join2` = "' . $id . '" WHERE `id` = "' . $res['id'] . '" LIMIT 1'
);
echo '<font color="#FF0000"><b><3E><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> &quot;' . $nm . '&quot;</b></font><br>';
} else {
echo '<font color="#FF0000"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font><br>';
}
}
}
}
} elseif (isset($_GET['cancel']) && $tt[13][0] == 1) {
$zvn = mysql_fetch_array(
mysql_query(
'SELECT * FROM `clan_join` WHERE `id` = "' . mysql_real_escape_string(
$_GET['cancel']
) . '" AND `time_start` = "0" AND `time_end` = "0" LIMIT 1'
)
);
if (!isset($zvn['id'])) {
echo '<font color="#FF0000"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font><br>';
} else {
$rzv = '';
if ($zvn['clan'] == $res['id']) {
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
$szu = mysql_fetch_array(
mysql_query('SELECT * FROM `clan_joint` WHERE `id` = "' . $zvn['alians'] . '" LIMIT 1')
);
if ($szu['type'] == 1) {
$rzv = '<27><><EFBFBD><EFBFBD> <b><img style="vertical-align:bottom" src="https://img.new-combats.com/i/clan/' . $res['name_mini'] . '.gif">' . $res['name'] . '</b> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD> <b>' . $szu['name'] . '</b>.';
} else {
$rzv = '<27><><EFBFBD><EFBFBD> <b><img style="vertical-align:bottom" src="https://img.new-combats.com/i/clan/' . $res['name_mini'] . '.gif">' . $res['name'] . '</b> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <b>' . $szu['name'] . '</b>.';
}
} elseif ($zvn['alians'] == $res['join1']) {
//<2F><><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD>
$szu = mysql_fetch_array(
mysql_query('SELECT * FROM `clan_joint` WHERE `id` = "' . $zvn['alians'] . '" LIMIT 1')
);
$zvy = mysql_fetch_array(
mysql_query('SELECT * FROM `clan` WHERE `id` = "' . $zvn['clan'] . '" LIMIT 1')
);
$rzv = '<27><><EFBFBD><EFBFBD> <b>' . $szu['name'] . '</b> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <b><img style="vertical-align:bottom" src="https://img.new-combats.com/i/clan/' . $zvy['name_mini'] . '.gif">' . $zvy['name'] . '</b> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.';
} elseif ($zvn['alians'] == $res['join2']) {
//<2F><><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
$szu = mysql_fetch_array(
mysql_query('SELECT * FROM `clan_joint` WHERE `id` = "' . $zvn['alians'] . '" LIMIT 1')
);
$zvy = mysql_fetch_array(
mysql_query('SELECT * FROM `clan` WHERE `id` = "' . $zvn['clan'] . '" LIMIT 1')
);
$rzv = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <b>' . $szu['name'] . '</b> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <b><img style="vertical-align:bottom" src="https://img.new-combats.com/i/clan/' . $zvy['name_mini'] . '.gif">' . $zvy['name'] . '</b> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.';
}
if ($rzv != '') {
echo '<font color="#FF0000"><b>' . $rzv . '</b></font><br>';
mysql_query(
'UPDATE `clan_join` SET `time_end` = "' . time() . '" WHERE `id` = "' . $zvn['id'] . '"'
);
}
}
} elseif (isset($_GET['ok']) && $tt[13][0] == 1) {
$zvn = mysql_fetch_array(
mysql_query(
'SELECT * FROM `clan_join` WHERE `id` = "' . mysql_real_escape_string(
$_GET['ok']
) . '" AND `time_start` = "0" AND `time_end` = "0" LIMIT 1'
)
);
if (!isset($zvn['id'])) {
echo '<font color="#FF0000"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font><br>';
} else {
$rzv = '';
if ($zvn['alians'] == $res['join1']) {
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD>
$szu = mysql_fetch_array(
mysql_query('SELECT * FROM `clan_joint` WHERE `id` = "' . $zvn['alians'] . '" LIMIT 1')
);
$zvy = mysql_fetch_array(
mysql_query('SELECT * FROM `clan` WHERE `id` = "' . $zvn['clan'] . '" LIMIT 1')
);
$rzv = '<27><><EFBFBD><EFBFBD> <b>' . $szu['name'] . '</b> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <b><img style="vertical-align:bottom" src="https://img.new-combats.com/i/clan/' . $zvy['name_mini'] . '.gif">' . $zvy['name'] . '</b>.';
mysql_query(
'UPDATE `clan_join` SET `time_end` = "' . time(
) . '" WHERE `id` != "' . $zvn['id'] . '" AND `clan` = "' . $szu['clan'] . '" AND `type` = "1"'
);
//mysql_query('INSERT INTO `clan_join` (`clan`,`alians`,`time`,`type`) VALUES ("'.$res['id'].'","'.$szu['id'].'","'.time().'","1")');
mysql_query(
'UPDATE `clan` SET `join1` = "' . $zvn['alians'] . '" WHERE `id` = "' . $szu['id'] . '"'
);
} elseif ($zvn['alians'] == $res['join2']) {
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
$szu = mysql_fetch_array(
mysql_query('SELECT * FROM `clan_joint` WHERE `id` = "' . $zvn['alians'] . '" LIMIT 1')
);
$zvy = mysql_fetch_array(
mysql_query('SELECT * FROM `clan` WHERE `id` = "' . $zvn['clan'] . '" LIMIT 1')
);
$rzv = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <b>' . $szu['name'] . '</b> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <b><img style="vertical-align:bottom" src="https://img.new-combats.com/i/clan/' . $zvy['name_mini'] . '.gif">' . $zvy['name'] . '</b>.';
mysql_query(
'UPDATE `clan_join` SET `time_end` = "' . time(
) . '" WHERE `id` != "' . $zvn['id'] . '" AND `clan` = "' . $szu['clan'] . '" AND `type` = "2" AND `time_end` = "0"'
);
//mysql_query('INSERT INTO `clan_join` (`clan`,`alians`,`time`,`type`) VALUES ("'.$res['id'].'","'.$szu['id'].'","'.time().'","2")');
mysql_query(
'UPDATE `clan` SET `join2` = "' . $zvn['alians'] . '" WHERE `id` = "' . $szu['id'] . '"'
);
}
if ($rzv != '') {
echo '<font color="#FF0000"><b>' . $rzv . '</b></font><br>';
mysql_query(
'UPDATE `clan_join` SET `time_start` = "' . time(
) . '" WHERE `id` = "' . $zvn['id'] . '"'
);
}
}
}
?>
<? if ($res['join1'] == 0 && $res['level'] > 0) { ?>
<input type="submit" name="button" id="button" value="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>"
onClick="openMod('<b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></b>','<form action=\'main.php?clan&diplom&newjoint=1\' method=\'post\'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <input type=\'text\' style=\'width:244px;\' id=\'logingo\' name=\'logingo\'><br> <input style=\'float:right;\' type=\'submit\' name=\'invite\' value=\'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\'></form>');"/>
<input type="submit" name="button" id="button" value="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD>"
onClick="openMod('<b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD></b>','<form action=\'main.php?clan&diplom&joint=1\' method=\'post\'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <input type=\'text\' style=\'width:244px;\' id=\'logingo\' name=\'logingo\'><br> <input style=\'float:right;\' type=\'submit\' name=\'invite\' value=\'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\'></form>');"/>
<? }
if ($res['join2'] == 0 && $res['level'] > 0) { ?>
<input type="submit" name="button" id="button" value="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
onClick="openMod('<b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b>','<form action=\'main.php?clan&diplom&joint=2\' method=\'post\'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <input type=\'text\' style=\'width:244px;\' id=\'logingo\' name=\'logingo\'><br> <input style=\'float:right;\' type=\'submit\' name=\'invite\' value=\'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\'></form>');"/>
<input type="submit" name="button" id="button" value="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
onClick="openMod('<b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b>','<form action=\'main.php?clan&diplom&newjoint=2\' method=\'post\'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <input type=\'text\' style=\'width:244px;\' id=\'logingo\' name=\'logingo\'><br> <input style=\'float:right;\' type=\'submit\' name=\'invite\' value=\'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\'></form>');"/>
<br/><br/><? } ?><? } ?>
<div style="border:1px solid #CECECE;padding:10px;">
2022-06-06 21:30:34 +00:00
<?
$ms = '';
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
if ($res['join1'] > 0) {
$j1 = mysql_fetch_array(
mysql_query('SELECT * FROM `clan_joint` WHERE `id` = "' . $res['join1'] . '" LIMIT 1')
);
if (isset($j1['id'])) {
$ms .= '<div style="border-bottom:1px solid #cac9c7;margin-bottom:5px;padding-bottom:5px;">';
$ms .= '<27><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <b>' . $j1['name'] . '</b>.';
if ($j1['clan_glava'] != $res['id']) {
$ms .= ' <a href="main.php?clan&diplom&delclanme=1"><img title="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>" width="13" height="13" src="https://img.new-combats.com/i/clear.gif"></a>';
}
$ms .= '<Br><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>: ';
//$ms .= '<a href="javascript:void(0)"><img style="vertical-align:bottom" src="https://img.new-combats.com/i/clan/'.$res['name_mini'].'.gif">'.$res['name'].'</a>';
$i = 0;
if (isset($_GET['delclanme'])) {
if ($j1['clan_glava'] != $res['id'] && ($u->info['clan_prava'] == 'glava' || $u->info['admin'] > 0)) {
$dels = mysql_fetch_array(
mysql_query(
'SELECT * FROM `clan_join` WHERE `clan` = "' . $res['id'] . '" AND `alians` = "' . $j1['id'] . '" AND `time_end` = "0" AND `time_start` > 0 LIMIT 1'
)
);
if (isset($dels['id'])) {
mysql_query(
'UPDATE `clan` SET `join1` = "0" WHERE `id` = "' . $res['id'] . '" LIMIT 1'
);
mysql_query(
'UPDATE `clan_join` SET `time_end` = "' . time(
) . '" WHERE `id` = "' . $dels['id'] . '" LIMIT 1'
);
echo '<div><b><font color=red><3E><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> &quot;' . $j1['name'] . '&quot;</font></b></div>';
header('location: main.php?clan&diplom');
} else {
echo '<div><b><font color=red><3E><><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD></font></b></div>';
}
} else {
echo '<div><b><font color=red><3E><> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></font></b></div>';
}
} elseif ($j1['clan_glava'] == $res['id'] && ($u->info['clan_prava'] == 'glava' || $u->info['admin'] > 0)) {
if (isset($_GET['delclan'])) {
$delc = mysql_fetch_array(
mysql_query(
'SELECT * FROM `clan` WHERE `id` = "' . mysql_real_escape_string(
$_GET['delclan']
) . '" LIMIT 1'
)
);
$dels = mysql_fetch_array(
mysql_query(
'SELECT * FROM `clan_join` WHERE `clan` = "' . $delc['id'] . '" AND `alians` = "' . $j1['id'] . '" AND `time_end` = "0" AND `time_start` > 0 LIMIT 1'
)
);
if (isset($delc['id']) && isset($dels['id'])) {
if ($delc['id'] != $res['id']) {
mysql_query(
'UPDATE `clan` SET `join1` = "0" WHERE `id` = "' . $dels['id'] . '" LIMIT 1'
);
mysql_query(
'UPDATE `clan_join` SET `time_end` = "' . time(
) . '" WHERE `id` = "' . $dels['id'] . '" LIMIT 1'
);
echo '<div><b><font color=red><3E><><EFBFBD><EFBFBD> &quot;' . $delc['name'] . '&quot; <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD></font></b></div>';
header('location: main.php?clan&diplom');
} else {
echo '<div><b><font color=red><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></font></b></div>';
}
} else {
echo '<div><b><font color=red><3E><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD></font></b></div>';
}
}
}
$sp1 = mysql_query(
'SELECT `u`.*,`s`.* FROM `clan_join` AS `u` LEFT JOIN `clan` AS `s` ON `s`.`id` = `u`.`clan` WHERE `u`.`alians` = "' . $j1['id'] . '" AND `u`.`time_end` = "0" AND `u`.`time_start` > 0'
);
while ($pl1 = mysql_fetch_array($sp1)) {
if ($i > 0) {
$ms .= ',';
}
$ms .= ' <a href="javascript:void(0)"><img style="vertical-align:bottom" src="https://img.new-combats.com/i/clan/' . $pl1['name_mini'] . '.gif">' . $pl1['name'] . '</a>';
if ($j1['clan_glava'] == $res['id']) {
if ($res['id'] != $pl1['clan']) {
if ($u->info['clan_prava'] == 'glava' || $u->info['admin'] > 0) {
$ms .= ' <a title="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD>" href="main.php?clan&diplom&delclan=' . $pl1['clan'] . '"><img width="13" height="13" src="https://img.new-combats.com/i/clear.gif"></a>';
}
}
}
$i++;
}
if ($j1['clan_glava'] == $res['id'] && ($u->info['clan_prava'] == 'glava' || $u->info['admin'] > 0)) {
$ms .= '<br><3E><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>:<br>';
$cnls = '<i><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></i>';
//$ms .= '<form method="post" action="?clan&diplom&savecanals='.$res['id'].'"><a style="display:inline-block;width:210px;" href="javascript:void(0)"><img src="https://img.new-combats.com/i/clan/'.$res['name_mini'].'.gif">'.$res['name'].'</a> &nbsp; '.$cnls.' &nbsp; <input type="submit" value="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"></form>';
$sp1 = mysql_query(
'SELECT `u`.*,`s`.* FROM `clan_join` AS `u` LEFT JOIN `clan` AS `s` ON `s`.`id` = `u`.`clan` WHERE `u`.`alians` = "' . $j1['id'] . '" AND `u`.`time_end` = "0" AND `u`.`time_start` > 0'
);
while ($pl1 = mysql_fetch_array($sp1)) {
$ms .= '<form method="post" action="?clan&diplom&savecanals=' . $pl1['id'] . '"><a style="display:inline-block;width:210px;" href="javascript:void(0)"><img src="https://img.new-combats.com/i/clan/' . $pl1['name_mini'] . '.gif">' . $pl1['name'] . '</a> &nbsp; ' . $cnls . ' &nbsp; <input type="submit" value="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"></form>';
}
}
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>
$ms .= '</div>';
}
}
if ($res['join2'] > 0) {
$j1 = mysql_fetch_array(
mysql_query('SELECT * FROM `clan_joint` WHERE `id` = "' . $res['join2'] . '" LIMIT 1')
);
if (isset($j1['id'])) {
$ms .= '<div style="border-bottom:1px solid #cac9c7;margin-bottom:5px;padding-bottom:5px;">';
$ms .= '<27><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <b>' . $j1['name'] . '</b>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: ';
//$ms .= '<a href="javascript:void(0)"><img style="vertical-align:bottom" src="https://img.new-combats.com/i/clan/'.$res['name_mini'].'.gif">'.$res['name'].'</a>';
$sp1 = mysql_query(
'SELECT `u`.*,`s`.* FROM `clan_join` AS `u` LEFT JOIN `clan` AS `s` ON `s`.`id` = `u`.`clan` WHERE `u`.`alians` = "' . $j1['id'] . '" AND `u`.`time_end` = "0" AND `u`.`time_start` > 0'
);
$i = 0;
while ($pl1 = mysql_fetch_array($sp1)) {
if ($i > 0) {
$ms .= ', ';
}
$ms .= '<a href="javascript:void(0)"><img style="vertical-align:bottom" src="https://img.new-combats.com/i/clan/' . $pl1['name_mini'] . '.gif">' . $pl1['name'] . '</a>';
$i++;
}
$ms .= '<br><3E><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.<br>';
$ms .= '</div>';
}
}
//<2F><><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
if ($ms == '') {
?>
<center><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.</center>
<? } else {
echo $ms;
} ?>
2022-06-06 21:30:34 +00:00
</div>
<? if ($tt[13][0] == 1) { ?>
<br/>
<center><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></center>
<br/>
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td width="50%" align="center" valign="top">
<div style="border:1px solid #CECECE;padding:10px;">
<a href="javascript:void(0)"><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></a>
<br/>
<br/>
<?
$ms = '';
$sp = mysql_query(
'SELECT * FROM `clan_join` WHERE `clan` = "' . mysql_real_escape_string(
$res['id']
) . '" AND `time_start` = "0" AND `time_end` = "0" AND `type` = "1"'
);
while ($pl = mysql_fetch_array($sp)) {
$suz = mysql_fetch_array(
mysql_query(
'SELECT * FROM `clan_joint` WHERE `id` = "' . $pl['alians'] . '" LIMIT 1'
)
);
$ms .= '<div style="border-bottom:1px solid #cac9c7;text-align:left;margin-bottom:5px;padding-bottom:5px;"><3E><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD> <b>' . $suz['name'] . '</b>.<br><div style="float:left;"><3E><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: ' . date(
'd.m.Y H:i', $pl['time']
) . '</div><a style="float:right;" href="?clan&diplom&cancel=' . $pl['id'] . '"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></a><br></div>';
}
if ($ms == '') {
?>
<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<? } else {
echo $ms;
} ?>
</div>
</td>
<td align="center" valign="top">
<div style="border:1px solid #CECECE;padding:10px;">
<a href="javascript:void(0)"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD></a>
<br/>
<br/>
<?
$ms = '';
$sp = mysql_query(
'SELECT * FROM `clan_join` WHERE `alians` = "' . mysql_real_escape_string(
$res['join1']
) . '" AND `time_start` = "0" AND `time_end` = "0" AND `type` = "1"'
);
while ($pl = mysql_fetch_array($sp)) {
$suz = mysql_fetch_array(
mysql_query(
'SELECT * FROM `clan_joint` WHERE `id` = "' . $pl['alians'] . '" LIMIT 1'
)
);
$clz = mysql_fetch_array(
mysql_query('SELECT * FROM `clan` WHERE `id` = "' . $pl['clan'] . '" LIMIT 1')
);
$ms .= '<div style="border-bottom:1px solid #cac9c7;text-align:left;margin-bottom:5px;padding-bottom:5px;"><3E><><EFBFBD><EFBFBD> <a href="javascript:void(0)"><img style="vertical-align:bottom" src="https://img.new-combats.com/i/clan/' . $clz['name_mini'] . '.gif">' . $clz['name'] . '</a> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD> <20><><EFBFBD><EFBFBD> <b>' . $suz['name'] . '</b>.<br><div style="float:left;"><3E><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: ' . date(
'd.m.Y H:i', $pl['time']
) . '</div><div style="float:right;"><a href="?clan&diplom&ok=' . $pl['id'] . '"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></a> &nbsp; <a href="?clan&diplom&cancel=' . $pl['id'] . '"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></a></div><br></div>';
}
if ($ms == '') {
?>
<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<? } else {
echo $ms;
} ?>
</div>
</td>
</tr>
</table>
<br/>
<center><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></center>
<br/>
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td width="50%" align="center" valign="top">
<div style="border:1px solid #CECECE;padding:10px;">
<a href="javascript:void(0)"><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></a>
<br/>
<br/>
<?
$ms = '';
$sp = mysql_query(
'SELECT * FROM `clan_join` WHERE `clan` = "' . mysql_real_escape_string(
$res['id']
) . '" AND `time_start` = "0" AND `time_end` = "0" AND `type` = "2"'
);
while ($pl = mysql_fetch_array($sp)) {
$suz = mysql_fetch_array(
mysql_query(
'SELECT * FROM `clan_joint` WHERE `id` = "' . $pl['alians'] . '" LIMIT 1'
)
);
$ms .= '<div style="border-bottom:1px solid #cac9c7;text-align:left;margin-bottom:5px;padding-bottom:5px;"><3E><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <b>' . $suz['name'] . '</b>.<br><div style="float:left;"><3E><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: ' . date(
'd.m.Y H:i', $pl['time']
) . '</div><a style="float:right;" href="?clan&diplom&cancel=' . $pl['id'] . '"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></a><br></div>';
}
if ($ms == '') {
?>
<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<? } else {
echo $ms;
} ?>
</div>
</td>
<td align="center" valign="top">
<div style="border:1px solid #CECECE;padding:10px;">
<a href="javascript:void(0)"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD></a>
<br/>
<br/>
<?
$ms = '';
$sp = mysql_query(
'SELECT * FROM `clan_join` WHERE `alians` = "' . mysql_real_escape_string(
$res['join2']
) . '" AND `time_start` = "0" AND `time_end` = "0" AND `type` = "2"'
);
while ($pl = mysql_fetch_array($sp)) {
$suz = mysql_fetch_array(
mysql_query(
'SELECT * FROM `clan_joint` WHERE `id` = "' . $pl['alians'] . '" LIMIT 1'
)
);
$clz = mysql_fetch_array(
mysql_query('SELECT * FROM `clan` WHERE `id` = "' . $pl['clan'] . '" LIMIT 1')
);
$ms .= '<div style="border-bottom:1px solid #cac9c7;text-align:left;margin-bottom:5px;padding-bottom:5px;"><3E><><EFBFBD><EFBFBD> <a href="javascript:void(0)"><img style="vertical-align:bottom" src="https://img.new-combats.com/i/clan/' . $clz['name_mini'] . '.gif">' . $clz['name'] . '</a> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <b>' . $suz['name'] . '</b>.<br><div style="float:left;"><3E><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: ' . date(
'd.m.Y H:i', $pl['time']
) . '</div><div style="float:right;"><a href="?clan&diplom&ok=' . $pl['id'] . '"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></a> &nbsp; <a href="?clan&diplom&cancel=' . $pl['id'] . '"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></a></div><br></div>';
}
if ($ms == '') {
?>
<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<? } else {
echo $ms;
} ?>
</div>
</td>
</tr>
</table>
<? } ?>
</fieldset>
<? } elseif (isset($_GET['deposit'])) {
$itmc = mysql_fetch_array(
mysql_query(
'SELECT COUNT(`id`) FROM `items_users` WHERE `uid` = "-21' . $res['id'] . '" AND `delete` = 0 LIMIT 1'
)
);
$itmc = $itmc[0];
$itms = mysql_fetch_array(
mysql_query(
'SELECT `iu`.*,`im`.* FROM `items_users` AS `iu` LEFT JOIN `items_main` AS `im` ON `iu`.`item_id` = `im`.`id` WHERE `iu`.`uid` >= 0 AND `iu`.`delete` = "0"
AND `iu`.`id` = "' . mysql_real_escape_string($_GET['ungive_itm']) . '" LIMIT 1'
)
);
$ps = $u->lookStats($itms['data']);
$ps['cl'] = explode('#', $ps['toclan']);
$use_s = $ps['cl'][1];
if (isset($_GET['ungive_itm']) && $ps['cl'][0] == $res['id'] && ($tt[14][0] == 1 || ($u->info['id'] == $use_s))) {
$itm = mysql_fetch_array(
mysql_query(
'SELECT `iu`.*,`im`.* FROM `items_users` AS `iu` LEFT JOIN `items_main` AS `im` ON `iu`.`item_id` = `im`.`id` WHERE `iu`.`uid` >= 0 AND `iu`.`delete` = "0"
AND `iu`.`id` = "' . mysql_real_escape_string($_GET['ungive_itm']) . '" LIMIT 1'
)
);
if (isset($itm['id'])) {
$btlud = mysql_fetch_array(
mysql_query('SELECT `id`,`battle` FROM `users` WHERE `id` = "' . $itm['uid'] . '" LIMIT 1')
);
if ($u->testBattle($btlud['battle']) == true) {
echo '<font color="#FF0000"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD></b></font><br>';
} else {
echo $u->ungive_itm_cl($_GET['ungive_itm'], $u->info, $res['id']);
}
}
} elseif (isset($_GET['take_itm']) && $tt[4][0] == 1) {
$itm = mysql_fetch_array(
mysql_query(
'SELECT `iu`.*,`im`.* FROM `items_users` AS `iu` LEFT JOIN `items_main` AS `im` ON `iu`.`item_id` = `im`.`id` WHERE `iu`.`uid`="-21' . $res['id'] . '" AND `iu`.`delete`="0"
AND `iu`.`id` = "' . mysql_real_escape_string($_GET['take_itm']) . '" LIMIT 1'
)
);
if (isset($itm['id'])) {
echo $u->take_itm_cl($_GET['take_itm'], $u->info, $res['id']);
}
} elseif (isset($_GET['give_itm'])) {
$itm = mysql_fetch_array(
mysql_query(
'SELECT `iu`.*,`im`.* FROM `items_users` AS `iu` LEFT JOIN `items_main` AS `im` ON `iu`.`item_id` = `im`.`id` WHERE `iu`.`uid`="' . $u->info['id'] . '" AND `iu`.`delete`="0" AND `iu`.`inOdet`="0" AND `iu`.`inShop`="0" AND `im`.`inslot` > 0 AND `iu`.`gift` = "" AND `iu`.`data` NOT LIKE "%frompisher=%"
AND `iu`.`id` = "' . mysql_real_escape_string($_GET['give_itm']) . '" LIMIT 1'
)
);
if ($itmc >= $lvl_prava[$res['level']][5]) {
echo '<font color="#FF0000"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font><br>';
} elseif (isset($itm['id'])) {
echo $u->set_cl_item($_GET['give_itm'], $u->info, $res['id']);
}
}
if ($tt[4][0] == 1) {
$itm_clan = $u->genInv(
66,
'(`iu`.`uid` = "-21' . $u->info['clan'] . '" OR `iu`.`data` LIKE "%toclan=' . $u->info['clan'] . '#%") AND `iu`.`delete` = 0 AND `iu`.`inShop` = 0 ORDER BY `lastUPD` DESC'
);
} else {
$itm_clan[2] = '<br /><br /><center><3E> <20><><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></center>';
}
$itm_user = $u->genInv(
65,
'`iu`.`uid` = ' . $u->info['id'] . ' AND `iu`.`delete` = 0 AND `iu`.`inOdet` = 0 AND `iu`.`inShop` = 0 AND `im`.`inslot` > 0 AND `iu`.`gift` = "" AND `iu`.`data` NOT LIKE "%frompisher=%" ORDER BY `lastUPD` DESC'
);
?>
<div class="box visible">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50%" valign="top">
<fieldset style="margin:0;padding:0">
<legend><span
class="legtitle"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> : <?= $itmc ?>/<?= $lvl_prava[$res['level']][5] ?>)</span>
</legend>
<? if ($itm_clan[2] != '') { ?>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<?= $itm_clan[2] ?>
</table>
<? } else {
echo '<center><br /><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><br /><br /></center>';
} ?>
</fieldset>
</td>
<td width="50%" valign="top">
<fieldset style="margin:0;padding:0">
<legend><span class="legtitle"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></span></legend>
<? if ($itm_user[2] != '') { ?>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<?= $itm_user[2] ?>
</table>
<? } else {
echo '<center><br /><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><br /><br /></center>';
} ?>
</fieldset>
</td>
</tr>
</table>
</div>
<? }elseif (isset($_GET['titul']) && $tt[11][0] == 1) { ?>
<script>
function editTitul(id) {
if ($('#edpnltitul' + id).css('display') == 'none') {
$('#edpnltitul' + id).css({'display': ''});
} else {
$('#edpnltitul' + id).css({'display': 'none'});
}
}
</script>
<div class="box visible">
<?
if (isset($_POST['tituladd'])) {
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>
$tc = mysql_fetch_array(
mysql_query(
'SELECT COUNT(*) FROM `clan_tituls` WHERE `clan` = "' . $res['id'] . '" AND `delete` = "0" LIMIT 25'
)
);
if ($tc[0] >= 20) {
echo '<font color="#FF0000"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> 25-<2D><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font><br>';
} else {
$nm = htmlspecialchars($_POST['tituladd'], null, 'cp1251');
if (str_replace(' ', '', str_replace(' ', '', $nm)) == '') {
echo '<font color="#FF0000"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font><br>';
} else {
mysql_query(
'INSERT INTO `clan_tituls` (`clan`,`user_add`,`time_add`,`name`) VALUES ("' . $res['id'] . '","' . $u->info['id'] . '","' . time(
) . '","' . mysql_real_escape_string($nm) . '")'
);
echo '<font color="#FF0000"><b><3E><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font><br>';
}
}
} elseif (isset($_GET['save'])) {
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>
$tc = mysql_fetch_array(
mysql_query(
'SELECT * FROM `clan_tituls` WHERE `clan` = "' . $res['id'] . '" AND `id` = "' . mysql_real_escape_string(
$_GET['save']
) . '" AND `delete` = "0" LIMIT 1'
)
);
if (isset($tc['id'])) {
$tc['info'] = htmlspecialchars($_POST['t_info'], null, 'cp1251');
$i = 1;
$tc['canals'] = '';
while ($i <= 9) {
if ($_POST['t_klan' . $i]) {
$tc['canals'] .= '1';
} else {
$tc['canals'] .= '0';
}
$i++;
}
$i = 0;
$tc['prava'] = '';
while ($i <= 20) {
if ($_POST['t_tr' . $i]) {
$tc['prava'] .= '1';
} else {
$tc['prava'] .= '0';
}
$i++;
}
$_POST['colorsp'] = preg_replace('/[^a-z<>-<2D><>0-9]/i', '', $_POST['colorsp']);
mysql_query(
'UPDATE `clan_tituls` SET `info` = "' . mysql_real_escape_string(
$tc['info']
) . '", `color` = "' . mysql_real_escape_string(
$_POST['colorsp']
) . '", `canals` = "' . $tc['canals'] . '", `prava` = "' . $tc['prava'] . '" WHERE `id` = "' . $tc['id'] . '" LIMIT 1'
);
echo '<font color="#FF0000"><b><3E><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font><br>';
} else {
echo '<font color="#FF0000"><b><3E><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font><br>';
}
} elseif (isset($_GET['delete'])) {
$tc = mysql_fetch_array(
mysql_query(
'SELECT * FROM `clan_tituls` WHERE `clan` = "' . $res['id'] . '" AND `id` = "' . mysql_real_escape_string(
$_GET['delete']
) . '" AND `delete` = "0" LIMIT 1'
)
);
if (isset($tc['id'])) {
mysql_query(
'UPDATE `clan_tituls` SET `delete` = "' . $u->info['id'] . '" WHERE `id` = "' . $tc['id'] . '" LIMIT 1'
);
echo '<font color="#FF0000"><b><3E><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font><br>';
} else {
echo '<font color="#FF0000"><b><3E><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font><br>';
}
}
?>
<div id="clrttl" style="display:none">
<br/><br/>
<center><a onclick="ssclrttl()" href="javascript:void(0)"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> - <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></a></center>
<br/><br/>
<table width="100%" cellpadding="10" cellspacing="5">
<tbody>
<tr>
<td>000000</td>
<td>000033</td>
<td>000066</td>
<td>000099</td>
<td>0000cc</td>
<td>0000ff</td>
</tr>
<tr>
<td bgcolor="#000000"></td>
<td bgcolor="#000033"></td>
<td bgcolor="#000066"></td>
<td bgcolor="#000099"></td>
<td bgcolor="#0000cc"></td>
<td bgcolor="#0000ff"></td>
</tr>
<tr>
<td>003300</td>
<td>003333</td>
<td>003366</td>
<td>003399</td>
<td>0033cc</td>
<td>0033ff</td>
</tr>
<tr>
<td bgcolor="#003300"></td>
<td bgcolor="#003333"></td>
<td bgcolor="#003366"></td>
<td bgcolor="#003399"></td>
<td bgcolor="#0033cc"></td>
<td bgcolor="#0033ff"></td>
</tr>
<tr>
<td>006600</td>
<td>006633</td>
<td>006666</td>
<td>006699</td>
<td>0066cc</td>
<td>0066ff</td>
</tr>
<tr>
<td bgcolor="#006600"></td>
<td bgcolor="#006633"></td>
<td bgcolor="#006666"></td>
<td bgcolor="#006699"></td>
<td bgcolor="#0066cc"></td>
<td bgcolor="#0066ff"></td>
</tr>
<tr>
<td>009900</td>
<td>009933</td>
<td>009966</td>
<td>009999</td>
<td>0099cc</td>
<td>0099ff</td>
</tr>
<tr>
<td bgcolor="#009900"></td>
<td bgcolor="#009933"></td>
<td bgcolor="#009966"></td>
<td bgcolor="#009999"></td>
<td bgcolor="#0099cc"></td>
<td bgcolor="#0099ff"></td>
</tr>
<tr>
<td>00cc00</td>
<td>00cc33</td>
<td>00cc66</td>
<td>00cc99</td>
<td>00cccc</td>
<td>00ccff</td>
</tr>
<tr>
<td bgcolor="#00cc00"></td>
<td bgcolor="#00cc33"></td>
<td bgcolor="#00cc66"></td>
<td bgcolor="#00cc99"></td>
<td bgcolor="#00cccc"></td>
<td bgcolor="#00ccff"></td>
</tr>
<tr>
<td>00ff00</td>
<td>00ff33</td>
<td>00ff66</td>
<td>00ff99</td>
<td>00ffcc</td>
<td>00ffff</td>
</tr>
<tr>
<td bgcolor="#00ff00"></td>
<td bgcolor="#00ff33"></td>
<td bgcolor="#00ff66"></td>
<td bgcolor="#00ff99"></td>
<td bgcolor="#00ffcc"></td>
<td bgcolor="#00ffff"></td>
</tr>
<tr>
<td>330000</td>
<td>330033</td>
<td>330066</td>
<td>330099</td>
<td>3300cc</td>
<td>3300ff</td>
</tr>
<tr>
<td bgcolor="#330000"></td>
<td bgcolor="#330033"></td>
<td bgcolor="#330066"></td>
<td bgcolor="#330099"></td>
<td bgcolor="#3300cc"></td>
<td bgcolor="#3300ff"></td>
</tr>
<tr>
<td>333300</td>
<td>333333</td>
<td>333366</td>
<td>333399</td>
<td>3333cc</td>
<td>3333ff</td>
</tr>
<tr>
<td bgcolor="#333300"></td>
<td bgcolor="#333333"></td>
<td bgcolor="#333366"></td>
<td bgcolor="#333399"></td>
<td bgcolor="#3333cc"></td>
<td bgcolor="#3333ff"></td>
</tr>
<tr>
<td>336600</td>
<td>336633</td>
<td>336666</td>
<td>336699</td>
<td>3366cc</td>
<td>3366ff</td>
</tr>
<tr>
<td bgcolor="#336600"></td>
<td bgcolor="#336633"></td>
<td bgcolor="#336666"></td>
<td bgcolor="#336699"></td>
<td bgcolor="#3366cc"></td>
<td bgcolor="#3366ff"></td>
</tr>
<tr>
<td>339900</td>
<td>339933</td>
<td>339966</td>
<td>339999</td>
<td>3399cc</td>
<td>3399ff</td>
</tr>
<tr>
<td bgcolor="#339900"></td>
<td bgcolor="#339933"></td>
<td bgcolor="#339966"></td>
<td bgcolor="#339999"></td>
<td bgcolor="#3399cc"></td>
<td bgcolor="#3399ff"></td>
</tr>
<tr>
<td>33cc00</td>
<td>33cc33</td>
<td>33cc66</td>
<td>33cc99</td>
<td>33cccc</td>
<td>33ccff</td>
</tr>
<tr>
<td bgcolor="#33cc00"></td>
<td bgcolor="#33cc33"></td>
<td bgcolor="#33cc66"></td>
<td bgcolor="#33cc99"></td>
<td bgcolor="#33cccc"></td>
<td bgcolor="#33ccff"></td>
</tr>
<tr>
<td>33ff00</td>
<td>33ff33</td>
<td>33ff66</td>
<td>33ff99</td>
<td>33ffcc</td>
<td>33ffff</td>
</tr>
<tr>
<td bgcolor="#33ff00"></td>
<td bgcolor="#33ff33"></td>
<td bgcolor="#33ff66"></td>
<td bgcolor="#33ff99"></td>
<td bgcolor="#33ffcc"></td>
<td bgcolor="#33ffff"></td>
</tr>
<tr>
<td>660000</td>
<td>660033</td>
<td>660066</td>
<td>660099</td>
<td>6600cc</td>
<td>6600ff</td>
</tr>
<tr>
<td bgcolor="#660000"></td>
<td bgcolor="#660033"></td>
<td bgcolor="#660066"></td>
<td bgcolor="#660099"></td>
<td bgcolor="#6600cc"></td>
<td bgcolor="#6600ff"></td>
</tr>
<tr>
<td>663300</td>
<td>663333</td>
<td>663366</td>
<td>663399</td>
<td>6633cc</td>
<td>6633ff</td>
</tr>
<tr>
<td bgcolor="#663300"></td>
<td bgcolor="#663333"></td>
<td bgcolor="#663366"></td>
<td bgcolor="#663399"></td>
<td bgcolor="#6633cc"></td>
<td bgcolor="#6633ff"></td>
</tr>
<tr>
<td>666600</td>
<td>666633</td>
<td>666666</td>
<td>666699</td>
<td>6666cc</td>
<td>6666ff</td>
</tr>
<tr>
<td bgcolor="#666600"></td>
<td bgcolor="#666633"></td>
<td bgcolor="#666666"></td>
<td bgcolor="#666699"></td>
<td bgcolor="#6666cc"></td>
<td bgcolor="#6666ff"></td>
</tr>
<tr>
<td>669900</td>
<td>669933</td>
<td>669966</td>
<td>669999</td>
<td>6699cc</td>
<td>6699ff</td>
</tr>
<tr>
<td bgcolor="#669900"></td>
<td bgcolor="#669933"></td>
<td bgcolor="#669966"></td>
<td bgcolor="#669999"></td>
<td bgcolor="#6699cc"></td>
<td bgcolor="#6699ff"></td>
</tr>
<tr>
<td>66cc00</td>
<td>66cc33</td>
<td>66cc66</td>
<td>66cc99</td>
<td>66cccc</td>
<td>66ccff</td>
</tr>
<tr>
<td bgcolor="#66cc00"></td>
<td bgcolor="#66cc33"></td>
<td bgcolor="#66cc66"></td>
<td bgcolor="#66cc99"></td>
<td bgcolor="#66cccc"></td>
<td bgcolor="#66ccff"></td>
</tr>
<tr>
<td>66ff00</td>
<td>66ff33</td>
<td>66ff66</td>
<td>66ff99</td>
<td>66ffcc</td>
<td>66ffff</td>
</tr>
<tr>
<td bgcolor="#66ff00"></td>
<td bgcolor="#66ff33"></td>
<td bgcolor="#66ff66"></td>
<td bgcolor="#66ff99"></td>
<td bgcolor="#66ffcc"></td>
<td bgcolor="#66ffff"></td>
</tr>
<tr>
<td>990000</td>
<td>990033</td>
<td>990066</td>
<td>990099</td>
<td>9900cc</td>
<td>9900ff</td>
</tr>
<tr>
<td bgcolor="#990000"></td>
<td bgcolor="#990033"></td>
<td bgcolor="#990066"></td>
<td bgcolor="#990099"></td>
<td bgcolor="#9900cc"></td>
<td bgcolor="#9900ff"></td>
</tr>
<tr>
<td>993300</td>
<td>993333</td>
<td>993366</td>
<td>993399</td>
<td>9933cc</td>
<td>9933ff</td>
</tr>
<tr>
<td bgcolor="#993300"></td>
<td bgcolor="#993333"></td>
<td bgcolor="#993366"></td>
<td bgcolor="#993399"></td>
<td bgcolor="#9933cc"></td>
<td bgcolor="#9933ff"></td>
</tr>
<tr>
<td>996600</td>
<td>996633</td>
<td>996666</td>
<td>996699</td>
<td>9966cc</td>
<td>9966ff</td>
</tr>
<tr>
<td bgcolor="#996600"></td>
<td bgcolor="#996633"></td>
<td bgcolor="#996666"></td>
<td bgcolor="#996699"></td>
<td bgcolor="#9966cc"></td>
<td bgcolor="#9966ff"></td>
</tr>
<tr>
<td>999900</td>
<td>999933</td>
<td>999966</td>
<td>999999</td>
<td>9999cc</td>
<td>9999ff</td>
</tr>
<tr>
<td bgcolor="#999900"></td>
<td bgcolor="#999933"></td>
<td bgcolor="#999966"></td>
<td bgcolor="#999999"></td>
<td bgcolor="#9999cc"></td>
<td bgcolor="#9999ff"></td>
</tr>
<tr>
<td>99cc00</td>
<td>99cc33</td>
<td>99cc66</td>
<td>99cc99</td>
<td>99cccc</td>
<td>99ccff</td>
</tr>
<tr>
<td bgcolor="#99cc00"></td>
<td bgcolor="#99cc33"></td>
<td bgcolor="#99cc66"></td>
<td bgcolor="#99cc99"></td>
<td bgcolor="#99cccc"></td>
<td bgcolor="#99ccff"></td>
</tr>
<tr>
<td>99ff00</td>
<td>99ff33</td>
<td>99ff66</td>
<td>99ff99</td>
<td>99ffcc</td>
<td>99ffff</td>
</tr>
<tr>
<td bgcolor="#99ff00"></td>
<td bgcolor="#99ff33"></td>
<td bgcolor="#99ff66"></td>
<td bgcolor="#99ff99"></td>
<td bgcolor="#99ffcc"></td>
<td bgcolor="#99ffff"></td>
</tr>
<tr>
<td>cc0000</td>
<td>cc0033</td>
<td>cc0066</td>
<td>cc0099</td>
<td>cc00cc</td>
<td>cc00ff</td>
</tr>
<tr>
<td bgcolor="#cc0000"></td>
<td bgcolor="#cc0033"></td>
<td bgcolor="#cc0066"></td>
<td bgcolor="#cc0099"></td>
<td bgcolor="#cc00cc"></td>
<td bgcolor="#cc00ff"></td>
</tr>
<tr>
<td>cc3300</td>
<td>cc3333</td>
<td>cc3366</td>
<td>cc3399</td>
<td>cc33cc</td>
<td>cc33ff</td>
</tr>
<tr>
<td bgcolor="#cc3300"></td>
<td bgcolor="#cc3333"></td>
<td bgcolor="#cc3366"></td>
<td bgcolor="#cc3399"></td>
<td bgcolor="#cc33cc"></td>
<td bgcolor="#cc33ff"></td>
</tr>
<tr>
<td>cc6600</td>
<td>cc6633</td>
<td>cc6666</td>
<td>cc6699</td>
<td>cc66cc</td>
<td>cc66ff</td>
</tr>
<tr>
<td bgcolor="#cc6600"></td>
<td bgcolor="#cc6633"></td>
<td bgcolor="#cc6666"></td>
<td bgcolor="#cc6699"></td>
<td bgcolor="#cc66cc"></td>
<td bgcolor="#cc66ff"></td>
</tr>
<tr>
<td>cc9900</td>
<td>cc9933</td>
<td>cc9966</td>
<td>cc9999</td>
<td>cc99cc</td>
<td>cc99ff</td>
</tr>
<tr>
<td bgcolor="#cc9900"></td>
<td bgcolor="#cc9933"></td>
<td bgcolor="#cc9966"></td>
<td bgcolor="#cc9999"></td>
<td bgcolor="#cc99cc"></td>
<td bgcolor="#cc99ff"></td>
</tr>
<tr>
<td>cccc00</td>
<td>cccc33</td>
<td>cccc66</td>
<td>cccc99</td>
<td>cccccc</td>
<td>ccccff</td>
</tr>
<tr>
<td bgcolor="#cccc00"></td>
<td bgcolor="#cccc33"></td>
<td bgcolor="#cccc66"></td>
<td bgcolor="#cccc99"></td>
<td bgcolor="#cccccc"></td>
<td bgcolor="#ccccff"></td>
</tr>
<tr>
<td>ccff00</td>
<td>ccff33</td>
<td>ccff66</td>
<td>ccff99</td>
<td>ccffcc</td>
<td>ccffff</td>
</tr>
<tr>
<td bgcolor="#ccff00"></td>
<td bgcolor="#ccff33"></td>
<td bgcolor="#ccff66"></td>
<td bgcolor="#ccff99"></td>
<td bgcolor="#ccffcc"></td>
<td bgcolor="#ccffff"></td>
</tr>
<tr>
<td>ff0000</td>
<td>ff0033</td>
<td>ff0066</td>
<td>ff0099</td>
<td>ff00cc</td>
<td>ff00ff</td>
</tr>
<tr>
<td bgcolor="#ff0000"></td>
<td bgcolor="#ff0033"></td>
<td bgcolor="#ff0066"></td>
<td bgcolor="#ff0099"></td>
<td bgcolor="#ff00cc"></td>
<td bgcolor="#ff00ff"></td>
</tr>
<tr>
<td>ff3300</td>
<td>ff3333</td>
<td>ff3366</td>
<td>ff3399</td>
<td>ff33cc</td>
<td>ff33ff</td>
</tr>
<tr>
<td bgcolor="#ff3300"></td>
<td bgcolor="#ff3333"></td>
<td bgcolor="#ff3366"></td>
<td bgcolor="#ff3399"></td>
<td bgcolor="#ff33cc"></td>
<td bgcolor="#ff33ff"></td>
</tr>
<tr>
<td>ff6600</td>
<td>ff6633</td>
<td>ff6666</td>
<td>ff6699</td>
<td>ff66cc</td>
<td>ff66ff</td>
</tr>
<tr>
<td bgcolor="#ff6600"></td>
<td bgcolor="#ff6633"></td>
<td bgcolor="#ff6666"></td>
<td bgcolor="#ff6699"></td>
<td bgcolor="#ff66cc"></td>
<td bgcolor="#ff66ff"></td>
</tr>
<tr>
<td>ff9900</td>
<td>ff9933</td>
<td>ff9966</td>
<td>ff9999</td>
<td>ff99cc</td>
<td>ff99ff</td>
</tr>
<tr>
<td bgcolor="#ff9900"></td>
<td bgcolor="#ff9933"></td>
<td bgcolor="#ff9966"></td>
<td bgcolor="#ff9999"></td>
<td bgcolor="#ff99cc"></td>
<td bgcolor="#ff99ff"></td>
</tr>
<tr>
<td>ffcc00</td>
<td>ffcc33</td>
<td>ffcc66</td>
<td>ffcc99</td>
<td>ffcccc</td>
<td>ffccff</td>
</tr>
<tr>
<td bgcolor="#ffcc00"></td>
<td bgcolor="#ffcc33"></td>
<td bgcolor="#ffcc66"></td>
<td bgcolor="#ffcc99"></td>
<td bgcolor="#ffcccc"></td>
<td bgcolor="#ffccff"></td>
</tr>
<tr>
<td>ffff00</td>
<td>ffff33</td>
<td>ffff66</td>
<td>ffff99</td>
<td>ffffcc</td>
<td>ffffff</td>
</tr>
<tr>
<td bgcolor="#ffff00"></td>
<td bgcolor="#ffff33"></td>
<td bgcolor="#ffff66"></td>
<td bgcolor="#ffff99"></td>
<td bgcolor="#ffffcc"></td>
<td bgcolor="#ffffff"></td>
</tr>
</tbody>
</table>
2022-06-06 21:30:34 +00:00
</div>
<script>
function ssclrttl() {
if ($('#clrttl').css('display') == 'none') {
$('#clrttl').css({'display': ''});
} else {
$('#clrttl').css({'display': 'none'});
}
}
</script>
<?
$i = 0;
$sp = mysql_query(
'SELECT * FROM `clan_tituls` WHERE `clan` = "' . $res['id'] . '" AND `delete` = "0" LIMIT 25'
);
while ($pl = mysql_fetch_array($sp)) {
?>
<div style="border-bottom:1px solid #cac9c7;margin-bottom:5px;padding-bottom:5px;">
<b style="color:#<?= $pl['color'] ?>">*</b> &nbsp; <a style="display:inline-block;width:250px;"
onclick="editTitul(<?= $pl['id'] ?>)"
href="javascript:void(0)"><?= $pl['name'] ?></a><font
color="#999999"><i><?= $pl['info'] ?></i></font>
<img src="https://img.new-combats.com/i/clear.gif" title="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>"
onclick="location='main.php?clan&titul&delete=<?= $pl['id'] ?>'"
style="float:right;cursor:pointer;">
<div id="edpnltitul<?= $pl['id'] ?>"
style="display:none;margin:10px;border:1px solid #9e9e9e;padding:10px;">
<form method="post" action="?clan&titul&save=<?= $pl['id'] ?>">
<span style="float:right"><a onclick="editTitul(<?= $pl['id'] ?>)"
href="javascript:void(0)">x</a></span>
<center><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <a onclick="editTitul(<?= $pl['id'] ?>)"
href="javascript:void(0)"><?= $pl['name'] ?></a></center>
<br>
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <input style="width:360px;" value="<?= $pl['info'] ?>" type="text"
name="t_info"><br>
<br>
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
<? $j = 1;
while ($j <= 9) {
if ($pl['canals'][$j - 1] == 1) {
$pl['check'] = 'checked';
} else {
$pl['check'] = '';
}
?>
<label for="t_klan<?= $j ?>"><?= $j ?></label>
<input <?= $pl['check'] ?> type="checkbox" <?= $pl['check2'] ?> name="t_klan<?= $j ?>"
id="t_klan<?= $j ?>">
<? $j++;
}
echo '<br><br>';
$j = 1;
while ($j < count($tt)) {
if ($tt[$j][1] != '0') {
if ($pl['prava'][$j] == 1) {
$pl['check'] = 'checked';
} else {
$pl['check'] = '';
}
?>
<input <?= $pl['check'] ?> type="checkbox" name="t_tr<?= $j ?>" id="t_tr<?= $j ?>">
<label for="t_tr<?= $j ?>"><?= $tt[$j][1] ?></label><br>
<?
}
$j++;
}
?>
<br>
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: *<br>
<EFBFBD><EFBFBD><EFBFBD><EFBFBD>: &nbsp; &nbsp; &nbsp;
<div style="cursor:pointer;display:inline-block;width:20px;height:15px;background-color:#<?= $pl['color'] ?>">
&nbsp;
</div>
#<input name="colorsp" maxlength="6" type="text" value="<?= $pl['color'] ?>"/><br/>
<small>(<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <a onclick="ssclrttl()" href="javascript:void(0)"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> - <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></a>)</small><br/>
<br><br>
<input type="submit" value="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>">
</form>
</div>
</div>
2022-06-06 21:30:34 +00:00
<?
$i++;
}
if ($i == 0) {
echo '<27> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
}
?>
<input type="button" onclick="addNewTitul()" value="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>">
2022-06-06 21:30:34 +00:00
</div>
<? }elseif (isset($_GET['rules'])) { ?>
<div class="box visible">
<fieldset style="border:1px dashed #eeeeee">
<legend><span class="legtitle"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> &quot;<?= $u->info['login'] ?>&quot;</span></legend>
2022-06-06 21:30:34 +00:00
<div style="border-bottom:1px solid #cac9c7;margin-bottom:5px;padding-bottom:5px;">
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <b><?
if ($u->info['clan_prava'] != 'glava') {
echo $u->info['moder_zvanie'];
} else {
echo '<b style="color:#008097"><3E><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD></b>';
}
?></b>
</div>
<div style="border-bottom:1px solid #cac9c7;margin-bottom:5px;padding-bottom:5px;">
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <b><?= $utitl['name'] ?></b> &nbsp; - &nbsp; <font
color="#999999"><?= $utitl['info'] ?></font>
</div>
2022-06-06 21:30:34 +00:00
<div style="border-bottom:1px solid #cac9c7;margin-bottom:5px;padding-bottom:5px;">
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
<? $j = 1;
while ($j <= 9) {
if ($utitl['canals'][$j - 1] == 1) {
$r .= '<a href="javascript:void(0)">klan-' . $j . '</a>, ';
}
$j++;
}
echo rtrim($r, ', ');
?>
2022-06-06 21:30:34 +00:00
</div>
<?
$j = 1;
while ($j < count($tt)) {
if ($tt[$j][1] != '0') {
if ($utitl['prava'][$j] == 1) {
$utitl['check'] = '<27><>';
} else {
$utitl['check'] = '<27><><EFBFBD>';
}
?>
<div style="border-bottom:1px solid #cac9c7;margin-bottom:5px;padding-bottom:5px;">
<div style="display:inline-block;width:410px;">
&bull; <?= $tt[$j][1] ?></div><?= $utitl['check'] ?>
</div>
2022-06-06 21:30:34 +00:00
<?
}
$j++;
}
?>
</fieldset>
2022-06-06 21:30:34 +00:00
</div>
<? }elseif (isset($_GET['info'])) {
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
$edd = mysql_fetch_array(
mysql_query(
'SELECT SUM(`exp`) FROM `clan_exp` WHERE `clan` = "' . $res['id'] . '" AND `dd` = "' . ceil(
date('d')
) . '" AND `mm` = "' . ceil(date('m')) . '" AND `yyyy` = "' . ceil(date('Y')) . '"'
)
);
$eww = mysql_fetch_array(
mysql_query(
'SELECT SUM(`exp`) FROM `clan_exp` WHERE `clan` = "' . $res['id'] . '" AND `ww` = "' . ceil(
date('W')
) . '" AND `yyyy` = "' . ceil(date('Y')) . '"'
)
);
$emm = mysql_fetch_array(
mysql_query(
'SELECT SUM(`exp`) FROM `clan_exp` WHERE `clan` = "' . $res['id'] . '" AND `mm` = "' . ceil(
date('m')
) . '" AND `yyyy` = "' . ceil(date('Y')) . '"'
)
);
$edd = 0 + $edd[0];
$eww = 0 + $eww[0];
$emm = 0 + $emm[0];
?>
<div class="box visible">
<div style="border-bottom:1px solid #cac9c7;margin-bottom:5px;padding-bottom:5px;">
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <img src="https://img.new-combats.com/i/clan/<?= $res['name_mini'] ?>.gif"
style="vertical-align:bottom" width="24" height="15"><a
href="javascript:void(0)"><?= $res['name'] ?></a> (<?= $res['name_mini'] ?>)
</div>
<div style="border-bottom:1px solid #cac9c7;margin-bottom:5px;padding-bottom:5px;">
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <?= $res['level'] ?>
</div>
<div style="border-bottom:1px solid #cac9c7;margin-bottom:5px;padding-bottom:5px;">
<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <?= number_format($res['exp'], 0, ",", " ") ?> / <?= number_format(
$lvl_exp[$res['level'] + 1], 0, ",", " "
) ?>
<div style="width:200px;display:inline-block;border:1px solid #aeaeae">
<div style="width:<?= ceil(
($res['exp'] - $lvl_exp[$res['level']]) / $lvl_exp[$res['level'] + 1] * 200
) ?>px;display:inline-block;padding-left:4px;padding-right:4px;text-align:right;background-color:#E9F7E8;color:#1B3618">
<b><?= ceil(($res['exp'] - $lvl_exp[$res['level']]) / $lvl_exp[$res['level'] + 1] * 100) ?>%</b>
</div>
</div>
</div>
<div style="border-bottom:1px solid #cac9c7;margin-bottom:5px;padding-bottom:5px;">
<table width="500" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="220"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:</td>
<td width="100">&bull; <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:</td>
<td><b style="color:#0033a1"><?= $edd ?></b></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&bull; <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:</td>
<td><b style="color:#0033a1"><?= $eww ?></b></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&bull; <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:</td>
<td><b style="color:#0033a1"><?= $emm ?></b></td>
</tr>
</table>
</div>
<div style="border-bottom:1px solid #cac9c7;margin-bottom:5px;padding-bottom:5px;">
<table width="100%" border="0" style="border:1px solid #232323;" cellspacing="0" cellpadding="5">
<tr>
<td align="center" valign="middle"
style="border-bottom:1px solid #232323;border-right:1px solid #232323;" bgcolor="#cccccc">
<strong><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></strong></td>
<td align="center" valign="middle"
style="border-bottom:1px solid #232323;border-right:1px solid #232323;" bgcolor="#cccccc">
<strong><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></strong></td>
<td align="center" valign="middle"
style="border-bottom:1px solid #232323;border-right:1px solid #232323;" bgcolor="#cccccc">
<strong><EFBFBD><EFBFBD><EFBFBD><EFBFBD></strong></td>
<td align="center" valign="middle"
style="border-bottom:1px solid #232323;border-right:1px solid #232323;" bgcolor="#cccccc">
<strong><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD></strong></td>
<td align="center" valign="middle"
style="border-bottom:1px solid #232323;border-right:1px solid #232323;" bgcolor="#cccccc">
<strong><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></strong></td>
<td align="center" valign="middle"
style="border-bottom:1px solid #232323;border-right:1px solid #232323;" bgcolor="#cccccc">
<strong><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></strong></td>
<td align="center" valign="middle"
style="border-bottom:1px solid #232323;border-right:1px solid #232323;" bgcolor="#cccccc">
<strong><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></strong></td>
<td align="center" valign="middle"
style="border-bottom:1px solid #232323;border-right:1px solid #232323;" bgcolor="#cccccc">
<strong><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></strong></td>
<td align="center" valign="middle" style="border-bottom:1px solid #232323;" bgcolor="#cccccc">
<strong><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></strong></td>
</tr>
<?
$i = 0;
$yn = ['<27><><EFBFBD>', '<27><>'];
while ($i < count($lvl_prava)) {
$bgclr = '';
if ($res['level'] >= $i) {
$bgclr = ' bgcolor="#8fd155"';
}
if ($i < count($lvl_prava) - 1) {
?>
<tr<?= $bgclr ?>>
<td style="border-bottom:1px solid #232323;border-right:1px solid #232323;"
align="center" valign="middle"><?= $i ?></td>
<td style="border-bottom:1px solid #232323;border-right:1px solid #232323;"
align="center" valign="middle"><?= $lvl_prava[$i][0] ?></td>
<td style="border-bottom:1px solid #232323;border-right:1px solid #232323;"
align="center" valign="middle"><?= $yn[$lvl_prava[$i][1]] ?></td>
<td style="border-bottom:1px solid #232323;border-right:1px solid #232323;"
align="center" valign="middle"><?= $yn[$lvl_prava[$i][2]] ?></td>
<td style="border-bottom:1px solid #232323;border-right:1px solid #232323;"
align="center" valign="middle"><?= $yn[$lvl_prava[$i][3]] ?></td>
<td style="border-bottom:1px solid #232323;border-right:1px solid #232323;"
align="center" valign="middle"><?= $yn[$lvl_prava[$i][4]] ?></td>
<td style="border-bottom:1px solid #232323;border-right:1px solid #232323;"
align="center" valign="middle"><?= $lvl_prava[$i][5] ?></td>
<td style="border-bottom:1px solid #232323;border-right:1px solid #232323;"
align="center" valign="middle"><?= $lvl_prava[$i][6] ?></td>
<td style="border-bottom:1px solid #232323;" align="center"
valign="middle"><?= $lvl_prava[$i][7] ?></td>
</tr>
<?
} else {
?>
<tr<?= $bgclr ?>>
<td style="border-right:1px solid #232323;" align="center"
valign="middle"><?= $i ?></td>
<td style="border-right:1px solid #232323;" align="center"
valign="middle"><?= $lvl_prava[$i][0] ?></td>
<td style="border-right:1px solid #232323;" align="center"
valign="middle"><?= $yn[$lvl_prava[$i][1]] ?></td>
<td style="border-right:1px solid #232323;" align="center"
valign="middle"><?= $yn[$lvl_prava[$i][2]] ?></td>
<td style="border-right:1px solid #232323;" align="center"
valign="middle"><?= $yn[$lvl_prava[$i][3]] ?></td>
<td style="border-right:1px solid #232323;" align="center"
valign="middle"><?= $yn[$lvl_prava[$i][4]] ?></td>
<td style="border-right:1px solid #232323;" align="center"
valign="middle"><?= $lvl_prava[$i][5] ?></td>
<td style="border-right:1px solid #232323;" align="center"
valign="middle"><?= $lvl_prava[$i][6] ?></td>
<td align="center" valign="middle"><?= $lvl_prava[$i][7] ?></td>
</tr>
<?
}
$i++;
}
?>
</table>
</div>
</div>
<? }elseif (isset($_GET['members'])) { ?>
<div class="box visible">
<fieldset style="border:1px dashed #eeeeee">
<legend align="center"><span class="legtitle"><img title="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
onClick="top.chat.addto('klan','private')"
style="vertical-align:bottom;cursor:pointer;"
src="https://img.new-combats.com/i/lock.gif"
width="20" height="15"> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></span></legend>
<? if (!isset($_GET['online'])) { ?>
<input onClick="location='main.php?clan&members&online'" type="button" value="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> online"
style="float:right">
<? } else { ?>
<input onClick="location='main.php?clan&members'" type="button" value="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>"
style="float:right">
<? } ?>
<br>
<?
$sp = mysql_query(
'SELECT `id`,`battle`,`login`,`clan`,`level`,`room`,`cityreg`,`align`,`clan_prava`,`mod_zvanie`,`sex`,`city`,`online`,`banned` FROM `users` WHERE `clan` = "' . $res['id'] . '"'
);
$r = '<br>';
$j = 0;
$i = 0;
if ($res['join1'] > 0 || $res['join2'] > 0) {
$r .= '<fieldset style="border:1px dashed #eeeeee;margin-top:5px;">
<legend align="left"><span class="legtitle"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></span></legend>';
}
while ($pl = mysql_fetch_array($sp)) {
if (!isset($_GET['online']) || $pl['online'] > time() - 120) {
$pl['textcolor1'] = '';
if ($pl['online'] > time() - 120) {
$ico = '<img onClick="top.chat.addto(\'' . $pl['login'] . '\',\'private\')" src="https://img.new-combats.com/i/lock.gif" width="20" height="15" style="cursor:pointer;vertical-align:bottom">';
$j++;
} else {
$pl['textcolor1'] = '#837f82';
$ico = '<img src="https://img.new-combats.com/i/offline.gif" width="20" height="15" style="vertical-align:bottom">';
}
$zvn = $pl['mod_zvanie'];
$zvn = str_replace('[b]', '<b>', $zvn);
$zvn = str_replace('[/b]', '</b>', $zvn);
$zvn = str_replace('[i]', '<i>', $zvn);
$zvn = str_replace('[/i]', '</i>', $zvn);
$zvn = str_replace('[u]', '<u>', $zvn);
$zvn = str_replace('[/u]', '</u>', $zvn);
$zvn = str_replace('[c=', '<font color="', $zvn);
$zvn = str_replace('=]', '">', $zvn);
$zvn = str_replace('[/c]', '</font>', $zvn);
if ($pl['clan_prava'] == 'glava') {
if ($zvn == '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' || $zvn == '') {
$zvn = '<b style="color:#008097"><3E><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD></b>';
}
$zvn = '<img style="vertical-align:top" src="https://img.new-combats.com/i/clan/' . $res['name_mini'] . '.gif" width="24" title="<22><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>">' . $zvn;
}
$ttl = mysql_fetch_array(
mysql_query(
'SELECT * FROM `clan_tituls` WHERE `clan` = "' . $res['id'] . '" AND `id` = "' . $pl['clan_prava'] . '" LIMIT 1'
)
);
if (isset($ttl['id'])) {
$zvn = '<font color="#' . $ttl['color'] . '"><b>' . $ttl['name'] . '</b></font> - ' . $zvn;
}
if ($pl['online'] > time() - 120) {
$rm = mysql_fetch_array(
mysql_query(
'SELECT `id`,`name`,`city` FROM `room` WHERE `id` = "' . $pl['room'] . '" LIMIT 1'
)
);
if (isset($rm['id'])) {
$zvn .= ' - <i>' . $rm['name'] . '</i>';
}
} else {
$zvn .= ' - <i><font color="grey"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20> <20><><EFBFBD><EFBFBD><EFBFBD></font></i>';
}
if ($pl['battle'] > 0) {
$zvn .= ' <a href="logs.php?id=' . $pl['battle'] . '" target="_blank"><img width="20" height="20" style="vertical-align:bottom"src="https://img.new-combats.com/i/fighttype0.gif" title="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"></a>';
}
$r .= '<div style="padding:5px;background-color:#efedee"><span style="display:inline-block;width:350px;">' . $ico . ' &nbsp;&nbsp; &nbsp; <img src="https://img.new-combats.com/i/align/align' . $pl['align'] . '.gif" width="12" height="15" style="vertical-align:bottom"><img style="vertical-align:bottom" src="https://img.new-combats.com/i/clan/' . $res['name_mini'] . '.gif" width="24" height="15"><a onClick="top.chat.addto(\'' . $pl['login'] . '\',\'to\')" style="color:' . $pl['textcolor1'] . '" href="javascript:void(0)">' . $pl['login'] . '</a><font color="' . $pl['textcolor1'] . '">[' . $pl['level'] . ']<a href="https://new-combats.com/info/' . $pl['id'] . '" title="<22><><EFBFBD>. <20> ' . $pl['login'] . '" target="_blank"><img src="https://img.new-combats.com/i/inf_' . $pl['cityreg'] . '.gif" width="12" height="11"></a></font></span>' . $zvn . '</div>';
}
$i++;
}
if ($res['join1'] > 0 || $res['join2'] > 0) {
$r .= '</fieldset>';
}
$nacln = '';
if ($res['join1'] > 0) {
$clna = mysql_fetch_array(
mysql_query(
'SELECT * FROM `clan_joint` WHERE `id` = "' . $res['join1'] . '" AND `type` = "1" AND `time_close` = "0" LIMIT 1'
)
);
$cn_sp = mysql_query(
'SELECT * FROM `clan_join` WHERE `alians` = "' . $clna['id'] . '" AND `clan` != "' . $res['id'] . '" AND `time_end` = "0" AND `time_start` > 0'
);
while ($cn_pl = mysql_fetch_array($cn_sp)) {
/* ----------------------------------------------------------------------------------------------------------------------------- */
$nacln .= ' AND `clan` != "' . $cn_pl['clan'] . '"';
$clnf = mysql_fetch_array(
mysql_query('SELECT * FROM `clan` WHERE `id` = "' . $cn_pl['clan'] . '" LIMIT 1')
);
$sp = mysql_query(
'SELECT `id`,`battle`,`login`,`clan`,`level`,`room`,`cityreg`,`align`,`clan_prava`,`mod_zvanie`,`sex`,`city`,`online`,`banned` FROM `users` WHERE `clan` = "' . $cn_pl['clan'] . '"'
);
$r .= '<fieldset style="border:1px dashed #eeeeee;margin-top:5px;">
<legend align="left"><span class="legtitle"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> &quot;' . $clna['name'] . '&quot;</span></legend>';
$j = 0;
$i = 0;
while ($pl = mysql_fetch_array($sp)) {
if (!isset($_GET['online']) || $pl['online'] > time() - 120) {
$pl['textcolor1'] = '';
if ($pl['online'] > time() - 120) {
$ico = '<img onClick="top.chat.addto(\'' . $pl['login'] . '\',\'private\')" src="https://img.new-combats.com/i/lock.gif" width="20" height="15" style="cursor:pointer;vertical-align:bottom">';
$j++;
} else {
$pl['textcolor1'] = '#837f82';
$ico = '<img src="https://img.new-combats.com/i/offline.gif" width="20" height="15" style="vertical-align:bottom">';
}
$zvn = $pl['mod_zvanie'];
$zvn = str_replace('[b]', '<b>', $zvn);
$zvn = str_replace('[/b]', '</b>', $zvn);
$zvn = str_replace('[i]', '<i>', $zvn);
$zvn = str_replace('[/i]', '</i>', $zvn);
$zvn = str_replace('[u]', '<u>', $zvn);
$zvn = str_replace('[/u]', '</u>', $zvn);
$zvn = str_replace('[c=', '<font color="', $zvn);
$zvn = str_replace('=]', '">', $zvn);
$zvn = str_replace('[/c]', '</font>', $zvn);
if ($pl['clan_prava'] == 'glava') {
if ($zvn == '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' || $zvn == '') {
$zvn = '<b style="color:#008097"><3E><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD></b>';
}
$zvn = '<img style="vertical-align:top" src="https://img.new-combats.com/i/clan/' . $clnf['name_mini'] . '.gif" width="24" title="<22><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>">' . $zvn;
}
$ttl = mysql_fetch_array(
mysql_query(
'SELECT * FROM `clan_tituls` WHERE `clan` = "' . $clnf['id'] . '" AND `id` = "' . $pl['clan_prava'] . '" LIMIT 1'
)
);
if (isset($ttl['id'])) {
$zvn = '<font color="#' . $ttl['color'] . '"><b>' . $ttl['name'] . '</b></font> - ' . $zvn;
}
if ($pl['online'] > time() - 120) {
$rm = mysql_fetch_array(
mysql_query(
'SELECT `id`,`name`,`city` FROM `room` WHERE `id` = "' . $pl['room'] . '" LIMIT 1'
)
);
if (isset($rm['id'])) {
$zvn .= ' - <i>' . $rm['name'] . '</i>';
}
} else {
$zvn .= ' - <i><font color="grey"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20> <20><><EFBFBD><EFBFBD><EFBFBD></font></i>';
}
if ($pl['battle'] > 0) {
$zvn .= ' <a href="logs.php?id=' . $pl['battle'] . '" target="_blank"><img width="20" height="20" style="vertical-align:bottom"src="https://img.new-combats.com/i/fighttype0.gif" title="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"></a>';
}
$r .= '<div style="padding:5px;background-color:#efedee"><span style="display:inline-block;width:350px;">' . $ico . ' &nbsp;&nbsp; &nbsp; <img src="https://img.new-combats.com/i/align/align' . $pl['align'] . '.gif" width="12" height="15" style="vertical-align:bottom"><img style="vertical-align:bottom" src="https://img.new-combats.com/i/clan/' . $clnf['name_mini'] . '.gif" width="24" height="15"><a onClick="top.chat.addto(\'' . $pl['login'] . '\',\'to\')" style="color:' . $pl['textcolor1'] . '" href="javascript:void(0)">' . $pl['login'] . '</a><font color="' . $pl['textcolor1'] . '">[' . $pl['level'] . ']<a href="https://new-combats.com/info/' . $pl['id'] . '" title="<22><><EFBFBD>. <20> ' . $pl['login'] . '" target="_blank"><img src="https://img.new-combats.com/i/inf_' . $pl['cityreg'] . '.gif" width="12" height="11"></a></font></span>' . $zvn . '</div>';
}
$i++;
}
$r .= '</fieldset>';
/* ----------------------------------------------------------------------------------------------------------------------------- */
}
}
if ($res['join2'] > 0) {
$cn_sp0 = mysql_fetch_array(
mysql_query(
'SELECT * FROM `clan_joint` WHERE `id` = "' . $res['join2'] . '" AND `type` = "2" AND `time_close` = "0" LIMIT 1'
)
);
$cn_sp = mysql_query(
'SELECT * FROM `clan_join` WHERE `alians` = "' . $cn_sp0['id'] . '" AND `clan` != "' . $res['id'] . '"' . $nacln . ' AND `time_end` = "0" AND `time_start` > 0'
);
while ($cn_pl = mysql_fetch_array($cn_sp)) {
/* ----------------------------------------------------------------------------------------------------------------------------- */
$clnf = mysql_fetch_array(
mysql_query('SELECT * FROM `clan` WHERE `id` = "' . $cn_pl['clan'] . '" LIMIT 1')
);
$clna = mysql_fetch_array(
mysql_query('SELECT * FROM `clan_joint` WHERE `id` = "' . $res['join2'] . '" LIMIT 1')
);
$sp = mysql_query(
'SELECT `id`,`battle`,`login`,`clan`,`level`,`room`,`cityreg`,`align`,`clan_prava`,`mod_zvanie`,`sex`,`city`,`online`,`banned` FROM `users` WHERE `clan` = "' . $cn_pl['clan'] . '"'
);
$r .= '<fieldset style="border:1px dashed #eeeeee;margin-top:5px;">
<legend align="left"><span class="legtitle"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> &quot;' . $clna['name'] . '&quot;</span></legend>';
$j = 0;
$i = 0;
while ($pl = mysql_fetch_array($sp)) {
if (!isset($_GET['online']) || $pl['online'] > time() - 120) {
$pl['textcolor1'] = '';
if ($pl['online'] > time() - 120) {
$ico = '<img onClick="top.chat.addto(\'' . $pl['login'] . '\',\'private\')" src="https://img.new-combats.com/i/lock.gif" width="20" height="15" style="cursor:pointer;vertical-align:bottom">';
$j++;
} else {
$pl['textcolor1'] = '#837f82';
$ico = '<img src="https://img.new-combats.com/i/offline.gif" width="20" height="15" style="vertical-align:bottom">';
}
$zvn = $pl['mod_zvanie'];
$zvn = str_replace('[b]', '<b>', $zvn);
$zvn = str_replace('[/b]', '</b>', $zvn);
$zvn = str_replace('[i]', '<i>', $zvn);
$zvn = str_replace('[/i]', '</i>', $zvn);
$zvn = str_replace('[u]', '<u>', $zvn);
$zvn = str_replace('[/u]', '</u>', $zvn);
$zvn = str_replace('[c=', '<font color="', $zvn);
$zvn = str_replace('=]', '">', $zvn);
$zvn = str_replace('[/c]', '</font>', $zvn);
if ($pl['clan_prava'] == 'glava') {
if ($zvn == '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' || $zvn == '') {
$zvn = '<b style="color:#008097"><3E><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD></b>';
}
$zvn = '<img style="vertical-align:top" src="https://img.new-combats.com/i/clan/' . $clnf['name_mini'] . '.gif" width="24" title="<22><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>">' . $zvn;
}
$ttl = mysql_fetch_array(
mysql_query(
'SELECT * FROM `clan_tituls` WHERE `clan` = "' . $clnf['id'] . '" AND `id` = "' . $pl['clan_prava'] . '" LIMIT 1'
)
);
if (isset($ttl['id'])) {
$zvn = '<font color="#' . $ttl['color'] . '"><b>' . $ttl['name'] . '</b></font> - ' . $zvn;
}
if ($pl['online'] > time() - 120) {
$rm = mysql_fetch_array(
mysql_query(
'SELECT `id`,`name`,`city` FROM `room` WHERE `id` = "' . $pl['room'] . '" LIMIT 1'
)
);
if (isset($rm['id'])) {
$zvn .= ' - <i>' . $rm['name'] . '</i>';
}
} else {
$zvn .= ' - <i><font color="grey"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20> <20><><EFBFBD><EFBFBD><EFBFBD></font></i>';
}
if ($pl['battle'] > 0) {
$zvn .= ' <a href="logs.php?id=' . $pl['battle'] . '" target="_blank"><img width="20" height="20" style="vertical-align:bottom"src="https://img.new-combats.com/i/fighttype0.gif" title="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"></a>';
}
$r .= '<div style="padding:5px;background-color:#efedee"><span style="display:inline-block;width:350px;">' . $ico . ' &nbsp;&nbsp; &nbsp; <img src="https://img.new-combats.com/i/align/align' . $pl['align'] . '.gif" width="12" height="15" style="vertical-align:bottom"><img style="vertical-align:bottom" src="https://img.new-combats.com/i/clan/' . $clnf['name_mini'] . '.gif" width="24" height="15"><a onClick="top.chat.addto(\'' . $pl['login'] . '\',\'to\')" style="color:' . $pl['textcolor1'] . '" href="javascript:void(0)">' . $pl['login'] . '</a><font color="' . $pl['textcolor1'] . '">[' . $pl['level'] . ']<a href="https://new-combats.com/info/' . $pl['id'] . '" title="<22><><EFBFBD>. <20> ' . $pl['login'] . '" target="_blank"><img src="https://img.new-combats.com/i/inf_' . $pl['cityreg'] . '.gif" width="12" height="11"></a></font></span>' . $zvn . '</div>';
}
$i++;
}
$r .= '</fieldset>';
/* ----------------------------------------------------------------------------------------------------------------------------- */
}
}
$r .= '<br>Online: <a href="main.php?clan&members&online">' . $j . '</a><br><3E><><EFBFBD><EFBFBD><EFBFBD>: <a href="main.php?clan&members">' . $i . '</a><br><small>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <s><3E> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></s>)</small>';
echo $r;
?>
</fieldset>
</div>
<? } ?>
2022-06-06 21:30:34 +00:00
</div><!-- .section -->