Web Hosting Talk







View Full Version : Neomail Log In Script


GordonH
05-31-2001, 11:20 AM
Hello
Just putting this in here in case its seen as advertising.

We get a lot of customers who want to be able to log into their neomail webmail accounts via a web page rather than the pop up box.

Some people also have users who forget the trailing slash on /webmail/
So I have written/adapted a script to put a log in box on a web page:
http://www.hostroute.com/script_neomail.html

If you don't fill it in you get an alert box with instructions.

Free for anyone to use.......

And here is a script for logging into a .htaccess password protected area from a web page:

http://www.hostroute.com/script_htaccess.html

Gordon

teck
05-31-2001, 12:04 PM
awesome! thanks gordon!

Sydney
05-31-2001, 02:44 PM
A very useful thing indeed. Excellent job, Gordon! I will implement it soon at my site.

PS: How can I make it so that the field after the '@' fills out automatically?

eddie
05-31-2001, 06:17 PM
Very nice job Gordon,
I see they were useful script #2 & #3

what is you useful script #1 :)

BC
05-31-2001, 08:08 PM
Gordon,

Have you advised the author that you've done such a thing? I'm sure he'd love to add it to the program :)

If not, I'll get him to contact you ;)

qps
05-31-2001, 10:32 PM
Just added this to www.plusweb.com - good job man, thanks a bunch! :)

GordonH
06-01-2001, 02:50 AM
Just got a note that someone has done a PHP script like this already......

http://www.seamarinc.com/login.php

So now you have a choice.
PHP is server side, so more repeatable, but the Javascript is probably easier for most inexperienced webmasters to work with.
To make it more reliable you could put a link under the log in called "Alternative log in" which goes to /webmail/ otherwise people without javascript would not be able to log on.

Having said that, there are not that many people with javascript turned off who don't know when to turn it on so it shouldn't be much of a problem.

Gordon

eddie
06-01-2001, 04:26 AM
Thanks again Gordon,
But is the PHP source available an where?

ben
04-20-2002, 02:26 AM
Originally posted by GordonH

http://www.hostroute.com/script_neomail.html


http://www.hostroute.com/script_htaccess.html

Gordon
Weird,
I found this at www.hostroute.com


Forbidden

You don't have permission to access /script_neomail.html on this server. :confused:

GordonH
04-20-2002, 04:33 AM
That means your IP address has been blocked.

Gordon

ben
04-20-2002, 04:45 AM
Originally posted by GordonH
That means your IP address has been blocked.

:bawling:
Could you please put the script here? So, I can get it from here... :)

GordonH
04-20-2002, 05:05 AM
Here it is:

#put this bit between the head tags

<script language="javascript">
<!-- This version: Hostroute.com -->
<!-- Based on FTP log in by: Reinout Verkerk -->
<!-- Although to be fair there is not much of his code left here -->
<!-- Web Site: http://www.hostroute.com/script_neomail.html -->

<!-- Begin
function Login(form) {
var username = form.username.value;
var password = form.password.value;
var server = form.server.value;
if (username && password && server) {
var neomail = "http://" + username + ":" + password + "@" + server + ":2095/" + username + "+" + server + "/neomail.pl";
window.location = neomail;
}
else {
alert("Please enter your username and password.\nYour username is the bit before the @ sign in your e-mail address.");
}
}
// End -->
</script>

#this is what you need to put in the body of the page.

<form name=login>
<table border=1 cellpadding=3>
<tr>
<td colspan=2 align=center>
<h2><b>Logon to webmail! </b></h2>
</td>
</tr>
<tr>
<td>Username:</td>
<td>
<input type=text name=username size=15 maxlength="26">
@
<input type="text" name="server" maxlength="65" size="15">
</td>
</tr>
<tr>
<td>Password:</td>
<td>
<input type=password name=password size=20>
</td>
</tr>
<tr>
<td colspan=2 align=center>
<input type=button value="Login!" onClick="Login(this.form)" name="button">
</td>
</tr>
</table>
</form>

ben
04-20-2002, 05:21 AM
Originally posted by GordonH
[B]Here it is:


Thanks Gordon! :)
I tried it, but not working on NS 4.79 :confused: :(

GordonH
04-20-2002, 06:30 AM
There is a better PHP one doing the rounds.
It works in Mozilla so I am surprised it doesn't work in Netscape.

Gordon