show donate link only in non-Pro version
This commit is contained in:
parent
b4b6bf10ca
commit
087f02d642
|
@ -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.
|
||||
|
|
|
@ -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) {
|
|||
</p>
|
||||
<table width="100%" border="0">
|
||||
<tr>
|
||||
<td width="100%" align="right">
|
||||
<TD width="50%" align="left">
|
||||
<?PHP
|
||||
if (!isLAMProVersion()) {
|
||||
echo "<a href=\"http://lam.sourceforge.net/lamPro/index.htm\">" . _("Want more features? Get LAM Pro!") . "</a>";
|
||||
}
|
||||
?>
|
||||
</TD>
|
||||
<td width="50%" align="right">
|
||||
<a href="./config/index.php"><IMG alt="configuration" src="../graphics/tools.png"> <?php echo _("LAM configuration") ?></a>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -335,7 +344,7 @@ function display_LoginPage($config_object) {
|
|||
<TR><TD align="right"><HR>
|
||||
<SMALL>
|
||||
<?php
|
||||
if (is_dir("./selfService")) {
|
||||
if (isLAMProVersion()) {
|
||||
echo "LDAP Account Manager <b>Pro</b>: <b>" . LAMVersion() . "</b> ";
|
||||
}
|
||||
else {
|
||||
|
|
|
@ -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();
|
|||
<table border=0 width="100%">
|
||||
<tr>
|
||||
<td width="200">
|
||||
<a href="http://lam.sourceforge.net/sponsors/donations.htm" target="_blank"><img alt="donations" src="../graphics/smile.png"> <?php echo _("Donate") ?></a>
|
||||
<br><br>
|
||||
<?PHP
|
||||
if (!isLAMProVersion()) {
|
||||
echo "<a href=\"http://lam.sourceforge.net/sponsors/donations.htm\" target=\"_blank\"><img alt=\"donations\" src=\"../graphics/smile.png\"> " . _("Donate") . "</a>";
|
||||
echo "<br><br>";
|
||||
}
|
||||
?>
|
||||
<a href="tools.php" target="mainpart"><img alt="tools" src="../graphics/tools.png"> <BIG><B><?php echo _("Tools") ?></B></BIG></a>
|
||||
</td>
|
||||
<td align="center">
|
||||
|
|
Loading…
Reference in New Issue