-
Notifications
You must be signed in to change notification settings - Fork 0
/
users.php
75 lines (73 loc) · 2.64 KB
/
users.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?php
/*
* users.php
*
* Copyright 2022 Jim Richardson <jim@noideersoftware.co.uk>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*
*
*/
include 'inc/master.inc.php';
require DOC_ROOT. '/inc/xpaw/SourceQuery/bootstrap.php'; // load xpaw
use xPaw\SourceQuery\SourceQuery;
define( 'SQ_TIMEOUT', $settings['SQ_TIMEOUT'] );
define( 'SQ_ENGINE', SourceQuery::SOURCE );
define( 'LOG', 'logs/ajax.log');
$module = "users";
$build = "3362-1104287304";
$version = "1.010";
$time = "1663578087";
$we_are_here = $settings['url'];
$url = $settings['url'];
$header_vars['title'] = "$module - $bserver";
$sql = "select * from server1 order by `host_name` ASC";
$servers = $database->get_results($sql);
if ($settings['left_buttons']) {$page['button_class'] = "button-left";} else {$page['button_class']='';}
if(isset($_GET['id'])) {
//workout_options ($_GET);
$page['userid'] = $_GET['id'];
}
$sidebar_data['servers'] = 'Game Servers';
$sidebar_data['base_servers'] = 'Base Servers';
$page['title'] = "User Editor";
$page['userid'] = '';
$template->load('templates/subtemplates/header.html'); // load header
$template->replace_vars($header_vars);
$page['header'] = $template->get_template();
$template->load('templates/subtemplates/sidebar.html'); //sidebar
$template->replace_vars($sidebar_data);
$page['sidebar'] =$template->get_template();
//<a class="nav-link collapsed" id="users" href="users.php">
$page['sidebar'] = str_replace("class=\"nav-link collapsed\" id=\"$module\" ","class=\"nav-link\" id=\"$module\" ",$page['sidebar']);
$template->load('templates/subtemplates/footer.html');
$page['footer'] = $template->get_template();
$page['bserver'] = $bserver;
$page['page-title'] = "Players";
$page['url'] = $url;
$template->load('templates/users.html');
//echo "page url is {$page['url']}";
//die();
$template->replace_vars($page);
//$template->replace_vars($this_server);
$template->publish();
function workout_options ($get) {
// see if we need to jump
global $page;
print_r($get);
die();
}
?>