Connect. Communicate. Collaborate. Securely.

Home » Kerio User Forums » Kerio Connect » login.php (NOT zend compiled) from 6.1 RC1
  •  
kalle

Messages: 4
Karma: 0
Send a private message to this user
Hi

Could anyone post the content of the file login.php non-compiled from an 6.1 RC1 installation (I'll think that a Mac installation contains uncompiledphp files...)

So I can modify the login screen a little.

If this not is agains any license rules of course....

Cheers,
Kalle
  •  
J-ITS

Messages: 27
Karma: 0
Send a private message to this user
This is a good question. Anyone able to change the login page yet? (for either 6.1 or 6.0.x)
  •  
wildje

Messages: 14
Karma: 0
Send a private message to this user
There is a simple solution which allows you to customize your login page. However it has one drawback: you get a static login page. In other words no 'you are logged out' etc messages.

- Make a backup copy of login.php
- Go to your webmail login page
- Once displayed in your browser, save the page(file, save as)
- you now have login.html. Copy this file over login.php (Effectivly renaming it to login.php)

This login.php now can easily be html-edited ;) Remember to stop/start KMS after each change in login.php

[Updated on: Wed, 15 June 2005 20:43]

  •  
cohcon

Messages: 88
Karma: 0
Send a private message to this user
I requested the same thing from Kerio Support.

----
The response I got was "...our chief developer says the problem is that we have a javascript that scrambles the login variables for each upgrade of KMS. I opened a suggestion in our system (ID #9618) to make it possible for customers to offer a custom login page. Currently you can only create a custom logo for the login page."
----

This presents an issue for a corporate environment such as ours where we need to cobrand the login page and layout to match our website.
  •  
wildje

Messages: 14
Karma: 0
Send a private message to this user
wildje wrote on Wed, 15 June 2005 20:42

There is a simple solution which allows you to customize your login page. However it has one drawback: you get a static login page. In other words no 'you are logged out' etc messages.

- Make a backup copy of login.php
- Go to your webmail login page
- Once displayed in your browser, save the page(file, save as)
- you now have login.html. Copy this file over login.php (Effectivly renaming it to login.php)

This login.php now can easily be html-edited ;) Remember to stop/start KMS after each change in login.php


Oh, if you get a 'corrupted' login page, edit the line in login.php which contains a href to '/subdir/login.css' and remove the /subdir. login.css is in the same dir as login.php ;)
  •  
kalle

Messages: 4
Karma: 0
Send a private message to this user
To J-ITS

