added new security model
This commit is contained in:
parent
4808d138fd
commit
f8aec0f1a8
|
@ -41,6 +41,9 @@ include_once('../lib/modules.inc');
|
||||||
// Start session
|
// Start session
|
||||||
startSecureSession();
|
startSecureSession();
|
||||||
|
|
||||||
|
// die if no write access
|
||||||
|
if (!checkIfWriteAccessIsAllowed()) die();
|
||||||
|
|
||||||
// Redirect to startpage if user is not loged in
|
// Redirect to startpage if user is not loged in
|
||||||
if (!isset($_SESSION['loggedIn'])) {
|
if (!isset($_SESSION['loggedIn'])) {
|
||||||
metaRefresh("login.php");
|
metaRefresh("login.php");
|
||||||
|
|
|
@ -45,6 +45,9 @@ include_once('../lib/cache.inc');
|
||||||
// Start session
|
// Start session
|
||||||
startSecureSession();
|
startSecureSession();
|
||||||
|
|
||||||
|
// die if no write access
|
||||||
|
if (!checkIfWriteAccessIsAllowed()) die();
|
||||||
|
|
||||||
// Redirect to startpage if user is not loged in
|
// Redirect to startpage if user is not loged in
|
||||||
if (!isset($_SESSION['loggedIn'])) {
|
if (!isset($_SESSION['loggedIn'])) {
|
||||||
metaRefresh("login.php");
|
metaRefresh("login.php");
|
||||||
|
|
|
@ -41,6 +41,9 @@ include_once('../lib/modules.inc');
|
||||||
// Start session
|
// Start session
|
||||||
startSecureSession();
|
startSecureSession();
|
||||||
|
|
||||||
|
// die if no write access
|
||||||
|
if (!checkIfWriteAccessIsAllowed()) die();
|
||||||
|
|
||||||
// Redirect to startpage if user is not loged in
|
// Redirect to startpage if user is not loged in
|
||||||
if (!isset($_SESSION['loggedIn'])) {
|
if (!isset($_SESSION['loggedIn'])) {
|
||||||
metaRefresh("login.php");
|
metaRefresh("login.php");
|
||||||
|
|
|
@ -40,6 +40,9 @@ include_once("../lib/status.inc");
|
||||||
// start session
|
// start session
|
||||||
startSecureSession();
|
startSecureSession();
|
||||||
|
|
||||||
|
// die if no write access
|
||||||
|
if (!checkIfWriteAccessIsAllowed()) die();
|
||||||
|
|
||||||
setlanguage();
|
setlanguage();
|
||||||
|
|
||||||
$types = $_SESSION['config']->get_ActiveTypes();
|
$types = $_SESSION['config']->get_ActiveTypes();
|
||||||
|
|
|
@ -37,6 +37,9 @@ include_once('../../lib/pdfstruct.inc');
|
||||||
// start session
|
// start session
|
||||||
startSecureSession();
|
startSecureSession();
|
||||||
|
|
||||||
|
// die if no write access
|
||||||
|
if (!checkIfWriteAccessIsAllowed()) die();
|
||||||
|
|
||||||
setlanguage();
|
setlanguage();
|
||||||
|
|
||||||
// check if user is logged in, if not go to login
|
// check if user is logged in, if not go to login
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
$Id$
|
$Id$
|
||||||
|
|
||||||
This code is part of LDAP Account Manager (http://www.sourceforge.net/projects/lam)
|
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
|
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
|
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.
|
* This is the main window of the pdf structure editor.
|
||||||
*
|
*
|
||||||
* @author Michael Dürgner
|
* @author Michael D<EFBFBD>rgner
|
||||||
* @package PDF
|
* @package PDF
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -42,6 +42,9 @@ include_once("../../lib/modules.inc");
|
||||||
// start session
|
// start session
|
||||||
startSecureSession();
|
startSecureSession();
|
||||||
|
|
||||||
|
// die if no write access
|
||||||
|
if (!checkIfWriteAccessIsAllowed()) die();
|
||||||
|
|
||||||
setlanguage();
|
setlanguage();
|
||||||
|
|
||||||
// Unset pdf structure definitions in session if set
|
// Unset pdf structure definitions in session if set
|
||||||
|
|
|
@ -48,6 +48,9 @@ include_once('../../lib/xml_parser.inc');
|
||||||
// start session
|
// start session
|
||||||
startSecureSession();
|
startSecureSession();
|
||||||
|
|
||||||
|
// die if no write access
|
||||||
|
if (!checkIfWriteAccessIsAllowed()) die();
|
||||||
|
|
||||||
setlanguage();
|
setlanguage();
|
||||||
|
|
||||||
// check if user is logged in, if not go to login
|
// check if user is logged in, if not go to login
|
||||||
|
|
|
@ -40,6 +40,9 @@ include_once("../../lib/config.inc");
|
||||||
// start session
|
// start session
|
||||||
startSecureSession();
|
startSecureSession();
|
||||||
|
|
||||||
|
// die if no write access
|
||||||
|
if (!checkIfWriteAccessIsAllowed()) die();
|
||||||
|
|
||||||
setlanguage();
|
setlanguage();
|
||||||
|
|
||||||
// check if user is logged in, if not go to login
|
// check if user is logged in, if not go to login
|
||||||
|
|
|
@ -40,6 +40,9 @@ include_once("../../lib/config.inc");
|
||||||
// start session
|
// start session
|
||||||
startSecureSession();
|
startSecureSession();
|
||||||
|
|
||||||
|
// die if no write access
|
||||||
|
if (!checkIfWriteAccessIsAllowed()) die();
|
||||||
|
|
||||||
setlanguage();
|
setlanguage();
|
||||||
|
|
||||||
$types = $_SESSION['config']->get_ActiveTypes();
|
$types = $_SESSION['config']->get_ActiveTypes();
|
||||||
|
|
|
@ -44,6 +44,9 @@ include_once("../../lib/status.inc");
|
||||||
// start session
|
// start session
|
||||||
startSecureSession();
|
startSecureSession();
|
||||||
|
|
||||||
|
// die if no write access
|
||||||
|
if (!checkIfWriteAccessIsAllowed()) die();
|
||||||
|
|
||||||
setlanguage();
|
setlanguage();
|
||||||
|
|
||||||
// check if user is logged in, if not go to login
|
// check if user is logged in, if not go to login
|
||||||
|
|
|
@ -36,6 +36,9 @@ include_once("../../lib/config.inc");
|
||||||
// start session
|
// start session
|
||||||
startSecureSession();
|
startSecureSession();
|
||||||
|
|
||||||
|
// die if no write access
|
||||||
|
if (!checkIfWriteAccessIsAllowed()) die();
|
||||||
|
|
||||||
setlanguage();
|
setlanguage();
|
||||||
|
|
||||||
echo $_SESSION['header'];
|
echo $_SESSION['header'];
|
||||||
|
|
|
@ -37,6 +37,9 @@ include_once("../../lib/config.inc");
|
||||||
// start session
|
// start session
|
||||||
startSecureSession();
|
startSecureSession();
|
||||||
|
|
||||||
|
// die if no write access
|
||||||
|
if (!checkIfWriteAccessIsAllowed()) die();
|
||||||
|
|
||||||
setlanguage();
|
setlanguage();
|
||||||
|
|
||||||
echo $_SESSION['header'];
|
echo $_SESSION['header'];
|
||||||
|
|
|
@ -40,6 +40,9 @@ include_once("../../lib/schema.inc");
|
||||||
// start session
|
// start session
|
||||||
startSecureSession();
|
startSecureSession();
|
||||||
|
|
||||||
|
// die if no write access
|
||||||
|
if (!checkIfWriteAccessIsAllowed()) die();
|
||||||
|
|
||||||
setlanguage();
|
setlanguage();
|
||||||
|
|
||||||
echo $_SESSION['header'];
|
echo $_SESSION['header'];
|
||||||
|
|
Loading…
Reference in New Issue