From 5a43e7a2ea0cf7af35c100cb67e4a53566cbc496 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Fri, 03 Feb 2012 05:58:01 -0500
Subject: [PATCH] - Implemented new backup and restore functions for websites and databases (see also FS#1389) - Added "actions" framework in server to replace the functions provided by the core modules - Moved system update function from remoteactins core module to software update plugin.
---
interface/web/capp.php | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/interface/web/capp.php b/interface/web/capp.php
index 02f5c7f..39b2744 100644
--- a/interface/web/capp.php
+++ b/interface/web/capp.php
@@ -31,24 +31,25 @@
require_once('../lib/config.inc.php');
require_once('../lib/app.inc.php');
-// importiere Modul
+//* Import module variable
$mod = $_REQUEST["mod"];
-// Checke ob User eingeloggt
+//* Check if user is logged in
if($_SESSION["s"]["user"]['active'] != 1) {
header("Location: index.php?phpsessid=".$_SESSION["s"]["id"]);
die();
}
-// checke ob User Modul verwenden darf
+//* Check if user may use the module.
$user_modules = explode(",",$_SESSION["s"]["user"]["modules"]);
if(!in_array($mod,$user_modules)) $app->error($app->lng(301));
-// lade Moduldaten in Session
+//* Load module configuration into the session.
if(is_file($mod."/lib/module.conf.php")) {
include_once($mod."/lib/module.conf.php");
$_SESSION["s"]["module"] = $module;
+ session_write_close();
echo "HEADER_REDIRECT:".$_SESSION["s"]["module"]["startpage"];
} else {
$app->error($app->lng(302));
--
Gitblit v1.9.1