-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathheader3.php
136 lines (125 loc) · 4.92 KB
/
header3.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
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
<?php
// Blacknova Traders - A web-based massively multiplayer space combat and trading game
// Copyright (C) 2001-2012 Ron Harwood and the BNT development team
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 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 Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// File: header.php
/*
header for the logging page. code in here seems to break code elsewhere in the site.
*/
require_once($_SERVER['DOCUMENT_ROOT'].'/classes/auto.php');
include "config/config.php";
if (checklogin())
{
die();
}
header("Content-type: text/html; charset=utf-8");
header("X-UA-Compatible: IE=Edge, chrome=1");
header("Cache-Control: public"); // Tell the client (and any caches) that this information can be stored in public caches.
header("Connection: Keep-Alive"); // Tell the client to keep going until it gets all data, please.
header("Vary: Accept-Encoding, Accept-Language");
header("Keep-Alive: timeout=15, max=100");
if (!isset($body_class))
{
$body_class = "bnt";
}
$log_manager = new manage_log();
$default_logs_show_per_page = 20;
$total_records = $log_manager->count_log_total($db_prefix.'player_logs',$user_ship_id);
$total_groups = ceil($total_records/$default_logs_show_per_page);
?>
<!DOCTYPE html>
<html lang="<?php echo $l->get('l_lang_attribute'); ?>">
<head>
<meta charset="utf-8">
<meta name="Description" content="Xenobe Rage - A free online game - Open source, web game, with multiplayer space exploration">
<meta name="Keywords" content="Free, online, game, Open source, web game, multiplayer, space, exploration, blacknova, traders, xenobe rage, xr, xenobe">
<meta name="Rating" content="General">
<link rel="shortcut icon" href="images/bntfavicon.ico">
<title>Xenobe Rage</title>
<link rel='stylesheet' type='text/css' href='templates/alienrage/styles/main.css'>
<link rel='stylesheet' type='text/css' href='templates/alienrage/styles/styles.css'>
<link href='http://fonts.googleapis.com/css?family=Ubuntu' rel='stylesheet' type='text/css'>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.js"></script>
<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.17/themes/base/jquery-ui.css">
<script type="text/javascript" src="templates/alienrage/js/planet-slider.js"></script>
<script type="text/javascript">
$(document).ready(function() {
var track_load = 0;
var loading = false;
var total_groups = <?php echo $total_groups; ?>;
/*
Load first results
*/
$('#results').load("feed.php", {'group_no':track_load}, function() {track_load++;});
/*
When user scrolls the page/bumps the bottom we want the jquery to append more data to the page, and so on until there is no more data to load
*/
$(window).scroll(function() {
if($(window).scrollTop() + $(window).height() == $(document).height())
{
/*
More data detected
*/
if(track_load <= total_groups && loading==false)
{
loading = true;
$('.log_loading_holder').show();
/*
Load data from the feed
*/
$.post('feed.php',{'group_no': track_load}, function(data){
$("#results").append(data);
$('.log_loading_holder').hide();
track_load++;
loading = false;
}).fail(function(xhr, ajaxOptions, thrownError) {
/*
Catch any errors
*/
alert(thrownError);
$('.log_loading_holder').hide();
loading = false;
});
}
}
});
});
</script>
<script type="text/javascript">
setTimeout(function() {
$("#hide-me").fadeOut(3000, function() { $(this).remove(); });
}, 3100);
</script>
</head>
<body>
<div class="table-header">
<div class="tablerow" id="header-fix">
<!--<div class="alienrage-logo-large"></div>-->
<div class="tableOther header">
<div id="loginContainer">
</div>
</div>
</div>
</div>
<div class="table-navigator">
<div class="tablerow">
<div class="tableNavigation user-information-bar ar-player-header">
</div>
</div>
</div>
<div class="table-content">
<div class="tablerow">