Changeset 1690
- Timestamp:
- Jan 2, 2007, 11:37:08 PM (17 years ago)
- Location:
- trunk/include
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/common.inc.php
r1687 r1690 179 179 if ($user['is_the_guest'] and !$conf['guest_access'] 180 180 and !in_array( script_basename(), 181 array('identification.php', 182 'password.php', 183 'register.php' 181 // Array of basename without file extention 182 array('identification', 183 'password', 184 'register' 184 185 ) 185 186 ) -
trunk/include/config_default.inc.php
r1682 r1690 571 571 // Pages where filter is enabled 572 572 // Other pages cancel current filter 573 // Array of basename without file extention 573 574 $conf['filter_pages'] = array 574 575 ( 575 'about .php', 'action.php', 'admin.php', 'comments.php',576 'index .php', 'picture.php', 'popuphelp.php', 'profile.php',577 'qsearch .php', 'random.php', 'register.php', 'search.php',578 'search_rules .php', 'tags.php', 'upload.php'576 'about', 'action', 'admin', 'comments', 577 'index', 'picture', 'popuphelp', 'profile', 578 'qsearch', 'random', 'register', 'search', 579 'search_rules', 'tags', 'upload' 579 580 ); 580 581 -
trunk/include/functions.inc.php
r1687 r1690 1112 1112 /** 1113 1113 * Return basename of the current script 1114 * Return value are chnage to loawer case 1114 * Lower case convertion is applied on return value 1115 * Return value is without file extention ".php" 1115 1116 * 1116 1117 * @param void … … 1124 1125 $file_name = $_SERVER['SCRIPT_NAME']; 1125 1126 } 1126 else if (!empty($_SERVER['PHP_SELF']))1127 {1128 $file_name = $_SERVER['PHP_SELF'];1129 }1130 1127 else if (!empty($_SERVER['SCRIPT_FILENAME'])) 1131 1128 { 1132 1129 $file_name = $_SERVER['SCRIPT_FILENAME']; 1133 1130 } 1134 else if (!empty($_SERVER['PATH_TRANSLATED']))1135 {1136 $file_name = $_SERVER['PATH_TRANSLATED'];1137 }1138 1131 else 1139 1132 { … … 1141 1134 } 1142 1135 1143 // $_SERVER return lower string following var an ssystems1144 return basename(strtolower($file_name) );1136 // $_SERVER return lower string following var and systems 1137 return basename(strtolower($file_name), '.php'); 1145 1138 } 1146 1139 -
trunk/include/functions_calendar.inc.php
r1687 r1690 187 187 188 188 $must_show_list = true; // true until calendar generates its own display 189 if (script_basename() != 'picture .php')189 if (script_basename() != 'picture') // basename without file extention 190 190 { 191 191 $template->assign_block_vars('calendar', array()); -
trunk/include/section_init.inc.php
r1687 r1690 87 87 88 88 $next_token = 0; 89 if (script_basename() == 'picture .php')89 if (script_basename() == 'picture') // basename without file extention 90 90 { // the first token must be the identifier for the picture 91 91 if ( isset($_GET['image_id']) … … 707 707 $page['cat_nb_images'] = isset($page['items']) ? count($page['items']) : 0; 708 708 709 if (script_basename() == 'picture .php'709 if (script_basename() == 'picture' 710 710 and !isset($page['image_id']) ) 711 711 {
Note: See TracChangeset
for help on using the changeset viewer.