Browse Source

added support for sessions


			
			
				master
			
			
		
Roland Gruber 21 years ago
parent
commit
f49efa989f
  1. 10
      lam/config/config.php
  2. 1
      lam/config/conflogin.php
  3. 2
      lam/config/confmain.php
  4. 2
      lam/config/confsave.php
  5. 1
      lam/templates/main.php

10
lam/config/config.php

@ -276,8 +276,14 @@ class Config {
if (!$save_defShell == True) array_push($file_array, "\n\n# default shell when creating new user\n" . "defaultShell: " . $this->DefaultShell);
if (!$save_shellList == True) array_push($file_array, "\n\n# list of possible shells\n" . "shellList: " . $this->ShellList);
$file = fopen($conffile, "w");
for ($i = 0; $i < sizeof($file_array); $i++) fputs($file, $file_array[$i]);
fclose($file);
if ($file) {
for ($i = 0; $i < sizeof($file_array); $i++) fputs($file, $file_array[$i]);
fclose($file);
}
else {
echo _("<br><font color=\"red\">Cannot open config file!</font>");
exit;
}
}
}

1
lam/config/conflogin.php

@ -22,6 +22,7 @@ $Id$
Login page to change the preferences.
*/
session_start();
?>
<html>

2
lam/config/confmain.php

@ -24,6 +24,8 @@ $Id$
*/
session_start();
// check if password was entered
// if not: load login page
if (! $passwd) {

2
lam/config/confsave.php

@ -24,6 +24,8 @@ $Id$
*/
session_start();
include_once ('config.php');
$conf = new Config();

1
lam/templates/main.php

@ -23,7 +23,6 @@ $Id$
*/
session_start();
?>
<html>

Loading…
Cancel
Save