diff --git a/lam/lib/selfService.inc b/lam/lib/selfService.inc index 81937d23..4a920dc7 100644 --- a/lam/lib/selfService.inc +++ b/lam/lib/selfService.inc @@ -35,6 +35,16 @@ include_once("modules.inc"); /** account types */ include_once("types.inc"); +/** + * Returns if this is a LAM Pro installation. + * + * @return boolean LAM Pro installation + */ +function isLAMProVersion() { + $dir = substr(__FILE__, 0, strlen(__FILE__) - 20) . "/templates/selfService"; + return is_dir($dir); +} + /** * Returns a list of possible search attributes for the self service. diff --git a/lam/templates/login.php b/lam/templates/login.php index 32be5c37..592f38c1 100644 --- a/lam/templates/login.php +++ b/lam/templates/login.php @@ -32,6 +32,8 @@ $Id$ include_once("../lib/status.inc"); /** security functions */ include_once("../lib/security.inc"); +/** self service functions */ +include_once("../lib/selfService.inc"); // check environment $criticalErrors = array(); @@ -174,7 +176,14 @@ function display_LoginPage($config_object) {