Changeset 1689
- Timestamp:
- Jan 2, 2007, 11:30:18 PM (17 years ago)
- Location:
- branches/branch-1_6/include
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/branch-1_6/include/common.inc.php
r1686 r1689 176 176 if ($user['is_the_guest'] and !$conf['guest_access'] 177 177 and !in_array( script_basename(), 178 array('identification.php', 179 'password.php', 180 'register.php' 178 // Array of basename without file extention 179 array('identification', 180 'password', 181 'register' 181 182 ) 182 183 ) -
branches/branch-1_6/include/functions.inc.php
r1686 r1689 971 971 /** 972 972 * Return basename of the current script 973 * Return value are chnage to loawer case 973 * Lower case convertion is applied on return value 974 * Return value is without file extention ".php" 974 975 * 975 976 * @param void … … 983 984 $file_name = $_SERVER['SCRIPT_NAME']; 984 985 } 985 else if (!empty($_SERVER['PHP_SELF']))986 {987 $file_name = $_SERVER['PHP_SELF'];988 }989 986 else if (!empty($_SERVER['SCRIPT_FILENAME'])) 990 987 { 991 988 $file_name = $_SERVER['SCRIPT_FILENAME']; 992 989 } 993 else if (!empty($_SERVER['PATH_TRANSLATED']))994 {995 $file_name = $_SERVER['PATH_TRANSLATED'];996 }997 990 else 998 991 { … … 1000 993 } 1001 994 1002 // $_SERVER return lower string following var an ssystems1003 return basename(strtolower($file_name) );995 // $_SERVER return lower string following var and systems 996 return basename(strtolower($file_name), '.php'); 1004 997 } 1005 998 -
branches/branch-1_6/include/functions_calendar.inc.php
r1686 r1689 178 178 179 179 $must_show_list = true; // true until calendar generates its own display 180 if (script_basename() != 'picture .php')180 if (script_basename() != 'picture') // basename without file extention 181 181 { 182 182 $template->assign_block_vars('calendar', array()); -
branches/branch-1_6/include/section_init.inc.php
r1686 r1689 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']) … … 626 626 $page['cat_nb_images'] = isset($page['items']) ? count($page['items']) : 0; 627 627 628 if (script_basename() == 'picture .php'628 if (script_basename() == 'picture' 629 629 and !isset($page['image_id']) ) 630 630 {
Note: See TracChangeset
for help on using the changeset viewer.