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
HELP ME GOD BLESS YOU!
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);
}
}
?>