note 34157 added to features.cookies

From: Date: Thu, 17 Jul 2003 09:14:14 +0000
Subject: note 34157 added to features.cookies
Groups: php.notes 
Request: Send a blank email to php-notes+get-52258@lists.php.net to get a copy of this message
if ((isset($aid)) && (isset($pwd)) && ($op == "login")) { if($aid!="" AND $pwd!="") { $pwd = md5($pwd); $result=sql_query("select pwd, admlanguage from ".$prefix."_authors where aid='$aid'", $dbi); list($pass, $admlanguage)=sql_fetch_row($result, $dbi); if($pass == $pwd) { $admin = base64_encode("$aid:$pwd:$admlanguage"); setcookie("admin","$admin",time()+3600); unset($op); } } } $admintest = 0; if(isset($admin) && $admin != "") { $admin = base64_decode($admin); $admin = explode(":", $admin); $aid = "$admin[0]"; $pwd = "$admin[1]"; $admlanguage = "$admin[2]"; if ($aid=="" || $pwd=="") { $admintest=0; echo "<html>\n"; echo "<title>Ingreso prohibido</title>\n"; echo "<body bgcolor=\"#FFFFFF\" text=\"#000000\">\n\n<br><br><br>\n\n"; echo "<center><img src=\"images/logo.gif\" border=\"0\"><br><br>\n"; echo "<font face=\"Verdana\" size=\"+4\"><b>Su Ip esta siendo registrada en nuestra base de datos, toda operación indebida será investigada.<br><br><br>Gerencia Administrativa</b></font></center>\n"; echo "</body>\n"; echo "</html>\n"; ---- Manual Page -- http://www.php.net/manual/en/features.cookies.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34157 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34157&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34157&report=yes

« previous php.notes (#52258) next »