<?php require_once('../Connections/asdo.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
$colname_recup = "-1";
if (isset($_POST['Mail'])) {
$colname_recup = $_POST['Mail'];
}
mysql_select_db($database_asdo, $asdo);
$query_recup = sprintf("SELECT Username, Password FROM utenti WHERE Mail = %s", GetSQLValueString($colname_recup, "text"));
$recup = mysql_query($query_recup, $asdo) or die(mysql_error());
$row_recup = mysql_fetch_assoc($recup);
$totalRows_recup = mysql_num_rows($recup);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>link ASDO Don Orione Roma - basket in carrozzina</title>
<style type="text/css">
.sfondo {
text-align: center;
background-image: url(../sfondo.jpg);
background-attachment: fixed;
background-position: center;
}
.titolo_pagina {
font-size: 36px;
color: #033;
text-shadow: 2px 1px 5px #;
background-color: #FFF;
font-family: arial;
text-shadow: 2px 2px 7px #729053;
}
.menu_principale {
font-family: arial;
font-size: 18px;
color: #033;
background-color: #FFF;
text-shadow: 2px 2px 2px #729053;
}
.myasdo_accedi_registrati {
font-size: 14px;
background-color: #DCFFD0;
font-family: arial;
}
.myasdo {
background-color: #DCFFD0;
}
.titoli_tabelle {
font-size: 16px;
color: #033;
background-color: #FFF;
font-family: arial;
}
.pie_di_pagina {
font-size: 16px;
color: #FFF;
text-shadow: 2px 2px 2px #033;
}
a:link {
text-decoration: none;
color: #033;
}
.facebook {
background-color: #FFF;
}
body,td,th {
font-family: arial;
}
a:visited {
text-decoration: none;
color: #033;
}
.corpo_pagina {
font-family: arial;
color: #033;
background-color: #FFF;
text-align: center;
}
a:hover {
color: #730315;
text-decoration: none;
}
.sponsor {
background-color: #FFF;
}
</style>
<script type="text/javascript">
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
</script>
</head>
<body class="sfondo" onload="MM_preloadImages('../CONTENUTI/OGGETTI HOME/myasdo2roll.gif')">
<div align="center">
<table width="903">
<tr>
<td><img src="../barra top.jpg" width="899" height="140" align="middle" /></td>
</tr>
</table>
<table width="903" height="34" border="0" align="center">
<tr class="menu_principale">
<td width="866" height="25" align="center" valign="middle" class="menu_principale"><a href="../index.php">home</a> ****<a href="../CONTENUTI/news.php">news</a> ****<a href="../CONTENUTI/campionato.php">campionato</a>**** <a href="../CONTENUTI/squadra.php">squadra</a>**** <a href="../CONTENUTI/societa.php">società</a>**** <a href="../CONTENUTI/storia.php">storia</a> ****<a href="../CONTENUTI/gallerie.php">gallerie</a> ****<a href="../CONTENUTI/link.php">link</a> ****<a href="../CONTENUTI/5xmille.php">5xmille</a> ****<a href="../CONTENUTI/dove siamo.php">dove siamo</a></td>
<td width="27" height="25" align="center" valign="middle" class="facebook"><a href="http://www.facebook.com/pages/ASDO-Don-Orione/415035968514242"><img src="../CONTENUTI/OGGETTI HOME/facebook.gif" alt="" width="25" height="25" align="middle" /></a></td>
</tr>
</table>
<table width="903" height="51" border="0">
<tr valign="top">
<td width="742" height="18" rowspan="2" align="center" valign="middle" class="titolo_pagina"><div align="center"><strong class="titolo_pagina1" id="news">recupero dati</strong></div></td>
<td width="149" height="30" align="center" valign="middle" class="myasdo"><a href="../CONTENUTI/myasdo.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image7','','../CONTENUTI/OGGETTI HOME/myasdo2roll.gif',1)"><img src="../CONTENUTI/OGGETTI HOME/myasdo2.gif" alt="" name="Image7" width="135" height="24" border="0" id="Image7" /></a><a href="../CONTENUTI/myasdo.php"></a></td>
</tr>
<tr valign="middle">
<td height="20" align="center" valign="middle" nowrap="nowrap" class="myasdo_accedi_registrati"><a href="autenticazione utente.php">login</a> * ****<a href="registrazione.php">registrati</a></td>
</tr>
</table>
<table width="903" border="0">
<tr>
<td height="500" valign="top" class="corpo_pagina"><p> </p>
<p></p>
<p></p>
<p align="center">
</p>
<p align="center">Al più presto riceverai un' e-mail con i dati di accesso...</p>
<p align="center"> </p><p align="center"> </p></td>
</tr>
</table>
<table width="903" height="178" border="0" align="center" cellpadding="3">
<tr valign="bottom" class="titoli_tabelle">
<td height="20" align="center" nowrap="nowrap"><strong class="titoli_tabelle">sponsor</strong></td>
</tr>
<tr class="sponsor">
<td height="150" align="center" valign="top"><a href="http://ocres.webprofessional.it"><img src="../CONTENUTI/LOGHI SPONSOR/ocres.jpg" width="150" height="150" hspace="30" /></a> <a href="http://www.primspa.com/"><img src="../CONTENUTI/LOGHI SPONSOR/prim.jpg" width="150" height="150" hspace="30" vspace="0" /></a><a href="http://www.fondazioneroma-terzosettore.it/it/index.html"><img src="../CONTENUTI/LOGHI SPONSOR/fondazioneromaterzosettore.jpg" width="150" height="150" hspace="30" /></a><a href="http://www.gruppopellegrini.it/"><img src="../CONTENUTI/LOGHI SPONSOR/pellegrinispa.jpg" width="150" height="150" hspace="30" /></a>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"></td>
</tr>
</table>
<br />
<span class="pie_di_pagina">Associazione Sportiva Disabili Don Orione<br />
Via della Camilluccia 112/120, cap. 00135, Roma<br />
Tel. 06-355291</span></div>
<div align="center"></div>
</body>
</html>
<?php
mysql_free_result($recup);
?>
<?php
if (isset($_POST['Mail']))
{
mysql_select_db($database_asdo, $asdo);
$query=mysql_query("SELECT * FROM utenti WHERE id_utente = '1'");
$row_recup = mysql_fetch_assoc($recup);
$Username=$row_recup['Username'];
$Password=$row_recup['Password'];
$mittente = 'from:"utenti asdo"<[email protected]>';
$a="[email protected]"; //destinatario
$oggetto="recupero dati di accesso";
$messaggio="$Username,$Password";
mail($a, $oggetto, $messaggio, $mittente);
}
?>