Fatal Error

JayFord

Member
Mar 31, 2013
49
0
I need help ASAP. pls. This is my problem:
-------------------------------------------------------------------------------------------

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 261904 bytes) in C:\Users\Sevillia\Desktop\Retro\xampp\htdocs\app\tpl\class.html.php on line 27

-------------------------------------------------------------------------------------------
and this is my class.html.php :

1<?php
2
3namespace Revolution;
4if(!defined('IN_INDEX')) { die('Sorry, you cannot access this file.'); }
5class html implements iHTML
6{
7
8private $html;
9
10final public function get($file)
11{
12global $template, $_CONFIG;
13
14if($file != null && ctype_alnum($file))
15{
16if(file_exists('app/tpl/skins/'.$_CONFIG['template']['style'].'/' . $file . '.php'))
17{
18ob_start();
19include('app/tpl/skins/'.$_CONFIG['template']['style'].'/' . $file . '.php');
20 $this->html .= ob_get_contents();
21 ob_end_clean();
22
23 $this->setHTML();
24}
25else
26{
27$this->get('404');
28}
29}
30else
{
31header('Location: '.$_CONFIG['hotel']['url'].'/index');
32exit;
33}
34
35}
36
37final public function getHK($file)
38{
39global $template, $_CONFIG;
40
41if($file != null)
42{
43if(file_exists('../app/tpl/skins/'.$_CONFIG['template']['style'].'/hk/' . $file . '.php'))
44{
45ob_start();
46require_once('../app/tpl/skins/'.$_CONFIG['template']['style'].'/hk/' . $file . 47'.php');
48$this->html .= ob_get_contents();
49ob_end_clean();
50
51$this->setHTML();
52}
53else
54{
55$this->getHK('404');
56}
57}
58else
59{
60$this->getHK('dash');
61}
62}
63
64
final public function setHTML()
65{
66global $template;
67$template->tpl .= $this->html;
68unset($this->html);
69}
70
72
73}
74?>
 

Users who are viewing this thread

Top