documentation update
This commit is contained in:
parent
e59b6f6418
commit
fc5ad5ee45
|
@ -19,11 +19,20 @@ $Id$
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
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');
|
include_once('../../lib/config.inc');
|
||||||
|
/** Used to print status messages */
|
||||||
include_once('../../lib/status.inc');
|
include_once('../../lib/status.inc');
|
||||||
|
|
||||||
// start session
|
// start session
|
||||||
|
|
|
@ -19,11 +19,18 @@ $Id$
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
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");
|
include_once ("../../lib/config.inc");
|
||||||
|
|
||||||
// start session
|
// start session
|
||||||
|
@ -90,11 +97,11 @@ if ($_GET["modulesback"] == "true") $passwd = $_SESSION['conf_passwd'];
|
||||||
// if not: load login page
|
// if not: load login page
|
||||||
if (! $passwd) {
|
if (! $passwd) {
|
||||||
$message = _("No password was entered!");
|
$message = _("No password was entered!");
|
||||||
|
/** go back to login if password is empty */
|
||||||
require('conflogin.php');
|
require('conflogin.php');
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
include_once ('../../lib/config.inc');
|
|
||||||
$filename = $_POST['filename'];
|
$filename = $_POST['filename'];
|
||||||
if ($_GET["modulesback"] == "true") $filename = $_SESSION['conf_filename'];
|
if ($_GET["modulesback"] == "true") $filename = $_SESSION['conf_filename'];
|
||||||
$conf = new Config($filename);
|
$conf = new Config($filename);
|
||||||
|
@ -103,6 +110,7 @@ $conf = new Config($filename);
|
||||||
// if not: load login page
|
// if not: load login page
|
||||||
if (!(($conf->get_Passwd()) == $passwd)) {
|
if (!(($conf->get_Passwd()) == $passwd)) {
|
||||||
$message = _("The password is invalid! Please try again.");
|
$message = _("The password is invalid! Please try again.");
|
||||||
|
/** go back to login if password is invalid */
|
||||||
require('conflogin.php');
|
require('conflogin.php');
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,11 +19,20 @@ $Id$
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
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');
|
include_once ('../../lib/config.inc');
|
||||||
|
/** Access to module lists */
|
||||||
include_once ('../../lib/modules.inc');
|
include_once ('../../lib/modules.inc');
|
||||||
|
|
||||||
// start session
|
// start session
|
||||||
|
@ -38,6 +47,7 @@ $passwd = $_SESSION['conf_passwd'];
|
||||||
// check if password is correct
|
// check if password is correct
|
||||||
// if not: load login page
|
// if not: load login page
|
||||||
if ($passwd != $conf->get_Passwd()) {
|
if ($passwd != $conf->get_Passwd()) {
|
||||||
|
/** go back to login if password is invalid */
|
||||||
require('conflogin.php');
|
require('conflogin.php');
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,10 +19,18 @@ $Id$
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
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');
|
include_once ('../../lib/config.inc');
|
||||||
|
|
||||||
// start session
|
// start session
|
||||||
|
@ -64,6 +72,7 @@ $filename = $_SESSION['conf_filename'];
|
||||||
// check if password is correct
|
// check if password is correct
|
||||||
// if not: load login page
|
// if not: load login page
|
||||||
if ($passwd != $conf->get_Passwd()) {
|
if ($passwd != $conf->get_Passwd()) {
|
||||||
|
/** go back to login if password is invalid */
|
||||||
require('conflogin.php');
|
require('conflogin.php');
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,11 +19,20 @@ $Id$
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
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');
|
include_once('../../lib/config.inc');
|
||||||
|
/** Used to print status messages */
|
||||||
include_once('../../lib/status.inc');
|
include_once('../../lib/status.inc');
|
||||||
|
|
||||||
// start session
|
// start session
|
||||||
|
|
Loading…
Reference in New Issue