Project

General

Profile

« Previous | Next » 

Revision 1718

Added by Dietmar about 12 years ago

! update headerinfo
! change multi-dimensional arrays (variables) to similar arrays

View differences:

search.php
3 3
 *
4 4
 * @category        frontend
5 5
 * @package         search
6
 * @author          WebsiteBaker Project
7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2011, Website Baker Org. e.V.
6
 * @author          yan Djurovich, WebsiteBaker Project
7
 * @copyright       2009-2012, WebsiteBaker Org. e.V.
9 8
 * @link			http://www.websitebaker2.org/
10 9
 * @license         http://www.gnu.org/licenses/gpl.html
11 10
 * @platform        WebsiteBaker 2.8.x
......
153 152
			if($i++ > 0) {
154 153
				$search_path_SQL .= ' $op';
155 154
			}
156
			$search_path_SQL .= " link $not LIKE '".$p."%'";			
155
			$search_path_SQL .= " link $not LIKE '".$p."%'";
157 156
		}
158 157
		$search_path_SQL .= ' )';
159 158
	}
......
187 186
$search_url_string = ''; // for $_GET -- ATTN: unquoted! Will become urldecoded later
188 187
$string = '';
189 188
if(isset($_REQUEST['string'])) {
190
	if($match!='exact') { // $string will be cleaned below 
189
	if($match!='exact') { // $string will be cleaned below
191 190
		$string=str_replace(',', '', $_REQUEST['string']);
192 191
	} else {
193 192
		$string=$_REQUEST['string'];
......
357 356
				continue; // there is no search_func for this module
358 357
			}
359 358
			// get each section for $module_name
360
			$table_s = TABLE_PREFIX."sections";	
359
			$table_s = TABLE_PREFIX."sections";
361 360
			$table_p = TABLE_PREFIX."pages";
362 361
			$sections_query = $database->query("
363 362
				SELECT s.section_id, s.page_id, s.module, s.publ_start, s.publ_end,
......
622 621
						if(isset($seen_pages[$module_name][$page['page_id']]) || isset($pages_listed[$page['page_id']])) {
623 622
							continue;
624 623
						}
625
						
624

  
626 625
						// don't list pages with visibility == none|deleted and check if user is allowed to see the page
627 626
						$p_table = TABLE_PREFIX."pages";
628 627
						$viewquery = $database->query("
......
654 653
								}
655 654
							}
656 655
						}
657
	
656

  
658 657
						// Get page link
659 658
						$link = page_link($page['link']);
660 659
						// Add search string for highlighting
......
705 704
echo $search_results_footer;
706 705
// Show search footer
707 706
echo $search_footer;
708

  
709
?>

Also available in: Unified diff