From ad1b7049a0bc9c7dd3431c0a8e0364bfd8c6e866 Mon Sep 17 00:00:00 2001 From: lopar Date: Fri, 30 Mar 2018 22:54:18 +0300 Subject: [PATCH] untracking unused-files --- _unused-files/arch_.php | 188 -- _unused-files/bt.php | 101 - _unused-files/change_login.php | 55 - _unused-files/clan_kazna.php | 162 -- _unused-files/clan_log.php | 18 - _unused-files/clan_main.php | 125 -- _unused-files/clan_panel.php | 105 -- _unused-files/contact.php | 74 - _unused-files/deal.php | 274 --- _unused-files/downgrade_art.php | 94 - _unused-files/file_db_func.php | 87 - _unused-files/fontan_luck.php | 339 ---- _unused-files/game_main.php | 563 ------ _unused-files/hellround.php | 121 -- _unused-files/rate_ruins.php | 22 - _unused-files/store/.htaccess1 | 6 - _unused-files/store/CHANGES.md | 1065 ----------- _unused-files/store/adapters/jquery.js | 10 - _unused-files/store/build-config.js | 182 -- _unused-files/store/city/img/hram1.png | Bin 260805 -> 0 bytes _unused-files/store/city/img/hram2.gif | Bin 248024 -> 0 bytes _unused-files/store/city/img/hram3.png | Bin 229914 -> 0 bytes _unused-files/store/city/img/index.php | 0 _unused-files/store/city/index.php | 0 _unused-files/store/ckeditor.js | 1084 ----------- _unused-files/store/config.js | 10 - _unused-files/store/contents.css | 135 -- _unused-files/store/css/_notes/dwsync.xml | 4 - _unused-files/store/css/index.php | 411 ----- _unused-files/store/css/samples.css | 1640 ----------------- _unused-files/store/css/style.css | 47 - _unused-files/store/error.txt | 1 - _unused-files/store/images/back_yellow.gif | Bin 43 -> 0 bytes _unused-files/store/images/bottom.gif | Bin 872 -> 0 bytes _unused-files/store/images/bottom.jpg | Bin 50009 -> 0 bytes _unused-files/store/images/deviz.bmp | Bin 93490 -> 0 bytes _unused-files/store/images/deviz.gif | Bin 14530 -> 0 bytes _unused-files/store/images/flag_dark.gif | Bin 1375 -> 0 bytes _unused-files/store/images/flag_haos.gif | Bin 1454 -> 0 bytes _unused-files/store/images/flag_light.gif | Bin 1206 -> 0 bytes _unused-files/store/images/header_bg.jpg | Bin 153766 -> 0 bytes _unused-files/store/images/icon_artefact.gif | Bin 3738 -> 0 bytes _unused-files/store/images/icon_autors.gif | Bin 3946 -> 0 bytes _unused-files/store/images/icon_body.gif | Bin 3099 -> 0 bytes _unused-files/store/images/icon_comment.gif | Bin 3589 -> 0 bytes _unused-files/store/images/icon_credit.gif | Bin 2657 -> 0 bytes _unused-files/store/images/icon_dark.gif | Bin 1821 -> 0 bytes _unused-files/store/images/icon_epos.gif | Bin 4081 -> 0 bytes .../store/images/icon_eurocredit.gif | Bin 2043 -> 0 bytes _unused-files/store/images/icon_gorods.gif | Bin 5018 -> 0 bytes _unused-files/store/images/icon_haos.gif | Bin 2205 -> 0 bytes _unused-files/store/images/icon_logo.gif | Bin 3099 -> 0 bytes _unused-files/store/images/icon_logo.jpg | Bin 9831 -> 0 bytes _unused-files/store/images/icon_logo.png | Bin 70220 -> 0 bytes _unused-files/store/images/icon_monstr.gif | Bin 5223 -> 0 bytes _unused-files/store/images/icon_paladin.gif | Bin 1612 -> 0 bytes _unused-files/store/images/icon_paladin1.gif | Bin 1602 -> 0 bytes _unused-files/update_art.php | 95 - 58 files changed, 7018 deletions(-) delete mode 100644 _unused-files/arch_.php delete mode 100644 _unused-files/bt.php delete mode 100644 _unused-files/change_login.php delete mode 100644 _unused-files/clan_kazna.php delete mode 100644 _unused-files/clan_log.php delete mode 100644 _unused-files/clan_main.php delete mode 100644 _unused-files/clan_panel.php delete mode 100644 _unused-files/contact.php delete mode 100644 _unused-files/deal.php delete mode 100644 _unused-files/downgrade_art.php delete mode 100644 _unused-files/file_db_func.php delete mode 100644 _unused-files/fontan_luck.php delete mode 100644 _unused-files/game_main.php delete mode 100644 _unused-files/hellround.php delete mode 100644 _unused-files/rate_ruins.php delete mode 100644 _unused-files/store/.htaccess1 delete mode 100644 _unused-files/store/CHANGES.md delete mode 100644 _unused-files/store/adapters/jquery.js delete mode 100644 _unused-files/store/build-config.js delete mode 100644 _unused-files/store/city/img/hram1.png delete mode 100644 _unused-files/store/city/img/hram2.gif delete mode 100644 _unused-files/store/city/img/hram3.png delete mode 100644 _unused-files/store/city/img/index.php delete mode 100644 _unused-files/store/city/index.php delete mode 100644 _unused-files/store/ckeditor.js delete mode 100644 _unused-files/store/config.js delete mode 100644 _unused-files/store/contents.css delete mode 100644 _unused-files/store/css/_notes/dwsync.xml delete mode 100644 _unused-files/store/css/index.php delete mode 100644 _unused-files/store/css/samples.css delete mode 100644 _unused-files/store/css/style.css delete mode 100644 _unused-files/store/error.txt delete mode 100644 _unused-files/store/images/back_yellow.gif delete mode 100644 _unused-files/store/images/bottom.gif delete mode 100644 _unused-files/store/images/bottom.jpg delete mode 100644 _unused-files/store/images/deviz.bmp delete mode 100644 _unused-files/store/images/deviz.gif delete mode 100644 _unused-files/store/images/flag_dark.gif delete mode 100644 _unused-files/store/images/flag_haos.gif delete mode 100644 _unused-files/store/images/flag_light.gif delete mode 100644 _unused-files/store/images/header_bg.jpg delete mode 100644 _unused-files/store/images/icon_artefact.gif delete mode 100644 _unused-files/store/images/icon_autors.gif delete mode 100644 _unused-files/store/images/icon_body.gif delete mode 100644 _unused-files/store/images/icon_comment.gif delete mode 100644 _unused-files/store/images/icon_credit.gif delete mode 100644 _unused-files/store/images/icon_dark.gif delete mode 100644 _unused-files/store/images/icon_epos.gif delete mode 100644 _unused-files/store/images/icon_eurocredit.gif delete mode 100644 _unused-files/store/images/icon_gorods.gif delete mode 100644 _unused-files/store/images/icon_haos.gif delete mode 100644 _unused-files/store/images/icon_logo.gif delete mode 100644 _unused-files/store/images/icon_logo.jpg delete mode 100644 _unused-files/store/images/icon_logo.png delete mode 100644 _unused-files/store/images/icon_monstr.gif delete mode 100644 _unused-files/store/images/icon_paladin.gif delete mode 100644 _unused-files/store/images/icon_paladin1.gif delete mode 100644 _unused-files/update_art.php diff --git a/_unused-files/arch_.php b/_unused-files/arch_.php deleted file mode 100644 index 101e2f2..0000000 --- a/_unused-files/arch_.php +++ /dev/null @@ -1,188 +0,0 @@ -#!/usr/bin/php - /var/log/arch.log'); - sleep(5); - } - - $arch = mysql_fetch_array(mysql_query("SELECT * FROM `users` WHERE `id` = '233' LIMIT 1")); - $arha = mysql_fetch_array(mysql_query("SELECT * FROM `bots` WHERE `prototype` = '233' LIMIT 1")); - $user = $arch; - - $rhar = array("501" => array (20,0,502,505,0),"502" => array (15,0,0,0,501),"503" => array (15,0,0,507,0),"504" => array (15,0,0,508,0),"505" => array (20,501,0,510,0),"506" => array (15,0,507,511,0),"507" => array (15,503,508,0,506),"508" => array (25,504,0,513,507),"509" => array (20,0,0,515,0),"510" => array (20,505,511,0,0),"511" => array (20,506,0,0,510),"512" => array (30,0,513,519,0),"513" => array (25,508,514,0,512),"514" => array (20,0,0,0,513),"515" => array (20,509,0,522,0),"516" => array (25,0,517,523,0),"517" => array (25,0,518,0,516),"518" => array (35,0,519,525,517),"519" => array (35,512,520,526,518),"520" => array (35,0,521,0,519),"521" => array (15,0,0,528,0),"522" => array (20,515,0,529,0),"523" => array (15,516,0,530,0),"524" => array (20,0,525,531,0),"525" => array (35,518,526,532,524),"526" => array (40,519,527,533,525),"527" => array (35,0,0,0,526),"528" => array (15,521,529,535,0),"529" => array (20,522,0,0,528),"530" => array (20,523,531,537,0),"531" => array (35,524,0,538,530),"532" => array (20,525,533,539,0),"533" => array (20,526,534,540,532),"534" => array (15,0,0,0,533),"535" => array (20,528,0,541,0),"536" => array (20,0,537,0,535),"537" => array (35,530,0,543,536),"538" => array (20,531,0,544,0),"539" => array (20,532,0,545,0),"540" => array (15,533,0,546,0),"541" => array (20,535,542,547,0),"542" => array (15,0,543,0,541),"543" => array (40,537,544,549,542),"544" => array (40,538,545,550,543),"545" => array (40,539,0,551,544),"546" => array (15,540,0,552,0),"547" => array (20,541,548,553,0),"548" => array (20,0,549,0,547),"549" => array (35,543,550,0,548),"550" => array (40,544,551,554,549),"551" => array (40,545,0,555,550),"552" => array (15,546,0,556,0),"553" => array (20,547,0,557,0),"554" => array (20,550,555,0,0),"555" => array (35,551,0,0,554),"556" => array (15,552,0,559,0),"557" => array (15,553,0,0,0),"558" => array (20,0,559,0,0),"559" => array (20,556,560,0,558),"560" => array (20,0,0,0,559)); - $nextroom = mt_rand(1, 4); - - if(time()-$movetime >= $rhar[$arch['room']][0] && $rhar[$arch['room']][$nextroom] > 0 && !$arha['battle']) { - $movetime = time(); - $list = mysql_query("SELECT `id`, `room`, `login` FROM `users` WHERE `room` = '".$arch['room']."' AND `in_tower` = 1"); - while($u = mysql_fetch_array($list)) { - addchp('Внимание! Архивариус отправился в '.$rooms[$rhar[$arch['room']][$nextroom]].'.', '{[]}'.$u['login'].'{[]}'); - } - - $arch['room'] = $rhar[$arch['room']][$nextroom]; - $list = mysql_query("SELECT `id`, `room`, `login` FROM `users` WHERE `room` = '".$arch['room']."' AND `in_tower` = 1"); - while($u = mysql_fetch_array($list)) { - addchp('Внимание! Архивариус вошел в комнату.', '{[]}'.$u['login'].'{[]}'); - } - #exec("echo \"".date("Y-m-d H:i:s")."[MOVE] ".$arch['room']."\" >> /var/log/arch.log"); - mysql_query("UPDATE `users`, `online` SET `users`.`room` = '".$arch['room']."', `online`.`room` = '".$arch['room']."' WHERE `online`.`id` = `users`.`id` AND `online`.`id` = '233'"); - } - - $d = mysql_fetch_array(mysql_query("SELECT SUM(`massa`) FROM `inventory` WHERE `owner` = '233' AND `dressed` = 0")); - if($d[0] < $arch['sila']*4 && !$arha['battle']) { - $objs = mysql_query("SELECT * FROM `deztow_items` WHERE `name` != 'Чек на предьявителя' AND `room` = '".$arch['room']."' LIMIT 1"); - while($obj = mysql_fetch_array($objs)) { - mysql_query("DELETE FROM `deztow_items` WHERE `id` = '".$obj['id']."' LIMIT 1"); - $dress = mysql_fetch_array(mysql_query("SELECT * FROM `shop` WHERE `id` = '".$obj['iteam_id']."' LIMIT 1")); - mysql_query("INSERT INTO `inventory` (`prototype`,`owner`,`name`,`type`,`massa`,`cost`,`img`,`maxdur`,`isrep`,`gsila`,`glovk`,`ginta`,`gintel`,`ghp`,`gnoj`,`gtopor`,`gdubina`,`gmech`,`gfire`,`gwater`,`gair`,`gearth`,`glight`,`ggray`,`gdark`,`needident`,`nsila`,`nlovk`,`ninta`,`nintel`,`nmudra`,`nvinos`,`nnoj`,`ntopor`,`ndubina`,`nmech`,`nfire`,`nwater`,`nair`,`nearth`,`nlight`,`ngray`,`ndark`,`mfkrit`,`mfakrit`,`mfuvorot`,`mfauvorot`,`bron1`,`bron2`,`bron3`,`bron4`,`maxu`,`minu`,`magic`,`nlevel`,`nalign`,`dategoden`,`goden`,`otdel`,`gmp`,`gmeshok`,`encicl`,`artefact`,`koll`) VALUES ('{$dress['id']}','233','{$dress['name']}','{$dress['type']}',{$dress['massa']},{$dress['cost']},'{$dress['img']}',{$dress['maxdur']},{$dress['isrep']},'{$dress['gsila']}','{$dress['glovk']}','{$dress['ginta']}','{$dress['gintel']}','{$dress['ghp']}','{$dress['gnoj']}','{$dress['gtopor']}','{$dress['gdubina']}','{$dress['gmech']}','{$dress['gfire']}','{$dress['gwater']}','{$dress['gair']}','{$dress['gearth']}','{$dress['glight']}','{$dress['ggray']}','{$dress['gdark']}','{$dress['needident']}','{$dress['nsila']}','{$dress['nlovk']}','{$dress['ninta']}','{$dress['nintel']}','{$dress['nmudra']}','{$dress['nvinos']}','{$dress['nnoj']}','{$dress['ntopor']}','{$dress['ndubina']}','{$dress['nmech']}','{$dress['nfire']}','{$dress['nwater']}','{$dress['nair']}','{$dress['nearth']}','{$dress['nlight']}','{$dress['ngray']}','{$dress['ndark']}','{$dress['mfkrit']}','{$dress['mfakrit']}','{$dress['mfuvorot']}','{$dress['mfauvorot']}','{$dress['bron1']}','{$dress['bron2']}','{$dress['bron3']}','{$dress['bron4']}','{$dress['maxu']}','{$dress['minu']}','{$dress['magic']}','{$dress['nlevel']}','{$dress['nalign']}','".(($dress['goden'])?($dress['goden']*24*60*60+time()):"")."','{$dress['goden']}','{$dress['razdel']}','{$dress['gmp']}','{$dress['gmeshok']}','{$dress['encicl']}','{$dress['artefact']}','{$dress[koll]}')"); - $iid = mysql_insert_id(); - $ncost = $dress['cost']; - $nal = $dress['nalign']; - $nid = $dress['id']; - switch($dress['type']) { - case 1: $slot1 = 'sergi'; break; - case 2: $slot1 = 'kulon'; break; - case 3: $slot1 = 'weap'; break; - case 4: $slot1 = 'bron'; break; - case 5: $slot1 = 'r1'; break; - case 6: $slot1 = 'r2'; break; - case 7: $slot1 = 'r3'; break; - case 8: $slot1 = 'helm'; break; - case 9: $slot1 = 'perchi'; break; - case 10: $slot1 = 'shit'; break; - case 11: $slot1 = 'boots'; break; - } - $dress = mysql_fetch_array(mysql_query("SELECT `cost` FROM `inventory` WHERE `id` = '".$arch[$slot1]."' LIMIT 1")); - if($dress[0] < $ncost && $nal == 0) { - dressitem2($iid); - } - } - } - - $pay = mysql_fetch_array(mysql_query("SELECT `present` FROM `inventory` WHERE `owner` = 233 AND `name` = 'Чек на предьявителя';")); - if($pay && !$arha['battle']) { - mysql_query("DELETE FROM `inventory` WHERE `owner` = 233 AND `name` = 'Чек на предьявителя';"); - $us = mysql_fetch_array(mysql_query("SELECT `id` FROM `users` WHERE `login` = '".$pay[0]."' LIMIT 1;")); - if(rand(1,2)==1) { - mysql_query("UPDATE `users` SET `money` = `money`+400 WHERE `login` = '".$pay[0]."';"); - addchp ('Внимание! Архивариус передал вам 400.00 кр. ','{[]}'.$pay[0].'{[]}'); - exec("echo \"[PAYMENT] obnal to ".$us['id']."\" >> /var/log/arch.log"); - mysql_query('UPDATE `deztow_turnir` SET `log` = CONCAT(`log`,\''."".date("d.m.y H:i")." ".nick::id($us['id'])->full(1)." обналичил чек на 400 кр.
".'\') WHERE `active` = TRUE'); - } else { - mysql_query('UPDATE `deztow_turnir` SET `log` = CONCAT(`log`,\''."".date("d.m.y H:i")." ".nick::id(233)->full(1)." в ярости накинулся на ".nick::id($us['id'])->full(1).".
".'\') WHERE `active` = TRUE'); - // начинаем бой - mysql_query("INSERT INTO `bots` (`name`,`prototype`,`battle`,`hp`) values ('Архивариус','233','','".$arch['hp']."');"); - $bot = mysql_insert_id(); - $teams = array(); - $teams[$bot][$jert['id']] = array(0,0,time()); - $teams[$jert['id']][$bot] = array(0,0,time()); - $sv = array(3,5,7,10); - mysql_query("INSERT INTO `battle` ( - `id`,`coment`,`teams`,`timeout`,`type`,`status`,`t1`,`t2`,`to1`,`to2`) - VALUES - (NULL,'','".serialize($teams)."','".$sv[rand(0,3)]."','10','0','".$bot."','".$jert['id']."','".time()."','".time()."')"); - } - $id = mysql_insert_id(); - mysql_query("UPDATE `bots` SET `battle` = {$id} WHERE `id` = {$bot} LIMIT 1;"); - mysql_query("UPDATE `users` SET `battle` = {$id} WHERE `id` = {$jert['id']} LIMIT 1;"); - // создаем лог - addlog($id,"Часы показывали ".date("Y.m.d H.i").", когда ".$rr." бросили вызов друг другу.
"); - //chmod("/backup/logs/battle".$id.".txt",766); - chown ("../backup/logs/battle".$id.".txt" , "www-data" ); - chgrp ("../backup/logs/battle".$id.".txt" , "www-data" ); - exec("echo \"".date("Y-m-d H:i:s")."[PAYMENT] aggression to ".$jert['id']."\" >> /var/log/arch.log"); - mysql_query("UPDATE users SET `battle` ={$id},`zayavka`=0 WHERE `id` = {$jert['id']}"); - mysql_query('UPDATE `deztow_turnir` SET `log` = CONCAT(`log`,\''."".date("d.m.y H:i")." ".nick::id($bot)->full(1)." напал на ".nick::id($jert['id'])->full(1)." завязался бой »»
".'\') WHERE `active` = TRUE'); - $archa['battle'] = $id; - } - - // нападаем на юзверей - if(($starttime+180) <= time() AND !$arha['battle']) { - $jert = mysql_fetch_array(mysql_query("SELECT * FROM `users` WHERE `room` = '".$arch['room']."' AND `in_tower`=1 AND `id`<>233 LIMIT 1;")); - //print_r($jert); - if($jert['hp'] > 0 && ($jert['id']!=233)) { - if($jert['battle'] > 0) { - // вмешиваемся - mysql_query("INSERT INTO `bots` (`name`,`prototype`,`battle`,`hp`) values ('Архивариус','233','','".$arch['hp']."');"); - $bot = mysql_insert_id(); - - $bd = mysql_fetch_array(mysql_query ('SELECT * FROM `battle` WHERE `id` = '.$jert['battle'].' LIMIT 1;')); - $battle = unserialize($bd['teams']); - $ak = array_keys($battle[$jert['id']]); - $battle[$bot] = $battle[$ak[0]]; - foreach($battle[$bot] as $k => $v) { - $battle[$k][$bot] = array(0,0,time()); - } - $t1 = explode(";",$bd['t1']); - // проставляем кто-где - if (in_array ($jert['id'],$t1)) { - $ttt = 2; - } else { - $ttt = 1; - } - addlog($jert['battle'],''.date("H:i").' '.nick5($bot,"B".$ttt).' вмешался в поединок!
\') WHERE `id` = '.$jert['battle'].''); - exec("echo \"".date("Y-m-d H:i:s")."[AGRESSION] in battle to ".$jert['id']."\" >> /var/log/arch.log"); - mysql_query('UPDATE `battle` SET `teams` = \''.serialize($battle).'\', `t'.$ttt.'`=CONCAT(`t'.$ttt.'`,\';'.$bot.'\') WHERE `id` = '.$jert['battle'].' ;'); - mysql_query("UPDATE bots SET `battle` =".$jert['battle']." WHERE `id`= ".$bot); - mysql_query('UPDATE `deztow_turnir` SET `log` = CONCAT(`log`,\''."".date("d.m.y H:i")." ".nick::id($bot)->full(1)." вмешался в поединок »»
".'\') WHERE `active` = TRUE;'); - }else - { - // начинаем бой - mysql_query("INSERT INTO `bots` (`name`,`prototype`,`battle`,`hp`) values ('Архивариус','233','','".$arch['hp']."');"); - $bot = mysql_insert_id(); - - $teams = array(); - $teams[$bot][$jert['id']] = array(0,0,time()); - $teams[$jert['id']][$bot] = array(0,0,time()); - $sv = array(3,5,7,10); - //$tou = array_rand($sv,1); - exec("echo \"".date("Y-m-d H:i:s")."[AGRESSION] to ".$jert['id']."\" >> /var/log/arch.log"); - mysql_query("INSERT INTO `battle` - ( - `id`,`coment`,`teams`,`timeout`,`type`,`status`,`t1`,`t2`,`to1`,`to2` - ) - VALUES - ( - NULL,'','".serialize($teams)."','".$sv[rand(0,3)]."','10','0','".$bot."','".$jert['id']."','".time()."','".time()."' - )"); - - $id = mysql_insert_id(); - - // апдейтим врага - mysql_query("UPDATE `bots` SET `battle` = {$id} WHERE `id` = {$bot} LIMIT 1;"); - mysql_query("UPDATE `users` SET `battle` = {$id} WHERE `id` = {$jert['id']} LIMIT 1;"); - - - // создаем лог - $rr = "".nick::id($bot)->full(1)." и ".nick::id($jert['id'])->full(1).""; - - addlog($id,"Часы показывали ".date("Y.m.d H.i").", когда ".$rr." бросили вызов друг другу.
"); - //chmod("/backup/logs/battle".$id.".txt",766); - chown ("../backup/logs/battle".$id.".txt" , "www-data" ); - chgrp ("../backup/logs/battle".$id.".txt" , "www-data" ); - - mysql_query("UPDATE users SET `battle` ={$id},`zayavka`=0 WHERE `id` = {$jert['id']}"); - mysql_query('UPDATE `deztow_turnir` SET `log` = CONCAT(`log`,\''."".date("d.m.y H:i")." ".nick::id($bot)->full(1)." напал на ".nick::id($jert['id'])->full(1)." завязался бой »»
".'\') WHERE `active` = TRUE'); - } - } - } - sleep(5); -} -?> \ No newline at end of file diff --git a/_unused-files/bt.php b/_unused-files/bt.php deleted file mode 100644 index 8d909fb..0000000 --- a/_unused-files/bt.php +++ /dev/null @@ -1,101 +0,0 @@ -
- 11) || $e == 24) $e++;
-  if ((((($e + $day)*6+11)%177)/22 & 7) == 4) {
-    return true;
-  }
-}
-
- echo moon_phase(date("Y"),date("m"),date("d"));
-*/
-
-include "config.php";
-include "functions.php";
-
-//if($_GET['rep']) {
-//  $d = mysql_fetch_array(mysql_query("SELECT * from inventory where owner=0 AND `id`=".$_GET['rep']));
-//  $dd = mysql_fetch_array(mysql_query("SELECT * FROM `delo` WHERE `text` LIKE '%".$d['id']."%'ORDER BY `id` DESC LIMIT 1"));
-//  mysql_query("UPDATE inventory SET owner='".$dd['pers']."' WHERE `id`='".$_GET['rep']."';");
-//}
-
-//$data = mysql_query("SELECT * from inventory where `owner`='0' OR `owner`=''");
-//while($d = mysql_fetch_array($data)) {
-//  $dd = mysql_fetch_array(mysql_query("SELECT * FROM `delo` WHERE `text` LIKE '%".$d['id']."%'ORDER BY `id` DESC LIMIT 1"));
-//  echo $d['id']." ".$d['name']." ".$dd['pers']." ".$dd['text']." Вернуть ".nick7($dd['pers'])."
"; -//} -//settravma(2); -// exec("../daemons/arch.php"); - - -$exps = array( - "20" => array (15), - "45" => array (16), - "75" => array (17), - "110" => array (18), - "160" => array (21), - "215" => array (22), - "280" => array (23), - "350" => array (24), - "410" => array (25), - "530" => array (28), - "670" => array (29), - "830" => array (30), - "950" => array (31), - "1100" => array (32), - "1300" => array (33), - "1450" => array (36), - "1650" => array (37), - "1850" => array (38), - "2050" => array (39), - "2200" => array (40), - "2500" => array (41), - "2900" => array (46), - "3350" => array (47), - "3800" => array (48), - "4200" => array (49), - "4600" => array (50), - "5000" => array (51), - "6000" => array (54), - "7000" => array (55), - "8000" => array (56), - "9000" => array (57), - "10000" => array (58), - "11000" => array (59), - "12000" => array (60), - "12500" => array (61), - "14000" => array (64), - "15500" => array (65), - "17000" => array (66), - "19000" => array (67), - "21000" => array (68), - "23000" => array (69), - "27000" => array (70), - "30000" => array (71), - "60000" => array (76), - "75000" => array (77), - "150000" => array (78), - "175000" => array (79) ); - -echo "
";
-  $ss = mysql_query("select `id`,`nextup`,`level` FROM `users` WHERE `level` > 0 AND `level` < 8 AND id='6490';");
-  while($ssd=mysql_fetch_array($ss)) {
-    undressall($ssd['id']);
-    mysql_query( "UPDATE `users` SET `sila`='3',`lovk`='3',`inta`='3',`vinos`='".(3+$ssd['level'])."',`intel`='0',`stats` = ".($exps[$ssd['nextup']][0]-12)." WHERE `id`='".$ssd['id']."';"); // ,$ssd['nextup'],"
-  }
-?>
diff --git a/_unused-files/change_login.php b/_unused-files/change_login.php
deleted file mode 100644
index d27c20e..0000000
--- a/_unused-files/change_login.php
+++ /dev/null
@@ -1,55 +0,0 @@
-= 25) {
-        if($_POST['log'] != null) {
-          if(strtoupper($_POST['log']) == strtoupper("невидимка") ||  strtoupper($_POST['log']) == strtoupper("мусорщик") || strtoupper($_POST['log']) == strtoupper("мироздатель") || strtoupper($_POST['log']) == strtoupper("архивариус") || strtoupper($_POST['log']) == strtoupper("Благодать") || strtoupper($_POST['log']) == strtoupper("Merlin") || strtoupper($_POST['log']) == strtoupper("Коментатор")) {
-            echo 'Регистрация персонажа с ником '.$_POST['log'].' запрещена!
'; - } elseif(strlen($_POST['log']) < 3 || strlen($_POST['log']) > 20 || !preg_match("/^[a-zA-Zа-яА-Я0-9][a-zA-Zа-яА-Я0-9_ -]+[a-zA-Zа-яА-Я0-9]$/", $_POST['log']) || preg_match("/__/", $_POST['log']) || preg_match("/--/", $_POST['log']) || preg_match("/ /", $_POST['log']) || preg_match("/(.)\\1\\1\\1/", $_POST['log'])) { - echo "Логин может содержать от 3 до 20 символов, и состоять только из букв русского или английского алфавита, цифр, символов '_', '-' и пробела.
Логин не может начинаться или заканчиваться символами '_', '-' или пробелом
Также в логине не должно присутствовать подряд более 1 символа '_' или '-' и более 1 пробела, а также более 3-х других одинаковых символов.

".$_POST['log']; - } elseif(preg_match("[a-zA-Z]", $_POST['log']) && preg_match("[а-яА-Я]", $_POST['log'])) { - echo "Логин не может содержать одновременно буквы русского и латинского алфавитов!
"; - } else { - if(!isset($usid['id'])) { - echo 'good'; - } else { - echo 'Данный логин занят ...'; - } - } - } else { - echo 'Введите логин ...'; - } - } else { - echo 'Недостаточно средств ...'; - } - } else { - echo 'Банк не найден ...'; - } - } else { - echo 'Missing params. Code: 02.'; - } -} else { - echo 'Missing params. Code: 01.'; -} - -if($_POST['true'] == '1') { - if($bank['ekr'] >= 25) { - mysql_query('UPDATE `users` SET `login` = "'.mysql_real_escape_string($_POST['log']).'" WHERE `id` = "'.$user['id'].'" LIMIT 1'); - $bank['ekr'] -= 25; - mysql_query('UPDATE `bank` SET `ekr` = "'.$bank['ekr'].'" WHERE `id` = "'.$bank['id'].'" LIMIT 1'); - echo 'Ваш логин успешно изменен ...'; - } else { - echo 'Err'; - } - echo 'Тест логин'; -} \ No newline at end of file diff --git a/_unused-files/clan_kazna.php b/_unused-files/clan_kazna.php deleted file mode 100644 index 0ddeb44..0000000 --- a/_unused-files/clan_kazna.php +++ /dev/null @@ -1,162 +0,0 @@ - array(0, 'Просмотр событий клана'), - 2 => array(0, 'Создание событий клана'), - 3 => array(0, 'Просмотр хранилища'), - 4 => array(0, 'Использование вещей из хранилища'), - 5 => array(0, 'Изъятие предметов из хранилища'), - 6 => array(0, 'Просмотр казны и списка игроков, пополнявших казну'), - 7 => array(0, 'Пополнение казны'), - 8 => array(0, 'Использование казны'), - 9 => array(0, 'Прием в клан'), - 10 => array(0, 'Изгнание из клана'), - 11 => array(0, 'Редактирование информации о клане') -); - -if($user['klan'] == '') { header('Location: ../../main.php'); exit(); } -$clan = mysql_fetch_array(mysql_query('SELECT `id`, `recruits`, `short`, `name`, `descr`, `glava`, `money`, `ekr`, `vozm`, `align`, `mshadow`, `wshadow`, `homepage`, `rating`, `zbor`, `zamok`, `izamok`, `ifon` FROM `clans` WHERE `id` = "'.$user['klan'].'" LIMIT 1')); -$err = ''; - -if($user['clan_prava'] != 'glava') { - $utitl = mysql_fetch_array(mysql_query('SELECT * FROM `clan_tituls` WHERE `id` = "'.$user['clan_prava'].'" LIMIT 1')); - if(!isset($utitl['id'])) { - $utitl = mysql_fetch_array(mysql_query('SELECT * FROM `clan_tituls` WHERE `id` = 2 LIMIT 1')); - } -} else { - $utitl = mysql_fetch_array(mysql_query('SELECT * FROM `clan_tituls` WHERE `id` = 1 LIMIT 1')); -} - -if(isset($utitl['id'])) { - $i = 1; - while($i < count($clan_acces)) { - if($utitl['prava'][$i] > 0) { - $clan_acces[$i][0] = 1; - } - $i++; - } -} - -if($_GET['addcredits']) { - if($clan_acces[7][0] == 1) { - if($user['money'] >= $_GET['sums'] && $_GET['sums'] > 0) { - if(isset($_GET['comment']) && $_GET['comment'] != '') { - $user['money'] -= (int)$_GET['sums']; - $clan['money'] += (int)$_GET['sums']; - $text = mysql_real_escape_string(iconv("utf-8", "utf-8", $_GET['comment'])); - mysql_query('UPDATE `users` SET `money` = "'.$user['money'].'" WHERE `id` = "'.$user['id'].'" LIMIT 1'); - mysql_query('UPDATE `clans` SET `money` = "'.$clan['money'].'" WHERE `id` = "'.$clan['id'].'" LIMIT 1'); - mysql_query("INSERT INTO `delo` (`author`, `pers`, `text`, `type`, `date`) VALUES ('0', '{$user['id']}', '\"".$user['login']."\" Пополнил казну клана: ($clan[name] / $clan[id]) на сумму: ".(int)$_GET['sums']." кр. С пометкой : $text', '1', '".time()."')"); - mysql_query('INSERT INTO `clan_log` (`clan_id`, `user_id`, `time`, `type`, `suma`, `comment`) VALUES ("'.$clan['id'].'", "'.$user['id'].'", "'.time().'", "1", "'.(int)$_GET['sums'].'", "'.$text.'")'); - $err = 'Казна пополненна на '.(int)$_GET['sums'].' кр.'; - } else { - $err = 'Введите комментарий'; - } - } elseif($_GET['sums'] <= 0) { - $err = 'Введите сумму'; - } else { - $err = 'Недостаточно средств'; - } - } else { - $err = 'У Вас нет прав на выполнение данной операции'; - } -} - -if($_GET['addecredits']) { - if($clan_acces[7][0] == 1) { - if(isset($banks['id'])) { - if($banks['ekr'] >= (int)$_GET['sums'] && $_GET['sums'] > 0) { - if(isset($_GET['comment']) && $_GET['comment'] != '') { - $banks['ekr'] -= (int)$_GET['sums']; - $clan['ekr'] += (int)$_GET['sums']; - $text = mysql_real_escape_string(iconv("utf-8", "utf-8", $_GET['comment'])); - mysql_query('UPDATE `bank` SET `ekr` = "'.$banks['ekr'].'" WHERE `id` = "'.$banks['id'].'" LIMIT 1'); - mysql_query('UPDATE `clans` SET `ekr` = "'.$clan['ekr'].'" WHERE `id` = "'.$clan['id'].'" LIMIT 1'); - mysql_query("INSERT INTO `delo` (`author`, `pers`, `text`, `type`, `date`) VALUES ('0', '{$user['id']}', '\"".$user['login']."\" Пополнил казну клана: ($clan[name] / $clan[id]) на сумму: ".(int)$_GET['sums']." екр, со счёта : $banks[id]. С пометкой : $text', '1', '".time()."')"); - mysql_query('INSERT INTO `clan_log` (`clan_id`, `user_id`, `time`, `type`, `suma`, `comment`) VALUES ("'.$clan['id'].'", "'.$user['id'].'", "'.time().'", "2", "'.(int)$_GET['sums'].'", "'.$text.'")'); - $err = 'Казна пополненна на '.(int)$_GET['sums'].' eкр.'; - } else { - $err = 'Введите комментарий'; - } - } elseif($_GET['sums'] <= 0) { - $err = 'Введите сумму'; - } else { - $err = 'Недостаточно средств'; - } - } else { - $err = 'Авторизируйтесь в банковском счету'; - } - } else { - $err = 'У Вас нет прав на выполнение данной операции'; - } -} - -function form_pay($us, $clan) { - global $clan_acces $banks; - - $user = mysql_fetch_array(mysql_query('SELECT `id`, `login`, `level`, `money` FROM `users` WHERE `id` = "'.$us.'" LIMIT 1')); - $r = ''; - if($clan_acces[7][0] == 1) { - $r .= 'У Вас в наличии : '.$user['money'].' .кр
'; - $r .= 'Пополнить (кредиты)
'; - if(isset($banks['id'])) { - $r .= '
Счёт #'.$banks['id'].': '.$banks['cr'].' .кр и '.$banks['ekr'].' .екр
'; - $r .= 'Пополнить (еврокредиты)'; - } else { - $r .= '
Авторизируйтесь в банке через Инвентарь'; - } - } - return $r; -} - -?> - - - - - - - -
- - - - - - -

-

- '; } ?> - Клановая казна: кр, екр.

-
- Пополнить казну: - Вы не можете пополнять казну'; } ?> -
- - Просмотр действий с казной - -
-
-
\ No newline at end of file diff --git a/_unused-files/clan_log.php b/_unused-files/clan_log.php deleted file mode 100644 index 546a7af..0000000 --- a/_unused-files/clan_log.php +++ /dev/null @@ -1,18 +0,0 @@ - \ No newline at end of file diff --git a/_unused-files/clan_main.php b/_unused-files/clan_main.php deleted file mode 100644 index bd452b3..0000000 --- a/_unused-files/clan_main.php +++ /dev/null @@ -1,125 +0,0 @@ - 0) { - $recrut = mysql_fetch_array(mysql_query('SELECT `id`, `recruits`, `short`, `name`, `descr`, `glava`, `vozm`, `align`, `mshadow`, `wshadow`, `homepage`, `rating`, `zbor`, `zamok`, `izamok`, `ifon` FROM `clans` WHERE `id` = "'.$clan['recruits'].'" LIMIT 1')); -} - -function show_klan_members($pl) { - global $rooms; - $r = ''; - $clan = mysql_fetch_array(mysql_query('SELECT `id`, `recruits`, `short`, `name`, `descr`, `glava`, `vozm`, `align`, `mshadow`, `wshadow`, `homepage`, `rating`, `zbor`, `zamok`, `izamok`, `ifon` FROM `clans` WHERE `id` = "'.$pl.'" LIMIT 1')); - if(isset($clan['id'])) { - $sp = mysql_query('SELECT `id`, `login`, `invis`, `align`, `level`, `status`, `room`, (SELECT `id` FROM `online` WHERE `date` >= "'.(time()-60).'" AND `id` = `users`.`id`) AS `online` FROM `users` WHERE `klan` = "'.$pl.'" ORDER BY `level` DESC'); - while($us = mysql_fetch_array($sp)) { - if($us['online'] > 0 && $us['invis'] == 0) { - $r .= ''; - } else { - $r .= ''; - } - $r .= ' '.$us['login'].' ['.$us['level'].'] '; - $r .= ''; - $r .= $us['status']?" - ".$us['status']:" - Нет звания"; - if($us['online'] > 0 && $us['invis'] == 0) { - $r .= ' - '.$rooms[$us['room']].''; - } - $r .= '
'; - } - } else { - $r = 'Клан не найден ..'; - } - return $r; -} - -?> - - - - - - - - - - - - - -
-
-

- - -
- Клан-основа - - -
- 0) { ?> - Клан-рекрут - - - -

-
-
-
- Каналы чата: - - - - - - - - - - - - - - -
  - - klan -
-
-
 
-
- -
- Клановые реликты: - - - - - - -
В разработке
-
-
  -
- Состав клана: - - - - - - -
-

CapitalCity

- -
-
-
\ No newline at end of file diff --git a/_unused-files/clan_panel.php b/_unused-files/clan_panel.php deleted file mode 100644 index 03e3790..0000000 --- a/_unused-files/clan_panel.php +++ /dev/null @@ -1,105 +0,0 @@ - - - -404 - - - - - - - - - - - - - - - - - - - -
- -
- - - - - - -
- - - - - - - - - - - - - - -
 " href="?razdel=main">Главная" href="?razdel=kazna">Казна" href="?razdel=wars">Войны и враги" href="?razdel=message">Сообщения" href="?razdel=maintains">Управление 
-
- - - - - - - -
- - - - - - -
- -
-
-
- - \ No newline at end of file diff --git a/_unused-files/contact.php b/_unused-files/contact.php deleted file mode 100644 index 86c4229..0000000 --- a/_unused-files/contact.php +++ /dev/null @@ -1,74 +0,0 @@ - 2 && $user['align'] != '2.99')) { - exit(); -} - - -function nics($id) { - $user = mysql_fetch_array(mysql_query("SELECT `id`, `align`, `level`, `login`, `klan` FROM `users` WHERE `id` = '{$id}' LIMIT 1")); - if(isset($user['id'])) { - $mm .= ' 0 ? $user['align']:0).'.gif\' />'; - if($user['klan'] > 0) { - $mm .= ''; - } - $mm .= ''.$user['login'].' ['.$user['level'].']'; - } - return $mm; -} - -$action = isset($_GET["act"]) ? $_GET["act"] : ""; -$fid = isset($_GET["fid"]) ? $_GET["fid"] : ""; -$page = isset($_GET["page"]) ? $_GET["page"] : 0; - -if(!empty($fid)) { - $txt = mysql_fetch_array(mysql_query('SELECT `id`, `text` FROM `forum` WHERE `id` = "'.$fid.'" LIMIT 1')); -} - -if($action == "edit" && !empty($fid)) { - $output = "
-

Редактирование сообщения :

- - -
"; - - $output .= "
"; - - $output .= " - - - - - -
-
-
-
"; - echo $output; -} elseif($action == "send") { - $txt = iconv('UTF-8', 'utf-8', $_GET['message']); - $us = nics($user['id']); - $txt .= '
Откредактировал : '.$us; - $forum = mysql_fetch_array(mysql_query('SELECT `id`, `parent` FROM `forum` WHERE `id` = "'.$_GET['fids'].'" LIMIT 1')); - if($forum['parent'] <= 100) { - $forum['parent'] = $_GET['fids']; - } else { - $forum['parent'] = $forum['parent']; - } - $top = mysql_fetch_array(mysql_query('SELECT `id`, `parent` FROM `forum` WHERE `id` = "'.$forum['parent'].'" LIMIT 1')); - $loc = mysql_fetch_array(mysql_query('SELECT `id` FROM `forum` WHERE `id` = "'.$top['parent'].'" AND `type` = 1 LIMIT 1')); - mysql_query('UPDATE `forum` SET `text` = "'.$txt.'" WHERE `id` = "'.$_GET['fids'].'" LIMIT 1'); - echo 'Изменения вступили в силу. Обновляю.'; - echo ''; -} else { - exit(); -} - - -exit; - -?> \ No newline at end of file diff --git a/_unused-files/deal.php b/_unused-files/deal.php deleted file mode 100644 index bf9016d..0000000 --- a/_unused-files/deal.php +++ /dev/null @@ -1,274 +0,0 @@ - - * Project name: Battles-Game - */ - -session_start(); - if (!($_SESSION['uid'] >0)) header("Location: index.php"); - include "config.php"; - $user = mysql_fetch_array(mysql_query("SELECT * FROM `users` WHERE `id` = '{$_SESSION['uid']}' LIMIT 1;")); - - if ($user['battle'] != 0) { header('location: fbattle.php'); die(); } - - $user['prof3_lvl'] = $user['prof3_level']; - if($user['prof3_lvl'] == 0) { - $user['prof3_lvl'] = 1; - } - - function timeOut($ttm) { - $out = ''; - $time_still = $ttm; - $tmp = floor($time_still/2592000); - $id=0; - if ($tmp > 0) - { - $id++; - if ($id<3) {$out .= $tmp." мес. ";} - $time_still = $time_still-$tmp*2592000; - } - $tmp = floor($time_still/86400); - if ($tmp > 0) - { - $id++; - if ($id<3) {$out .= $tmp." дн. ";} - $time_still = $time_still-$tmp*86400; - } - $tmp = floor($time_still/3600); - if ($tmp > 0) - { - $id++; - if ($id<3) {$out .= $tmp." ч. ";} - $time_still = $time_still-$tmp*3600; - } - $tmp = floor($time_still/60); - if ($tmp > 0) - { - $id++; - if ($id<3) {$out .= $tmp." мин. ";} - } - if($out=='') - { - if($time_still<0) - { - $time_still = 0; - } - $out = $time_still.' сек.'; - } - return $out; - } - - if(isset($_POST['login_deal']) && ( $user['prof3'] + $user['prof3_lvl'] * 86400 * 30 > time() )) { - if($_POST['login_deal'] == $user['login']) { - $error = 'Нельзя предложить наставничество самому себе ;)'; - }else{ - $user2 = mysql_fetch_array(mysql_query('SELECT `id`,`login` FROM `users` WHERE `login` = "'.mysql_real_escape_string($_POST['login_deal']).'" LIMIT 1')); - if(isset($user2['id'])) { - $deal = mysql_fetch_array(mysql_query('SELECT `id` FROM `deal` WHERE `uid1` = "'.$user['id'].'" AND `uid2` = "'.$user2['id'].'" AND `finish` > "'.time().'" AND `status` = 0 AND `type` = 1 LIMIT 1')); - if(isset($deal['id'])) { - $error = 'Вы уже подали предложение стать вашим наставником персонажу "'.htmlspecialchars($_POST['login_deal'],NULL,'cp1251').'".'; - }else{ - $deal = mysql_fetch_array(mysql_query('SELECT `id` FROM `deal` WHERE `uid2` = "'.$user2['id'].'" AND `status` = 1 AND `type` = 1 LIMIT 1')); - if(isset($deal['id'])) { - $error = 'У персонажа "'.htmlspecialchars($_POST['login_deal'],NULL,'cp1251').'" уже есть наставник!'; - }else{ - $deal = mysql_fetch_array(mysql_query('SELECT `id`,`finish` FROM `deal` WHERE `uid1` = "'.$user['id'].'" AND `uid2` = "'.$user2['id'].'" AND `status` = 2 AND `type` = 1 AND `finish` > "'.time().'" LIMIT 1')); - if(isset($deal['id'])) { - $error = 'Персонаж "'.htmlspecialchars($_POST['login_deal'],NULL,'cp1251').'" отказался от ваших услуг! Попробуйте через '.timeOut($deal['finish']-time()).', возможно игрок передумает ;)'; - }else{ - $error = 'Вы предложили "'.htmlspecialchars($_POST['login_deal'],NULL,'cp1251').'" стать вашим учеником! Ожидайте подтверждения!'; - mysql_query('INSERT INTO `deal` ( - `uid1`,`uid2`,`type`,`status`,`start`,`finish` - ) VALUES ( - "'.$user['id'].'","'.$user2['id'].'","1","0","'.time().'","'.(time() + 7200).'" - )'); - } - } - } - }else{ - $error = 'Персонаж с логином "'.htmlspecialchars($_POST['login_deal'],NULL,'cp1251').'" не найден.'; - } - } - }elseif(isset($_GET['d'])) { - $deal = mysql_fetch_array(mysql_query('SELECT * FROM `deal` WHERE `id` = "'.mysql_real_escape_string($_GET['d']).'" AND `uid2` = "'.$user['id'].'" AND `finish` > "'.time().'" AND `status` = 0 LIMIT 1')); - if(isset($deal['id'])) { - if(isset($_GET['yes'])) { - $error = 'Вы успешно согласились на сделку!'; - mysql_query('UPDATE `deal` SET `status` = "1" WHERE `id` = "'.$deal['id'].'" LIMIT 1'); - }elseif(isset($_GET['no'])) { - $error = 'Вы успешно отказались от сделки!'; - mysql_query('UPDATE `deal` SET `status` = "2" WHERE `id` = "'.$deal['id'].'" LIMIT 1'); - } - }else{ - $error = 'Сделка не найдена!'; - } - }elseif(isset($_GET['un'])) { - $deal = mysql_fetch_array(mysql_query('SELECT * FROM `deal` WHERE `id` = "'.mysql_real_escape_string($_GET['un']).'" AND `uid2` = "'.$user['id'].'" AND `status` = 1 AND `type` = 1 LIMIT 1')); - if(isset($deal['id'])) { - $error = 'Вы успешно отказались от наставничества!'; - mysql_query('UPDATE `deal` SET `status` = "2" WHERE `id` = "'.$deal['id'].'" LIMIT 1'); - }else{ - $error = 'Сделка не найдена!'; - } - }elseif(isset($_GET['un2']) && ( $user['prof3'] + $user['prof3_lvl'] * 86400 * 30 > time() )) { - $deal = mysql_fetch_array(mysql_query('SELECT * FROM `deal` WHERE `id` = "'.mysql_real_escape_string($_GET['un2']).'" AND `uid1` = "'.$user['id'].'" AND `status` = 1 AND `type` = 1 LIMIT 1')); - if(isset($deal['id'])) { - $error = 'Вы успешно отказались от ученика!'; - mysql_query('UPDATE `deal` SET `status` = "2" WHERE `id` = "'.$deal['id'].'" LIMIT 1'); - }else{ - $error = 'Сделка не найдена!'; - } - } - -?> - - - - -old-dark :: Сделки - - - - - -

Сделки \ Наставничество

-

-

-
-
- - -
- - - - - - - - "'.time().'" AND `status` = 0'); - while( $pl = mysql_fetch_array($sp) ) { - // - $txt = ''; - if( $pl['type'] == 1 ) { - $txt = 'Стать учеником'; - } - // - $time = $pl['finish']-time(); - $time = timeOut($time); - // - $user2 = mysql_fetch_array(mysql_query('SELECT * FROM `users` WHERE `id` = "'.$pl['uid1'].'" LIMIT 1')); - // - $see = 1; - if(isset($_GET['d']) && $_GET['d'] == $pl['id'] && (isset($_GET['yes']) || isset($_GET['no']))) { - $see = 0; - } - if( $see == 1 ) { - ?> - - - - - - - -
ДействиеПредмет сделкиКто предложилОставшееся время
Да \ Нет' ?>
- - - - - -
Нет сделок
- -

 

-

Наставничество

- time() ) { -// -$denast = mysql_fetch_array(mysql_query('SELECT * FROM `deal` WHERE `uid2` = "'.$user['id'].'" AND `type` = 1 AND `status` = 1 LIMIT 1')); -$nast = mysql_fetch_array(mysql_query('SELECT * FROM `users` WHERE `id` = "'.$denast['uid1'].'" LIMIT 1')); -// -$html = ''; -$i = 0; -$sp = mysql_query('SELECT * FROM `deal` WHERE `uid1` = "'.$user['id'].'" AND `status` = 1 AND `type` = 1'); -while( $pl = mysql_fetch_array($sp) ) { - $user2 = mysql_fetch_array(mysql_query('SELECT * FROM `users` WHERE `id` = "'.$pl['uid2'].'" LIMIT 1')); - if(isset($user2['id'])) { - $html .= ' -  '.($i+1).'.  - '.$user2['login'].' ['.$user2['level'].']'. - ' обучается с '.date('d.m.Y H:i',$pl['start']).''. - ' (отказаться)'. - ' - '; - $i++; - } -} -// -$lvl = 0; -$exp = 0; -if( $i < 10 ) { - $lvl = 0; - $exp = 10; -}elseif( $i < 15 ) { - $lvl = 1; - $exp = 15; -}elseif( $i < 25 ) { - $lvl = 2; - $exp = 25; -}else{ - $lvl = 3; - $exp = '--'; -} -// -?> - - - - - - - - - - - - - - - - - - - - - - -
Ваш наставник'.$nast['login'].' '; - echo ' (отказаться)'; - }else{ - echo 'Нет'; - } - ?>
Уровень наставничества
Опыт наставничества /
Срок действия лицензиидо (Продлевается в Академмии на Торговой ул.)
Ваши ученики ( чел.): -
- Введите логин ученика:   -
-
- 0 ) { - echo '


У вас закончилась лицензия Наставника, продлите её в Академии!
'; - }else{ - echo '


У вас нет лицензия Наставника, приобретите её в Академии!
'; - } -}?> - - \ No newline at end of file diff --git a/_unused-files/downgrade_art.php b/_unused-files/downgrade_art.php deleted file mode 100644 index e283b2b..0000000 --- a/_unused-files/downgrade_art.php +++ /dev/null @@ -1,94 +0,0 @@ - array('cost' => 2000, 'ghp' => 8, 'stat' => 1, 'bron' => 1, 'mf' => 7, 'mindur' => 30, 'minu' => 1, 'maxu' => 1), - 8 => array('cost' => 3000, 'ghp' => 10, 'stat' => 1, 'bron' => 1, 'mf' => 10, 'mindur' => 40, 'minu' => 2, 'maxu' => 2), - 9 => array('cost' => 7000, 'ghp' => 12, 'stat' => 1, 'bron' => 1, 'mf' => 13, 'mindur' => 50, 'minu' => 3, 'maxu' => 3), - 10 => array('cost' => 10000, 'ghp' => 14, 'stat' => 1, 'bron' => 1, 'mf' => 16, 'mindur' => 60, 'minu' => 4, 'maxu' => 4), - 11 => array('cost' => 15000, 'ghp' => 16, 'stat' => 1, 'bron' => 1, 'mf' => 19, 'mindur' => 70, 'minu' => 5, 'maxu' => 5), - 12 => array('cost' => 36000, 'ghp' => 18, 'stat' => 1, 'bron' => 1, 'mf' => 22, 'mindur' => 80, 'minu' => 6, 'maxu' => 6) - ); - $user = mysql_fetch_array(mysql_query('SELECT `id`, `login`, `doblest` FROM `users` WHERE `id` = "'.mysql_real_escape_string($uid).'" LIMIT 1')); - $salt = md5($user['login'].'|'.$user['id']); - if(isset($user['id'])) { - if($_POST['hash'] == $salt) { - $it = (int)$_POST['item']; - $item = mysql_fetch_array(mysql_query('SELECT * FROM `inventory` WHERE `owner` = "'.$user['id'].'" AND `id` = "'.mysql_real_escape_string($it).'" AND `point` > 0 AND `dressed` = 0 LIMIT 1')); - if(isset($item['id']) && ($item['nlevel'] <= 13 && $item['nlevel'] >= 7)) { - $level = $item['nlevel']-1; - if($user['doblest'] >= $arr[$level]['cost']) { - $user['doblest'] -= $arr[$level]['cost']; - mysql_query('UPDATE `users` SET `doblest` = "'.$user['doblest'].'" WHERE `id` = "'.$user['id'].'" LIMIT 1'); - - if($item['type'] != 3) { - $item['ghp'] -= $arr[$level]['ghp']; - if($item['bron1'] > 0) { $item['bron1'] -= 1; } - if($item['bron2'] > 0) { $item['bron2'] -= 1; } - if($item['bron3'] > 0) { $item['bron3'] -= 1; } - if($item['bron4'] > 0) { $item['bron4'] -= 1; } - if($item['mfkrit'] > 0) { $item['mfkrit'] -= sums($item['mfkrit'], $arr[$level]['mf']); } - if($item['mfakrit'] > 0) { $item['mfakrit'] -= sums($item['mfakrit'], $arr[$level]['mf']); } - if($item['mfuvorot'] > 0) { $item['mfuvorot'] -= sums($item['mfuvorot'], $arr[$level]['mf']); } - if($item['mfauvorot'] > 0) { $item['mfauvorot'] -= sums($item['mfauvorot'], $arr[$level]['mf']); } - if($item['gsila'] > 0) { $item['gsila'] -= $arr[$level]['stat']; } - if($item['glovk'] > 0) { $item['glovk'] -= $arr[$level]['stat']; } - if($item['ginta'] > 0) { $item['ginta'] -= $arr[$level]['stat']; } - if($item['gintel'] > 0) { $item['gintel'] -= $arr[$level]['stat']; } - } - - if($item['type'] == 3) { - $item['minu'] -= $arr[$level]['minu']; $item['maxu'] -= $arr[$level]['minu']; - } - - $item['nlevel'] -= 1; - - if($item['nsila'] > 0) { $item['nsila'] -= 1; } - if($item['nlovk'] > 0) { $item['nlovk'] -= 1; } - if($item['ninta'] > 0) { $item['ninta'] -= 1; } - if($item['nvinos'] > 0) { $item['nvinos'] -= 1; } - if($item['nintel'] > 0) { $item['nintel'] -= 1; } - if($item['nnoj'] > 0) { $item['nnoj'] -= 1; } - if($item['ntopor'] > 0) { $item['ntopor'] -= 1; } - if($item['ndubina'] > 0) { $item['ndubina'] -= 1; } - if($item['nmech'] > 0) { $item['nmech'] -= 1; } - mysql_query('UPDATE `inventory` SET `nlevel` = "'.$item['nlevel'].'", `ghp` = "'.$item['ghp'].'", `bron1` = "'.$item['bron1'].'", `bron2` = "'.$item['bron2'].'", `bron3` = "'.$item['bron3'].'", `bron4` = "'.$item['bron4'].'", `mfkrit` = "'.$item['mfkrit'].'", `mfakrit` = "'.$item['mfakrit'].'", `mfuvorot` = "'.$item['mfuvorot'].'", `mfauvorot` = "'.$item['mfauvorot'].'", `gsila` = "'.$item['gsila'].'", `glovk` = "'.$item['glovk'].'", `ginta` = "'.$item['ginta'].'", `gintel` = "'.$item['gintel'].'", `minu` = "'.$item['minu'].'", `maxu` = "'.$item['maxu'].'", `nsila` = "'.$item['nsila'].'", `nlovk` = "'.$item['nlovk'].'", `ninta` = "'.$item['ninta'].'", `nvinos` = "'.$item['nvinos'].'", `nintel` = "'.$item['nintel'].'", `nnoj` = "'.$item['nnoj'].'", `ntopor` = "'.$item['ntopor'].'", `ndubina` = "'.$item['ndubina'].'", `nmech` = "'.$item['nmech'].'", `maxdur` = "'.$item['maxdur'].'", `duration` = "'.$item['duration'].'" WHERE `id` = "'.$item['id'].'" LIMIT 1'); - - ### - mysql_query("INSERT INTO `delo` (`author`, `pers`, `text`, `type`, `date`) VALUES ('0', '{$user['id']}', '\"".$user['login']."\" понизил уровень предмета: \"".$item['name']."\" id:(".$item['id'].") [$item[duration]/".$item['maxdur']."] за ".$arr[$level]['cost']." реп, до уровня $item[nlevel].', 1, '".time()."')"); - ### - echo 'success'; - } else { - echo 'Недостаточно репутации для операции ...'; - } - } else { - echo 'Предмет не найден ... ['.$item['id'].' | '.$item['nlevel'].']'; - } - } else { - echo 'Утеря параметров. Код ошибки: 1001001.'; - } - } else { - echo 'А вы кто ???'; - } - } else { - echo 'Утерян параметр #hash# ...'; - } - } else { - echo 'А вы кто ???'; - } -} else { - echo 'Выберите предмет!'; -} -?> \ No newline at end of file diff --git a/_unused-files/file_db_func.php b/_unused-files/file_db_func.php deleted file mode 100644 index ce90700..0000000 --- a/_unused-files/file_db_func.php +++ /dev/null @@ -1,87 +0,0 @@ - $v) { - $kv = explode('@=||=@', $v); - if($key == '*') { - $arr[$kv[0]] = $kv[1]; - } elseif ($kv[0] == $key) { - $arr = $kv[1]; - } - } - return $arr; - } else { - return false; - } -} - -function select_line_to_file($name, $query, $key = '*') { - global $start_dir; - $r = mysql_fetch_assoc(mysql_query($query)); - if($key != '*') { - if(file_exists($start_dir.$name)) { - $oldl = ($start_dir.$name); - foreach($oldl as $k => $v) { - $kv = explode('@=||=@', $v); - $oldv[$kv[0]]=$kv[1]; - } - } - } - $nf = fopen($start_dir.$name, 'w'); - if($key != '*') { - $found = false; - foreach($oldv as $k => $v) { - if($k == $key) { - $found = true; - $v = $r[$k]; - } - fputs($nf, $k."@=||=@".$v."@=||=@\n"); - } - if($found == false) { - fwrite($nf,$key."@=||=@".$r[$key]."@=||=@\n"); - } - } else { - foreach($r as $k => $v) { - fwrite($nf,$k."@=||=@".$v."@=||=@\n"); - } - } - fclose($nf); - return $r; -} - -function update_file($name, $key, $val, $inc = false) { - global $start_dir; - $ex = file_exists($start_dir.$name); - if($ex) { - $oldl = ($start_dir.$name); - foreach($oldl as $k => $v) { - $kv = explode('@=||=@', $v); - $oldv[$kv[0]] = $kv[1]; - } - } - if($ex || $inc == false) { - $nf = fopen($start_dir.$name, 'w'); - $found = false; - if(is_array($oldv)) - foreach($oldv as $k => $v) { - if($k == $key) { - $found = true; - $v = $inc == false ? $val:$v+$val; - } - fputs($nf,$k."@=||=@".$v."@=||=@\n"); - } - if($found == false) { - fwrite($nf,$key."@=||=@".$val."@=||=@\n"); - } - fclose($nf); - return "OK"; - } - return false; -} -?> \ No newline at end of file diff --git a/_unused-files/fontan_luck.php b/_unused-files/fontan_luck.php deleted file mode 100644 index 8ea4b57..0000000 --- a/_unused-files/fontan_luck.php +++ /dev/null @@ -1,339 +0,0 @@ -","излом носоглотки","непонятные, но множественные травмы","сильное внутреннее кровотечение","раздробленная коленная чашечка","перелом шеи","смещение позвонков","открытый перелом ключицы","перелом позвоночника","вывих позвоночника","сотрясение третьей степени"); - - $zz = mt_rand(1, 3); $s = 0; $l = 0; $i = 0; - switch($zz) { - case 1: $s = ($user['level'] + 3)*3; break; - case 2: $l = ($user['level'] + 3)*3; break; - case 3: $i = ($user['level'] + 3)*3; break; - } - $trv = $travmalist[mt_rand(0, count($travmalist)-1)]; - $time = 60*15; - mysql_query("INSERT INTO `effects` (`owner`, `name`, `time`, `type`, `sila`, `lovk`, `inta`, `vinos`) values ('".$id."', 'Травма "".$trv.""', ".(time()+$time).", '14', '".$s."', '".$l."', '".$i."', '0')"); - mysql_query("UPDATE `users` SET `sila` = (`sila`-'".$s."'), `lovk` = (`lovk`-'".$l."'), `inta` = (`inta`-'".$i."') WHERE `id` = '".$id."' LIMIT 1"); -} - -function paginate_function($item_per_page, $current_page, $total_records, $total_pages) { - $pagination = ''; - if($total_pages > 0 && $total_pages != 1 && $current_page <= $total_pages) { - $pagination .= '
    Страницы: '; - $right_links = $current_page + 3; - $previous = $current_page - 3; - $next = $current_page + 1; - $first_link = true; - - if($current_page > 1) { - $previous_link = ($previous == 0) ? 1 : $previous; - $pagination .= '
  • «
  • '; - for($i = ($current_page-2); $i < $current_page; $i++) { - if($i > 0) { - $pagination .= '
  • '.$i.'
  • '; - } - } - $first_link = false; - } - - if($first_link) { - $pagination .= '
  • '.$current_page.'
  • '; - } elseif($current_page == $total_pages) { - $pagination .= '
  • '.$current_page.'
  • '; - } else { - $pagination .= '
  • '.$current_page.'
  • '; - } - - for($i = $current_page+1; $i < $right_links ; $i++) { - if($i <= $total_pages) { - $pagination .= '
  • '.$i.'
  • '; - } - } - - if($current_page < $total_pages){ - $next_link = ($i > $total_pages)? $total_pages : $i; - $pagination .= '
  • »
  • '; - } - $pagination .= '
'; - } - return $pagination; -} - -function login($uid) { - $user = mysql_fetch_array(mysql_query('SELECT `id`, `login`, `align`, `level`, `klan` FROM `users` WHERE `id` = "'.mysql_real_escape_string($uid).'" LIMIT 1')); - if(isset($user['id'])) { - $align_img = ' '; - if($user['klan'] != '') { - $clan = mysql_fetch_array(mysql_query('SELECT `id`, `name` FROM `clans` WHERE `id` = "'.$user['klan'].'" LIMIT 1')); - $clan_img = ' '; - } else { - $clan_img = ''; - } - $r = $align_img.$clan_img.' '.$user['login'].' ['.$user['level'].']'; - } else { - $r = 'Невидимка'; - } - return $r; -} - -function load_winers($sum, $hash) { - if($sum > 0) { - $limit = 'LIMIT '.(int)$sum; - } else { - $limit = ''; - } - $r = '
Список, кому удалось достать монетки :'; - $r .= ''; - $sp = mysql_query('SELECT `id`, `usid`, `money`, `time`, `count` FROM `fountain_game` ORDER BY `id` DESC '.$limit.''); - while($pl = mysql_fetch_array($sp)) { - $us = mysql_fetch_array(mysql_query('SELECT `id` FROM `users` WHERE `id` = "'.$pl['usid'].'" LIMIT 1')); - $tm = date('d.m.y h:i:s', $pl['time']); - if($i == 0) { - $i = 1; $color = '#eeeeee'; - } else { - $i = 0; $color = '#e7e7e7'; - } - $user = login($us['id']); - $r .= ''; - } - $r .= '
КтоРазКогдаВсего кр.
'.$user.''.$pl['count'].''.$tm.''.$pl['money'].'
'; - $r .= '
'; - unset($pl, $us, $tm, $user); - return $r; -} - -function send_wish($hash, $text, $uid) { - if(isset($uid) && $uid > 0) { - if(isset($text)) { - if(strlen($text) < 5) { - echo ""; - } elseif(strlen($text) > 50) { - echo ""; - } else { - $us = mysql_fetch_array(mysql_query('SELECT `id`, `login`, `level`, `align` FROM `users` WHERE `id` = "'.(int)$uid.'" LIMIT 1')); - if(isset($us['id'])) { - if(md5($us['login'].'|'.$us['id']) == $hash) { - $txt = mysql_real_escape_string($text); - if(iconv("utf-8", "utf-8", $txt) != '') { - $addText = iconv("utf-8", "utf-8", $txt); - } - mysql_query('INSERT INTO `fontan_wish` (`uid`, `time`, `wish`) VALUES ("'.$us['id'].'", "'.time().'", "'.$addText.'")'); - echo ""; - } else { - echo ""; - } - } else { - echo ""; - } - } - } else { - echo ""; - } - } else { - echo ""; - } -} - -function cureHps($hash, $uid) { - if(isset($uid) && $uid > 0) { - $us = mysql_fetch_array(mysql_query('SELECT `id`, `login`, `align`, `level`, `hp`, `maxhp` FROM `users` WHERE `id` = "'.(int)$uid.'" LIMIT 1')); - if(isset($us['id'])) { - if(md5($us['login'].'|'.$us['id']) == $hash) { - if(($us['level'] <= 7 || $us['align'] == 2.99) && $us['hp'] < $us['maxhp']) { - $us['hp'] = $us['maxhp']; - mysql_query('UPDATE `users` SET `hp` = "'.$us['hp'].'" WHERE `id` = "'.$us['id'].'" LIMIT 1'); - echo ""; - } elseif($us['hp'] == $us['maxhp']) { - echo ""; - } else { - echo ""; - } - } else { - echo ""; - } - } else { - echo ""; - } - } else { - echo ""; - } -} - -function giveCoin($hash, $uid) { - if(isset($uid) && $uid > 0) { - $us = mysql_fetch_array(mysql_query('SELECT `id`, `login`, `align`, `level`, `money` FROM `users` WHERE `id` = "'.(int)$uid.'" LIMIT 1')); - if(isset($us['id'])) { - if(md5($us['login'].'|'.$us['id']) == $hash) { - if($us['money'] >= 1) { - $us['money'] -= 1; - mysql_query('UPDATE `users` SET `money` = "'.$us['money'].'" WHERE `id` = "'.$us['id'].'" LIMIT 1'); - $f = mysql_fetch_array(mysql_query('SELECT `value` FROM `variables` WHERE `var` = "fontan_jackpot" LIMIT 1')); - $f['value'] += 1; - mysql_query('UPDATE `variables` SET `value` = "'.$f['value'].'" WHERE `var` = "fontan_jackpot" LIMIT 1'); - mysql_query("INSERT INTO `delo` (`author`, `pers`, `text`, `type`, `date`) VALUES ('0', '{$us['id']}', '\"".$us['login']."\" бросил монетку в фонтан.', 1, '".time()."')"); - echo ""; - echo ""; - } else { - echo ""; - } - } else { - echo ""; - } - } else { - echo ""; - } - } else { - echo ""; - } -} - -function loadWishs($p, $uid, $hash) { - $admin = mysql_fetch_array(mysql_query('SELECT `id`, `login`, `align` FROM `users` WHERE `id` = "'.$uid.'" LIMIT 1')); - $acces = false; $adimg = ''; - if(isset($admin['id'])) { - if($admin['align'] != 2.99) { - $acces = false; - } else { - if(md5($admin['login'].'|'.$admin['id']) == $hash) { - $acces = true; - } else { - $acces = false; - } - } - } - - $pgs = mysql_fetch_array(mysql_query("SELECT COUNT(`id`) FROM `fontan_wish`")); - $item_per_page = 15; - $allPages = ceil($pgs[0]/$item_per_page); - $page_position = (($p-1) * $item_per_page); - echo ''; - $w = mysql_query("SELECT `id`, `uid`, `time`, `wish` FROM `fontan_wish` ORDER BY `id` DESC LIMIT $page_position, $item_per_page"); - while($pl = mysql_fetch_array($w)) { - if($i == 0) { - $i = 1; $color = '#eeeeee'; - } else { - $i = 0; $color = '#e7e7e7'; - } - if($acces == true) { - $adimg = ' '; - } - $user = login($pl['uid']); - echo ''; - } - echo '
'.$adimg.$user.''.$pl['wish'].'
'; - echo '
'.paginate_function($item_per_page, $p, $pgs[0], $allPages); - unset($pl, $user); -} - -function howMuch() { - $f = mysql_fetch_array(mysql_query('SELECT `value` FROM `variables` WHERE `var` = "fontan_jackpot" LIMIT 1')); - echo $f['value']; -} - -function tryGet($hash, $uid) { - if(isset($hash)) { - if($uid > 0) { - $user = mysql_fetch_array(mysql_query('SELECT `id`, `login`, `money` FROM `users` WHERE `id` = "'.(int)$uid.'" LIMIT 1')); - if(isset($user['id'])) { - if(md5($user['login'].'|'.$user['id']) == $hash) { - $travm = mysql_fetch_array(mysql_query('SELECT `id` FROM `effects` WHERE (`type` = "13" OR `type` = "14") AND `owner` = "'.$user['id'].'" LIMIT 1')); - if(isset($travm['id'])) { - echo ""; - } else { - $rand = mt_rand(80, 100); $r = mt_rand(0, 100); - $jackpot = mysql_fetch_array(mysql_query('SELECT `value` FROM `variables` WHERE `var` = "fontan_jackpot" LIMIT 1')); - $last = mysql_fetch_array(mysql_query('SELECT `id`, `usid`, `money`, `time`, `count` FROM `fountain_game` WHERE `usid` = "'.$user['id'].'" LIMIT 1')); - if($jackpot['value'] > 0) { - if($r == $rand) { - $user['money'] += $jackpot['value']; - mysql_query('UPDATE `users` SET `money` = "'.$user['money'].'" WHERE `id` = "'.$user['id'].'" LIMIT 1'); - mysql_query('UPDATE `variables` SET `value` = 0 WHERE `var` = "fontan_jackpot" LIMIT 1'); - if(isset($last['id'])) { - $last['money'] += $jackpot['value']; $last['time'] = time(); $last['count'] += 1; - mysql_query('UPDATE `fountain_game` SET `money` = "'.$last['money'].'", `time` = "'.$last['time'].'", `count` = "'.$last['count'].'" WHERE `id` = "'.$user['id'].'" LIMIT 1'); - } else { - mysql_query('INSERT INTO `fountain_game` (`usid`, `time`, `money`, `count`) VALUES ("'.$user['id'].'", "'.time().'", "'.$jackpot['value'].'", "1")'); - } - mysql_query("INSERT INTO `delo` (`author`, `pers`, `text`, `type`, `date`) VALUES ('0', '{$user['id']}', '\"".$user['login']."\" достал монетки из фонтана [$jackpot[value]] кр.', 1, '".time()."')"); - echo ""; - echo ""; - echo mysql_error(); - } else { - add_trv($user['id']); - echo ""; - } - } else { - echo ""; - } - } - } else { - echo ""; - } - } else { - echo ""; - } - } else { - echo ""; - } - } else { - echo ""; - } -} - -function deleteWishs($id, $uid, $hash) { - if($id > 0) { - if($uid > 0) { - if(isset($hash)) { - $user = mysql_fetch_array(mysql_query('SELECT `id`, `login`, `align` FROM `users` WHERE `id` = "'.(int)$uid.'" LIMIT 1')); - if(isset($user['id'])) { - if($user['align'] == 2.99) { - if(md5($user['login'].'|'.$user['id']) == $hash) { - $text = mysql_fetch_array(mysql_query('SELECT `id` FROM `fontan_wish` WHERE `id` = "'.(int)$id.'" LIMIT 1')); - if(isset($text['id'])) { - mysql_query('DELETE FROM `fontan_wish` WHERE `id` = "'.$text['id'].'" LIMIT 1'); - echo ""; - } else { - echo ""; - } - } else { - echo ""; - } - } else { - echo ""; - } - } else { - echo ""; - } - } else { - echo ""; - } - } else { - echo ""; - } - } else { - echo ""; - } -} - -if($_GET['do'] == 'load_winers' && $_GET['allList'] == 0) { - echo load_winers(5, $_GET['hash']); -} elseif($_GET['do'] == 'load_winers' && $_GET['allList'] == 1) { - echo load_winers(0, $_GET['hash']); -} elseif($_GET['do'] == 'showPanel') { - echo '
Не более 50 символов. Монетка тоже бросится
Я желаю :
'; -} elseif($_GET['do'] == 'wish') { - echo send_wish($_GET['hash'], $_GET['tekst'], (int)$_GET['uid']); -} elseif($_GET['do'] == 'cureHps') { - echo cureHps($_GET['hash'], (int)$_GET['uid']); -} elseif($_GET['do'] == 'giveCoin') { - echo giveCoin($_GET['hash'], (int)$_GET['uid']); -} elseif($_GET['do'] == 'loadWishs') { - echo loadWishs((int)$_GET['page'], (int)$_GET['uid'], $_GET['hash']); -} elseif($_GET['do'] == 'howMuch') { - echo howMuch(); -} elseif($_GET['do'] == 'tryGet') { - echo tryGet($_GET['hash'], (int)$_GET['uid']); -} elseif($_GET['do'] == 'deleteWishs') { - echo deleteWishs((int)$_GET['id'], (int)$_GET['uid'], $_GET['hash']); -} diff --git a/_unused-files/game_main.php b/_unused-files/game_main.php deleted file mode 100644 index bee3213..0000000 --- a/_unused-files/game_main.php +++ /dev/null @@ -1,563 +0,0 @@ - - * Project name: Battles-Game - */ - -function er($e) { - global $c; - die('Произошла ошибка

Произошла ошибка:

'.$e.'

Назад


(©) Бойцовский Клуб Возрождение

'); -} -session_start(); -header('Content-type: text/html; charset=utf-8'); - -include('config.php'); -include('functions.php'); - -if(!isset($user['id'])){ - er('Возникла проблема с определением id персонажа
Авторизируйтесь с главной страницы.'); -} - -/* -if($user['online'] < time()-60) { - $filter->setOnline($user['online'], $user['id'], 0); - mysql_query("UPDATE `users` SET `online` = '".time()."', `timeMain` = '".time()."' WHERE `id` = '".$user['id']."' LIMIT 1"); -} -*/ - -$code = mt_rand(1, 99999999); - -if($user['align'] == 2.99) { - $admin = 1; -} else { - $admin = 0; -} - -$user['login'] = iconv("utf-8", "utf-8", $user['login']); - -?> - - - - - -Бойцовский Клуб Возрождение - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - -
-
- -
-
- - -
-
- -
-
-
- - - - - - - - - -
- - - - - -
- - - - - - - - - - - -
ЗнанияОбщениеБезопасностьПерсонажВыход 
-
- - - - -
-
- - - - - - -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
 
-
- -
-
- - - - - -
-
-
-
- - - - - - -
-
-
- -
- - - -
-
- -
-
-
-
-
- -
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - 3){ ?> - - 0){ ?> - - - - =1 && $user['align']<2 ){ ?> - - =3 && $user['align']<4){ ?> - - time() || $u->stats['silver']>0){ ?> - - 0){ ?> - - =0){ ?> - - -1){ ?> - - 1 && $user['align']<2)){ ?> - - 0){ ?> - - - - - -
width="100" align="center" id="globalMode">
РєСЂ.
  - - - - - - - - -   - -
-
-
- - - - \ No newline at end of file diff --git a/_unused-files/hellround.php b/_unused-files/hellround.php deleted file mode 100644 index 0d2f16b..0000000 --- a/_unused-files/hellround.php +++ /dev/null @@ -1,121 +0,0 @@ - - 4, - "80" => 4, - "81" => 2, - "82" => 2, - "83" => 2, - "84" => 1, - "85" => 1, - "86" => 1, - "87" => 1, - ); - - // подключаем конфиг - // include "../connect.php"; - // подключаем функции - // include "../functions.php"; - - // циклим демона - // while(1) { - // итерация - - // есть ли конект с базой - $test = mysql_fetch_array(mysql_query("SELECT 1;")); - if($test[1]!=1) { - // include "../connect.php"; - } - - // выбираем все походы - $pohs = mysql_query("SELECT `owner`,`volna`,`id` FROM `hellround_pohod` WHERE `end` = 0;"); - while ($poh = mysql_fetch_array($pohs)) { - // проверяем на живность - $u = mysql_fetch_array(mysql_query("SELECT `hp` FROM `users` WHERE `id` = '".$poh['owner']."' LIMIT 1;")); - if($u['hp'] <= 0) { - // удаляем ресурсы - mysql_query("DELETE FROM `inventory` WHERE `owner` = '".$poh['owner']."' AND `bs` = 1;"); - mysql_query("UPDATE `hellround_pohod` SET `end` = 1, `date_out` = NOW( ) WHERE `id` = ".$poh['id']." AND `end` = 0;"); - addchp ('Внимание! Вы погибли в противостоянии хаосу...
\'; top.frames[\'main\'].location=\'main.php\'; var z = \' ','{[]}'.nick::id($poh['owner'])->short().'{[]}'); - echo "USER: ".$poh['owner']." live trip.\n"; - } else - { - // забираем последний бой, может пора запускать волну? - $last_a = mysql_fetch_array(mysql_query("SELECT `id` FROM `battle` WHERE `t1` = '".$poh['owner']."' AND `win` = 3 ORDER by `id` DESC LIMIT 1;")); - $last_b = mysql_fetch_array(mysql_query("SELECT `to1` FROM `battle` WHERE `t1` = '".$poh['owner']."' AND `win` <> 3 ORDER by `id` DESC LIMIT 1;")); - $last_b = $last_b[0]; - $last_a = $last_a[0]; - - // echo $last_a." ".$last_b." ".$poh['owner']."\n"; - - // проверяем, запускаем ботов - if ((time()-$last_b) >= 60 && $last_a == 0) { - // если прошло больше минуты, стартуем волну - $nextvolna = $poh['volna']+1; - - $bot[1] = $shema[$bots[0]]*$nextvolna; - $bot[2] = $shema[$bots[1]]*$nextvolna; - $bot[3] = $shema[$bots[2]]*$nextvolna; - - if ($nextvolna >= 10) { - $bot[4] = $shema[$bots[3]]*$nextvolna; - $bot[5] = $shema[$bots[4]]*$nextvolna; - $bot[6] = $shema[$bots[5]]*$nextvolna; - } - if ($nextvolna >= 25) { - $bot[7] = $shema[$bots[6]]*$nextvolna; - $bot[8] = $shema[$bots[7]]*$nextvolna; - $bot[9] = $shema[$bots[8]]*$nextvolna; - } - // делаем массив с айдишниками ботов - for($n = 1; $n <= 9; $n++) { - for($i = 1; $i <= (int)$bot[$n]; $i++){ - $botz = mysql_fetch_array(mysql_query("SELECT `maxhp`,`id` FROM `users` WHERE `id` = '".$bots[$n-1]."' LIMIT 1;")); - mysql_query("INSERT INTO `bots` (`name`,`prototype`,`battle`,`hp`) values ('".$names[$n]." (проекция ".($i).")','".$bots[$n-1]."','','".$botz['maxhp']."');"); - $botz = mysql_insert_id(); - $enemys[] = $botz; - } - - } - // array of teams - $teams = array(); - foreach($enemys as $v) { - $teams[$poh['owner']][$v] = array(0,0,time()); - $teams[$v][$poh['owner']] = array(0,0,time()); - } - // запись о битве - mysql_query("INSERT INTO `battle` - ( - `id`,`coment`,`teams`,`timeout`,`type`,`status`,`t1`,`t2`,`to1`,`to2` - ) - VALUES - ( - NULL,'','".serialize($teams)."','3','1','0','".$poh['owner']."','".implode(";",$enemys)."','".time()."','".time()."' - )"); - $id = mysql_insert_id(); - - // апдейтим бота - foreach($enemys as $v) { - mysql_query("UPDATE `bots` SET `battle` = ".$id." WHERE `id` = ".$v." LIMIT 1;"); - } - // создаем лог - //$rr = "".nick3($user['id'])." и ".nick3($bot).""; - - //mysql_query("INSERT INTO `logs` (`id`,`log`) VALUES('{$id}','Часы показывали ".date("Y.m.d H.i").", когда ".$rr." бросили вызов друг другу.
');"); - addlog($id,"Часы показывали ".date("Y.m.d H.i").", когда ".nick::id($poh['owner'])->full(1)." вышел на битву с Адом...
"); - chown ("backup/logs/battle".$id.".txt" , "www-data" ); - chgrp ("backup/logs/battle".$id.".txt" , "www-data" ); - - mysql_query("UPDATE users SET `battle` =".$id.",`zayavka`=0 WHERE `id`= ".$poh['owner'].";"); - addchp ('Внимание! Новое пришествие...
\'; top.frames[\'main\'].location=\'fbattle.php\'; var z = \' ','{[]}'.nick::id($poh['owner'])->short().'{[]}'); - mysql_query("UPDATE `hellround_pohod` SET `volna`=`volna`+1 WHERE `id` = ".$poh['id']." LIMIT 1;"); - echo "USER: ".$poh['owner']." New wave.\n"; - } - } - // задержка - sleep(5); - } - // } -?> \ No newline at end of file diff --git a/_unused-files/rate_ruins.php b/_unused-files/rate_ruins.php deleted file mode 100644 index 39d1e1c..0000000 --- a/_unused-files/rate_ruins.php +++ /dev/null @@ -1,22 +0,0 @@ -По уровням : '; - for($i = 7; $i <= 13; $i++) { - if($level == $i) { - $r .= ' ['.$i.']'; - } else { - $r .= ' ['.$i.']'; - } - } - $r .= '
    '; - $sp = mysql_query('SELECT `groups`.*, `winers`.* FROM `group_wins` AS `grou WHERE `level` = "'.(int)$level.'" ORDER BY `id` DESC LIMIT 10'); - $r .= '
'; - $r .= ''; - return $r; -} - -if($_GET['level'] >= 7 && $_GET['level'] <= 13) echo form_rate((int)$_GET['level']); - -$r .= '
  • 04.02.16 06:00 - Победитель : Отряд «Winers ['.$level.']», в составе: The Kite Runner, Costa, Rallo Tabs «История Турнира»
  • '; \ No newline at end of file diff --git a/_unused-files/store/.htaccess1 b/_unused-files/store/.htaccess1 deleted file mode 100644 index edfa3f1..0000000 --- a/_unused-files/store/.htaccess1 +++ /dev/null @@ -1,6 +0,0 @@ -DirectoryIndex index.php -RewriteEngine Off - -Order Deny,Allow -Deny from all - \ No newline at end of file diff --git a/_unused-files/store/CHANGES.md b/_unused-files/store/CHANGES.md deleted file mode 100644 index e02a84a..0000000 --- a/_unused-files/store/CHANGES.md +++ /dev/null @@ -1,1065 +0,0 @@ -CKEditor 4 Changelog -==================== - -## CKEditor 4.5.8 - -New Features: - -* [#12440](http://dev.ckeditor.com/ticket/12440): Added the [`config.colorButton_enableAutomatic`](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-colorButton_enableAutomatic) option to allow hiding the "Automatic" option in the [color picker](http://ckeditor.com/addon/colorbutton). - -Fixed Issues: - -* [#10448](http://dev.ckeditor.com/ticket/10448): Fixed: Lack of scrollbar in the [right-to-left text direction](http://ckeditor.com/addon/bidi). -* [#12707](http://dev.ckeditor.com/ticket/12707): Fixed: The order of table elements does not comply with the HTML specification. -* [#13756](http://dev.ckeditor.com/ticket/13756): [Edge] Fixed: Context menus are cut-off. - -## CKEditor 4.5.7 - -New Features: - -* [#14327](http://dev.ckeditor.com/ticket/14327): Added Swiss German localization. Thanks to [Miro Grenda](https://twitter.com/mirogrenda)! - -Fixed Issues: - -* [#13816](http://dev.ckeditor.com/ticket/13816): Introduced a new strategy for Filling Character handling to avoid changes in DOM. This fixes the following issues: - * [#12727](http://dev.ckeditor.com/ticket/12727): [Blink] `IndexSizeError` when using the [Div Editing Area](http://ckeditor.com/addon/divarea) and [Content Templates](http://ckeditor.com/addon/templates) plugins. - * [#13377](http://dev.ckeditor.com/ticket/13377): [Widget](http://ckeditor.com/addon/widget) plugin issue when typing in Korean. - * [#13389](http://dev.ckeditor.com/ticket/13389): [Blink] [`editor.getData()`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-getData) fails when the cursor is next to an `
    ` tag. - * [#13513](http://dev.ckeditor.com/ticket/13513): [Blink, WebKit] [Div Editing Area](http://ckeditor.com/addon/divarea) and [`editor.getData()`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-getData) throw an error when an image is the only data in the editor. -* [#13884](http://dev.ckeditor.com/ticket/13884): [Firefox] Fixed: Copying and pasting a table results in just the first cell being pasted. -* [#14234](http://dev.ckeditor.com/ticket/14234): Fixed: URL input field is not marked as required in the [Media Embed](http://ckeditor.com/addon/embed) dialog. - -## CKEditor 4.5.6 - -New Features: - -* Introduced the [`CKEDITOR.tools.getCookie()`](http://docs.ckeditor.com/#!/api/CKEDITOR.tools-method-getCookie) and [`CKEDITOR.tools.setCookie()`](http://docs.ckeditor.com/#!/api/CKEDITOR.tools-method-setCookie) methods for accessing cookies. -* Introduced the [`CKEDITOR.tools.getCsrfToken()`](http://docs.ckeditor.com/#!/api/CKEDITOR.tools-method-getCsrfToken) method. The CSRF token is now automatically sent by the [File Browser](http://ckeditor.com/addon/filebrowser) and [File Tools](http://ckeditor.com/addon/filetools) plugins during file uploads. The server-side upload handlers may check it and use it to additionally secure the communication. - -Other Changes: - -* Updated [SCAYT](http://ckeditor.com/addon/scayt) (Spell Check As You Type): - - New features: - - CKEditor [Language](http://ckeditor.com/addon/language) plugin support. - - CKEditor [Placeholder](http://ckeditor.com/addon/placeholder) plugin support. - - [Drag&Drop](http://sdk.ckeditor.com/samples/fileupload.html) support. - - **Experimental** [GRAYT](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-grayt_autoStartup) (Grammar As You Type) functionality. - - Fixed issues: - * [#98](https://github.com/WebSpellChecker/ckeditor-plugin-scayt/issues/98): SCAYT affects dialog double-click. Fixed in SCAYT core. - * [#102](https://github.com/WebSpellChecker/ckeditor-plugin-scayt/issues/102): SCAYT core performance enhancements. - * [#104](https://github.com/WebSpellChecker/ckeditor-plugin-scayt/issues/104): SCAYT's spans leak into the clipboard and after pasting. - * [#105](https://github.com/WebSpellChecker/ckeditor-plugin-scayt/issues/105): A JavaScript error fired in case of multiple instances of CKEditor on one page. - * [#107](https://github.com/WebSpellChecker/ckeditor-plugin-scayt/issues/107): SCAYT should not check non-editable parts of content. - * [#108](https://github.com/WebSpellChecker/ckeditor-plugin-scayt/issues/108): Latest SCAYT copies the ID of the editor element to the iframe. - * SCAYT stops working when CKEditor [Undo plugin](http://ckeditor.com/addon/undo) not enabled. - * Issue with pasting SCAYT markup in CKEditor. - * SCAYT stops working after pressing the *Cancel* button in the WSC dialog. - -## CKEditor 4.5.5 - -Fixed Issues: - -* [#13887](https://dev.ckeditor.com/ticket/13887): Fixed: [Link](http://ckeditor.com/addon/link) plugin alters the `target` attribute value. Thanks to [SamZiemer](https://github.com/SamZiemer)! -* [#12189](http://dev.ckeditor.com/ticket/12189): Fixed: The [Link](http://ckeditor.com/addon/link) plugin dialog does not display the subject of email links if the subject parameter is not lowercase. -* [#9192](http://dev.ckeditor.com/ticket/9192): Fixed: An `undefined` string is appended to an email address added with the [Link](http://ckeditor.com/addon/link) plugin if subject and email body are empty and [`config.emailProtection`](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-emailProtection) is set to `encode`. -* [#13790](https://dev.ckeditor.com/ticket/13790): Fixed: It is not possible to destroy the editor `