Documentation is available at website.php
- <?
- /**
- * website.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
- */
- include_once("_config/config.php");
- include_once("system/generator/settings.php");
- include_once("system/generator/session.php");
- include_once("system/generator/admin.php");
- include_once("system/generator/editor.php");
- include_once("system/generator/page.php");
- include_once("system/generator/lang.php");
- if (isAdmin())
- {
- include_once("system/generator/interface.php");
- include_once("system/generator/dialog.php");
- }
- include_once("system/generator/action.php");
- if ((!isAdmin()) && (isset($_GET["admin"])) && ($_GET["admin"] != "login"))
- {
- Header("Location: $site_url");
- }
- else
- {
- switch ($page["page_rows"])
- {
- case 0:
- if ((isset($_GET["admin"])) && ($_GET["admin"] == "printstyle"))
- {
- include("system/admin/".$_GET["admin"]."/index.php");
- }
- elseif ((isset($_GET["admin"])) && ($_GET["admin"] == "printpool"))
- {
- include("system/admin/".$_GET["admin"]."/index.php");
- }
- elseif ((isset($_GET["admin"])) && ($_GET["admin"] == "printlink"))
- {
- include("system/admin/".$_GET["admin"]."/index.php");
- }
- elseif ((isset($_GET["admin"])) && ($_GET["admin"] == "printflash"))
- {
- include("system/admin/".$_GET["admin"]."/index.php");
- }
- else
- {
- Header("Location: $site_url");
- }
- break;
- case 1:
- checkUrl();
- if ((isset($_GET["admin"])) && ($_GET["admin"] == "printstyle"))
- {
- include("system/admin/".$_GET["admin"]."/index.php");
- }
- elseif ((isset($_GET["admin"])) && ($_GET["admin"] == "printpool"))
- {
- include("system/admin/".$_GET["admin"]."/index.php");
- }
- elseif ((isset($_GET["admin"])) && ($_GET["admin"] == "printlink"))
- {
- include("system/admin/".$_GET["admin"]."/index.php");
- }
- elseif ((isset($_GET["admin"])) && ($_GET["admin"] == "printflash"))
- {
- include("system/admin/".$_GET["admin"]."/index.php");
- }
- elseif (isset($_GET["admin"]))
- {
- include("system/admin/head.php");
- include("system/admin/".$_GET["admin"]."/index.php");
- include("system/admin/bottom.php");
- }
- else
- {
- if (!isAdmin())
- {
- update_statistic($page["page_key"],$page["page_count"]);
- }
- if (isset($_GET["template"]))
- {
- $template = $_GET["template"];
- }
- else
- {
- $template = $page["page_template"];
- }
- $link = connectDB();
- $query = "SELECT template_hide FROM ".$db_praefix."template WHERE template_name = '$template'";
- $result = mysql_query($query);
- closeDB($link);
- $template_info = mysql_fetch_array($result);
- if ($template_info["template_hide"] == 0)
- {
- if (isset($_GET["rss"]))
- {
- include("system/admin/rss/index.php");
- }
- else
- {
- include("templates/_system/head.php");
- include("system/admin/menu.php");
- include("templates/".$template."/index.php");
- include("templates/_system/bottom.php");
- }
- }
- else
- {
- include("templates/".$template."/index.php");
- }
- }
- break;
- }
- }
- if (empty($_GET["export"]))
- {
- if (SID != '')
- {
- ob_end_flush();
- }
- }
- ?>
Documentation generated on Tue, 16 Aug 2005 17:28:50 +0200 by phpDocumentor 1.3.0RC3