added new security model
This commit is contained in:
parent
4808d138fd
commit
f8aec0f1a8
|
@ -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");
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -36,6 +36,9 @@ include_once("../../lib/config.inc");
|
|||
// start session
|
||||
startSecureSession();
|
||||
|
||||
// die if no write access
|
||||
if (!checkIfWriteAccessIsAllowed()) die();
|
||||
|
||||
setlanguage();
|
||||
|
||||
echo $_SESSION['header'];
|
||||
|
|
|
@ -37,6 +37,9 @@ include_once("../../lib/config.inc");
|
|||
// start session
|
||||
startSecureSession();
|
||||
|
||||
// die if no write access
|
||||
if (!checkIfWriteAccessIsAllowed()) die();
|
||||
|
||||
setlanguage();
|
||||
|
||||
echo $_SESSION['header'];
|
||||
|
|
|
@ -40,6 +40,9 @@ include_once("../../lib/schema.inc");
|
|||
// start session
|
||||
startSecureSession();
|
||||
|
||||
// die if no write access
|
||||
if (!checkIfWriteAccessIsAllowed()) die();
|
||||
|
||||
setlanguage();
|
||||
|
||||
echo $_SESSION['header'];
|
||||
|
|
Loading…
Reference in New Issue