Ignore:
Timestamp:
Feb 8, 2007, 12:08:04 AM (18 years ago)
Author:
rub
Message:

Issue 0000639: Force selected page on index.php

When page index.php is called without defined section, redirect to a page selected by random on a user list.

File:
1 edited

Legend:

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

    r1786 r1788  
    212212// page.
    213213$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();
    214227
    215228// List of notes to display on all header page
Note: See TracChangeset for help on using the changeset viewer.