-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathConfig.php
executable file
·44 lines (41 loc) · 1.12 KB
/
Config.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
<?php /**
Author: SpringHack - [email protected]
Last modified: 2016-11-07 11:02:36
Filename: ../Config.php
Description: Created by SpringHack using vim automatically.
**/ ?>
<?php
$Config = array(
'DB_HOST' => '127.0.0.1',
'DB_USER' => 'root',
'DB_PASS' => 'sksks',
'DB_NAME' => 'build_vj',
'AUTO_USER' => 'root',
'AUTO_PASS' => 'sksks',
'PROBLEM_NUMBER_PER_PAGE' => 20,
'STATUS_NUMBER_PER_PAGE' => 10,
'CODER_NUMBER_PER_PAGE' => 20
);
$sql = NULL;
function __autoload($class)
{
$file = dirname(__FILE__)."/system/".$class."/".$class.".class.php";
if (file_exists($file))
require_once($file);
else
die("<center><h1>Class not found!</h1></center>");
}
function redirect($str)
{
header($str);
die();
}
if (!function_exists('mysql_connect'))
require_once('system/mysql_mysqli.php');
if (!file_exists('Quote.php'))
$Config['RAND_QUOTE'] = require_once('Quote.php');
else
$Config['RAND_QUOTE'] = array(
'神说,春哥既是一切--'
);
?>