Tokiwa Battle Royale
GE777
A PHP Battle Royale inspired game
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Pages
clear.php
Go to the documentation of this file.
1
<?php
2
3
define(
'CURSCRIPT'
,
'dbup'
);
4
5
define(
'IN_GAME'
, TRUE);
6
define(
'GAME_ROOT'
, dirname(__FILE__));
7
define(
'GAMENAME'
,
'bra'
);
8
9
if
(PHP_VERSION <
'4.3.0'
) {
10
exit(
'PHP version must >= 4.3.0!'
);
11
}
12
require
GAME_ROOT
.
'/include/global.func.php'
;
13
14
$magic_quotes_gpc
= get_magic_quotes_gpc();
15
extract(
gstrfilter
($_COOKIE));
16
extract(
gstrfilter
($_POST));
17
unset($_GET);
18
$_FILES
=
gstrfilter
(
$_FILES
);
19
20
require
GAME_ROOT
.
'/config.inc.php'
;
21
22
$errorinfo
? error_reporting(E_ALL) : error_reporting(0);
23
$now
= time() +
$moveut
*3600 +
$moveutmin
*60;
24
list($sec,$min,$hour,$day,$month,$year,$wday) = explode(
','
,date(
"s,i,H,j,n,Y,w"
,
$now
));
25
26
27
//if($attackevasive) {
28
// include_once GAME_ROOT.'./include/security.inc.php';
29
//}
30
31
require
GAME_ROOT
.
'/include/db_'
.
$database
.
'.class.php'
;
32
$db
=
new
dbstuff
;
33
$db
->connect(
$dbhost
,
$dbuser
,
$dbpw
,
$dbname
,
$pconnect
);
34
//$db->select_db($dbname);
35
unset(
$dbhost
,
$dbuser
,
$dbpw
,
$dbname
,
$pconnect
);
36
37
//require GAME_ROOT.'./gamedata/system.php';
38
//require config('resources',$gamecfg);
39
//require config('gamecfg',$gamecfg);
40
echo
'a'
;
41
//include GAME_ROOT.'./gamedata/gameinfo.php';
42
echo
$q
.
'<br>'
;
43
//echo $db->query($q);
44
$q
=
"UPDATE {$tablepre}users SET achievement='' WHERE uid>0"
;
45
echo
$db
->query(
$q
);
46
$q
=
"ALTER TABLE {$tablepre}users ADD titles text NOT NULL default '' AFTER achievement"
;
47
//echo $db->query($q);
48
$q
=
"ALTER TABLE {$tablepre}users ADD title text NOT NULL default '' AFTER title"
;
49
//echo $db->query($q);
50
?>
$database
$database
Definition:
config.inc.php:67
$magic_quotes_gpc
$magic_quotes_gpc
Definition:
clear.php:14
$_FILES
$_FILES
Definition:
clear.php:18
$moveutmin
$moveutmin
Definition:
config.inc.php:52
$dbpw
$dbpw
Definition:
config.inc.php:12
gstrfilter
gstrfilter($str)
Definition:
global.func.php:48
dbstuff
Definition:
db_mysql.class.php:7
$db
$db
Definition:
clear.php:32
$moveut
$moveut
Definition:
config.inc.php:49
GAME_ROOT
const GAME_ROOT
Definition:
clear.php:6
$errorinfo
$errorinfo
Definition:
config.inc.php:94
$now
$now
Definition:
clear.php:23
$q
$q
Definition:
clear.php:44
$dbhost
$dbhost
Definition:
config.inc.php:6
$dbuser
$dbuser
Definition:
config.inc.php:9
$pconnect
$pconnect
Definition:
config.inc.php:40
$dbname
$dbname
Definition:
config.inc.php:15
clear.php
Generated on Thu Nov 20 2014 11:37:59 for Tokiwa Battle Royale by
1.8.8