note 34157 deleted from features.cookies by victor
| From: | victor@php.net | Date: | Sat, 27 Mar 2004 20:09:13 +0000 |
| Subject: | note 34157 deleted from features.cookies by victor | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-67242@lists.php.net to get a copy of this message | ||
Note Submitter: wilton@intertranet.com
----
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";