forked from devryan/GamePanelX-V3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
92 lines (78 loc) · 3.2 KB
/
index.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<?php
require('checkallowed.php'); // Check logged-in
if(isset($_SESSION['gpx_admin'])) die('Cannot view client area as an admin!');
// Setup Language
require(DOCROOT.'/lang.php');
// Check Install
if(file_exists('install')) die('Currently down for maintenance. Please try again soon.');
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title><?php if(!empty($cfg_company)) echo $cfg_company . ' | '.$lang['game_panel']; else echo $lang['game_panel']; ?></title>
<?php
// Theme - Set user's chosen theme
if(isset($_SESSION['gpx_theme'])) echo '<link rel="stylesheet" type="text/css" href="themes/'.$_SESSION['gpx_theme'].'/index.css" />';
else echo '<link rel="stylesheet" type="text/css" href="themes/default/index.css" />';
?>
<link rel="stylesheet" type="text/css" href="themes/dd.css" />
<script type="text/javascript" src="scripts/jquery.min.js"></script>
<script type="text/javascript" src="scripts/jquery.simplemodal.1.4.2.min.js"></script>
<script type="text/javascript" src="scripts/jquery.dd.js"></script>
<script type="text/javascript">var ajaxURL='ajax/ajax.php';</script>
<script type="text/javascript" src="scripts/gpx.js"></script>
<script type="text/javascript" src="scripts/base64.js"></script>
<script type="text/javascript" src="scripts/internal/files.js"></script>
<script type="text/javascript" src="scripts/internal/servers.js"></script>
<script type="text/javascript" src="scripts/internal/settings.js"></script>
<script type="text/javascript" src="scripts/internal/users.js"></script>
<link href="scripts/upload/fileuploader.css" rel="stylesheet" type="text/css">
<script src="scripts/upload/fileuploader.js" type="text/javascript"></script>
<script type="text/javascript">
function createUploader(){
var uploader = new qq.FileUploader({
element: document.getElementById("file_up"),
action: "ajax/file_upload.php",
debug: true
});
}
</script>
<script type="text/javascript">
$(document).ready(function(){
$('#leftpanel_setup').click(function(){
$('#leftpanel_setup_items').slideToggle('fast');
});
$('#leftpanel_servers').click(function(){
$('#leftpanel_servers_items').slideToggle('fast');
});
$('#leftpanel_users').click(function(){
$('#leftpanel_users_items').slideToggle('fast');
});
$('#leftpanel_accounts').click(function(){
$('#leftpanel_accounts_items').slideToggle('fast');
});
$('#leftpanel_network').click(function(){
$('#leftpanel_network_items').slideToggle('fast');
});
// Confirm leaving since everything is ajaxy
$(window).bind('beforeunload', function(){
return 'Are you sure you want to leave?';
});
// Load servers as default page
mainpage('servers','');
});
</script>
</head>
<body>
<div id="modal" style="display:none;"></div>
<div id="panel_top_client"><?php echo $lang['game_panel']; ?></div>
<div align="center">
<div id="client_center_enc">
<div align="center"><div id="client_center_def"><?php require('default.php'); ?></div></div><br />
<div id="panel_center" class="panel_center_client"></div>
</div>
</div>
<input type="hidden" id="lastrt" value="" />
</body>
</html>