Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Automatinis prisijungimas uzsiregistravus

Parašė sniuff· 2009 Kov. 14 15:03:35
#12

$id = dbarray(dbquery("SELECT * FROM `".$db_prefix."users` WHERE `user_name`='".$_POST['user_name']."'"));
$cookie_value = $id['user_id'].".".md5($_POST['user_pass']);
$cookie_exp = time() + 3600*24*30;
header("P3P: CP='NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM'");
setcookie("fusion_user", $cookie_value, $cookie_exp, "/", "", "0");
redirect(BASEDIR."index.php", "script");