-
Notifications
You must be signed in to change notification settings - Fork 1
/
global.php
executable file
·50 lines (39 loc) · 1.55 KB
/
global.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
<?
//Turn site on/off (yeah I know its lazy)
exit();
/* ## ======================================== ## */
$_SYSTEM = array();
// Your MySQL database login details
$_SYSTEM['dsn'] = "mysqli://samdb:samdb@localhost/samdb";
// The IP address of the machine SAM is running on (DO NOT use a local IP address like 127.0.0.1 or 192.x.x.x)
$_SYSTEM['samhost'] = "theiggsta.mine.nu";
// The port SAM handles HTTP requests on. Usually 1221.
$_SYSTEM['samport'] = 1221;
// Title
$_SYSTEM['title'] = "NSRadio Listbotto 2.6 - Domo Aragato Mister Listbotto!";
// Images Folder
$_SYSTEM['images'] = '/listbot/images';
// Root dir
$_SYSTEM['root'] = 'D:\\webroot\\listbot';
/* ## ======================================== ## */
require_once($_SYSTEM['root'].'/common/functions.php');
require_once($_SYSTEM['root'].'/common/adodb/adodb.inc.php');
$adb = NewADOConnection($_SYSTEM['dsn']);
$adb->SetFetchMode(ADODB_FETCH_ASSOC);
/*
require_once('./common/adodb/session/adodb-session.php');
$GLOBALS['ADODB_SESS_CONN'] = &$db;
ADODB_Session::open(false, false, false);
session_start();
$_SESSION['userid'] = 0;
$adb->Execute("UPDATE sessions SET ip = '".getIP()."' WHERE sesskey = '".session_id()."'");
$sessionCount = $adb->GetOne("SELECT DISTINCT COUNT(ip) AS active_sessions FROM sessions WHERE expiry > ".time()."");
*/
// PEAR Changeover, never completed, just started.
//require_once 'DB.php';
//$db =& DB::connect($_SYSTEM['dsn']);
//if (PEAR::isError($db)) {
// die($db->getMessage());
//}
//$db->setFetchMode(DB_FETCHMODE_ASSOC);
?>