I have an uncompiled copy of login.php for 6.0.5 (i'll think). It was acually posted on this forum 2 mounth ago (or something).

It's an easy task to do really nice, customized login screen (with full functionality) once you get the uncompiled code.

I'll havent noticed any changes in login.php from 6.0.5 -> 6.0.10 that makes the "old" login.php not working on a 6.0.10 installation, but with 6.1 it's a different story (you have for example the full/light interface choise).

Can anyone confirm that MAC installatons contains uncompiled php files (I'm running Windows myself ;-)

Cheers,
Kalle
  •  
J-ITS

Messages: 27
Karma: 0
Send a private message to this user
That would be great. If you could email it to johnny<_at_>sysqx.com I would really appreciate it.
  •  
kalle

Messages: 4
Karma: 0
Send a private message to this user
<?php
session_start();
// redirect to main page if user is already logged in
$sessionMan = kerio("KMS::SessionManager");
$session = $sessionMan->getSession(session_id(), false);
if (!is_null($session)) {
$userInfo = $session->getMyUserInfo();
$userName = $userInfo->getUserName();
$message = "<kerio:text id='login-retype-password'/>";
// header("Location: index.php");
// exit;
}
if (!$message) $message = "<kerio:text id='login-enter'/>";
$userLangs = explode(",", $_SERVER["HTTP_ACCEPT_LANGUAGE"]);
$contentLang = strtolower(substr(trim($userLangs[0]), 0, 2));
if (!$contentLang) $contentLang = "en";
define("SERVER_VERSION", str_replace(" ","",str_replace("Kerio MailServer", "", $_SERVER["SERVER_SOFTWARE"])));
header("Content-Type: text/html; charset=utf-8");
header("Content-Language: $contentLang");
header("X-Kerio-Filter: translate=$contentLang");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Webmail | Kerio MailServer</title>
<link rel="shortcut icon" type="text/x-icon" href="/favicon.ico">
<link rel="stylesheet" type="text/css" href="main.css?v=<?=SERVER_VERSION?>">
<link rel="stylesheet" type="text/css" href="login.css?v=<?=SERVER_VERSION?>">
<script type="text/javascript" src="mainconsts.js.php"></script>
<script type="text/javascript" src="common.js?v=<?=SERVER_VERSION?>" defer="defer"></script>
<script type="text/javascript" src="main.js?v=<?=SERVER_VERSION?>" defer="defer"></script>
<script language="javascript">
function kkda0()
{
var kkdqk = new Image();
kkdqk.src = "gfx/wait.gif";
}
</script>
</head>
<body onload="kkda0()" bgcolor="#003473">
<table height="100%" width="100%" bgcolor="#003473"><tr><td align="center" valign="middle">
<div class="logoDiv"></div>
<div class="contentDiv" >
<span class="caption"><kerio:text id='login-page'/></span><br><br>
<?php
if (!is_null($_GET['reason'])) {
switch ($_GET['reason']) {
case "failure":
$reason = "<kerio:text id='login-err-failure'/>";
break;
case "expired":
$reason = "<kerio:text id='login-err-expired'/>";
break;
case "logout":
$reason = "<kerio:text id='login-err-logout'/>";
break;
default:
$reason = "";
break;
}
}
if (strlen($reason) > 0) {
echo "<span class=\"error\">" . $reason . "<br><br></span>";
}
?>
<?=$message?><br>&nbsp;
<form name="kkeda" action="dologin.php" method=post>
<table>
<tr><td nowrap><span class="caption"><kerio:text id='login-username'/></span></td><td width="100%">
<?php if ($userName):?>
<?=$userName?><input name="kgpgk" type="hidden" value="<?=$userName?>">
<?php else: ?>
<input name="kgpgk" class="input_text" type="text" size="15">
<?php endif ?>
</td></tr>
<tr><td nowrap><span class="caption"><kerio:text id='login-password'/></span></td><td width="100%">
<input name="kgq3a" type="password" size="15" class="input_text"></td></tr>
<tr><td></td><td width="100%"><input type="submit" class="input_button" value="OK"></td></tr>
</table>
</form>
<?php if ($userName):?>
<a href='logout.php'><kerio:text id='login-other-user'/></a>
<?php endif ?>
</div>
Copyright 2005 Company Name

</td></tr></table>
<script language="javascript">
if (top.location!=document.location) top.location = document.location;
<?php if ($userName):?>
document.kkeda.kgq3a.focus();
<?php else: ?>
document.kkeda.kgpgk.focus();
<?php endif ?>
</script>
</body>
</html>
  •  
kalle

Messages: 4
Karma: 0
Send a private message to this user
Please Note!

The code above is from 6.0.5 or something - NOT suitable for 6.1 RC1

Cheers,
Kalle
  •  
Petr Dousa (Kerio)

Messages: 150

Karma: 0
Send a private message to this user
You can change login page design completely by playing with login.css (logo, colors, positioning, fonts..). 6.1 allows more control over the design than 6.0. But obviously it doesn't allow to change page contents.

Petr Dousa
user experience designer, Kerio
Previous Topic: iCal Import error under 10.3.x
Next Topic: KMS 6.1 BUG - MailServer will hang when sending email
Goto Forum:
  


Disclaimer:
Kerio discussion forums are intended for open communication between forum members and may contain information and material posted by members which may be useful in learning about Kerio products. The discussion forums are not intended to provide technical support for any specific product. Any information implied or expressed in the discussion forums is that of the posting member. Kerio is in no way responsible for the information posted in the forums, or its accuracy. Kerio employees may participate in the discussions, but their postings do not represent an offical position of the company on any issues raised or discussed. Kerio reserves the right to monitor and maintain the forums to promote free and accurate exchange of information.

Current Time: Wed Nov 22 02:48:32 CET 2017

Total time taken to generate the page: 0.00456 seconds
.:: Contact :: Home ::.
Powered by: FUDforum 3.0.4.