-
Notifications
You must be signed in to change notification settings - Fork 0
/
varAlly.php
45 lines (42 loc) · 1.08 KB
/
varAlly.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
/** $Id: varAlly.php 6885 2011-07-04 19:49:14Z darknoon $ **/
/**
* Ce mod permet de suivre l'évolution du classement des membres d'une alliance
* @package varAlly
* @author Aeris
* @link http://ogsteam.fr
* @version 1.0.0
*/
if (!defined('IN_SPYOGAME')) die('Hacking attempt');
require_once('./views/page_header.php');
require_once('./mod/varally/include.php');
$query = 'SELECT `active` FROM `'.TABLE_MOD.'` WHERE `action`=\'varAlly\' AND `active`=\'1\' LIMIT 1';
if (!$db->sql_numrows($db->sql_query($query))) die('Hacking attempt');
if (!isset($pub_subaction)) $pub_subaction='ally';
?>
<table width="100%">
<tr>
<td>
<?php
button_bar();
?>
</td>
</tr>
<tr>
<td>
<?php
switch ($pub_subaction)
{
case 'admin': require_once('./mod/varally/admin.php'); break;
case 'ally': require_once('./mod/varally/ally.php'); break;
case 'display': require_once('./mod/varally/display.php'); break;
default: require_once('./mod/varally/ally.php'); break;
}
?>
</td>
</tr>
</table>
<?php
page_footer();
require_once('./views/page_tail.php');
?>