- /fws/error/handler.php in line 192
[ Method: FWS_Error_Handler::get_error_message() ]
0187 // note that this means that nobody should set error-reporting to 0 because otherwise
0188 // we would log no error
0189 if((error_reporting() & $no) == 0 || $this->_max_errors())
0190 return;
0191
0192 echo $this->get_error_message($no,$msg,$file,$line);
0193 $this->_error_count++;
0194 }
0195
0196 /**
0197 * Builds the error-message for the given error including backtrace, if possible.
0198 * Note that this method logs the error, too!
- Unknown [ Method: FWS_Error_Handler::handle_error() ]
- /fws/cookies.php in line 203
[ Function: setcookie() ]
0198 $input = FWS_Props::get()->input();
0199 $input->set_var($this->_prefix.$name,'cookie',$value);
0200
0201 $lf = $lifetime === -1 ? $this->_lifetime : $lifetime;
0202 $end = $lf === 0 ? 0 : time() + $lf;
0203 setcookie($this->_prefix.$name,$value,$end,$this->_path,$this->_domain);
0204 }
0205
0206 /**
0207 * Deletes the cookie with given name
0208 *
0209 * @param string $name the name of the cookie (without the prefix)
- /src/unreadstorage/guest.php in line 162
[ Method: FWS_Cookies::set_cookie() ]
0157 */
0158 public function set_last_update($time)
0159 {
0160 $cookies = FWS_Props::get()->cookies();
0161
0162 $cookies->set_cookie('unread_update',$time);
0163 }
0164
0165 /**
0166 * @see BS_UnreadStorage::add_post_ids()
0167 *
0168 * @param array $ids
- /src/unreadstorage/guest.php in line 148
[ Method: BS_UnreadStorage_Guest::set_last_update() ]
0143
0144 $time = $cookies->get_cookie('unread_update',FWS_Input::STRING);
0145 if($time === null || $time <= 0)
0146 {
0147 $time = time();
0148 $this->set_last_update($time);
0149 }
0150 return $time;
0151 }
0152
0153 /**
0154 * @see BS_UnreadStorage::set_last_update()
- /src/unread.php in line 363
[ Method: BS_UnreadStorage_Guest::get_last_update() ]
0358 $cache = FWS_Props::get()->cache();
0359 $user = FWS_Props::get()->user();
0360 $cfg = FWS_Props::get()->cfg();
0361 $db = FWS_Props::get()->db();
0362
0363 $last_update = $this->_storage->get_last_update();
0364 $stats = $cache->get_cache('stats')->get_element(0,false);
0365 $last_post = max($stats['posts_last'],$stats['last_edit']);
0366
0367 // nothing to do?
0368 if($last_post <= $last_update)
0369 return false;
- /src/unread.php in line 191
[ Method: BS_Unread::_create_list() ]
0186 else if(!$input->isset_var(BS_URL_AT,'get') &&
0187 !$input->isset_var('action_type','post'))
0188 $update = true;
0189
0190 if($update)
0191 $this->_create_list();
0192 }
0193
0194 /**
0195 * Marks all news read
0196 */
0197 public function mark_news_read()
- /src/unread.php in line 93
[ Method: BS_Unread::update_unread() ]
0088
0089 $this->_unread_news = $this->_storage->get_news();
0090 $this->_unread_threads = $this->_storage->get_topics();
0091 $this->_unread_forums = $this->_storage->get_forums();
0092
0093 $this->update_unread();
0094 }
0095
0096 /**
0097 * @return int the number of unread topics
0098 */
0099 public function get_length()
- /src/proploader.php in line 44
[ Method: BS_Unread::__construct() ]
0039 /**
0040 * @return BS_Unread the property
0041 */
0042 protected function unread()
0043 {
0044 return new BS_Unread();
0045 }
0046
0047 /**
0048 * @return BS_Forums_Manager the property
0049 */
0050 protected function forums()
- /fws/proploader.php in line 37
[ Method: BS_PropLoader::unread() ]
0032 {
0033 if(!method_exists($this,$name))
0034 FWS_Helper::error('The method '.$name.'() does not exist.
0035 Does the property you requested exist?');
0036
0037 return $this->$name();
0038 }
0039
0040 /**
0041 * @return FWS_Document the document
0042 */
0043 protected function doc()
- /fws/propaccessor.php in line 93
[ Method: FWS_PropLoader::load() ]
0088 * @return mixed the property
0089 */
0090 protected final function get($name)
0091 {
0092 if(!isset($this->_instances[$name]))
0093 $this->_instances[$name] = $this->_loader->load($name);
0094 return $this->_instances[$name];
0095 }
0096
0097 /**
0098 * @return FWS_Document the document-instance
0099 */
- /src/propaccessor.php in line 72
[ Method: FWS_PropAccessor::get() ]
0067 /**
0068 * @return BS_Unread the unread-property
0069 */
0070 public function unread()
0071 {
0072 return $this->get('unread');
0073 }
0074
0075 /**
0076 * @return BS_Forums_Manager the forums-property
0077 */
0078 public function forums()
- /front/src/renderer/html.php in line 324
[ Method: BS_PropAccessor::unread() ]
0319 $tpl = FWS_Props::get()->tpl();
0320 $cfg = FWS_Props::get()->cfg();
0321 $user = FWS_Props::get()->user();
0322 $input = FWS_Props::get()->input();
0323 $auth = FWS_Props::get()->auth();
0324 $unread = FWS_Props::get()->unread();
0325
0326 $breadcrumbs = $this->get_breadcrumb_links();
0327 $page_title = str_replace($locale->lang('home'),$cfg['forum_title'],$breadcrumbs);
0328 $page_title = strip_tags($page_title);
0329 $this->set_title($page_title);
0330
- /fws/document/renderer/html/default.php in line 363
[ Method: BS_Front_Renderer_HTML::header() ]
0358 {
0359 $this->before_start();
0360
0361 // header
0362 if($this->_show_header)
0363 $this->header();
0364
0365 // content
0366 if($this->_show_content)
0367 {
0368 ob_start();
0369 $this->content();
- /fws/document.php in line 446
[ Method: FWS_Document_Renderer_HTML_Default::render() ]
0441
0442 if($this->_renderer === null)
0443 FWS_Helper::error('Please specify the renderer that should be used!');
0444
0445 // render the document
0446 $res = $this->_renderer->render($this);
0447
0448 // send header and return result
0449 $this->_send_header();
0450 $this->finish();
0451
0452 // use gzip, if required
- /index.php in line 73
[ Method: FWS_Document::render() ]
0068 include_once(BS_PATH.'src/init.php');
0069
0070 // show the page
0071 $doc = new BS_Front_Document();
0072 FWS_Props::get()->set_doc($doc);
0073 echo $doc->render();
0074 ?>