617 lines
27 KiB
PHP
617 lines
27 KiB
PHP
|
<?php
|
|||
|
if(!defined('GAME'))
|
|||
|
{
|
|||
|
die();
|
|||
|
}
|
|||
|
|
|||
|
if($u->room['file']=='an/shop_')
|
|||
|
{
|
|||
|
$shopProcent = 100-$c['shop_type1'];
|
|||
|
|
|||
|
if(isset($_POST['itemgift']))
|
|||
|
{
|
|||
|
$to = mysql_fetch_array(mysql_query('SELECT * FROM `users` WHERE `login` = "'.mysql_real_escape_string($_POST['to_login']).'" ORDER BY `id` ASC LIMIT 1'));
|
|||
|
if(isset($to['id']))
|
|||
|
{
|
|||
|
if($u->info['align'] == 2 || $u->info['haos'] > time()) {
|
|||
|
$re = '<div align="left"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></div>';
|
|||
|
}elseif($to['id']==$u->info['id'])
|
|||
|
{
|
|||
|
$re = '<div align="left"><3E><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>-<2D><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> ;)</div>';
|
|||
|
}elseif($u->info['level']<4)
|
|||
|
{
|
|||
|
$re = '<div align="left"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> 4-<2D><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></div>';
|
|||
|
}else{
|
|||
|
if( $_POST['itemgift'] > 1000000000000 ) {
|
|||
|
$itm_l = mysql_fetch_array(mysql_query('SELECT * FROM `users_gifts` WHERE `uid` = "'.$u->info['id'].'" AND `id` = "'.mysql_real_escape_string((int)$_POST['itemgift']-1000000000000).'" LIMIT 1'));
|
|||
|
if( isset($itm_l['id']) && $itm_l['money'] > $u->info['money'] ) {
|
|||
|
$re = '<div align="left"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD></div>';
|
|||
|
}elseif( isset($itm_l['id']) ) {
|
|||
|
$itm = $u->addItem(4533,1,'|gift_id='.$itm_l['id'].'');
|
|||
|
if( $itm > 0 ) {
|
|||
|
$itm = mysql_fetch_array(mysql_query('SELECT `im`.*,`iu`.* FROM `items_users` AS `iu` LEFT JOIN `items_main` AS `im` ON (`im`.`id` = `iu`.`item_id`) WHERE (`im`.`type` = "28" OR `im`.`type` = "38" OR `im`.`type` = "63" OR `im`.`type` = "64") AND `iu`.`id` = "'.mysql_real_escape_string($itm).'" AND `iu`.`uid` = "1" AND `iu`.`gift` = "" AND `iu`.`delete` = "0" AND `iu`.`inOdet` = "0" AND `iu`.`inShop` = "0" LIMIT 1'));
|
|||
|
if(isset($itm['id'])) {
|
|||
|
$u->info['money'] -= $itm_l['money'];
|
|||
|
mysql_query('UPDATE `users` SET `money` = "'.$u->info['money'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
|||
|
|
|||
|
$itm['gtxt1'] = $_POST['podarok2'];
|
|||
|
$itm['gtxt2'] = $_POST['txt'];
|
|||
|
|
|||
|
$itm['gtxt1'] = str_replace('\x3C','<',$itm['gtxt1']);
|
|||
|
$itm['gtxt1'] = str_replace('\x3','>',$itm['gtxt1']);
|
|||
|
$itm['gtxt1'] = htmlspecialchars($itm['gtxt1'],NULL,'cp1251');
|
|||
|
$itm['gtxt2'] = str_replace('\x3C','<',$itm['gtxt2']);
|
|||
|
$itm['gtxt2'] = str_replace('\x3','>',$itm['gtxt2']);
|
|||
|
$itm['gtxt2'] = htmlspecialchars($itm['gtxt2'],NULL,'cp1251');
|
|||
|
|
|||
|
$upd = mysql_query('UPDATE `items_users` SET `data` = "'.$itm['data'].'",`gtxt1` = "'.mysql_real_escape_string($itm['gtxt1']).'",`gtxt2` = "'.mysql_real_escape_string($itm['gtxt2']).'", `uid` = "'.$to['id'].'", `gift` = "'.$u->info['login'].'",`time_create` = "'.time().'" WHERE `id` = "'.$itm['id'].'" LIMIT 1');
|
|||
|
$whos = mysql_fetch_array(mysql_query('SELECT `login` FROM `users` WHERE `id` = "'.$to['id'].'" LIMIT 1'));
|
|||
|
$ld = $u->addDelo(1, $to['id'],'"<font color=#C65F00>Shop.'.$u->info['city'].'</font>": <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> [id="'.$u->info['id'].'"/ <20><><EFBFBD><EFBFBD><EFBFBD> : "'.$u->info['login'].'"]. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> [id="'.$itm['id'].'"/ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> : "'.$itm['name'].'"]',time(),$u->info['city'],'Shop.gift',0,0);
|
|||
|
$ld = $u->addDelo(1, $u->info['id'],'"<font color=#C65F00>Shop.'.$u->info['city'].'</font>": <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> [id="'.$to['id'].'"/ <20><><EFBFBD><EFBFBD><EFBFBD> : "'.$whos['login'].'"]. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> [id="'.$itm['id'].'"/ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> : "'.$itm['name'].'"]',time(),$u->info['city'],'Shop.gift',0,0);
|
|||
|
if($upd)
|
|||
|
{
|
|||
|
$re = '<div align="left"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> "'.$to['login'].'" <20><> '.$itm_l['money'].' <20><>.</div>';
|
|||
|
$text = ' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <b>'.$itm_l['name'].'</b>. <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> [login:'.$u->info['login'].'] .';
|
|||
|
mysql_query("INSERT INTO `chat` (`new`, `city`, `room`, `login`, `to`, `text`, `time`, `type`, `toChat`) VALUES ('1','".$u->info['city']."', '', '', '".$to['login']."', '".$text."', '".time()."', '6', '0')");
|
|||
|
}else{
|
|||
|
$re = '<div align="left"><3E><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></div>';
|
|||
|
}
|
|||
|
}else{
|
|||
|
$re = '<div align="left"><3E><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>...</div>';
|
|||
|
}
|
|||
|
}else{
|
|||
|
$re = '<div align="left"><3E><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>...</div>';
|
|||
|
}
|
|||
|
}else{
|
|||
|
$re = '<div align="left"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></div>';
|
|||
|
}
|
|||
|
}else{
|
|||
|
$itm = mysql_fetch_array(mysql_query('SELECT `im`.*,`iu`.* FROM `items_users` AS `iu` LEFT JOIN `items_main` AS `im` ON (`im`.`id` = `iu`.`item_id`) WHERE (`im`.`type` = "28" OR `im`.`type` = "38" OR `im`.`type` = "63" OR `im`.`type` = "64") AND `iu`.`id` = "'.mysql_real_escape_string($_POST['itemgift']).'" AND `iu`.`uid` = "'.$u->info['id'].'" AND (`iu`.`gift` = "" OR (`iu`.`data` LIKE "%|zazuby=%" AND `iu`.`gift` = 1)) AND `iu`.`delete` = "0" AND `iu`.`inOdet` = "0" AND `iu`.`inShop` = "0" LIMIT 1'));
|
|||
|
if(isset($itm['id']))
|
|||
|
{
|
|||
|
//$itm['data'] = '';
|
|||
|
|
|||
|
$itm['gtxt1'] = $_POST['podarok2'];
|
|||
|
$itm['gtxt2'] = $_POST['txt'];
|
|||
|
|
|||
|
$itm['gtxt1'] = str_replace('\x3C','<',$itm['gtxt1']);
|
|||
|
$itm['gtxt1'] = str_replace('\x3','>',$itm['gtxt1']);
|
|||
|
$itm['gtxt1'] = htmlspecialchars($itm['gtxt1'],NULL,'cp1251');
|
|||
|
$itm['gtxt2'] = str_replace('\x3C','<',$itm['gtxt2']);
|
|||
|
$itm['gtxt2'] = str_replace('\x3','>',$itm['gtxt2']);
|
|||
|
$itm['gtxt2'] = htmlspecialchars($itm['gtxt2'],NULL,'cp1251');
|
|||
|
|
|||
|
$upd = mysql_query('UPDATE `items_users` SET `data` = "'.$itm['data'].'",`gtxt1` = "'.mysql_real_escape_string($itm['gtxt1']).'",`gtxt2` = "'.mysql_real_escape_string($itm['gtxt2']).'", `uid` = "'.$to['id'].'", `gift` = "'.$u->info['login'].'",`time_create` = "'.time().'" WHERE `id` = "'.$itm['id'].'" LIMIT 1');
|
|||
|
$whos = mysql_fetch_array(mysql_query('SELECT `login` FROM `users` WHERE `id` = "'.$to['id'].'" LIMIT 1'));
|
|||
|
$ld = $u->addDelo(1, $to['id'],'"<font color=#C65F00>Shop.'.$u->info['city'].'</font>": <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> [id="'.$u->info['id'].'"/ <20><><EFBFBD><EFBFBD><EFBFBD> : "'.$u->info['login'].'"]. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> [id="'.$itm['id'].'"/ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> : "'.$itm['name'].'"]',time(),$u->info['city'],'Shop.gift',0,0);
|
|||
|
$ld = $u->addDelo(1, $u->info['id'],'"<font color=#C65F00>Shop.'.$u->info['city'].'</font>": <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> [id="'.$to['id'].'"/ <20><><EFBFBD><EFBFBD><EFBFBD> : "'.$whos['login'].'"]. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> [id="'.$itm['id'].'"/ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> : "'.$itm['name'].'"]',time(),$u->info['city'],'Shop.gift',0,0);
|
|||
|
if($upd)
|
|||
|
{
|
|||
|
$re = '<div align="left"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> "'.$to['login'].'"</div>';
|
|||
|
$text = ' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <b>'.$itm['name'].'</b>. <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> [login:'.$u->info['login'].'] .';
|
|||
|
mysql_query("INSERT INTO `chat` (`new`, `city`, `room`, `login`, `to`, `text`, `time`, `type`, `toChat`) VALUES ('1','".$u->info['city']."', '', '', '".$to['login']."', '".$text."', '".time()."', '6', '0')");
|
|||
|
}else{
|
|||
|
$re = '<div align="left"><3E><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></div>';
|
|||
|
}
|
|||
|
}else{
|
|||
|
$re = '<div align="left"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></div>';
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}else{
|
|||
|
$re = '<div align="left"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></div>';
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
if(isset($u->stats['shopSale'],$_GET['sale'])){
|
|||
|
$bns = 0+$u->stats['shopSale'];
|
|||
|
if($bns!=0){
|
|||
|
if($bns>0){
|
|||
|
$bns = '+'.$bns;
|
|||
|
}
|
|||
|
//$shopProcent = $u->shopSaleM( $shopProcent , $itm );
|
|||
|
$shopProcent -= $bns;
|
|||
|
if($shopProcent>99){ $shopProcent = 99; }
|
|||
|
if($shopProcent<1){ $shopProcent = 1; }
|
|||
|
echo '<div style="color:grey;"><b><3E> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: '.$bns.'%</b><br><small><3E><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> '.$shopProcent.'% <20><> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></small></div>';
|
|||
|
}
|
|||
|
}
|
|||
|
if(!isset($_GET['otdel'])) {
|
|||
|
$_GET['otdel'] = 1;
|
|||
|
}
|
|||
|
$sid = 1;
|
|||
|
$error = '';
|
|||
|
if(isset($_GET['buy'])){
|
|||
|
if($u->newAct($_GET['sd4'])==true){
|
|||
|
$re = $u->buyItem($sid,(int)$_GET['buy'],(int)$_GET['x']);
|
|||
|
}else{
|
|||
|
$re = '<27><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>?';
|
|||
|
}
|
|||
|
}elseif(isset($_GET['sale']) && isset($_GET['item']) && $u->newAct($_GET['sd4'])){
|
|||
|
$id = (int)$_GET['item'];
|
|||
|
$itm = mysql_fetch_array(mysql_query('SELECT `im`.*,`iu`.*, count(`iuu`.id) as inGroupCount
|
|||
|
FROM `items_users` AS `iu`
|
|||
|
LEFT JOIN `items_main` AS `im` ON (`im`.`id` = `iu`.`item_id`)
|
|||
|
LEFT JOIN `items_users` as `iuu` ON (`iuu`.inGroup = `iu`.inGroup AND `iuu`.item_id = `im`.id )
|
|||
|
WHERE `iuu`.`uid`="'.$u->info['id'].'" AND `iu`.`uid`="'.$u->info['id'].'" AND `iu`.`delete`="0" AND `iu`.`inOdet`="0" AND `iu`.`inShop`="0" AND `iu`.`id` = "'.mysql_real_escape_string($id).'" LIMIT 1'));
|
|||
|
$po = $u->lookStats($itm['data']);
|
|||
|
if($u->info['allLock'] > time()) {
|
|||
|
$po['nosale'] = 1;
|
|||
|
}
|
|||
|
if( ($itm['gift'] != '' && $itm['gift'] != '0') && ( $itm['type'] == 37 || $itm['type'] == 38 || $itm['type'] == 39 || $itm['type'] == 63 ) ) {
|
|||
|
$error = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>! :)';
|
|||
|
}elseif(isset($po['nosale'])){
|
|||
|
$error = '<27><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ...';
|
|||
|
}elseif($pl['type']<29 && ($po['srok'] > 0 || $pl['srok'] > 0) && $pl['type'] != 28){
|
|||
|
$error = '<27><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ...';
|
|||
|
}elseif(isset($po['frompisher'])){
|
|||
|
$error = '<27><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ...';
|
|||
|
}elseif(isset($po['fromlaba'])){
|
|||
|
$error = '<27><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ...';
|
|||
|
}elseif(isset($itm['id'])){
|
|||
|
if($itm['1price']>0){
|
|||
|
$itm['price1'] = $itm['1price'];
|
|||
|
}
|
|||
|
$shpCena = $itm['price1'];
|
|||
|
$plmx = 0;
|
|||
|
if($itm['iznosMAXi']!=$itm['iznosMAX'] && $itm['iznosMAX']!=0){
|
|||
|
$plmx = $itm['iznosMAX'];
|
|||
|
}else{
|
|||
|
$plmx = $itm['iznosMAXi'];
|
|||
|
}
|
|||
|
if($itm['iznosNOW']>0){
|
|||
|
$prc1 = $itm['iznosNOW']/$plmx*100;
|
|||
|
}else{
|
|||
|
$prc1 = 0;
|
|||
|
}
|
|||
|
$shpCena = $u->shopSaleM( $shpCena , $itm );
|
|||
|
$shpCena = $shpCena/100*(100-$prc1);
|
|||
|
if( $itm['iznosMAXi'] < 999999999 ) {
|
|||
|
if($itm['iznosMAX']>0 && $itm['iznosMAXi']>0 && $itm['iznosMAXi']>$itm['iznosMAX']){
|
|||
|
$shpCena = $shpCena/100*($itm['iznosMAX']/$itm['iznosMAXi']*100);
|
|||
|
}
|
|||
|
}
|
|||
|
$shpCena = $u->round2($shpCena/100*(100-$shopProcent));
|
|||
|
if($shpCena<0){
|
|||
|
$shpCena = 0;
|
|||
|
}
|
|||
|
$col = $u->itemsX($itm['id']);
|
|||
|
if($col>0){
|
|||
|
$shpCena = $shpCena*$col;
|
|||
|
}
|
|||
|
if($shpCena<0){
|
|||
|
$shpCena = 0;
|
|||
|
}
|
|||
|
$upd2 = mysql_query('UPDATE `items_users` SET `delete` = "'.time().'" WHERE `id` = "'.$itm['id'].'" LIMIT 1');
|
|||
|
if($upd2){
|
|||
|
if($col>1){
|
|||
|
mysql_query('UPDATE `items_users` SET `delete` = "'.time().'" WHERE `item_id`="'.$itm['item_id'].'" AND `uid`="'.$itm['uid'].'" AND `inGroup` = "'.$itm['inGroup'].'" LIMIT '.$col.'');
|
|||
|
}
|
|||
|
$u->info['money'] += $shpCena;
|
|||
|
$upd = mysql_query('UPDATE `users` SET `money` = "'.$u->info['money'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
|||
|
if($upd) {
|
|||
|
$error = '<27><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "'.$itm['name'].' (x'.$col.')" <20><> '.$shpCena.' <20><>.';
|
|||
|
mysql_query('UPDATE `items_users` SET `inGroup` = "0",`delete` = "'.time().'" WHERE `inGroup` = "'.$itm['id'].'" AND `uid` = "'.$u->info['id'].'" LIMIT '.$itm['group_max'].'');
|
|||
|
$u->addDelo(2,$u->info['id'],'"<font color="green">System.shop</font>": <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "'.$itm['name'].' (x'.$col.')" [itm:'.$itm['id'].'] <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <B>'.$shpCena.' <20><>.</B>.',time(),$u->info['city'],'System.shop',0,0);
|
|||
|
} else {
|
|||
|
$u->addDelo(2,$u->info['id'],'"<font color="green">System.shop</font>": <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "'.$itm['name'].' (x'.$col.')" [itm:'.$itm['id'].'] <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <B>'.$shpCena.' <20><>.</B> (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>).',time(),$u->info['city'],'System.shop',0,0);
|
|||
|
$error = '<27><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>...';
|
|||
|
}
|
|||
|
} else {
|
|||
|
$error = '<27><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>...';
|
|||
|
}
|
|||
|
} else {
|
|||
|
$error = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.';
|
|||
|
}
|
|||
|
} elseif(isset($_GET['sale']) && isset($_GET['item_rep']) && $u->newAct($_GET['sd4']) ) {
|
|||
|
$id = (int)$_GET['item_rep'];
|
|||
|
$itm = mysql_fetch_array(mysql_query('SELECT `im`.*,`iu`.* FROM `items_users` AS `iu` LEFT JOIN `items_main` AS `im` ON (`im`.`id` = `iu`.`item_id`) WHERE `iu`.`uid`="'.$u->info['id'].'" AND `iu`.`delete`="0" AND `iu`.`inOdet`="0" AND `im`.`pricerep` > 0 AND `iu`.`inShop`="0" AND `iu`.`id` = "'.mysql_real_escape_string($id).'" LIMIT 1'));
|
|||
|
$po = $u->lookStats($itm['data']);
|
|||
|
if($u->info['allLock'] > time()) {
|
|||
|
$po['nosale'] = 1;
|
|||
|
}
|
|||
|
if(isset($po['nosale'])){
|
|||
|
$error = '<27><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ...';
|
|||
|
}elseif($pl['type']<29 && ($po['srok'] > 0 || $pl['srok'] > 0)){
|
|||
|
$error = '<27><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ...';
|
|||
|
}elseif(isset($po['frompisher'])){
|
|||
|
$error = '<27><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ...';
|
|||
|
}elseif(isset($itm['id'])){
|
|||
|
$shpCena = $itm['pricerep'];
|
|||
|
|
|||
|
$plmx = 0;
|
|||
|
if($itm['iznosMAXi']!=$itm['iznosMAX'] && $itm['iznosMAX']!=0){
|
|||
|
$plmx = $itm['iznosMAX'];
|
|||
|
}else{
|
|||
|
$plmx = $itm['iznosMAXi'];
|
|||
|
}
|
|||
|
|
|||
|
if($itm['iznosNOW']>0){
|
|||
|
$prc1 = $itm['iznosNOW']/$plmx*100;
|
|||
|
}else{
|
|||
|
$prc1 = 0;
|
|||
|
}
|
|||
|
$shpCena = $shpCena/100*(100-$prc1);
|
|||
|
if($itm['iznosMAX']>0 && $itm['iznosMAXi']>0 && $itm['iznosMAXi']>$itm['iznosMAX']){
|
|||
|
$shpCena = $shpCena/100*($itm['iznosMAX']/$itm['iznosMAXi']*100);
|
|||
|
}
|
|||
|
//$shpCena = $u->round2($shpCena/100*(100-$shopProcent));
|
|||
|
if($shpCena<0){
|
|||
|
$shpCena = 0;
|
|||
|
}
|
|||
|
$col = $u->itemsX($itm['id']);
|
|||
|
if($col>0){
|
|||
|
$shpCena = $shpCena*$col;
|
|||
|
}
|
|||
|
$shpCena = floor($shpCena);
|
|||
|
if($shpCena<0){
|
|||
|
$shpCena = 0;
|
|||
|
}
|
|||
|
$upd2 = mysql_query('UPDATE `items_users` SET `delete` = "'.time().'" WHERE `id` = "'.$itm['id'].'" LIMIT 1');
|
|||
|
if($upd2){
|
|||
|
if($col>1){
|
|||
|
mysql_query('UPDATE `items_users` SET `delete` = "'.time().'" WHERE `item_id`="'.$itm['item_id'].'" AND `uid`="'.$itm['uid'].'" AND `inGroup` = "'.$itm['inGroup'].'" LIMIT '.$col.'');
|
|||
|
}
|
|||
|
$u->rep['rep3'] += $shpCena;
|
|||
|
$upd = mysql_query('UPDATE `rep` SET `rep3` = "'.$u->rep['rep3'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
|||
|
if($upd){
|
|||
|
$error = '<27><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "'.$itm['name'].' (x'.$col.')" <20><> +'.$shpCena.' <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.<br>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: '.($u->rep['rep3']-$u->rep['rep3_buy']).'';
|
|||
|
mysql_query('UPDATE `items_users` SET `inGroup` = "0",`delete` = "'.time().'" WHERE `inGroup` = "'.$itm['id'].'" AND `uid` = "'.$u->info['id'].'" LIMIT '.$itm['group_max'].'');
|
|||
|
$u->addDelo(2,$u->info['id'],'"<font color="green">System.shop</font>": <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "'.$itm['name'].' (x'.$col.')" [itm:'.$itm['id'].'] <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <B>'.$shpCena.' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.</B>.',time(),$u->info['city'],'System.shop',0,0);
|
|||
|
}else{
|
|||
|
$u->addDelo(2,$u->info['id'],'"<font color="green">System.shop</font>": <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "'.$itm['name'].' (x'.$col.')" [itm:'.$itm['id'].'] <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <B>'.$shpCena.' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.</B> (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>).',time(),$u->info['city'],'System.shop',0,0);
|
|||
|
$error = '<27><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>...';
|
|||
|
}
|
|||
|
}else{
|
|||
|
$error = '<27><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>...';
|
|||
|
}
|
|||
|
}else{
|
|||
|
$error = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.';
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
if($re!=''){ echo '<div align="right"><font color="red"><b>'.$re.'</b></font></div>'; } ?>
|
|||
|
<script type="text/javascript">
|
|||
|
function AddCount(name, txt)
|
|||
|
{
|
|||
|
document.getElementById("hint4").innerHTML = '<table border=0 width=100% cellspacing=1 cellpadding=0 bgcolor="#CCC3AA"><tr><td align=center><B><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>. <20><><EFBFBD><EFBFBD></td><td width=20 align=right valign=top style="cursor: pointer" onclick="closehint3();"><BIG><B>x</TD></tr><tr><td colspan=2>'+
|
|||
|
'<form method=post><table border=0 width=100% cellspacing=0 cellpadding=0 bgcolor="#FFF6DD"><tr><INPUT TYPE="hidden" name="set" value="'+name+'"><td colspan=2 align=center><B><I>'+txt+'</td></tr><tr><td width=80% align=right>'+
|
|||
|
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28><>.) <INPUT TYPE="text" NAME="count" id=count size=4></td><td width=20%> <INPUT TYPE="submit" value=" <20><> ">'+
|
|||
|
'</TD></TR></form></TABLE></td></tr></table>';
|
|||
|
document.getElementById("hint4").style.visibility = 'visible';
|
|||
|
document.getElementById("hint4").style.left = '100px';
|
|||
|
document.getElementById("hint4").style.top = '100px';
|
|||
|
document.getElementById("count").focus();
|
|||
|
}
|
|||
|
function closehint3() {
|
|||
|
document.getElementById('hint4').style.visibility='hidden';
|
|||
|
Hint3Name='';
|
|||
|
}
|
|||
|
</script>
|
|||
|
<style type="text/css">
|
|||
|
|
|||
|
.pH3 { COLOR: #8f0000; FONT-FAMILY: Arial; FONT-SIZE: 12pt; FONT-WEIGHT: bold; }
|
|||
|
.class_ {
|
|||
|
font-weight: bold;
|
|||
|
color: #C5C5C5;
|
|||
|
cursor:pointer;
|
|||
|
}
|
|||
|
.class_st {
|
|||
|
font-weight: bold;
|
|||
|
color: #659BA3;
|
|||
|
cursor:pointer;
|
|||
|
}
|
|||
|
.class__ {
|
|||
|
font-weight: bold;
|
|||
|
color: #FFFFFF;
|
|||
|
cursor:pointer;
|
|||
|
background-color: #659BA3;
|
|||
|
}
|
|||
|
.class__st {
|
|||
|
font-weight: bold;
|
|||
|
color: #FFFFFF;
|
|||
|
cursor:pointer;
|
|||
|
background-color: #659BA3;
|
|||
|
font-size: 10px;
|
|||
|
}
|
|||
|
.class_old {
|
|||
|
font-weight: bold;
|
|||
|
color: #919191;
|
|||
|
cursor:pointer;
|
|||
|
}
|
|||
|
.class__old {
|
|||
|
font-weight: bold;
|
|||
|
color: #FFFFFF;
|
|||
|
cursor:pointer;
|
|||
|
background-color: #838383;
|
|||
|
font-size: 10px;
|
|||
|
}
|
|||
|
</style>
|
|||
|
<TABLE width="100%" cellspacing="0" cellpadding="0">
|
|||
|
<tr><td valign="top"><?php
|
|||
|
echo '<b style="color:red">'.$error.'</b>';
|
|||
|
?>
|
|||
|
<br />
|
|||
|
<TABLE width="100%" cellspacing="0" cellpadding="4">
|
|||
|
<TR>
|
|||
|
<form name="F1" method="post">
|
|||
|
<TD valign="top" align="left">
|
|||
|
<!--<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-->
|
|||
|
<table width="100%" cellspacing="0" cellpadding="0" bgcolor="#a5a5a5">
|
|||
|
<div id="hint3" style="visibility:hidden"></div>
|
|||
|
<tr>
|
|||
|
<td align="center" height="21">
|
|||
|
<?php
|
|||
|
/*<2A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)*/
|
|||
|
if(!isset($_GET['sale']) && !isset($_GET['gifts']) && isset($_GET['otdel'])) {
|
|||
|
$otdels_small_array = array (
|
|||
|
'',
|
|||
|
'<b><3E><><EFBFBD><EFBFBD><EFBFBD> "<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,<2C><><EFBFBD><EFBFBD>"</b>',
|
|||
|
'<b><3E><><EFBFBD><EFBFBD><EFBFBD> "<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"</b>',
|
|||
|
'<b><3E><><EFBFBD><EFBFBD><EFBFBD> "<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,<2C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"</b>',
|
|||
|
'<b><3E><><EFBFBD><EFBFBD><EFBFBD> "<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <20><><EFBFBD><EFBFBD>"</b>',
|
|||
|
'<b><3E><><EFBFBD><EFBFBD><EFBFBD> "<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"</b>',
|
|||
|
'<b><3E><><EFBFBD><EFBFBD><EFBFBD> "<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"</b>',
|
|||
|
'<b><3E><><EFBFBD><EFBFBD><EFBFBD> "<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"</b>',
|
|||
|
'<b><3E><><EFBFBD><EFBFBD><EFBFBD> "<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"</b>',
|
|||
|
'<b><3E><><EFBFBD><EFBFBD><EFBFBD> "<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>"</b>',
|
|||
|
'<b><3E><><EFBFBD><EFBFBD><EFBFBD> "<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>"</b>',
|
|||
|
'<b><3E><><EFBFBD><EFBFBD><EFBFBD> "<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <20><><EFBFBD><EFBFBD><EFBFBD>"</b>',
|
|||
|
'<b><3E><><EFBFBD><EFBFBD><EFBFBD> "<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"</b>',
|
|||
|
'<b><3E><><EFBFBD><EFBFBD><EFBFBD> "<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <20><><EFBFBD><EFBFBD><EFBFBD>"</b>',
|
|||
|
'<b><3E><><EFBFBD><EFBFBD><EFBFBD> "<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"</b>',
|
|||
|
'<b><3E><><EFBFBD><EFBFBD><EFBFBD> "<3B><><EFBFBD><EFBFBD>"</b>',
|
|||
|
'<b><3E><><EFBFBD><EFBFBD><EFBFBD> "<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"</b>',
|
|||
|
'<b><3E><><EFBFBD><EFBFBD><EFBFBD> "<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"</b>',
|
|||
|
'<b><3E><><EFBFBD><EFBFBD><EFBFBD> "<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"</b>',
|
|||
|
|
|||
|
'<b><3E><><EFBFBD><EFBFBD><EFBFBD> "<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"</b>',
|
|||
|
'<b><3E><><EFBFBD><EFBFBD><EFBFBD> "<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"</b>'
|
|||
|
,'<b><3E><><EFBFBD><EFBFBD><EFBFBD> "<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"</b>'
|
|||
|
,'<b><3E><><EFBFBD><EFBFBD><EFBFBD> "<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"</b>'
|
|||
|
,'<b><3E><><EFBFBD><EFBFBD><EFBFBD> "<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"</b>'
|
|||
|
,'<b><3E><><EFBFBD><EFBFBD><EFBFBD> "<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"</b>'
|
|||
|
,'<b><3E><><EFBFBD><EFBFBD><EFBFBD> "<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"</b>'
|
|||
|
,'<b><3E><><EFBFBD><EFBFBD><EFBFBD> "<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"</b>'
|
|||
|
|
|||
|
,'<b><3E><><EFBFBD><EFBFBD><EFBFBD> "<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"</b>',
|
|||
|
'<b><3E><><EFBFBD><EFBFBD><EFBFBD> "<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"</b>',
|
|||
|
'<b><3E><><EFBFBD><EFBFBD><EFBFBD> "<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"</b>',
|
|||
|
'<b><3E><><EFBFBD><EFBFBD><EFBFBD> "<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"</b>',
|
|||
|
'<b><3E><><EFBFBD><EFBFBD><EFBFBD> "<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"</b>',
|
|||
|
'<b><3E><><EFBFBD><EFBFBD><EFBFBD> "<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"</b>',
|
|||
|
'<b><3E><><EFBFBD><EFBFBD><EFBFBD> "<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"</b>',
|
|||
|
'<b><3E><><EFBFBD><EFBFBD><EFBFBD> "<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"</b>',
|
|||
|
'<b><3E><><EFBFBD><EFBFBD><EFBFBD> "<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"</b>');
|
|||
|
if(isset($otdels_small_array[$_GET['otdel']])){
|
|||
|
echo $otdels_small_array[$_GET['otdel']];
|
|||
|
}
|
|||
|
//echo '<br><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> 0-7 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> 100%, <20><><EFBFBD><EFBFBD> 8-<2D><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> 95%, <20><><EFBFBD><EFBFBD> 9-<2D><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20> <20><><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> 70%.</b>';
|
|||
|
|
|||
|
} elseif (isset($_GET['sale']) && $_GET['sale']) {
|
|||
|
echo '
|
|||
|
<B><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"</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>...<br>'.
|
|||
|
//<b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> 0-7 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> 99%, <20><><EFBFBD><EFBFBD> 8-<2D><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> 95%, <20><><EFBFBD><EFBFBD> 9-<2D><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20> <20><><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> 70%.</b><br>
|
|||
|
'<EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
|
|||
|
';
|
|||
|
} elseif (isset($_GET['gifts'])) {
|
|||
|
echo '
|
|||
|
<B><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"</B>';
|
|||
|
}
|
|||
|
?>
|
|||
|
</tr>
|
|||
|
<tr><td>
|
|||
|
<!--<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> / <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-->
|
|||
|
<table width="100%" CELLSPACING="1" CELLPADDING="1" bgcolor="#a5a5a5">
|
|||
|
<?php
|
|||
|
if(isset($_GET['gifts']))
|
|||
|
{
|
|||
|
?>
|
|||
|
|
|||
|
<tr><td bgcolor="#D5D5D5">
|
|||
|
<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>. <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
|||
|
<OL>
|
|||
|
<LI><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <EFBFBD><EFBFBD><EFBFBD><EFBFBD><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>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
<INPUT TYPE=text NAME=to_login value="">
|
|||
|
<LI><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>. <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 60 <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)<BR>
|
|||
|
<INPUT TYPE=text NAME=podarok2 value="" maxlength=60 size=50>
|
|||
|
<LI><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <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>
|
|||
|
<TEXTAREA NAME=txt ROWS=6 COLS=80></TEXTAREA>
|
|||
|
<LI><EFBFBD><EFBFBD><EFBFBD><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>
|
|||
|
<INPUT TYPE=radio NAME=from value=0 checked> <B><?=$u->info['login']?></B> [<?=$u->info['level']?>]<BR>
|
|||
|
<INPUT TYPE=radio NAME=from value=1 > <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><BR>
|
|||
|
<? if($u->info['clan']>0){ ?><INPUT TYPE=radio NAME=from value=2 > <20><> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><BR><? } ?>
|
|||
|
<LI><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <B><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></B> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><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>
|
|||
|
</OL>
|
|||
|
<input name="itemgift" id="itemgift" type="hidden" value="0" />
|
|||
|
</td></tr>
|
|||
|
<?php
|
|||
|
}
|
|||
|
if(isset($_GET['gifts']))
|
|||
|
{
|
|||
|
$htmlg2 = '';
|
|||
|
$sp = mysql_query('SELECT * FROM `users_gifts` WHERE `uid` = "'.$u->info['id'].'"');
|
|||
|
while( $pl = mysql_fetch_array($sp) ) {
|
|||
|
$itmg2 = '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td width="160" align="center" style="border-right:#A5A5A5 1px solid; padding:5px;">'.
|
|||
|
//
|
|||
|
'<img style="padding-bottom:5px;" src="https://img.new-combats.com/i/items/'.$pl['img'].'"><br>'.
|
|||
|
'<input onClick="document.getElementById(\'itemgift\').value='.(1000000000000+$pl['id']).';document.F1.submit();" type="button" value="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> '.$pl['money'].' <20><>.">'.
|
|||
|
//
|
|||
|
'</td><td align="left" valign="top" style="border-right:#A5A5A5 1px solid; padding:5px;">'.
|
|||
|
//
|
|||
|
'<a href="https://new-combats.com/item/0">'.$pl['name'].'</a> (<28><><EFBFBD><EFBFBD><EFBFBD>: 1)<br><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: 0/1<br>'.
|
|||
|
'<small><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:</b><br><3E><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>.<br><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> Capital city</small>'.
|
|||
|
//
|
|||
|
'</td></tr></table>';
|
|||
|
$htmlg2 .= '<tr><td align="center" bgcolor="#e2e0e0">'.$itmg2.'</td></tr>';
|
|||
|
}
|
|||
|
if( $htmlg2 != '' ) {
|
|||
|
echo '<tr><td align="center" bgcolor="#e2e0e0"><h3><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></h3>' . $htmlg2 . '</td></tr>';
|
|||
|
echo '<tr><td align="center" bgcolor="#e2e0e0"><h3><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></h3></td></tr>';
|
|||
|
}
|
|||
|
unset($htmlg2,$itmg2);
|
|||
|
//
|
|||
|
$itmAll = $u->genInv(3,'`iu`.`uid`="'.$u->info['id'].'" AND `iu`.`delete`="0" AND `iu`.`inOdet`="0" AND `iu`.`inShop`="0" AND (`im`.`type` = "28" OR `im`.`type` = "38" OR `im`.`type` = "63" OR `im`.`type` = "64") AND (`iu`.`gift` = "" OR (`iu`.`data` LIKE "%|zazuby=%" AND `iu`.`gift` = 1)) ORDER BY `lastUPD` DESC');
|
|||
|
if($itmAll[0]==0){
|
|||
|
$itmAllSee = '<tr><td align="center" bgcolor="#e2e0e0"><3E> <20><><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td></tr>';
|
|||
|
}else{
|
|||
|
$itmAllSee = $itmAll[2];
|
|||
|
}
|
|||
|
echo $itmAllSee;
|
|||
|
}elseif(!isset($_GET['sale'])){
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
$u->shopItems($sid);
|
|||
|
}else{
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
$itmAll = $u->genInv(2,'`iu`.`uid`="'.$u->info['id'].'" AND `iu`.`delete`="0" AND `iu`.`inOdet`="0" AND `iu`.`inShop`="0" ORDER BY `lastUPD` DESC');
|
|||
|
if($itmAll[0]==0){
|
|||
|
$itmAllSee = '<tr><td align="center" bgcolor="#e2e0e0"><3E><><EFBFBD><EFBFBD><EFBFBD></td></tr>';
|
|||
|
}else{
|
|||
|
$itmAllSee = $itmAll[2];
|
|||
|
}
|
|||
|
echo $itmAllSee;
|
|||
|
}
|
|||
|
?>
|
|||
|
</TABLE>
|
|||
|
</TD></TR>
|
|||
|
</TABLE>
|
|||
|
</TD>
|
|||
|
</FORM>
|
|||
|
</TR>
|
|||
|
</TABLE>
|
|||
|
<td width="280" valign="top">
|
|||
|
<TABLE cellspacing="0" cellpadding="0"><TD width="100%"> </TD><TD>
|
|||
|
<table border="0" cellpadding="0" cellspacing="0">
|
|||
|
<tr align="right" valign="top">
|
|||
|
<td>
|
|||
|
<!-- -->
|
|||
|
<? echo $goLis; ?>
|
|||
|
<!-- -->
|
|||
|
<table border="0" cellspacing="0" cellpadding="0">
|
|||
|
<tr>
|
|||
|
<td nowrap="nowrap">
|
|||
|
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#DEDEDE">
|
|||
|
<tr>
|
|||
|
<td bgcolor="#D3D3D3"><img src="https://img.new-combats.com/i/move/links.gif" width="9" height="7" /></td>
|
|||
|
<td bgcolor="#D3D3D3" nowrap><a href="#" id="greyText" class="menutop" onclick="location='main.php?loc=2.180.0.234&rnd=<? echo $code; ?>';" title="<? thisInfRm('2.180.0.234',1); ?>"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></a></td>
|
|||
|
</tr>
|
|||
|
<? /*<tr>
|
|||
|
<td bgcolor="#D3D3D3"><img src="https://img.new-combats.com/i/move/links.gif" width="9" height="7" /></td>
|
|||
|
<td bgcolor="#D3D3D3" nowrap><a href="#" id="greyText" class="menutop" onclick="location='main.php?loc=1.180.0.368&rnd=<? echo $code; ?>';" title="<? thisInfRm('1.180.0.368',1); ?>"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></a></td>
|
|||
|
</tr>*/ ?>
|
|||
|
</table>
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
</table>
|
|||
|
</td></table>
|
|||
|
</td></table>
|
|||
|
<div><br />
|
|||
|
<div align="right">
|
|||
|
<small>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <?=$u->aves['now']?>/<?=$u->aves['max']?> <br />
|
|||
|
<EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <b style="color:#339900;"><?php echo round($u->info['money'],2); ?> <20><>.</b>
|
|||
|
<?
|
|||
|
if($u->info['level'] < 8) {
|
|||
|
?>
|
|||
|
<br /><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <?=$u->zuby($u->info['money4'])?>
|
|||
|
<?
|
|||
|
}
|
|||
|
?>
|
|||
|
</small>
|
|||
|
</div>
|
|||
|
<br />
|
|||
|
<?php
|
|||
|
/*<2A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>*/
|
|||
|
if( !isset($_GET['sale']) ) {
|
|||
|
echo '<INPUT TYPE="button" value="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>" onclick="location=\'?otdel='.$_GET['otdel'].'&sale=1\'"> ';
|
|||
|
} else {
|
|||
|
echo '<INPUT TYPE="button" value="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>" onclick="location=\'?otdel='.$_GET['otdel'].'\'"> ';
|
|||
|
}
|
|||
|
?>
|
|||
|
<INPUT TYPE="button" value="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" onclick="location = '<? echo str_replace('item','',str_replace('buy','',$_SERVER['REQUEST_URI'])); ?>';"><BR>
|
|||
|
</div>
|
|||
|
<div style="background-color:#A5A5A5;padding:1"><center><B><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></B></center></div>
|
|||
|
<div style="line-height:17px;">
|
|||
|
<?php
|
|||
|
/*<2A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)*/
|
|||
|
$otdels_array = array (
|
|||
|
'',
|
|||
|
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,<2C><><EFBFBD><EFBFBD>',
|
|||
|
' <3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
|
|||
|
' <3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,<2C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
|
|||
|
' <3B><><EFBFBD><EFBFBD>',
|
|||
|
' <3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
|
|||
|
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
|
|||
|
' <3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
|
|||
|
' <3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
|
|||
|
' <3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>',
|
|||
|
' <3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>',
|
|||
|
' <3B><><EFBFBD><EFBFBD><EFBFBD>',
|
|||
|
' <3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
|
|||
|
' <3B><><EFBFBD><EFBFBD><EFBFBD>',
|
|||
|
' <3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
|
|||
|
'<27><><EFBFBD><EFBFBD>',
|
|||
|
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
|
|||
|
' <3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
|
|||
|
' <3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
|
|||
|
|
|||
|
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
|
|||
|
' <3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
|
|||
|
' <3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
|
|||
|
' <3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
|
|||
|
' <3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
|
|||
|
' <3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
|
|||
|
' <3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
|
|||
|
' <3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
|
|||
|
|
|||
|
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
|
|||
|
' <3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
|
|||
|
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
|
|||
|
' <3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
|
|||
|
' <3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
|
|||
|
' <3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
|
|||
|
' <3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
|
|||
|
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
|
|||
|
//'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'
|
|||
|
'');
|
|||
|
$i=1;
|
|||
|
while ($i!=-1)
|
|||
|
{
|
|||
|
if(isset($otdels_array[$i]))
|
|||
|
{
|
|||
|
if(isset($_GET['otdel']) && $_GET['otdel']==$i)
|
|||
|
{
|
|||
|
$color = 'C7C7C7';
|
|||
|
} else {
|
|||
|
$color = 'e2e0e0';
|
|||
|
}
|
|||
|
echo '
|
|||
|
<A HREF="?otdel='.$i.'"><DIV style="background-color: #'.$color.'">
|
|||
|
'.$otdels_array[$i].'
|
|||
|
</A></DIV>
|
|||
|
';
|
|||
|
} else {
|
|||
|
$i = -2;
|
|||
|
}
|
|||
|
$i++;
|
|||
|
}
|
|||
|
|
|||
|
if(isset($_GET['gifts']))
|
|||
|
{
|
|||
|
$color = 'C7C7C7';
|
|||
|
}else{
|
|||
|
$color = 'e2e0e0';
|
|||
|
}
|
|||
|
echo '<A HREF="?otdel=32&gifts=1"><DIV style="background-color: #'.$color.'"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></A></DIV>';
|
|||
|
?>
|
|||
|
</div>
|
|||
|
</td>
|
|||
|
</table>
|
|||
|
<br>
|
|||
|
<div id="textgo" style="visibility:hidden;"></div>
|
|||
|
<?
|
|||
|
}
|
|||
|
?>
|