Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Be pavadinimo

Parašė ernestuea· 2008 Rugp. 19 12:08:21
#1

function safeinput($var)
{
if (get_magic_quotes_gpc())
   {
    $var = stripslashes($var);
   }
return mysql_real_escape_string($var);
}


$sql = "SELECT * FROM ".$db_prefix."users WHERE user_name='$text'";
$result = mysql_query($sql);
$num= mysql_num_rows($result);
$data = mysql_fetch_array($result);
if($num){
  mysql_query("UPDATE ".$db_prefix."users SET user_groups=1 WHERE user_name = '$text'");
}


function TestTransaction( $transaction, $userPassword, $ordeID, $test = 0, $status = 1 ){
   return ( $transaction == md5("{$userPassword}|{$_SERVER['REMOTE_ADDR']}|{$ordeID}|{$test}|{$status}") );
}





kaip padaryti kad po dienos userui butu atsatyta id:0 aciu uz pagalba

Parašė ramon· 2008 Rugp. 19 12:08:19
#2

Duoble thread. - LOCKED


Adresas: https://webdnd.com/forum/viewthr...ad_id=8684

Redagavo ramon· 2008 Rugp. 19 13:08:09