This repository was archived by the owner on Feb 27, 2022. It is now read-only.
forked from rposborne/webstatsx
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathheader.php
More file actions
executable file
·142 lines (127 loc) · 4.87 KB
/
header.php
File metadata and controls
executable file
·142 lines (127 loc) · 4.87 KB
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<?php
//include important stuff...
include 'stats_web_core/classes.php';
$stats_global = new stats_global();
$bonus_methods = new bonus_methods();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<!--
Charisma v1.0.0
Copyright 2012 Muhammad Usman
Licensed under the Apache License v2.0
http://www.apache.org/licenses/LICENSE-2.0
http://usman.it
http://twitter.com/halalit_usman
-->
<meta charset="utf-8">
<title><?=$bonus_methods->page_title?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="New Webfrontend for Bukkit Stats, powered by charisma">
<!-- The styles -->
<link id="bs-css" href="css/bootstrap-spacelab.css" rel="stylesheet">
<style type="text/css">
body {
padding-bottom: 40px;
}
.sidebar-nav {
padding: 9px 0;
}
</style>
<link href="css/bootstrap-responsive.css" rel="stylesheet">
<link href="css/font-awesome.min.css" rel="stylesheet">
<link href="css/charisma-app.css" rel="stylesheet">
<link href="css/jquery-ui-1.8.21.custom.css" rel="stylesheet">
<link href='css/chosen.css' rel='stylesheet'>
<link href='css/uniform.default.css' rel='stylesheet'>
<link href='css/colorbox.css' rel='stylesheet'>
<link href='css/jquery.noty.css' rel='stylesheet'>
<link href='css/noty_theme_default.css' rel='stylesheet'>
<!--<link href='css/jquery.iphone.toggle.css' rel='stylesheet'>-->
<link href='css/opa-icons.css' rel='stylesheet'>
<!-- The HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- The fav icon -->
<link rel="shortcut icon" href="img/favicon.ico">
<script type="text/javascript">
var activate_avatars = <?php echo $bonus_methods->show_avatars; ?>;
var activate_online_state = <?php echo $bonus_methods->show_online_state; ?>;
var players_initialized = 0;
var player_list = '';
</script>
</head>
<body>
<?php if(!isset($no_visible_elements) || !$no_visible_elements) { ?>
<!-- topbar starts -->
<div class="navbar">
<div class="navbar-inner">
<div class="container-fluid">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".top-nav.nav-collapse,.sidebar-nav.nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="#"><span><?=$bonus_methods->header_title?></span></a>
<?php
if($bonus_methods->show_online_state == 1){
?>
<div class="btn-group pull-right">
<a class="btn btn-small btn-info" href="#" id="reload_state"><i class="icon-refresh icon-white"></i> Reload online/offline state</a>
</div>
<?php
}
?>
</div>
</div>
</div>
<!-- topbar ends -->
<?php } ?>
<div class="container-fluid">
<div class="row-fluid">
<?php if(!isset($no_visible_elements) || !$no_visible_elements) { ?>
<!-- left menu starts -->
<div class="span2 main-menu-span">
<div class="well nav-collapse sidebar-nav">
<ul class="nav nav-tabs nav-stacked main-menu">
<li class="nav-header hidden-tablet">Main</li>
<li><a class="ajax-link" href="index.php"><i class="icon-home"></i><span class="hidden-tablet"> Dashboard</span></a></li>
<li><a class="ajax-link" href="players.php"><i class="icon-user"></i><span class="hidden-tablet"> Players</span></a></li>
<?php
if($bonus_methods->enable_server_page == true){
echo '<li><a class="ajax-link" href="server.php"><i class="icon-hdd"></i><span class="hidden-tablet"> Server</span></a></li>';
}
if($bonus_methods->map_link != '#'){
echo '<li><a class="ajax-link" href="map.php"><i class="icon-map-marker"></i><span class="hidden-tablet"> Map</span></a></li>';
}
echo $bonus_methods -> get_custom_links();
?>
<li class="nav-header centered">
Server status:
<?php
$state = $bonus_methods->check_server();
if(empty($state)){
echo '<span class="label">unknown</span>';
} elseif($state === true) {
echo '<span class="label label-success">Online</span>';
echo '<div class="progress progress-striped progress-success active progress_shine"><div class="bar" style="width: '.(($bonus_methods->online_players / $bonus_methods->max_players)*100).'%;">'.$bonus_methods->online_players.'/'.$bonus_methods->max_players.'</div></div>';
} else {
echo '<span class="label label-error">Offline</span>';
}
?>
</li>
</ul>
</div><!--/.well -->
</div><!--/span-->
<!-- left menu ends -->
<noscript>
<div class="alert alert-block span10">
<h4 class="alert-heading">Warning!</h4>
<p>You need to have <a href="http://en.wikipedia.org/wiki/JavaScript" target="_blank">JavaScript</a> enabled to use this site.</p>
</div>
</noscript>
<div id="content" class="span10">
<!-- content starts -->
<?php } ?>