MOON
Server: Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4
System: Linux vps.panamaemb.org.sg 3.10.0-1160.80.1.vz7.191.4 #1 SMP Thu Dec 15 20:31:06 MSK 2022 x86_64
User: panama (500)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: /home/panama/public_html_old/include/connection.php
<? //session_start();
//header('Cache-Control: no-cache, must-revalidate');
/*
	+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
	Please do not edit this class or any variable.
	+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
*/	


	class connection_camp {
		function connection_camp(){
			global $setting;
			$this->connect();
		}
		
		function connect()	{
				global $setting;
				if( ($_SERVER['SERVER_NAME'] == 'localhost') || ($_SERVER['SERVER_NAME'] == 'client5') ){
					$this->setting["database"] = array("host" => "localhost","username" => "root","password" => "","database" => "embassydb","prefix" => "");
				} else	{
					$this->setting["database"] = array("host" => "localhost","username" => "panamausr","password" => "pe@579Mn","database" => "embassydb","prefix" => "");
				}

				$this->conn = mysql_connect($this->setting["database"]["host"],$this->setting["database"]["username"],$this->setting["database"]["password"]) or die(mysql_error());
				if(!$this->conn)	{	trigger_error(mysql_error(),E_USER_ERROR); }
				$this->conn_db = mysql_select_db($this->setting["database"]["database"],$this->conn);
				if(!$this->conn_db)	{	trigger_error(mysql_error(),E_USER_ERROR); }
			return $conn;
		}
	}
	
	require_once("includes.php");
	$DB = new database();
	$functions = new functions();
	$valid=new valid();
?>