Tecniche/Webmail

From ortiche
Jump to navigation Jump to search

data l'omogeneita delle nomenclature dns, e' possibile utilizzare per le webmail di ortiche.net un frontend unificato

http://webmail.ortiche.net da rendere disponibile in roundrobin su piu host

il frontend puo aprire sessioni su squirrelmail, iloha e roundcube

il codice al momento e' questo:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.oziosi.org/DTD/xhtml1-transitional.dtd">
<html lang="it">
	<head>
		<title>WebMail @ ortiche.net</title>

		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
		<meta name="author" content="Ortiche.net" />
		<meta name="keywords" lang="it" content="webmail, ortiche, server autogestiti" />
		<meta name="description" lang="it" content="ortiche.net" />
		<meta name="robots" content="INDEX, FOLLOW, ALL" />

		<meta name="revisit-after" content="14 days" />
	
    	<script type="text/javascript" language="javascript">
    	function go_go_go() {
    		dugongo = document.frm_webmail;
    	
    		dugongo.action = 'https://webmail.' + dugongo.email.value.split('@')[1] + dugongo.type.value;
    		dugongo.login_username.value = dugongo.email.value;
    		dugongo.secretkey.value = dugongo.password.value;
			dugongo._pass.value = dugongo.password.value;
    		dugongo.username.value = dugongo.email.value;
			dugongo.user.value = dugongo.username.value;
			dugongo._user.value = dugongo.username.value;
			dugongo.port.value = '143';
	
			dugongo.host.value = '127.0.0.1';
			dugongo.submit();
	    }
	    </script>

		<link rel="stylesheet" type="text/css" href="default.css">
	</head>

	<body>
		<div style="margin-left: auto; margin-right: auto; width: 400px; height: 350px; background: url(curve.php) no-repeat center"> </div>

		<div class="homebox">
		<div class="corner2"><div class="corner3"><div class="corner4">
		<h1>webmail.ortiche</h1>

		<form name="frm_webmail" method="post" action="">
			<table>
			<tr>
				<td>E-mail:</td><td><input type="text" name="email" size="35" class="field"></td>

			</tr>
			<tr>
				<td>Password:</td><td><input type="password" name="password" size="35" class="field"></td>
			</tr>
			<tr>
				<td>Stile:</td>
				<td><select name="type" class="field">
	 				<option value="/squirrel/src/redirect.php">SquirrelMail</option>

	 				<option value="/iloha/source/index.php">IlohaMail</option> 
			 		<option value="/roundcube/index.php">RoundCube</option> 	
				</select></td>
			</tr>
			</table>
		<div style="text-align: center">
			<input type="hidden" name="login_username" />
			<input type="hidden" name="secretkey" />
			<input type="hidden" name="_user" />

			<input type="hidden" name="username" />
			<input type="hidden" name="_pass" />
			<input type="hidden" name="_action" value="login"/>
			<input type="hidden" name="port" />
			<input type="hidden" name="user" />
			<input type="hidden" name="host" />
			<input type="hidden" name="rootdir" value="">
			<input type="hidden" name="int_lang" value="--">
			<input type="hidden" name="rootdir" value="">

			<input type="button" value="Vai" onclick="go_go_go()" class="gobutton">
		</div>
		</form>
		</div></div></div></div>
	</body>
</html>