-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.php
More file actions
46 lines (37 loc) · 797 Bytes
/
config.php
File metadata and controls
46 lines (37 loc) · 797 Bytes
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
<?php
// Definitions
define( 'MESSAGE_KEY', '' );
define( 'DB_HOST', 'localhost' );
define( 'DB_USER', '' );
define( 'DB_PASS', '' );
define( 'DB_NAME', '' );
// Debug
ini_set( 'display_errors', '1' );
// Database
class Database
{
private static $database;
public static function getConnection()
{
if ( !self::$database )
{
self::$database = new mysqli( DB_HOST, DB_USER, DB_PASS, DB_NAME );
self::$database->set_charset("utf8");
}
return self::$database;
}
}
//Custom
$disable_login = false;
$disable_create = false;
$disable_antagonism = false;
$min_ratio = 0.95;
$def_ratio = 0.9;
$min_draw = 10;
session_start();
if( !isset( $_SESSION['token'] ) )
{
$_SESSION['token'] = hash( 'ripemd160', sha1( uniqid( '', true ) ) );
}
define( 'INITIALIZED', true );
?>