This repository has been archived by the owner on May 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 117
/
sample.config.inc.php
executable file
·74 lines (53 loc) · 2.17 KB
/
sample.config.inc.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
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
<?php
/************************************************/
/*** APPLICATION CONFIG ***/
/************************************************/
/**
* Main configuration file for Hackademic CMS. It initializes all the global
* variables for the application.
*/
// Application title
define('APP_TITLE', '#YOUR_APP_TITLE_HERE#');
// Public path of hackademic's folder on your web server.
// For example, if the folder is located at http://yourdomain/hackademic/, set to '/hackademic/'.
define('SITE_ROOT_PATH', "#YOUR_SITE_ROOT_PATH#");
// Full server path to /socialcalc/ folder.
define('SOURCE_ROOT_PATH', "#YOUR_SOURCE_ROOT_PATH#");
// Toggle Smarty caching. true: Smarty caching on, false: Smarty caching off
define('DEBUG',false);
define('CACHE_PAGES',false);
// Environment
define('ENVIRONMENT', 'production');
/************************************************/
/*** DATABASE CONFIG ***/
/************************************************/
define('DB_HOST', '#YOUR_DBHOST#');
define('DB_TYPE', 'mysql');
define('DB_USER', '#YOUR_DBUSER#');
define('DB_PASSWORD', '#YOUR_DBPASS#');
define('DB_NAME', '#YOUR_DBNAME#');
/*********************************************/
/** Various Config *****/
/********************************************/
//default max challenge size
define('MAX_CHALLENGE_SIZE','2097152');
/* DEV DEBUG MESSAGE SELECTION */
//Debug message selection
define('SHOW_SQL_QUERIES', '#TRUE OR FALSE');
define('SHOW_SQL_RESULTS', '#TRUE OR FALSE');
define("SHOW_EMPTY_VAR_ERRORS", '#TRUE OR FALSE');
/***************************************
** Default Example Challenge Path**
***************************************/
define('EXAMPLE_CHALLENGE','challenges/Example/');
/***************************************
** "Security" settings "**
***************************************/
//every session closes after 48 hours
define('SESS_EXP_ABS',172800);
//every session closes after 2 hours of inacivity
define('SESS_EXP_INACTIVE',7200);
//session cookie name
define('SESS_NAME',"not_the_cookie_you_are_looking_for");
//excibition mode
define('EXCIBITION_MODE',false);