connect($config['dbname'],$config['dbserver'],$config['dbuser'],$config['dbpass']); $settings = getSettings(); $config['dir']=ABSPATH; $config['url']=$settings['url']; $config['title']=$settings['sitename']; $config['curency']=$settings['curency']; $config['perPage']=$settings['perPage']; $config['theme']=$settings['theme']; $config['gantType']=1; // you can use 1 for days or 2 for weeks or 3 for moths require_once($config['dir'].'/lib/php/smarty/Smarty.class.php'); class skin extends Smarty{ function skin(){ global $config; $this->Smarty(); $this->template_dir =$config['dir'].'/themes/'.$config['theme'].'/'; $this->compile_dir =$config['dir'].'/themes/'.$config['theme'].'/temp'; $this->config_dir =$config['dir'].'/themes/'.$config['theme'].'/config/'; $this->load_filter('output','move_to_head'); //$this->load_filter('output','png_image'); } } session_start(); ?>