PHPXRef 0.7 : NEABExplorer : /libs/db_conn.php source
[ Index ]
PHP Cross Reference of NEABExplorer
if (gwGetCookie('xrefnav')=='off')
document.write('[ Show Explorer ]');
else
document.write('[ Hide Explorer ]');
[ Show Explorer ]
[ Hide Navbar ]
titleBody[close]
/libs/ -> db_conn.php (source)
[Summary view]
[Print]
[Text view]
1 <?PHP
2 /**
3 * Emulate ADODB (min) functionalities and at the same time be 2x as fast
4 * Code used for PHP 4.X
5 */
6
7 if(!isset($basedir))
8 {
9 $cur=getcwd();
10 $cur=str_replace("\\","/",$cur);
11 while($cur != "")
12 {
13 if(file_exists("$cur/game.php"))
14 {
15 $basedir=$cur;
16 break;
17 }
18 $cur=substr($cur,0,strrpos($cur,"/"));
19 }
20 }
21
22 include_once "$basedir/config/config.inc";
23
24 if((substr(phpversion(),0,1)+0) >= 5)
25 {
26 date_default_timezone_set(date_default_timezone_get());
27 include "$basedir/libs/db_conn_5.php"; // Database connection
28 }
29 else
30 include "$basedir/libs/db_conn_4.php"; // Database connection
31
32 ?>
FUNC_DATA={
'file_exists': ['file_exists', '', [], 48],
'substr': ['substr', '', [], 91],
'strrpos': ['strrpos', '', [], 10],
'phpversion': ['phpversion', '', [], 1],
'getcwd': ['getcwd', '', [], 4],
'str_replace': ['str_replace', '', [], 44]};
CLASS_DATA={
};
CONST_DATA={
};
titleDescriptionBody
titleDescriptionBody
titleDescriptionBody
titleBody
Generated: Sun Jul 8 18:11:25 2007
Cross-referenced by PHPXref 0.7
Wyszukiwarka
Podobne podstrony:
db conn 4db conn 5db conndb conn 5db conn 5db conn 4db conndb conn 4db connDBDB AmbershawTOUDB Movie 03 Mysterious Adventuresdb techsharedb polanddb naval techdb revoltdb event listdb strategic bomberwięcej podobnych podstron