<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[recupero password]]></title><description><![CDATA[<p dir="auto">salve,</p>
<p dir="auto">devo realizzare la classica paginetta per il recupero password.</p>
<p dir="auto">ma il codice, ha qualcosa che non va, visto che le email non arrivano.</p>
<p dir="auto">poi volevo cheidervi, eventuali misure di sicurezza da aggiungere, tipo email criptate.</p>
<p dir="auto">un aiuto, grassssie!!!</p>
<pre><code>&lt;?php require('Connections/xxx.php'); ?&gt;

&lt;?php
mysql_select_db($database_gcv, $gcv);
$query_Recordset1 = "SELECT password FROM `user` WHERE username = '$_POST[username]'";
$Recordset1 = mysql_query($query_Recordset1, $gcv) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
mysql_select_db($database_gcv, $gcv);
$query_Recordset2 = "SELECT email FROM `user` WHERE username = '$_POST[username]'";
$Recordset2 = mysql_query($query_Recordset2, $gcv) or die(mysql_error());
$row_Recordset2 = mysql_fetch_assoc($Recordset2);
$totalRows_Recordset2 = mysql_num_rows($Recordset2);
 
//varie info per email
$oggi = date("j F Y G:i");
$ip = "$_SERVER[REMOTE_ADDR]";
$soggetto = "pass";
$to ="$Recordset2"
$body = "Ecco i tuoi dati: \nPassword: $Recordset1   \nUsername: $_POST[username]";
mail("$to","$soggetto","$body");
header ("Location: [URL]http://xxxxxxx.com/successo.php[/URL]");
?&gt;

&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[URL]http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd[/URL]"&gt;
&lt;html xmlns="[URL]http://www.w3.org/1999/xhtml[/URL]"&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /&gt;
&lt;title&gt;Documento senza titolo&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;/body&gt;
&lt;/html&gt;
&lt;?php
mysql_free_result($Recordset1);
mysql_free_result($Recordset2);
?&gt;
</code></pre>
]]></description><link>https://dev.connect.gt/topic/28870/recupero-password</link><generator>RSS for Node</generator><lastBuildDate>Sun, 06 Dec 2026 05:10:39 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/28870.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 28 Feb 2007 17:05:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to recupero password on Wed, 28 Feb 2007 18:41:01 GMT]]></title><description><![CDATA[<p dir="auto">ho provato, ma da questo errore,</p>
<p dir="auto"><strong>Parse error</strong>: parse error, unexpected T_STRING in <strong>/var/www/vhosts/lnx.xxxx.com/httpdocs/restore-password.php</strong> on line <strong>10</strong></p>
]]></description><link>https://dev.connect.gt/post/469391</link><guid isPermaLink="true">https://dev.connect.gt/post/469391</guid><dc:creator><![CDATA[fre2004]]></dc:creator><pubDate>Wed, 28 Feb 2007 18:41:01 GMT</pubDate></item><item><title><![CDATA[Reply to recupero password on Wed, 28 Feb 2007 17:36:10 GMT]]></title><description><![CDATA[<p dir="auto">&lt;?php<br />
require('Connections/xxx.php');<br />
mysql_select_db($database_gcv, $gcv);<br />
$Recordset = mysql_fetch_assoc(mysql_query("SELECT password,email FROM <code>user</code> WHERE username = stripslashes(addslashes($_POST[username]))))<br />
) or die(mysql_error());</p>
<p dir="auto">//varie info per email<br />
$oggi = date("j F Y G:i");<br />
$ip = $_SERVER[REMOTE_ADDR];<br />
$soggetto = "pass";<br />
$to=$Recordset;<br />
$body = "'Ecco i tuoi dati: \n Password:'.$Recordset[password].<br />
'\nUsername:'. $_POST[username]";<br />
mail($to,$soggetto,$body);<br />
sleep(1);<br />
header ("Location: <a href="http://xxxxxxx.com/successo.php" rel="nofollow ugc">http://xxxxxxx.com/successo.php</a>");<br />
mysql_free_result($Recordset1);<br />
mysql_free_result($Recordset2);<br />
?&gt;</p>
]]></description><link>https://dev.connect.gt/post/469390</link><guid isPermaLink="true">https://dev.connect.gt/post/469390</guid><dc:creator><![CDATA[probid]]></dc:creator><pubDate>Wed, 28 Feb 2007 17:36:10 GMT</pubDate></item></channel></rss>