-
Notifications
You must be signed in to change notification settings - Fork 0
/
target.php
49 lines (43 loc) · 1.28 KB
/
target.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
46
47
48
49
<?php
include('include/header.php');
include('include/alliance_data.php');
if(!$session->hasAccess(100))
{
echo('<div align="center" class="warning">You are not authorized to access this page</div>');
include('include/footer.php');
exit();
}
echo('<table width="100%">');
echo(' <tr>');
echo(' <td width="50%">');
$data = new AllianceData;
$data->names = $_REQUEST['alliances'];
if(!is_array($data->names))
{
$data->names = explode(",", $data->names);
}
$data->order = $_REQUEST['order'];
$data->direction = $_REQUEST['dir'];
$data->minroids = $_REQUEST['minroids'];
$data->maxroids = $_REQUEST['maxroids'];
$data->minvalue = $_REQUEST['minvalue'];
$data->maxvalue = $_REQUEST['maxvalue'];
$data->action = "target";
$data->limit = 1000;
if($data->order == "")
{
$data->order = "x,y,z";
}
$smarty->assign('data', $data->selectAlliance());
$smarty->assign('alli', implode($data->names, ","));
$smarty->assign('options', $data->allianceOptions());
$smarty->assign('minroids', $data->minroids);
$smarty->assign('maxroids', $data->maxroids);
$smarty->assign('minvalue', $data->minvalue);
$smarty->assign('maxvalue', $data->maxvalue);
$smarty->display('target_list.tpl');
echo(' </td>');
echo(' </tr>');
echo('</table>');
include('include/footer.php');
?>