documentation update

This commit is contained in:
Roland Gruber 2004-06-02 12:48:54 +00:00
parent e59b6f6418
commit fc5ad5ee45
5 changed files with 59 additions and 14 deletions

View File

@ -19,11 +19,20 @@ $Id$
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Login page to change the preferences.
*/
/**
* Login page to change the preferences.
*
* @package configuration
* @author Roland Gruber
*/
/** Access to config functions */
include_once('../../lib/config.inc');
/** Used to print status messages */
include_once('../../lib/status.inc');
// start session

View File

@ -19,11 +19,18 @@ $Id$
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/**
* Main page of configuration
*
* @package configuration
* @author Roland Gruber
*/
/** Access to config functions */
include_once ("../../lib/config.inc");
// start session
@ -90,11 +97,11 @@ if ($_GET["modulesback"] == "true") $passwd = $_SESSION['conf_passwd'];
// if not: load login page
if (! $passwd) {
$message = _("No password was entered!");
/** go back to login if password is empty */
require('conflogin.php');
exit;
}
include_once ('../../lib/config.inc');
$filename = $_POST['filename'];
if ($_GET["modulesback"] == "true") $filename = $_SESSION['conf_filename'];
$conf = new Config($filename);
@ -103,6 +110,7 @@ $conf = new Config($filename);
// if not: load login page
if (!(($conf->get_Passwd()) == $passwd)) {
$message = _("The password is invalid! Please try again.");
/** go back to login if password is invalid */
require('conflogin.php');
exit;
}

View File

@ -19,11 +19,20 @@ $Id$
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
confmodules lets the user select the account modules
*/
/**
* confmodules lets the user select the account modules
*
* @package configuration
* @author Roland Gruber
*/
/** Access to config functions */
include_once ('../../lib/config.inc');
/** Access to module lists */
include_once ('../../lib/modules.inc');
// start session
@ -38,6 +47,7 @@ $passwd = $_SESSION['conf_passwd'];
// check if password is correct
// if not: load login page
if ($passwd != $conf->get_Passwd()) {
/** go back to login if password is invalid */
require('conflogin.php');
exit;
}

View File

@ -19,10 +19,18 @@ $Id$
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
confsave saves the new preferences to lam.conf
*/
/**
* confsave saves the new preferences to lam.conf
*
* @package configuration
* @author Roland Gruber
*/
/** Access to config functions */
include_once ('../../lib/config.inc');
// start session
@ -64,6 +72,7 @@ $filename = $_SESSION['conf_filename'];
// check if password is correct
// if not: load login page
if ($passwd != $conf->get_Passwd()) {
/** go back to login if password is invalid */
require('conflogin.php');
exit;
}

View File

@ -19,11 +19,20 @@ $Id$
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Configuration profile management.
*/
/**
* Configuration profile management.
*
* @package configuration
* @author Roland Gruber
*/
/** Access to config functions */
include_once('../../lib/config.inc');
/** Used to print status messages */
include_once('../../lib/status.inc');
// start session