Changeset 1788
- Timestamp:
- Feb 8, 2007, 12:08:04 AM (17 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/config_default.inc.php
r1786 r1788 212 212 // page. 213 213 $conf['links'] = array(); 214 215 // random_index_redirect: list of 'internal' links to use when no section is defined on index.php. 216 // An example is the best than a long explanation : 217 // 218 // for each link is associated a php condition 219 // '' condition is equivalent to 'return true;' 220 // $conf['random_index_redirect'] = array( 221 // PHPWG_ROOT_PATH.'index.php?/best_rated' => 'return true;', 222 // PHPWG_ROOT_PATH.'index.php?/recent_pics' => 'return $user[\'is_the_guest\'];', 223 // PHPWG_ROOT_PATH.'random.php' => '', 224 // PHPWG_ROOT_PATH.'index.php?/categories' => '', 225 // ); 226 $conf['random_index_redirect'] = array(); 214 227 215 228 // List of notes to display on all header page -
trunk/include/functions_url.inc.php
r1750 r1788 313 313 if (!isset($params['section'])) 314 314 { 315 $params['section'] = ' categories';315 $params['section'] = 'none'; 316 316 } 317 317 … … 399 399 break; 400 400 } 401 case 'none' : 402 { 403 break; 404 } 401 405 default : 402 406 { -
trunk/include/menubar.inc.php
r1743 r1788 44 44 'MENU_CATEGORIES_CONTENT' => get_categories_menu(), 45 45 'F_IDENTIFY' => get_root_url().'identification.php', 46 'U_ HOME' => make_index_url(),46 'U_CATEGORIES' => make_index_url(array('section' => 'categories')), 47 47 'U_REGISTER' => get_root_url().'register.php', 48 48 'U_LOST_PASSWORD' => get_root_url().'password.php', -
trunk/include/section_init.inc.php
r1722 r1788 52 52 // ); 53 53 54 $page['section'] = 'categories';55 56 54 // some ISPs set PATH_INFO to empty string or to SCRIPT_FILENAME while in the 57 55 // default apache implementation it is not set … … 268 266 } 269 267 $next_token++; 268 } 269 else 270 { 271 if (!empty($conf['random_index_redirect'])) 272 { 273 $random_index_redirect = array(); 274 foreach ($conf['random_index_redirect'] as $random_url => $random_url_condition) 275 { 276 if (empty($random_url_condition) or eval($random_url_condition)) 277 { 278 $random_index_redirect[] = $random_url; 279 } 280 } 281 } 282 283 if (!empty($random_index_redirect)) 284 { 285 redirect($random_index_redirect[mt_rand(0, count($random_index_redirect)-1)]); 286 } 287 else 288 { 289 $page['section'] = 'categories'; 290 } 270 291 } 271 292 -
trunk/profile.php
r1763 r1788 54 54 $userdata ); 55 55 56 $template->assign_var('U_ RETURN', make_index_url() );56 $template->assign_var('U_HOME', make_index_url() ); 57 57 58 58 // +-----------------------------------------------------------------------+ -
trunk/template/yoga/menubar.tpl
r1780 r1788 30 30 <!-- END stop_filter --> 31 31 <dl id="mbCategories"> 32 <dt><a href="{U_ HOME}">{lang:Categories}</a></dt>32 <dt><a href="{U_CATEGORIES}">{lang:Categories}</a></dt> 33 33 <dd> 34 34 {MENU_CATEGORIES_CONTENT} -
trunk/template/yoga/profile.tpl
r1753 r1788 13 13 <div class="titrePage"> 14 14 <ul class="categoryActions"> 15 <li><a href="{U_ RETURN}" title="{lang:return to homepage}"><img src="{themeconf:icon_dir}/home.png" class="button" alt="{lang:home}"/></a></li>15 <li><a href="{U_HOME}" title="{lang:return to homepage}"><img src="{themeconf:icon_dir}/home.png" class="button" alt="{lang:home}"/></a></li> 16 16 </ul> 17 17 <h2>{lang:Profile}</h2>
Note: See TracChangeset
for help on using the changeset viewer.