added new security model

This commit is contained in:
Roland Gruber 2007-12-30 13:15:39 +00:00
parent 4808d138fd
commit f8aec0f1a8
13 changed files with 41 additions and 2 deletions

View File

@ -41,6 +41,9 @@ include_once('../lib/modules.inc');
// Start session
startSecureSession();
// die if no write access
if (!checkIfWriteAccessIsAllowed()) die();
// Redirect to startpage if user is not loged in
if (!isset($_SESSION['loggedIn'])) {
metaRefresh("login.php");

View File

@ -45,6 +45,9 @@ include_once('../lib/cache.inc');
// Start session
startSecureSession();
// die if no write access
if (!checkIfWriteAccessIsAllowed()) die();
// Redirect to startpage if user is not loged in
if (!isset($_SESSION['loggedIn'])) {
metaRefresh("login.php");

View File

@ -41,6 +41,9 @@ include_once('../lib/modules.inc');
// Start session
startSecureSession();
// die if no write access
if (!checkIfWriteAccessIsAllowed()) die();
// Redirect to startpage if user is not loged in
if (!isset($_SESSION['loggedIn'])) {
metaRefresh("login.php");

View File

@ -40,6 +40,9 @@ include_once("../lib/status.inc");
// start session
startSecureSession();
// die if no write access
if (!checkIfWriteAccessIsAllowed()) die();
setlanguage();
$types = $_SESSION['config']->get_ActiveTypes();

View File

@ -37,6 +37,9 @@ include_once('../../lib/pdfstruct.inc');
// start session
startSecureSession();
// die if no write access
if (!checkIfWriteAccessIsAllowed()) die();
setlanguage();
// check if user is logged in, if not go to login

View File

@ -3,7 +3,7 @@
$Id$
This code is part of LDAP Account Manager (http://www.sourceforge.net/projects/lam)
Copyright (C) 2003 - 2006 Michael Dürgner
Copyright (C) 2003 - 2006 Michael D<EFBFBD>rgner
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
@ -24,7 +24,7 @@ $Id$
/**
* This is the main window of the pdf structure editor.
*
* @author Michael Dürgner
* @author Michael D<EFBFBD>rgner
* @package PDF
*/
@ -42,6 +42,9 @@ include_once("../../lib/modules.inc");
// start session
startSecureSession();
// die if no write access
if (!checkIfWriteAccessIsAllowed()) die();
setlanguage();
// Unset pdf structure definitions in session if set

View File

@ -48,6 +48,9 @@ include_once('../../lib/xml_parser.inc');
// start session
startSecureSession();
// die if no write access
if (!checkIfWriteAccessIsAllowed()) die();
setlanguage();
// check if user is logged in, if not go to login

View File

@ -40,6 +40,9 @@ include_once("../../lib/config.inc");
// start session
startSecureSession();
// die if no write access
if (!checkIfWriteAccessIsAllowed()) die();
setlanguage();
// check if user is logged in, if not go to login

View File

@ -40,6 +40,9 @@ include_once("../../lib/config.inc");
// start session
startSecureSession();
// die if no write access
if (!checkIfWriteAccessIsAllowed()) die();
setlanguage();
$types = $_SESSION['config']->get_ActiveTypes();

View File

@ -44,6 +44,9 @@ include_once("../../lib/status.inc");
// start session
startSecureSession();
// die if no write access
if (!checkIfWriteAccessIsAllowed()) die();
setlanguage();
// check if user is logged in, if not go to login

View File

@ -36,6 +36,9 @@ include_once("../../lib/config.inc");
// start session
startSecureSession();
// die if no write access
if (!checkIfWriteAccessIsAllowed()) die();
setlanguage();
echo $_SESSION['header'];

View File

@ -37,6 +37,9 @@ include_once("../../lib/config.inc");
// start session
startSecureSession();
// die if no write access
if (!checkIfWriteAccessIsAllowed()) die();
setlanguage();
echo $_SESSION['header'];

View File

@ -40,6 +40,9 @@ include_once("../../lib/schema.inc");
// start session
startSecureSession();
// die if no write access
if (!checkIfWriteAccessIsAllowed()) die();
setlanguage();
echo $_SESSION['header'];