SePP
Perch
I made a page so you can externally login to horde webmail. I use it so people on my site can directly login to their webmail.
Maybe some people find it usefull.
I just stripped the login page and changed my preferred settings, don't shoot me if some things aren't correct.
You can change the things I marked in red.
Maybe I'll strip it more later on, hope it works and you that you can use it.
You can put this script anywhere it can always login to jodohost horde webmail. Even on your own desktop
Maybe some people find it usefull.
I just stripped the login page and changed my preferred settings, don't shoot me if some things aren't correct.
You can change the things I marked in red.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<!-- IMP: Copyright 2001, The Horde Project. IMP is under the GPL. -->
<!-- Horde Project: [url="http://horde.org/"]http://horde.org/[/url] | IMP: [url="http://horde.org/imp/"]http://horde.org/imp/[/url] -->
<!-- GNU Public License: [url="http://www.fsf.org/copyleft/gpl.html"]http://www.fsf.org/copyleft/gpl.html[/url] -->
<html lang="[color=red]nl-NL[/color]"><head>
<title>[color=red]Webmail :: Welkom[/color]</title>
<link href="[url="http://66.36.228.155/horde/css.php?app=imp"]http://66.36.228.155/horde/css.php?app=imp[/url]" rel="stylesheet" type="text/css" />
</head>
<body onload="setFocus()">
<script language="JavaScript" type="text/javascript">
<!--
function setFocus()
{
document.implogin.imapuser.focus();
}
function submit_login()
{
if (document.implogin.server[document.implogin.server.selectedIndex].value.substr(0, 1) == "_") {
return false;
}
if (document.implogin.imapuser.value == "") {
alert('Please enter a login and password.');
document.implogin.imapuser.focus();
return false;
} else if (document.implogin.pass.value == "") {
alert('Please enter a login and password.');
document.implogin.pass.focus();
return false;
} else {
return true;
}
}
//-->
</script>
<script language="JavaScript1.2" type="text/javascript">
<!--
function enter_key_trap(e)
{
var keyPressed;
if (document.layers) {
keyPressed = String.fromCharCode(e.which);
} else if (document.all) {
keyPressed = String.fromCharCode(window.event.keyCode);
} else if (document.getElementById) {
keyPressed = String.fromCharCode(e.keyCode);
}
if ((keyPressed == "\r" || keyPressed == "\n") && (submit_login())) {
document.implogin.submit();
}
}
//-->
</script>
<form action="[url="http://66.36.228.155/horde/imp/redirect.php"]http://66.36.228.155/horde/imp/redirect.php[/url]" method="post" name="implogin">
<input type="hidden" name="actionID" value="105" />
<input type="hidden" name="url" value="" />
<input type="hidden" name="mailbox" value="INBOX" />
<table align="center" border="0" width="300">
<tr>
<td align="center" colspan="2" class="header"> <strong>[color=red]Webmail[/color]</strong></td>
</tr>
<tr>
<td align="right" class="light"><b>[color=red]Username[/color]</b></td>
<td align="left"><input type="text" tabindex="1" name="imapuser" value="" /></td>
</tr>
<tr>
<td align="right" class="light"><b>[color=red]Password[/color]</b></td>
<td align="left"><input type="password" tabindex="2" name="pass" /></td>
</tr>
<tr>
<td><input type="hidden" name="folders" value="INBOX" />
<input type="hidden" name="new_lang" value="[color=red]en_US[/color]"> [color=red]this is your language code, horde will have this language you put here.[/color]
<input type="hidden" tabindex="3" name="server" value="mail.m****here.biz"></td>
</tr>
<tr>
<td> </td>
<td align="left" class="light"><input type="submit" class="button" name="button" tabindex="4" value="[color=red]Submit[/color]" onclick="return submit_login();" /></td>
</tr>
</table>
</form>
<script language="JavaScript" type="text/javascript">
<!--
function selectLang()
{
// We need to reload the login page here, but only if the user hasn't
// already entered a username and password.
if (document.implogin.imapuser.value == '' &&
document.implogin.pass.value == '') {
var lang_page = 'login.php?new_lang=' + document.implogin.new_lang[document.implogin.new_lang.selectedIndex].value;
self.location = lang_page;
}
}
//-->
</script>
<script language="JavaScript1.2" type="text/javascript">
<!--
// Setup the enter keytrap code
if (window.document.captureEvents != null) {
window.document.captureEvents(Event.KEYPRESS);
window.document.onkeypress = enter_key_trap;
}
//-->
</script>
<!-- This file contains any "Message Of The Day" Type information -->
<!-- It will be included below the log-in form on the login page. -->
<script language="JavaScript" type="text/javascript">
<!--
if (parent.frames.horde_main) parent.document.title = 'Webmail :: Welcome';
//-->
</script>
</body>
</html>
Maybe I'll strip it more later on, hope it works and you that you can use it.
You can put this script anywhere it can always login to jodohost horde webmail. Even on your own desktop