index.php 635 Bytes
Newer Older
marclaporte's avatar
marclaporte committed
1 2 3 4 5 6
<?php
/**
 * This redirects to the site's root to prevent directory browsing.
 *  
 * @ignore 
 * @package TikiWiki 
7
 * @copyright (c) Copyright 2002-2015 by authors of the Tiki Wiki CMS Groupware Project
marclaporte's avatar
marclaporte committed
8 9 10 11
 * @licence Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
 */
// $Id$

12
require_once ('check_composer_exists.php');
13

marclaporte's avatar
marclaporte committed
14 15 16 17 18 19 20 21
require_once ('tiki-setup.php');
if ( ! headers_sent($header_file, $header_line) ) {
	// rfc2616 wants this to have an absolute URI
	header('Location: '.$base_url.$prefs['tikiIndex']);
} else {
	echo "Header already sent in ".$header_file." at line ".$header_line;
	exit();
}
22