1<?php
2// (c) Copyright by authors of the Tiki Wiki CMS Groupware Project
3//
4// All Rights Reserved. See copyright.txt for details and a complete list of authors.
5// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
6// $Id$
7
8if (basename($_SERVER['SCRIPT_NAME']) === basename(__FILE__)) {
9	die('This script may only be included.');
10}
11
12// Check to see if admin has closed the site
13if ($tiki_p_access_closed_site != 'y' and ! isset($bypass_siteclose_check)) {
14	global $base_url;
15	$url = $base_url . 'tiki-error_simple.php?title=' . urlencode('' . $prefs['site_closed_title']). '&error=' . urlencode('' . $prefs['site_closed_msg']).'&login_error='.urlencode(''.$error_login);
16	header('Location: ' . $url);
17	exit;
18}
19