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) {

- + @@ -335,7 +344,7 @@ function display_LoginPage($config_object) {
+ + " . _("Want more features? Get LAM Pro!") . ""; + } + ?> + configuration 

Pro: " . LAMVersion() . "   "; } else { diff --git a/lam/templates/main_header.php b/lam/templates/main_header.php index 2a819a45..223b7dc8 100644 --- a/lam/templates/main_header.php +++ b/lam/templates/main_header.php @@ -32,6 +32,8 @@ $Id$ include_once("../lib/security.inc"); /** access to configuration options */ include_once("../lib/config.inc"); +/** self service functions */ +include_once("../lib/selfService.inc"); // start session startSecureSession(); @@ -53,8 +55,12 @@ $types = $_SESSION['config']->get_ActiveTypes();
- donations  -

+ \"donations\" " . _("Donate") . ""; + echo "

"; + } + ?> tools