summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--php/admin/include/auth.class.php.in (renamed from php/admin/include/auth.class.php)2
-rw-r--r--php/admin/include/headers.php.in (renamed from php/admin/include/headers.php)2
-rwxr-xr-xphp/admin/templates/page.tpl.in (renamed from php/admin/templates/page.tpl)4
-rw-r--r--www/admin/logout.php.in (renamed from www/admin/logout.php)4
-rw-r--r--www/admin/user/user.php.in (renamed from www/admin/user/user.php)2
5 files changed, 7 insertions, 7 deletions
diff --git a/php/admin/include/auth.class.php b/php/admin/include/auth.class.php.in
index e14ab69..8932a10 100644
--- a/php/admin/include/auth.class.php
+++ b/php/admin/include/auth.class.php.in
@@ -103,7 +103,7 @@ class KolabAuth {
session_destroy();
$this->error_string = "";
//$this->gotoLoginPage();
- Header("Location: /admin/");
+ Header("Location: @webserver_web_prefix@/admin/");
}
function handleLogin() {
diff --git a/php/admin/include/headers.php b/php/admin/include/headers.php.in
index bb9018d..1c8a511 100644
--- a/php/admin/include/headers.php
+++ b/php/admin/include/headers.php.in
@@ -23,7 +23,7 @@ header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
-$topdir = '/admin';
+$topdir = '@webserver_web_prefix@/admin';
/*
Local variables:
mode: php
diff --git a/php/admin/templates/page.tpl b/php/admin/templates/page.tpl.in
index 8cce0b9..30b2c16 100755
--- a/php/admin/templates/page.tpl
+++ b/php/admin/templates/page.tpl.in
@@ -28,7 +28,7 @@ function changeLanguage(combobox) {ldelim}
</head>
<body>
<div id="topbar">
- <a href="/admin"><div id="toplogo"></div></a>
+ <a href="@webserver_web_prefix@/admin"><div id="toplogo"></div></a>
<div id="toptitle">{$page_title}</div>
</div>
<div id="topuserinfo">
@@ -106,4 +106,4 @@ function changeLanguage(combobox) {ldelim}
<br/>
<br/>
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/www/admin/logout.php b/www/admin/logout.php.in
index d597ba1..6d69593 100644
--- a/www/admin/logout.php
+++ b/www/admin/logout.php.in
@@ -21,7 +21,7 @@
session_start();
session_destroy();
session_unset();
-header('Location: /admin/');
+header('Location: @webserver_web_prefix@/admin/');
/*
Local variables:
@@ -31,4 +31,4 @@ header('Location: /admin/');
buffer-file-coding-system: utf-8
End:
*/
-?> \ No newline at end of file
+?>
diff --git a/www/admin/user/user.php b/www/admin/user/user.php.in
index 1e41732..68ed47d 100644
--- a/www/admin/user/user.php
+++ b/www/admin/user/user.php.in
@@ -590,7 +590,7 @@ switch( $action ) {
unset( $distlists['count'] );
foreach( $distlists as $distlist ) {
$dlcn = $distlist['mail'][0];
- $errors[] = sprintf(_("Account DN could not be modified, distribution list <a href='/admin/distributionlist/list.php?action=modify&dn=%s'>'%s'</a> depends on it. To modify this account, first remove it from the distribution list."), urlencode($distlist['dn']), $dlcn );
+ $errors[] = sprintf(_("Account DN could not be modified, distribution list <a href='@webserver_web_prefix@/admin/distributionlist/list.php?action=modify&dn=%s'>'%s'</a> depends on it. To modify this account, first remove it from the distribution list."), urlencode($distlist['dn']), $dlcn );
}
if (($result=ldap_read($ldap->connection,$dn,"(objectclass=*)")) &&