MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: /home/asjudine/public_html/ELEMENTOS/db/db.php
<?php


if (stristr($_SERVER['PHP_SELF'], "db.php")) {

    Header("Location: index.php");

    die();

}



if (defined('FORUM_ADMIN')) {

    $the_include = "../../../db";

} elseif (defined('INSIDE_MOD')) {

    $the_include = "../../db";

} else {

    $the_include = "db";

}



switch($dbtype) {



	case 'MySQL':

		include("".$the_include."/mysql.php");

		break;



	case 'mysql4':

		include("".$the_include."/mysql4.php");

		break;



	case 'sqlite':

		include("".$the_include."/sqlite.php");

		break;



	case 'postgres':

		include("".$the_include."/postgres7.php");

		break;



	case 'mssql':

		include("".$the_include."/mssql.php");

		break;



	case 'oracle':

		include("".$the_include."/oracle.php");

		break;



	case 'msaccess':

		include("".$the_include."/msaccess.php");

		break;



	case 'mssql-odbc':

		include("".$the_include."/mssql-odbc.php");

		break;

	

	case 'db2':

		include("".$the_include."/db2.php");

		break;



}



$db = new sql_db($dbhost, $dbuname, $dbpass, $dbname, false);

if(!$db->db_connect_id) {

    die("<br><br><center><img src=images/logo.gif><br><br><b>There seems to be a problem with the $dbtype server, sorry for the inconvenience.<br><br>We should be back shortly.</center></b>");

}



?>