From 14ed72c0218bd6733abc91ca5ff3199885bbb19f Mon Sep 17 00:00:00 2001 From: lopar Date: Mon, 29 Jan 2018 21:38:52 +0200 Subject: [PATCH] =?UTF-8?q?=D0=91=D0=BE=D0=BB=D1=8C=D1=88=D0=B5=20=D0=BE?= =?UTF-8?q?=D0=B3=D1=80=D1=8B=D0=B7=D0=BA=D0=BE=D0=B2=20=D0=B2=20=D0=BA?= =?UTF-8?q?=D0=BE=D1=80=D0=B7=D0=B8=D0=BD=D1=83=20=D0=BE=D0=B3=D1=80=D1=8B?= =?UTF-8?q?=D0=B7=D0=BA=D0=BE=D0=B2!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- __modules/clan_modules/main.php | 117 ---------------- {ajax => _unused-files}/change_login.php | 0 .../kazna.php => _unused-files/clan_kazna.php | 0 {ajax => _unused-files}/clan_log.php | 0 _unused-files/clan_main.php | 125 ++++++++++++++++++ {__modules => _unused-files}/clan_panel.php | 0 {data => _unused-files}/contact.php | 0 {ajax => _unused-files}/downgrade_art.php | 0 {ajax => _unused-files}/fontan_luck.php | 0 {ajax => _unused-files}/rate_ruins.php | 0 {ajax => _unused-files}/update_art.php | 0 i/city/sub/city.php | 1 - 12 files changed, 125 insertions(+), 118 deletions(-) delete mode 100644 __modules/clan_modules/main.php rename {ajax => _unused-files}/change_login.php (100%) rename __modules/clan_modules/kazna.php => _unused-files/clan_kazna.php (100%) rename {ajax => _unused-files}/clan_log.php (100%) create mode 100644 _unused-files/clan_main.php rename {__modules => _unused-files}/clan_panel.php (100%) rename {data => _unused-files}/contact.php (100%) rename {ajax => _unused-files}/downgrade_art.php (100%) rename {ajax => _unused-files}/fontan_luck.php (100%) rename {ajax => _unused-files}/rate_ruins.php (100%) rename {ajax => _unused-files}/update_art.php (100%) diff --git a/__modules/clan_modules/main.php b/__modules/clan_modules/main.php deleted file mode 100644 index 29752a0..0000000 --- a/__modules/clan_modules/main.php +++ /dev/null @@ -1,117 +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/ajax/change_login.php b/_unused-files/change_login.php similarity index 100% rename from ajax/change_login.php rename to _unused-files/change_login.php diff --git a/__modules/clan_modules/kazna.php b/_unused-files/clan_kazna.php similarity index 100% rename from __modules/clan_modules/kazna.php rename to _unused-files/clan_kazna.php diff --git a/ajax/clan_log.php b/_unused-files/clan_log.php similarity index 100% rename from ajax/clan_log.php rename to _unused-files/clan_log.php diff --git a/_unused-files/clan_main.php b/_unused-files/clan_main.php new file mode 100644 index 0000000..6a38a7f --- /dev/null +++ b/_unused-files/clan_main.php @@ -0,0 +1,125 @@ + 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/__modules/clan_panel.php b/_unused-files/clan_panel.php similarity index 100% rename from __modules/clan_panel.php rename to _unused-files/clan_panel.php diff --git a/data/contact.php b/_unused-files/contact.php similarity index 100% rename from data/contact.php rename to _unused-files/contact.php diff --git a/ajax/downgrade_art.php b/_unused-files/downgrade_art.php similarity index 100% rename from ajax/downgrade_art.php rename to _unused-files/downgrade_art.php diff --git a/ajax/fontan_luck.php b/_unused-files/fontan_luck.php similarity index 100% rename from ajax/fontan_luck.php rename to _unused-files/fontan_luck.php diff --git a/ajax/rate_ruins.php b/_unused-files/rate_ruins.php similarity index 100% rename from ajax/rate_ruins.php rename to _unused-files/rate_ruins.php diff --git a/ajax/update_art.php b/_unused-files/update_art.php similarity index 100% rename from ajax/update_art.php rename to _unused-files/update_art.php diff --git a/i/city/sub/city.php b/i/city/sub/city.php index 8c84038..a43014f 100644 --- a/i/city/sub/city.php +++ b/i/city/sub/city.php @@ -774,6 +774,5 @@ if($_GET['nap']=="attack" && $user['room']==20){include "magic/cityattack.php";}
-