Reference: http://uniqon.com/mplus.php -------- http://mylvn.com/mplus.php
I have a quite a few email accounts under different domains and subdomains. When Horde was upgraded a few times and broke my scripts, I decided I needed to develop a backup method. So, in addition to Dathorn Horde access, I've added http://mail2web.com access with an automated dropdown list of email accounts.
So that others don't have to reinvent the wheel, I've included the code for anyone who wants to modify as they please. The easiest way is just to modify lines 35-37 (ip address, list of account domains/subdomains, location of personal banner image.)

Here's the PHP/Javascript/HTML code:
I have a quite a few email accounts under different domains and subdomains. When Horde was upgraded a few times and broke my scripts, I decided I needed to develop a backup method. So, in addition to Dathorn Horde access, I've added http://mail2web.com access with an automated dropdown list of email accounts.
So that others don't have to reinvent the wheel, I've included the code for anyone who wants to modify as they please. The easiest way is just to modify lines 35-37 (ip address, list of account domains/subdomains, location of personal banner image.)

Here's the PHP/Javascript/HTML code:
PHP Code:
<html>
<head>
<title>Horde and Web-Host-to-Mail2Web Account Selector .:. Bob Carroll .:. http://myspace.com/intp .:. http://vegas215.com/about.html</title>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<META HTTP=EQUIV="Content-Language" CONTENT="en-us">
<META HTTP-EQUIV="EXPIRES" CONTENT="0">
<META NAME="RESOURCE-TYPE" CONTENT="DOCUMENT">
<META NAME="DISTRIBUTION" CONTENT="GLOBAL">
<META NAME="AUTHOR" CONTENT="UniQon.com">
<META NAME="DESIGNER" CONTENT="Bob Carroll">
<META NAME="COPYRIGHT" CONTENT="Copyright (c) 2005 by UniQon.com">
<META NAME="PAGE-TYPE" CONTENT="las vegas, portal, forum, message board, shopping,
government, business ">
<META NAME="PAGE-TOPIC" CONTENT="anti-spam, javascript, encode, decode, privacy, email, telephone ">
<meta name="description" content="Horde + Web Host Account Selector for mail2web.com email access." />
<meta name="keywords" content="web mail,email,pop3,email gateway,web email,travel,check your mailbox,on the go,secure email,remote email" />
<META NAME="ROBOTS" CONTENT="INDEX, FOLLOW">
<META NAME="REVISIT-AFTER" CONTENT="1 DAYS">
<META NAME="RATING" CONTENT="GENERAL">
<META NAME="ICBM" CONTENT="36.14, -115.2">
<META NAME="DC.title" CONTENT="Vegas215.com">
<META NAME="geo.position" content="36.14;-115.2">
<META NAME="geo.region" content="US-NV">
<META NAME="geo.placename" content="Las Vegas">
<META NAME="distribution" content="global">
<META NAME="document-rating" content="Safe for Kids">
<META NAME="GOOGLEBOT" content="index, follow">
<META NAME="cache-control" content="no-cache">
<META NAME="document-rights" content="Copyrighted Work">
<!--------------------- CUSTOMIZE HEADER STUFF ABOVE and PHP variables BELOW -------------------------------------->
<?php $host_IP = "69.56.171.57"; $domain = array ( "uniqon.com", "eurodzyn.com" ) ;
$my_pic='"http://www.vegas215.com/v2images/vbcsnighthead.gif" width="760" height="92"';
$my_hordegif='http://www.uniqon.com/img/horde.gif';
echo "<BASE HREF=http://" . $domain[0] . ":2095/ />\n";
?>
<script language="Javascript"> var x = new Array(2);
function submitForm() {
if(document.forms["f"].password.value) { document.forms["f"].uname.value = x[1]+"@"+x[0]; document.forms["f"].submit();
} else document.forms["f"].submit_action.value=alert("No Password");
}</script>
<style>
body { background-color:#000077; margin: 0 0 0 0; font-size: 8pt; font-family:verdana,sans-serif,arial; }
.SmallText { font-family:sans-serif,arial; font-size:6.5pt; background-color:#E3F8F4; }
.SelectText { font-family:sans-serif,arial; font-size:9pt; border: 2px solid }
</style>
</head>
<body>
<table width="770" border="1" cellspacing="2" cellpadding="0" bgcolor="#FFFFFF" bordercolor="#D4D9DB" align="left">
<tr valign="top">
<td height="142">
<table bgcolor="#000000" width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
<tr>
<td bgcolor="#000000" height="19" colspan="3">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td COLSPAN=5 align="center" width="100%" nowrap><a target=_blank href=http://vegas215.com/about.html /><img border=0 src=<?php echo $my_pic;?> /></a></td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td colspan="3">
<table width="100%" border="0" cellspacing="10" cellpadding="0">
<tr valign="top">
<td height="217">
<div align="center">
<font class="med"></font>
</div>
<br><br>
<!-- END HEADER -->
<div align="center" ><BR>
<table align=center width="100%" border="0" "style="background-color:#000000">
<tr align="center">
<td width="150" align="center" valign="bottom" style="border: 2px solid #00ee00;background-color:#ffffff">
<a target=_blank href="/horde/index.php"><img src="<?php echo $my_hordegif; ?>" border="0" style="background-color:#ffffff"></a><br>
<a target=_blank href="/webmaillogout.cgi" style="background-color:#ffffff;float:right"><big>Logout </big></a></td><td> </td>
<td align="center" valign="center" style="border: 2px solid #00ccff;background-color:#e0e0e0"><form target=_top onsubmit="return submitForm()" id="f" name="f" method="post"
action="http://mail2web.com/cgi-bin/intellilogin.asp?lp=20&ld=-1&il=0&pe=0&lid=0&mp=I&server=<?php echo $host_IP; ?>" />
<TABLE VALIGN=TOP BGCOLOR=#e0e0e0 CELLPADDING=2 WIDTH=100% ALIGN=CENTER><TR VALIGN=TOP>
<TH WIDTH=70 BGCOLOR=#ffffaa style="border: 1px solid black"> Password <BR>
<input name="password" type="password" value="" size="10" class="SmallText" />
<input name="uname" id="uname" type="hidden" value="user domain">
</TH><TH ALIGN=CENTER>
<SPAN style="color:red">mail2web.com</SPAN><BR><input name="btnG" type="button" class="submit" tabindex="11" value="Check Mail" onclick=submitForm()
style="background-color:#000044;color:#ffe099;font-weight:bold" />
</TH><TD ALIGN=CENTER>
<?php chdir ("../mail");
foreach ($domain as $user_mail_dir) {
echo "\n<TD ALIGN=RIGHT> " . $user_mail_dir . "<BR>\n";
echo "<select name='utemp' class='SelectText' onchange='x=this.options[this.selectedIndex].value.split(\" \")' />";
echo "\n<option selected disabled>========";
$files = array(); $dh = opendir($user_mail_dir); while (false !== ($filename = readdir($dh))) $files[] = $filename;
closedir($dh); sort($files);
foreach($files as $user_id) { if ($user_id >= "A") echo "\n<option value='" . $user_mail_dir . " " . $user_id . "'>" . $user_id; }
echo "\n</select>\n\n</TD><TD WIDTH=50% ALIGN=RIGHT> </TD>\n";
}
?>
</TD></TR></TABLE></td></form>
</tr>
</table>
</div>
<!-- BEGIN FOOTER -->
<br><br>
<br>
</td></tr></table></td></tr><tr align="center">
</tr>
</table>
</td>
</tr>
</table>
<div id=linx style="position: absolute; left: 0px; top: 350px; width: 770px; text-align:center">
<BASE TARGET=_blank>
<STYLE>
a:link,a:visited,a:active { background-color:#000077; font-size: 8pt; font-family:verdana,sans-serif,arial;
color:#778899; text-decoration:none; font-weight:bold }
#linx.td { background-color:#000077; text-align:center }
a:hover { color:#0099cc }
</STYLE>
<TABLE width=760 align=center><TR valign=top>
<TD HEIGHT=18><a href="http://eurodzyn.uniqon.com">Eurodzyn™</a></TD>
<TD><a href="http://www.itvfan.com">iTVfan.com TV/Radio</a></TD>
<TD><a href="http://www.lvshopnet.com">Las Vegas Shopping</a></TD>
<TD><a href="http://www.mylvn.com/forums/portal.php">Neighborhood Forums</a></TD>
</TR><TR>
<TD><a href="http://www.newcityvegas.com/ncv.html">New City Vegas</a></TD>
<TD><a href="http://www.uniqon.com">UniQon International</a></TD>
<TD><a href="http://www.vegas215.com/v215.html">Vegas215.com</a></TD>
<TD><a href="http://www.vegasxyz.com">VegasXYZ World Trade</a></TD>
</tr></table>
</div>
<script>self.focus</script>
</body>
</html>

Comment