adding runtime and default DB detection
This commit is contained in:
		@@ -12,9 +12,11 @@ class HF_Core
 | 
			
		||||
	private $args = array();
 | 
			
		||||
    private $config = array();
 | 
			
		||||
    private $tpl;
 | 
			
		||||
    private $starttime;
 | 
			
		||||
	
 | 
			
		||||
	public function __construct()
 | 
			
		||||
	{
 | 
			
		||||
        $this->starttime = microtime(true);
 | 
			
		||||
        $config = include("system/engine/config-default.php");
 | 
			
		||||
        if (is_file("application/config.php"))
 | 
			
		||||
        {
 | 
			
		||||
@@ -31,6 +33,11 @@ class HF_Core
 | 
			
		||||
        $this->findController();
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
    public function getRuntime()
 | 
			
		||||
    {
 | 
			
		||||
        return $this->starttime - microtime(true);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function siteURL()
 | 
			
		||||
    {
 | 
			
		||||
        if (isvarset($this->config["SITE_URL"]))
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user