Changeset 188 for dev/common/class.page.php
- Timestamp:
- 02/17/07 15:24:06 (14 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
dev/common/class.page.php
r181 r188 40 40 } 41 41 42 function error($message) 43 { 44 global $smarty; 45 46 $smarty->assign('error', $message); 47 $this->setContent($smarty->fetch(get_tpl('error'))); 48 $this->generate(); 49 } 50 42 51 function generate() 43 52 { 44 global $ config, $smarty;53 global $smarty; 45 54 46 55 $smarty->assign('kb_title', KB_TITLE.' Killboard - '.$this->title_); … … 129 138 $smarty->assign('profile', KB_PROFILE); 130 139 $smarty->assign('content_html', $this->contenthtml_); 140 if (config::get('user_showmenu')) 141 { 142 $this->contexthtml_ = user::menu().$this->contexthtml_; 143 } 131 144 $smarty->assign('context_html', $this->contexthtml_); 132 145 $smarty->display(get_tpl('index')); … … 183 196 $this->cachetime_ = $cachetime; 184 197 } 185 186 function error($errormsg)187 {188 echo $errormsg;189 exit;190 }191 198 } 192 199