"Fossies" - the Fresh Open Source Software Archive

Member "mcLinksCounter/login.php" (11 Apr 2002, 2761 Bytes) of package /linux/privat/old/mcLinksCounter1.2.zip:


The requested HTML page contains a <FORM> tag that is unusable on "Fossies" in "automatic" (rendered) mode so that page is shown as HTML source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "login.php" see the Fossies "Dox" file reference documentation.

    1 <?
    2 // mcLinksCounter 1.2 - Marc Cagninacci - marc@phpforums.net - http://www.phpforums.net
    3 
    4 function EnvoieCookie ($user,$pwd){
    5 SetCookie("mcLinksCounter", "$user:$pwd");
    6 }
    7 include "mclc.php";
    8 include "$langfile";
    9 $connect= mysql_connect($host,$login,$pass);
   10 mysql_select_db($base, $connect);
   11 
   12         if(isset($posted)){
   13 
   14 if(($user==$admin_login) && ($pwd==$admin_pass)):
   15             EnvoieCookie($user,$pwd);
   16 ?>
   17 <script language="JavaScript">
   18       document.location.replace("<? echo $path.""; ?>");
   19 </script>
   20 <?
   21         elseif($user!=$admin_login):
   22         $msg1=$lErreur.$lLogin;
   23         elseif($pwd!=$admin_pass):
   24         $msg2=$lErreur.$lPass;
   25         endif;        }
   26 
   27 
   28 if(isset($msg1)){
   29 echo '<div align="right"><font color="red" size="2" face="Arial"><b>'.$msg1.'</b></font></div>';
   30 }
   31 if(isset($msg2)){
   32 echo '<div align="right"><font color="red" size="2" face="Arial"><b>'.$msg2.'</b></font></div>';
   33 }
   34 ?>
   35 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
   36 <html>
   37 <head>
   38 <title>mcLinksCounter Login</title>
   39 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
   40 <META HTTP-EQUIV="Expires" CONTENT="Fri, Jan 01 1900 00:00:00 GMT">
   41 <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
   42 <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
   43 <style type="text/css">
   44 <!--
   45 a:actif {  font-family: Verdana; color: black; text-decoration: none}
   46 a:link {  font-family: Verdana; color: white; text-decoration: none}
   47 a:visited {  font-family: Verdana; color: white; text-decoration: none}
   48 a:hover {  font-family: Verdana; color: black; text-decoration: none}
   49 -&nbsp;
   50 </style>
   51 </head>
   52 <body bgcolor="#C0C0C0" text="black">
   53 <p align="right"><font face="verdana" size="5" color="black">mcLinksCounter 1.2</font></p><hr>
   54 
   55 <form action="login.php" method="get">
   56   <table align="right">
   57     <tr>
   58       <td width="92"><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b>
   59       <? echo $lLogin; ?> : </b></font>
   60       </td>
   61       <td width="128"> <font face="Arial, Helvetica, sans-serif" size="2">
   62         <input type="text" name="user" value="<?echo $user;?>">
   63         </font>
   64       </td>
   65     </tr>
   66     <tr>
   67       <td><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b><? echo $lPass; ?> :</b></font>
   68       </td>
   69       <td><font face="Arial, Helvetica, sans-serif" size="2">
   70         <input type="password" name="pwd">
   71         </font>
   72       </td>
   73     </tr>
   74     <tr>
   75       <td>&nbsp;
   76       </td>
   77       <td> <font face="Arial, Helvetica, sans-serif" size="2">
   78         <input type="submit" name="Submit" value="<? echo $lValider; ?>">
   79         <input type="hidden" name="posted" value="1">
   80         <input type="hidden" name="path" value="<?echo $path;?>">
   81         </font>
   82       </td>
   83      </tr>
   84   </table>
   85 
   86 </form>
   87 
   88 </body>
   89 </html>