Dynadot โ€” .com Registration $8.99

Webmail Log In

Spaceship Spaceship
Watch

snike

Established Member
Impact
3
I found this:

PHP:
Place in between <head></head> tags:

<script language="Javascript">
//please leave this credit in
//coded by XEWeb - www.xeweb.net
//please set the full URL below

function login() {

//Enter full URL of your site
var url = "http://www.yourdomain.com";

var port = document.login.port.value;
window.location.href = url+":"+port+"/login/";
}
</script>

Use this HTML form for login:

<form name="login" method="post" onSubmit="javascript:login()">
Username: <input type="text" name="user">
<br>Password: <input type="password" name="pass">
<br><select name="port"><option value="2082">cPanel</option><option value="2095">Webmail</option></select>
<br><input type="submit" value="Log In">
</form>


Do you think it is a safe script for my visitors to log in to their mail?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Have you tested it? It doesn't look like it would work.. only go to the /login/ URL.
 
0
•••
For it to work, it would most likely need to be edited to work like this:

PHP:
 Place in between <head></head> tags:

<script language="Javascript">
//please leave this credit in
//coded by XEWeb - www.xeweb.net
//please set the full URL below

function login() {

//Enter full URL of your site
var url = "http://+user+:[email protected]";

var port = document.login.port.value;
window.location.href = url+":"+port+"/login/";
}
</script>

Use this HTML form for login:

<form name="login" method="post" onSubmit="javascript:login()">
Username: <input type="text" name="user">
<br>Password: <input type="password" name="pass">
<br><select name="port"><option value="2082">cPanel</option><option value="2095">Webmail</option></select>
<br><input type="submit" value="Log In">
</form>

I'm not a javascript user, however something like that should work if it uses http authentication
 
0
•••
I don't know what the /login/ part does and it makes it not work for me.
Code:
Place in between <head></head> tags:

<script language="Javascript">
function login() {
	var user = document.login.user.value;
	var pass = document.login.pass.value;
	var port = document.login.port.value;
	var url  = "http://"+user+":"+pass+"@yourdomain.com:"+port;
	window.location.href = url;
}
</script>

Use this HTML form for login:

<form name="login" method="post" onSubmit="javascript:login()">
	Username: <input type="text" name="user" /><br />
	Password: <input type="password" name="pass" /><br />
	<select name="port">
		<option value="2082">cPanel</option>
		<option value="2095">Webmail</option>
	</select><br />
	<input type="submit" value="Log In" />
</form>
 
0
•••
Dynadot โ€” .com Registration $8.99Dynadot โ€” .com Registration $8.99
Appraise.net
Unstoppable Domains
Domain Recover
DomainEasy โ€” Payment Flexibility
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back