Quote
DubSev wrote:
The redirect script is there so admins can choose the desired start page. Like 99,5% of the people who have a website know the index (html or php) file is the default start location. If no specific file has been request (i.e. www.google.com and not http://www.google.com/about.html) index.php will redirect to news.php (or whatever page).
These people would know that there has been an adaption of the index file, so it would be best NOT to set index.php as the start page.
It's not a bug, it's a good feature.
<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Original filename: index.php
| Original author: Nick Jones (Digitanium)
| current filename: index.php
| file edited by: DubSev
| +++++
| changes:
| Added code. When index.php has been set as opening page
| an error message will appear which will tell to change
| opening page.
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
require_once "maincore.php";
if ($settings['opening_page'] == 'index.php') { die("Oops! It seems like the webmaster set index.php as the startpage.
If you are the webmaster, please go to www.yoursite.com/login.php, login if needed, go to your admin panel and use another opening page.") ;}
else {redirect($settings['opening_page']);}
?>
Category Forum
Bugs and Errors - 6Labels
None yet
Statistics
0 participants
Notifications
You are not receiving notifications from this thread.
Related Questions