[SOLVED] Client error. class.html.php

LeonX

New Member
Oct 11, 2013
13
1
I used Kyles Tutorial to help me build this hotel, and after the client finishes loading i get this error:
Fatal error: Maximum execution time of 60 seconds exceeded in C:\xampp\htdocs\app\tpl\class.html.php
on line14
and btw everytime i reload the client the line the error is on changes e.g. line10 or line27 etc
here is my class.html.php
Code:
<?php

namespace Revolution;
if(!defined('IN_INDEX')) { die('Sorry, you cannot access this file.'); }
class html implements iHTML
{

    private $html;

    final public function get($file)
    {
        global $template, $_CONFIG;
       
        if($file != null && ctype_alnum($file))
        {
            if(file_exists('app/tpl/skins/'.$_CONFIG['template']['style'].'/' . $file . '.php'))
            {
                ob_start();
                include('app/tpl/skins/'.$_CONFIG['template']['style'].'/' . $file . '.php');
                $this->html .= ob_get_contents();
                ob_end_clean();
                 
                    $this->setHTML();
            }
            else
            {
                $this->get('404');
            }
        }
        else
        {
            header('Location: '.$_CONFIG['hotel']['url'].'/index');
            exit;
        }

    }
   
    final public function getHK($file)
    {
        global $template, $_CONFIG;
       
        if($file != null)
        {
            if(file_exists('../app/tpl/skins/'.$_CONFIG['template']['style'].'/hk/' . $file . '.php'))
            {
                ob_start();
                require_once('../app/tpl/skins/'.$_CONFIG['template']['style'].'/hk/' . $file . '.php');
                $this->html .= ob_get_contents();
                ob_end_clean();
           
                $this->setHTML();
            }
            else
            {
                $this->getHK('404');
            }
        }
        else
        {
            $this->getHK('dash');
        }
    }
       
    final public function setHTML()
    {
        global $template;
        $template->tpl .= $this->html;
        unset($this->html);
    }


}
?>
HELP ME GOD BLESS YOU!
 

LeonX

New Member
Oct 11, 2013
13
1
ok so i fixed it myself, the problem was that the xampp directory wasnt right. its supposed to be in local disk and it wasnt lol.
this stopped the error showing up however hotel would redirect me to localhost/me when it finishes loading, and to fix this i went to config.php and at server ip it said localhost, i changed it to 127.0.0.1 and it worked. ggggggggggg
 

Users who are viewing this thread

Top