Documentation is available at index.php
- <?
- /**
- * index.php
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- * @package generator
- * @author Stephan Raabe
- */
- session_start();
- include("_config/config.php");
- include("system/generator/database.php");
- $link = connectDB();
- $query1 = "SELECT page_path FROM ".$db_praefix."page WHERE page_parent = 0";
- $result1 = mysql_query($query1);
- $homepage = mysql_fetch_array($result1) or die("<script language='Javascript'>location.href='installation/index.php';</script>");
- $home_path = $homepage["page_path"];
- $query2 = "SELECT site_home,site_static FROM ".$db_praefix."settings";
- $result2 = mysql_query($query2);
- $settings = mysql_fetch_array($result2);
- $site_home = $settings["site_home"];
- $site_static = $settings["site_static"];
- $query3 = "SELECT page_key FROM ".$db_praefix."page WHERE page_path = '$site_home'";
- $result3 = mysql_query($query3);
- if (mysql_num_rows($result3) > 0)
- {
- $home_path = $site_home;
- }
- closeDB($link);
- if (($site_static == "") || ((isset($_SESSION["account_group"]) && ($_SESSION["account_group"] > 1))))
- {
- Header("Location: website.php");
- }
- else
- {
- Header("Location: $site_static");
- }
- ?>
Documentation generated on Tue, 16 Aug 2005 17:28:47 +0200 by phpDocumentor 1.3.0RC3