includes/paths.php
changeset 685 17ebe24cdf85
parent 650 e45183014778
child 692 78473351a6c9
equal deleted inserted replaced
684:15dbbe7e7674 685:17ebe24cdf85
     1 <?php
     1 <?php
     2 
     2 
     3 /**
     3 /**
     4  * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between
     4  * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between
     5  * Version 1.1.4 (Caoineag alpha 4)
     5  * Version 1.1.5 (Caoineag alpha 5)
     6  * Copyright (C) 2006-2008 Dan Fuhry
     6  * Copyright (C) 2006-2008 Dan Fuhry
     7  * paths.php - The part of Enano that actually manages content. Everything related to page handling and namespaces is in here.
     7  * paths.php - The part of Enano that actually manages content. Everything related to page handling and namespaces is in here.
     8  *
     8  *
     9  * This program is Free Software; you can redistribute and/or modify it under the terms of the GNU General Public License
     9  * This program is Free Software; you can redistribute and/or modify it under the terms of the GNU General Public License
    10  * as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
    10  * as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
   190     }
   190     }
   191     $db->free_result();
   191     $db->free_result();
   192     if ( defined('ENANO_INTERFACE_INDEX') || defined('ENANO_INTERFACE_AJAX') || defined('IN_ENANO_UPGRADE') )
   192     if ( defined('ENANO_INTERFACE_INDEX') || defined('ENANO_INTERFACE_AJAX') || defined('IN_ENANO_UPGRADE') )
   193     {
   193     {
   194       $title = $this->parse_url(false);
   194       $title = $this->parse_url(false);
   195       if ( empty($title) )
   195       if ( empty($title) && getConfig('main_page') != '' )
   196       {
   196       {
   197         $this->main_page();
   197         $this->main_page();
   198       }
   198       }
   199       if ( strstr($title, ' ') || strstr($title, '+') || strstr($title, '%20') )
   199       if ( strstr($title, ' ') || strstr($title, '+') || strstr($title, '%20') )
   200       {
   200       {