Project

General

Profile

« Previous | Next » 

Revision 1337

Added by Dietmar over 14 years ago

add an extra class class.secureform.php and extends it to class.wb.php
check for installed modules before loading in content

View differences:

frontend.functions.php
258 258
				if(defined('SEC_ANCHOR') && SEC_ANCHOR!='') {
259 259
					echo '<a class="section_anchor" id="'.SEC_ANCHOR.$section_id.'" name="'.SEC_ANCHOR.$section_id.'"></a>';
260 260
				}
261

  
261
                // check if module exists - feature: write in errorlog
262
				if(file_exists(WB_PATH.'/modules/'.$module.'/view.php')) {
262 263
				// fetch content -- this is where to place possible output-filters (before highlighting)
263
				ob_start(); // fetch original content
264
				require(WB_PATH.'/modules/'.$module.'/view.php');
265
				$content = ob_get_contents();
266
				ob_end_clean();
264
					ob_start(); // fetch original content
265
					require(WB_PATH.'/modules/'.$module.'/view.php');
266
					$content = ob_get_contents();
267
					ob_end_clean();
268
				} else {
269
					continue;
270
				}
267 271

  
268 272
				// highlights searchresults
269 273
				if(isset($_GET['searchresult']) && is_numeric($_GET['searchresult']) && !isset($_GET['nohighlight']) && isset($_GET['sstring']) && !empty($_GET['sstring'])) {

Also available in: Unified diff