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
dbup.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
41
//include GAME_ROOT.'./gamedata/gameinfo.php';
42
$q
=
"ALTER TABLE {$tablepre}winners ADD killnum2 smallint unsigned NOT NULL default 0 AFTER killnum"
;
43
echo
$q
.
'<br>'
;
44
echo
$db
->query(
$q
);
45
$q
=
"ALTER TABLE {$tablepre}users ADD credits2 mediumint NOT NULL default 0 AFTER credits"
;
46
echo
$q
.
'<br>'
;
47
echo
$db
->query(
$q
);
48
?>
$database
$database
Definition:
config.inc.php:67
$magic_quotes_gpc
$magic_quotes_gpc
Definition:
dbup.php:14
$gamecfg
$gamecfg
Definition:
system.php:22
$_FILES
$_FILES
Definition:
dbup.php:18
$moveutmin
$moveutmin
Definition:
config.inc.php:52
$dbpw
$dbpw
Definition:
config.inc.php:12
gstrfilter
gstrfilter($str)
Definition:
global.func.php:48
GAME_ROOT
const GAME_ROOT
Definition:
dbup.php:6
$db
$db
Definition:
dbup.php:32
dbstuff
Definition:
db_mysql.class.php:7
$q
$q
Definition:
dbup.php:42
$now
$now
Definition:
dbup.php:23
$moveut
$moveut
Definition:
config.inc.php:49
$errorinfo
$errorinfo
Definition:
config.inc.php:94
config
config($file= '', $cfg=1)
Definition:
global.func.php:122
$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
dbup.php
Generated on Thu Nov 20 2014 11:37:59 for Tokiwa Battle Royale by
1.8.8