PasteSite.Com

Recent Pastes

Sign Up!

PasteSite is open to the public, but with limited features. Register to be able to modify access rights, track your pastes and more...

Change the theme

If you prefer reading light text on a dark background to dark text on a light background, then you might want to try the dark theme.

This paste is a reply. View the Previous Paste?
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
<?PHP
 
//* Agares Media CMS- Version 3.0 *//
 
//* Copyright 2007 &#65533; Agares Media.  All rights reserved. *//
 
//* Use of this software is governed by the terms of our license *//
 
error_reporting(0); 
 
$benchmark_start = microtime();
 
 
 
/*if (strstr($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip')) {
 
    ob_start("ob_gzhandler"); // Compress the HTML
 
    header("Content-Encoding: gzip");
 
}
*/
require_once("./license/license_integrity.php");
 
require_once("./license/license_validator.php");
 
require_once("./includes/corefunctions.php"); // Load the AMCMS3 functions
 
require_once("./includes/db.php"); // Get the database configuration settings & connect to DB.
 
require_once('./includes/Smarty/libs/Smarty.class.php'); $smartyDeclared = true; // 2.709 adds support for the Smarty templating system
 
require_once("./includes/config.php"); // Load the admin's preferences
 
require_once('./language/'.$script_language.'/index.php');
 
require_once("./includes/gamefunctions.php"); // Load the AMCMS3 game functions
 
am_session(); // Start the session if nothing else has
 
require_once("./includes/loginsubmit.php"); // Load login submission
 
 
 
if (isset($_POST['gname']) || isset($_REQUEST['id']) || $_GET['autocom'] || $_POST['autocom'] || $_GET['do'] || $_POST['thescore'] || $_POST['gscore'] || $_GET['scoreVar'] || isset($_POST['sessdo'])) {
 
    require_once('./includes/submitscore.php'); // Handles the submission of high scores.
 
}
 
 
 
if ($promptToRegister ==true) {
 
    $headload = '
 
    <script type="text/javascript">
 
        jQuery(function(){
 
            setTimeout(function(){ 
 
                tb_show(\'Register\', \'./highscoreregister.php?height=450&width=425&keepThis=true&TB_iframe=true\', null);
 
            }, 250);
 
        });
 
    </script>
 
    
 
    ';
 
}
 
if ($_GET['loadpage']=='./includes/profile.php' && $_GET['challenge']=='true') {
 
    $authorkey = am_injection($_GET['userkey']);
 
    $headload = '
 
    <script type="text/javascript">
 
        jQuery(function(){
 
            setTimeout(function(){ 
 
                tb_show(\'Challenge\', \'./challenge.php?height=480&width=425&userkey='.$authorkey.'&keepThis=true&TB_iframe=true\', null);
 
            }, 250);
 
        });
 
    </script>
 
    ';
 
}
 
 
 
$rotationcode = '        <script type="text/javascript" src="./includes/jquery/core.js"></script>
 
 
 
        <script type="text/javascript" src="./includes/jquery/selector.js"></script>
 
        <script type="text/javascript" src="./includes/jquery/event.js"></script>
 
        <script type="text/javascript" src="./includes/jquery/ajax.js"></script>
 
 
 
        <script type="text/javascript" src="./includes/jquery/fx.js"></script>
 
        <script type="text/javascript" src="./includes/i/iutil.js"></script>
 
        <script type="text/javascript" src="./includes/i/idrag.js"></script>
 
 
 
        <script type="text/javascript" src="./includes/i/accordion.js"></script>
 
    
 
        <script type="text/javascript" src="./includes/i/carousel.js"></script>';
 
 
 
 
 
$reg_pass = am_getuserpass();
 
 
 
if ($themedir=='/theme/Smarty/') {
 
    $smarty->assign('headload',$headload); // Assign to smarty
 
    $smarty->assign('rotationcode',$rotationcode); // Assign to smarty
 
 
 
    if($_GET['cat']!=NULL) {
 
        require_once('./logic/gamecategory.php'); // Execute the business logic for the game categories
 
        $smarty->display('gamecategory.tpl'); // Display the template for gamecategory.php
 
        exit;
 
    } elseif($_GET['loadpage']!=NULL) {
 
        require_once('./logic/loadpage.php'); 
 
        exit;
 
    } elseif($_GET['article']!=NULL) {
 
        require_once('./logic/article.php'); // Execute the business logic for displaying articles
 
        $smarty->display('article.tpl'); // Display the template for articles.php        
 
    } else {
 
        $smarty->display('index.tpl'); // Display the template for index.php
 
        exit;
 
    }
 
} else {
 
    include_once(".".$themepath."top.php"); // Loads the topmost information (do not confuse this with the header)
 
    include_once(".".$themepath."header.php"); // Loads the header and menu
 
    require_once("./includes/cache_top.php"); // Load the page cache code
 
    include_once(".".$themepath."sidebar.php"); // Loads the sidebar
 
    include_once(".".$themepath."frontpage_right.php"); // Loads the right content
 
    am_depthstats(); // Calls DepthStats code.
 
    include_once(".".$themepath."footer.php"); // Loads the footer (there is no bottom.php, this is the last file)
 
    require_once("./includes/cache_bottom.php"); // Load the page cache code
 
}
 
    
 
$benchmark_end = microtime();
 
$benchmark = $benchmark_end - $benchmark_start;
 
print("<!-- Script Execution Time: " . $benchmark . "-->\n");
 
/*if (strstr($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip')) {
 
    echo '<!-- gzip successful -->';
 
    ob_end_flush(); // Output the uncompressed HTML
 
} else {
 
    echo '<!-- '.$HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'].' -->';
 
}
*/
mysql_close($db);
 
?>

Reply to This Paste

(leave blank to make this paste permanent)
(if set as private)