summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1b442ce)
raw | patch | inline | side by side (parent: 1b442ce)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 7 Jan 2008 11:58:12 +0000 (11:58 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 7 Jan 2008 11:58:12 +0000 (11:58 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8234 594d385d-05f5-0310-b6e9-bd551577e9d8
16 files changed:
index 69c8a93069f8b339a7e1be2dfd6a2096908280e6..f354f9c73d933e48e7301ef6a79cfc74b6ec478e 100644 (file)
@require_once ("../include/php_setup.inc");
@require_once ("functions.inc");
error_reporting (0);
-session_start ();
+session::start();
/* Logged in? Simple security check */
if (!session::is_set('ui')){
index 1a55d0487d6070a55e5420ecf443f031466cbeee..b7bebe34ad1ade5621af6df893aa77dfbb54791d 100644 (file)
@require_once ("../include/php_setup.inc");
@require_once ("functions.inc");
error_reporting (E_ALL | E_STRICT);
-session_start ();
+session::start();
/* Logged in? Simple security check */
if (!session::is_set('ui')){
index 850950ab495cc6f538e426348bc6e4772b68e73d..f62ab9fd0b8fdec9ed5dc4065479611e721fc779 100644 (file)
@require_once ("../include/php_setup.inc");
@require_once ("functions.inc");
@require_once ("class_glpi.inc");
-session_start ();
+session::start();
/* Logged in? Simple security check */
if (!session::is_set('ui')){
index 183924935a1e4fecac9c9d0ebb515ede58d9a9b4..d2c2b75ecdb22297666d6e0892594e80e5c1a775 100644 (file)
@require_once ("../include/php_setup.inc");
@require_once ("functions.inc");
error_reporting (0);
-session_start ();
+session::start();
/* Logged in? Simple security check */
if (!session::is_set('ui')){
index 98e89c7c7e01893d9c6d7b590f11e35546393f0a..ff114f87e8d3c059f20aef1069a209c663fe876a 100644 (file)
@require_once ("../include/php_setup.inc");
@require_once ("functions.inc");
error_reporting (0);
-session_start ();
+session::start();
/* Logged in? Simple security check */
if (!session::is_set('ui')){
index e5a7b6bc7d80dba9ce1326aa3d2faa4689b86a52..183932d3b87ee55b9457fbc7bd0567c346b714cf 100644 (file)
@require_once ("../include/php_setup.inc");
@require_once ("functions.inc");
error_reporting (E_ALL | E_STRICT);
-session_start ();
+session::start();
/* Logged in? Simple security check */
if (!session::is_set('ui')){
index d5e528609ccfa5199e0fd0bb44f34b9f624707a3..ca95ba561c87c2ae44c5bcd4cd9b58b093845e2d 100644 (file)
@require_once ("../include/php_setup.inc");
@require_once ("functions.inc");
error_reporting (E_ALL | E_STRICT);
-session_start ();
+session::start();
/* Logged in? Simple security check */
if (!session::is_set('ui')){
index 9aba00617ec72ed8f01e88baa7d63326bcaf3eb6..7c0d014778b992d138eeea569a6b9c7821fb74b2 100644 (file)
@require_once ("../include/php_setup.inc");
@require_once ("functions.inc");
error_reporting (0);
-session_start ();
+session::start();
/* Logged in? Simple security check */
if (!session::is_set('ui')){
index 5db29b8b174a05571d75b53e1628e9a621c6c6e8..c0d1c0900962d6e2409a5357c671dccceee5c080 100644 (file)
/* Basic setup, remove eventually registered sessions */
@require_once ("../include/php_setup.inc");
@require_once ("functions.inc");
-session_start ();
+session::start();
/* Logged in? Simple security check */
if (!session::is_set('ui')){
index 6fae266d4474d2ba7f7af13ff19ab0d19b7c9087..fed1414feb768dcfc50d6b890917a1952173e934 100644 (file)
restore_error_handler();
header("Content-type: text/html; charset=UTF-8");
-session_start();
+session::start();
/* If no config object is found in the session, abort help */
if (!session::is_set('config')){
index b5e9bf62b0456826a04b007fcc2d01bbe64b119d..4cd21afb773edb503560b2c043c52dde5c94effd 100644 (file)
--- a/gosa-core/html/index.php
+++ b/gosa-core/html/index.php
/* Set error handler to own one, initialize time calculation
and start session. */
-session_start ();
+session::start();
/* Destroy old session if exists.
Else you will get your old session back, if you not logged out correctly. */
index e41c713261d2015a7805d92cb4ec494031e59d62..1268cbfc0ec46c45c2da887c7037b9ee72e6f79a 100644 (file)
/* try to start session, so we can remove userlocks,
if the old session is still available */
-@session_start();
+@session::start();
if(session::is_set('ui')){
/* Get config & ui informations */
if (isset($_GET['request'])){
/* destroy old session */
- @session_unset ();
- @session_destroy ();
+ session::destroy ();
/* If we're not using htaccess authentication, just redirect... */
if (isset($config->data['MAIN']['HTACCESS_AUTH']) && preg_match('/^(true|yes)$/i', $config->data['MAIN']['HTACCESS_AUTH'])){
index f2759620ea2e7383fc000a1c60043cfad190ae29..e459b6599bf03ba3f3b2ff9c2d271501013dbe56 100644 (file)
--- a/gosa-core/html/main.php
+++ b/gosa-core/html/main.php
* kill session
*/
if($request_time > $max_life){
- session_unset();
+ session::destroy();
new log("security","login","",array(),"main.php called without session - logging out") ;
header ("Location: logout.php");
exit;
if (isset($global_check) && $config->data['MAIN']['FORCEGLOBALS'] == 'true'){
echo _("FATAL: Register globals is on. GOsa will refuse to login unless this is fixed by an administrator.");
new log("security","login","",array(),"Register globals is on. For security reasons, this should be turned off.") ;
- session_destroy ();
+ session::destroy ();
exit ();
}
index 801bba2cd64b0055304c971bf23a55f3c48510c2..d830a837466679bd762aaa72c2789b9fcd2ae253 100644 (file)
header("Content-type: text/html; charset=UTF-8");
-session_start();
+session::start();
/* Destroy old session if exists.
Else you will get your old session back, if you not logged out correctly. */
index e16bc546a4e44e9544b1553d203a054c1dd60eec..c3c0e53e63dbe18f3608c1d78861dfedaf6210e0 100644 (file)
/* Ensure that setup is not reachable if gosa.conf (CONFIG_FILE) */
if(file_exists(CONFIG_DIR."/".CONFIG_FILE)){
- session_destroy();
+ session::destroy();
header("Location: index.php") ;
exit();
}
diff --git a/gosa-core/setup/class_setupStep_Finish.inc b/gosa-core/setup/class_setupStep_Finish.inc
index 3898c55c5bf4c50135207eb68a0b65aa5c3953e5..8a0afd56de508274218a30f8caaac852ba7e5e23 100644 (file)
* - Permisssion are set correctly
*/
if(isset($_POST['next']) && $exists && !$this->is_world_readable(CONFIG_DIR."/".CONFIG_FILE)){
- session_destroy();
+ session::destroy();
header("Location: index.php");
exit();
}