Project

General

Profile

« Previous | Next » 

Revision 1785

Added by Dietmar about 12 years ago

  1. fixed language uninstall, change mysql to strict
    ! secure fix for search update in settings, search_footer now can be empty
    ! change ->fetchRow() to ->fetchRow(MYSQL_ASSOC) in frontend.functions.php

View differences:

frontend.functions.php
37 37
	$sql  = 'SELECT `directory` FROM `'.TABLE_PREFIX.'addons` ';
38 38
	$sql .= 'WHERE `type`=\'module\' AND `function`=\'snippet\'';
39 39
	if(($resSnippets = $database->query($sql))) {
40
		while($recSnippet = $resSnippets->fetchRow()) {
40
		while($recSnippet = $resSnippets->fetchRow(MYSQL_ASSOC)) {
41 41
			$module_dir = $recSnippet['directory'];
42 42
			if (is_readable(WB_PATH.'/modules/'.$module_dir.'/include.php')) {
43 43
				include(WB_PATH.'/modules/'.$module_dir.'/include.php');
......
101 101
	 * @return string
102 102
	 */
103 103
	function search_highlight($foo='', $arr_string=array()) {
104
		require_once(WB_PATH.'/framework/functions.php');
104
		require(WB_PATH.'/framework/functions.php');
105 105
		static $string_ul_umlaut = FALSE;
106 106
		static $string_ul_regex = FALSE;
107 107
		if($string_ul_umlaut === FALSE || $string_ul_regex === FALSE) {
......
294 294
			}
295 295

  
296 296
			// Loop through them and include their module file
297
			while($section = $oSections->fetchRow()) {
297
			while($section = $oSections->fetchRow(MYSQL_ASSOC)) {
298 298
				// skip this section if it is out of publication-date
299 299
				$now = time();
300 300
				if( !(($now<=$section['publ_end'] || $section['publ_end']==0) && ($now>=$section['publ_start'] || $section['publ_start']==0)) ) {
......
307 307
				// fetch content -- this is where to place possible output-filters (before highlighting)
308 308
					ob_start(); // fetch original content
309 309
                    $sectionAnchor = (defined('SEC_ANCHOR') && SEC_ANCHOR!='') ? SEC_ANCHOR.$section_id : 'section_'.$section_id;
310
                    echo PHP_EOL.'<div id="'.$sectionAnchor.'" class="wb_'.$module.'" >'.PHP_EOL;
310
                    echo "\n".'<div id="'.$sectionAnchor.'" class="wb_'.$module.'" >'."\n";
311 311
					require(WB_PATH.'/modules/'.$module.'/view.php');
312
                    echo PHP_EOL.'</div><!-- '.$module.$section_id.' -->'.PHP_EOL;
312
                    echo "\n".'</div><!-- '.$module.$section_id.' -->'."\n";
313 313
					$content = ob_get_clean();
314
					echo $content;
314 315
				} else {
315 316
					continue;
316 317
				}

Also available in: Unified diff