From 087f02d6425e6141b5f5e21293e7c48253840978 Mon Sep 17 00:00:00 2001
From: Roland Gruber
Date: Wed, 18 Oct 2006 16:08:58 +0000
Subject: [PATCH] show donate link only in non-Pro version
---
lam/lib/selfService.inc | 10 ++++++++++
lam/templates/login.php | 13 +++++++++++--
lam/templates/main_header.php | 10 ++++++++--
3 files changed, 29 insertions(+), 4 deletions(-)
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) {
-
+ |
+ " . _("Want more features? Get LAM Pro!") . "";
+ }
+ ?>
+ |
+
|
@@ -335,7 +344,7 @@ function display_LoginPage($config_object) {
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();
-
-
+ " . _("Donate") . "";
+ echo "
";
+ }
+ ?>
|
| |