HEX
Server: Apache/2
System: Linux sv1.freethailand.com 2.6.18-410.el5 #1 SMP Wed May 11 06:00:14 EDT 2016 x86_64
User: apache (101)
PHP: 5.3.29
Disabled: symlink,shell_exec,exec,proc_close,proc_open,popen,system,dl,passthru,escapeshellarg,escapeshellcmd,pcntl_exec,proc_get_status,proc_nice,proc_terminate,pclose,ini_alter,virtual,openlog,ini_restore
Upload Files
File: /home/pengthai/domains/pengthaicurry.com/public_html/admin/class/config.php
<?php
	
class config
{	
	public $CONFIX = array();	
	public $titleView="";
	
	protected function getConnect()
	{
		 if (!is_object($this->db)) {
			 $this->db = new connect;
		 }
		return $this->db;
	}
	
	public function __construct()
	{
		$this->setDefault();
	}
	
	protected   function setDefault(){
		
		$db = $this-> getConnect();
		$sql ="SELECT * FROM  tb_config ";
		$result = $db->execute($sql);	
		if ( $result )
		{
			while($r = $db->fecth($result))
			{
				$name = $r['conf_name'];
				$value = $r['conf_value'] ;
				if(!empty($value))
				$this->CONFIX[$name] =$value ;
			}
		}
		return true ;
	}
	
	
	
	
}

?>