<?php
##################################################################
# #
# #
# PHPKIT #
# -------------------------------------------- #
# Copyright (c) 2002-2003 Gersöne & Schott GbR #
# #
# #
# ############################################################## #
# #
# Diese Datei / die PHPKIT-Software ist keine Freeware! #
# Für weitere Information besuchen Sie bitte unsere Webseite #
# oder kontaktieren uns per E-Mail: #
# #
# This file / the PHPKIT-software is not freeware! #
# For further informations please vistit our website #
# or contact us via email: #
# #
# Website:
http://www.phpkit.de #
# Email: info@phpkit.de #
# #
# ############################################################## #
# #
# File: /admin/admin.php #
# Author: Pierre Gersöne #
# Created: Version 1.6.1 - 2004-05-09 #
# Last Modified: Version 1.6.1 - 2004-05-09 #
# Description: not available for this file #
# #
# ############################################################## #
# #
# SIE SIND NICHT BERECHTIGT, UNRECHTMÄSSIGE KOPIEN DIESER #
# DATEI ZU ERSTELLEN UND/ODER DIESE INFORMATIONEN ZU ENTFERNEN #
# #
# YOU ARE NOT AUTHORISED TO CREATE ILLEGAL COPIES OF THIS #
# FILE AND/OR TO REMOVE THIS INFORMATIONS #
# #
##################################################################
if(defined('pkFRONTEND'))
return;
define('pkFRONTEND','admin');
define('pkREQUESTEDFILE',basename(__FILE__));
require_once('./../include.php');
if(!adminaccess('adminarea'))
{
phpkitcookie("user_id");
phpkitcookie("user_name");
phpkitcookie("user_pw");
phpkitcookie("PHPKITSID");
session_unregister($USER);
session_unset();
@session_destroy();
unset($PHPKITSID);
unset($USER);
$event=1;
if(preg_match("/moveto=/i",$current_path))
unset($current_path);
include("config/admin_event.php");
eval("echo \$site= \"".templateinclude("blank")."\";");
exit;
}
if(filecheck("../install.php"))
{
if($_GET['del']=="install" && @unlink("../install.php"))
{
header('Location: '.pkWWWADMIN.'admin.phpsession_id());
exit;
}
eval("\$install_link=\"".templateinclude("site_navigation_left_install")."\";");
$install_warning=TRUE;
}
if(!$_REQUEST['do'])
eval("\$navigation_config= \"".templateinclude("site_navigation_config")."\";");
eval("\$right_navigation= \"".templateinclude("site_navigation_right")."\";");
if(!$install_warning && isset($_REQUEST['do']))
{
include("config.php");
eval("\$navigation_config= \"".templateinclude("site_navigation_config_open")."\";");
}
elseif(!$install_warning && isset($_REQUEST['path']))
{
$path=$_REQUEST['path'];
include ("$path");
}
else
{
if(isset($event) || isset($_REQUEST['event']))
{
if(isset($_REQUEST['event']))
{
$event=$_REQUEST['event'];
}
eval("\$site_refresh= \"".templateinclude("site_refresh")."\";");
eval("\$site_body.= \"".templateinclude("event2")."\";");
}
elseif(isset($install_warning))
{
if(isset($_GET['del']))
{
eval("\$del_error= \"".templateinclude("main_installwarning_error")."\";");
}
eval("\$site_body= \"".templateinclude("main_installwarning")."\";");
}
else {
include_once(pkDIRADMIN.'main'.pkEXT);
}
}
if(intval($imstatus_info=imstatus())>0)
eval("\$imnotify=\"".templateinclude("site_imnotify")."\";");
eval("\$left_navigation= \"".templateinclude("site_navigation_left")."\";");
eval("\$site= \"".templateinclude("site")."\";");
echo $site;
?>