x10Hosting Forums

Corporate Free Hosting for the Masses.



Register

Reply
 
LinkBack Thread Tools Display Modes
VIP User

mr kennedy's Avatar

Join Date: Aug 2007
Posts: 496
Credits: 104
mr kennedy will become famous soon enough
Location: Toronto, Canada/Muntinlupa City, Philippines

Send a message via MSN to mr kennedy Send a message via Yahoo to mr kennedy
Quote  
12-23-2007, 03:40 AM
Post Webmail Login Script v.1.00(By Passing the Popup Prompt)

Script Name: Webmail Login Script
Author: dgenx210 (x10's mr kennedy)
Script Language: PHP
Script Dependencies: Webmail
Installation Time: <5 Minutes
Installation Difficulty: EASY!

Code 1:
Here's the code for the login form. you could copy and paste this to (anyfilename).php, edit one line and save it.


PHP Code:
<?php

/*#############################################*\
# Webmail Login Form v.1.00
# by dgenx210(dgenx210@gmail.com)
# Exclusively created for x10Hosting.com
#---------------------------------------
# You are free to redistribute or alter this
# source code as long as you keep this
# copyright text.
\*#############################################*/

//config
$maildomain 'yourdomain.com'//enter here the domain of your site

//no need to edit below here :)
?>

<title><?php echo $maildomain ?> Webmail Login</title>
<center><form action="login_redir.php" method="post">
<table cellspacing="4" cellpadding="0">
<tr><td>Username:</td><td><input type="text" name="user">@<?php echo $maildomain ?></td></tr>
<tr><td>Password:</td><td><input type="password" name="pass"></td></tr>
<tr><td>Login To:</td>
<td align="left">
<select name="port">
<option value="2095">Webmail</option>
<option value="2096">Secure Webmail</option>
</select>
</td></tr>
<tr><td align="left" colspan="2">
<input type="submit" name="login" value="login" style="cursor:pointer">
</td>
</tr>
</table>
</form></center>
Code 2:
This code has only one line to edt just like the first code. Save this code as 'login_redir.php' without the quotemarks

PHP Code:
<html>
<?php

/*#############################################*\
# Webmail Login Form v.1.00
# by dgenx210(dgenx210@gmail.com)
# Exclusively created for x10Hosting.com
#---------------------------------------
# You are free to redistribute or alter this
# source code as long as you keep this
# copyright text.
\*#############################################*/

#your domain or ip
$domain "yourdomain.com";//replace 'yourdomain.com' with your x10Domain or Subdomain

#no need to edit after this line!

if(!$_POST['login']) {
exit;
}

$user $_POST['user'];
$pass $_POST['pass'];
$port $_POST['port'];

$port == "2083" || $port == "2096" $pre "https://" $pre "http://";
$port == "2095" || $port == "2096" && !eregi("@"$user) ? $user "".$user."@".$domain."" $user $user;
?>
<body onLoad="setTimeout('document.forms[0].submit();',10)">
<form action="<?php echo "".$pre."".$domain.":".$port."/login/"?>" method="post">
<input type="hidden" name="user" value="<?php echo $user?>">
<input type="hidden" name="pass" value="<?php echo $pass?>">
</form>
</body>
</html>
----------------
v2 will be coming before the year ends with the capablity of logging in to cPanel using the same script
---------------
Well this is my first script release and Feedbacks and Self Modifications are very warmly welcome.
__________________

It's me, dgenx210
If you find my posts helpful, please add it to my reputation () or spare me some x10¢'s.
I would really appreciate it if you do any of the two.
---------------
Tutorials!:
Webmail Login Script v.1.00(By Passing the Popup Prompt)
---------------

---------------



Last edited by mr kennedy; 12-23-2007 at 06:46 AM.
Reply With Quote
mr kennedy is offlineReport Post
x10Hosting Member

Join Date: Mar 2008
Posts: 10
Credits: 304
dgold is on a distinguished road
Quote  
06-06-2008, 01:53 AM
Thumbs up Re: Webmail Login Script v.1.00(By Passing the Popup Prompt)

i have already this script from freescripts.com
Reply With Quote
dgold is offlineReport Post
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error log Extensive and i have no idea what it means chief Free Hosting 8 12-03-2007 05:12 PM
Mine Died. Anyone have a login script? salukigirl Scripts & 3rd Party Apps 0 10-19-2007 04:18 PM
Secure login script question cetutnx1 Free Hosting 0 05-01-2006 06:40 PM
Cant login to my news script SecureStealth Free Hosting 0 09-08-2005 06:47 PM
PHP login script xunhandmex Scripts & 3rd Party Apps 8 05-26-2005 08:56 PM


All times are GMT -5. The time now is 02:04 PM. Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0 RC7
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

Mortgage Calculator | Loans | Loan | Credit Card Consolidation | Debt Consolidation