-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathinc_private.php
50 lines (41 loc) · 1.74 KB
/
inc_private.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
<?
// It's supposed that "live.".DOMAIN is the live domain
// and "test.".DOMAIN is the test domain
define("DOMAIN","cubecomps.com");
//define("DOMAIN","localhost");
// See lib.php for details.
define("DBTYPE_MYSQL",1); // uses MySQL legacy functions
define("DBTYPE_PDO",2); // uses PDO MySQL
define("DBTYPE_H2",3); // uses PDO MySQL with h2/quercus
define("SQL_DBTYPE",DBTYPE_PDO);
//define("SQL_DBTYPE",DBTYPE_H2);
// None of these need to be set for tnoodle, as it has configured quercus
// to ignore the paramters in calls to mysql_connect, and use h2.
define("SQL_SERVER",___);
define("SQL_USER",___);
define("SQL_PASSWORD",___);
define("SQL_DBNAME",___);
define("SQL_DSN",___.SQL_DBNAME);
define("SQL_TEST_USER",___);
define("SQL_TEST_PASSWORD",___);
define("SQL_TEST_DBNAME",___);
define("SQL_TEST_DSN",___.SQL_TEST_DBNAME);
/*
* Use of a beta system is enabled. I just use a folder called '/beta' to place all the code there.
*
* substr($_SERVER["REQUEST_URI"],0,6)=="/beta/" detects beta.
*
* In that case, you'll need to reference some dirs differently depending on whether you're using the beta or not.
* To make it simple, the beta just adds "../" before the path.
*
* Make these paths relative or fix the lines where the beta use them.
*/
define("DIR_FPDF",___); // "../lib/tfpdf/tfpdf.php"
define("DIR_PHPEXCEL",___); // "../lib/PHPExcel/PHPExcel.php"
/* These are different; both, relative and absolute references are needed.
* This is the folder where the user uploads his/her scorecard backgroud image.
* In addition, *.sch and *.gif files with the schedule and the banner for the public side are placed.
*/
define("DIR_UPLOADS",___); // "uploads/"
define("DIR_UPLOADS_ABS",___.DIR_UPLOADS); // "/homepages/...<>.../".DIR_UPLOADS
?>