root/trunk/index.php

Revision 2134, 1.5 KB (checked in by nick_ramsay, 21 months ago)

[TRUNK] Hotaru 1.4.1

Line 
1<?php
2
3/**
4 * Includes settings and constructs Hotaru.
5 *
6 * PHP version 5
7 *
8 * LICENSE: Hotaru CMS is free software: you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation, either version 3 of
11 * the License, or (at your option) any later version.
12 *
13 * Hotaru CMS is distributed in the hope that it will be useful, but WITHOUT
14 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 * FITNESS FOR A PARTICULAR PURPOSE.
16 *
17 * You should have received a copy of the GNU General Public License along
18 * with Hotaru CMS. If not, see http://www.gnu.org/licenses/.
19 *
20 * @category  Content Management System
21 * @package   HotaruCMS
22 * @author    Nick Ramsay <admin@hotarucms.org>
23 * @copyright Copyright (c) 2010, Hotaru CMS
24 * @license   http://www.gnu.org/copyleft/gpl.html GNU General Public License
25 * @link      http://www.hotarucms.org/
26 */
27// includes
28if( file_exists('hotaru_settings.php') ) {
29        require_once('hotaru_settings.php');
30        require_once('Hotaru.php');
31        $h = new Hotaru();
32        $h->start('main');
33} else {
34        if( file_exists('install/index.php') ) {
35                echo 'Hotaru is having trouble starting. You may need to install the system before you can proceed further.<br/><br/>';
36                echo 'Help is available in the <a href="http://forums.hotarucms.org/">Hotaru CMS Forums</a>.';
37        } else {
38                echo 'Hotaru is having trouble starting.';
39        }
40}
41?>
Note: See TracBrowser for help on using the browser.