Changeset 1690


Ignore:
Timestamp:
Jan 2, 2007, 11:37:08 PM (17 years ago)
Author:
rub
Message:

Issue ID 0000529 Re-Fixed.

Problem with "Options +MultiViews" .htaccess configuration.

Merge branch-1_6 1688:1689 into BSF

Location:
trunk/include
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/common.inc.php

    r1687 r1690  
    179179if ($user['is_the_guest'] and !$conf['guest_access']
    180180    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'
    184185                        )
    185186                  )
  • trunk/include/config_default.inc.php

    r1682 r1690  
    571571// Pages where filter is enabled
    572572// Other pages cancel current filter
     573// Array of basename without file extention
    573574$conf['filter_pages'] = array
    574575  (
    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'
    579580  );
    580581
  • trunk/include/functions.inc.php

    r1687 r1690  
    11121112/**
    11131113 * 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"
    11151116 *
    11161117 * @param void
     
    11241125    $file_name = $_SERVER['SCRIPT_NAME'];
    11251126  }
    1126   else if (!empty($_SERVER['PHP_SELF']))
    1127   {
    1128     $file_name = $_SERVER['PHP_SELF'];
    1129   }
    11301127  else if (!empty($_SERVER['SCRIPT_FILENAME']))
    11311128  {
    11321129    $file_name = $_SERVER['SCRIPT_FILENAME'];
    11331130  }
    1134   else if (!empty($_SERVER['PATH_TRANSLATED']))
    1135   {
    1136     $file_name = $_SERVER['PATH_TRANSLATED'];
    1137   }
    11381131  else
    11391132  {
     
    11411134  }
    11421135
    1143   // $_SERVER return lower string following var ans systems
    1144   return basename(strtolower($file_name));
     1136  // $_SERVER return lower string following var and systems
     1137  return basename(strtolower($file_name), '.php');
    11451138}
    11461139
  • trunk/include/functions_calendar.inc.php

    r1687 r1690  
    187187
    188188  $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
    190190  {
    191191    $template->assign_block_vars('calendar', array());
  • trunk/include/section_init.inc.php

    r1687 r1690  
    8787
    8888$next_token = 0;
    89 if (script_basename() == 'picture.php')
     89if (script_basename() == 'picture') // basename without file extention
    9090{ // the first token must be the identifier for the picture
    9191  if ( isset($_GET['image_id'])
     
    707707$page['cat_nb_images'] = isset($page['items']) ? count($page['items']) : 0;
    708708
    709 if (script_basename() == 'picture.php'
     709if (script_basename() == 'picture'
    710710    and !isset($page['image_id']) )
    711711{
Note: See TracChangeset for help on using the changeset viewer.