[ Index ] |
|
Code source de e107 0.7.8 |
1 global $sql,$sysprefs,$SEARCH_SHORTCODE; 2 3 include_lan(e_PLUGIN."search_menu/languages/".e_LANGUAGE.".php"); 4 $text = ""; 5 if (!isset($SEARCH_SHORTCODE)) { 6 if (file_exists(THEME."search_template.php")) { 7 include(THEME."search_template.php"); 8 } else { 9 include(e_THEME."templates/search_template.php"); 10 } 11 } 12 $ref['all'] = 'all'; 13 $ref['news'] = '0'; 14 $ref['comments'] = 1; 15 $ref['users'] = 2; 16 $ref['downloads'] = 3; 17 $ref['pages'] = 4; 18 19 $search_prefs = $sysprefs -> getArray('search_prefs'); 20 21 foreach ($search_prefs['plug_handlers'] as $plug_dir => $active) { 22 if (is_readable(e_PLUGIN.$plug_dir."/e_search.php")) { 23 $ref[$plug_dir] = $plug_dir; 24 } 25 } 26 27 if($ref[$parm]!= ''){ 28 $page = $ref[$parm]; 29 }elseif($parm='all' && $ref[e_PAGE] != ''){ 30 $page = $ref[e_PAGE]; 31 }else{ 32 $page = 'all'; 33 } 34 35 $text .= "<form method='get' action='".e_HTTP."search.php'><div>\n"; 36 $text .= "<input type='hidden' name='t' value='$page' />\n"; 37 $text .= "<input type='hidden' name='r' value='0' />\n"; 38 39 if (defined('SEARCH_SHORTCODE_REF') && SEARCH_SHORTCODE_REF != '') { 40 $text .= "<input type='hidden' name='ref' value=\"".SEARCH_SHORTCODE_REF."\" />\n"; 41 } 42 43 $text .= $SEARCH_SHORTCODE; 44 45 $text .="\n</div></form>"; 46 47 return $text;
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Apr 1 01:23:32 2007 | par Balluche grâce à PHPXref 0.7 |