web to date 8s_common_login
Transcription
web to date 8s_common_login
C:\Program Files\DATA BECKER\web to date 8s\common\login.ccml Donnerstag, 28. November 2013 13:51 <?php function postVars($myKey) { if (isset($_POST[$myKey])) { if (get_magic_quotes_gpc()) { return (stripslashes($_POST[$myKey])); } else { return ($_POST[$myKey]); } } else { return (""); } } function cookieVars($myKey) { global $_COOKIE; if (isset($_COOKIE[$myKey])) { if (get_magic_quotes_gpc()) { return (stripslashes($_COOKIE[$myKey])); } else { return ($_COOKIE[$myKey]); } } else { return (""); } } include("<cc:print value="&page.aclfile" javascript="1">"); if (postVars("login")=="") { $login=cookieVars("login"); $pass=cookieVars("pass"); } else { $login=postVars("login"); $pass=postVars("pass"); } $mask=0x0; reset($ac); while (list(,$user) = each($ac)) { if ($login==$user["login"]) { if ($pass==$user["pass"]) { $mask=$user["mask"]; setcookie("login",$login,0,"/"); setcookie("pass",$pass,0,"/"); break; } } } if (($mask & <cc:print value="&page.aclmask">)==0) { ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title><cc:print value="&site.ressource.logintitle"></title> <meta id="viewport" name="viewport" content="width=320"> </head> <body> -1- C:\Program Files\DATA BECKER\web to date 8s\common\login.ccml Donnerstag, 28. November 2013 13:51 <center> <cc:printpicture obj="logo_login" width="640" height="480" alt=""border="O"> </center> </body> <style type="text/css"> TABLE { background-color : #EFEBDE; border : 1px solid #ADAA9C; font-family : Tahoma, Verdana, Geneva, Arial, Helvetica, sans-serif; font-size : 12px; } INPUT.i { border : 1 solid #7B9EBD; font-family : Tahoma, Verdana, Geneva, Arial, Helvetica, sans-serif; font-size : 12px; width: 180px; } INPUT.s { font-family : Tahoma, Verdana, Geneva, Arial, Helvetica, sans-serif; font-size : 12px; width: 100px; } </style> <body bgcolor="#ffffff"> <br><br><br> <form name="loginform" method="post" action="<cc:print value="&page.content.filename">"> <table align="center" width="290" cellspacing="0" cellpadding="4" border="0"> <tr> <td align="center" height="10" colspan="2"></td> </tr> <tr> <td align="right" height="30" width="80"><cc:print value="&site.ressource.loginname">:</td> <td height="30"><input class="i" type="text" name="login" value="<?php echo(htmlspecialchars($login)) ?>" ></td> </tr> <tr> <td align="right" height="30" width="80"><cc:print value="&site.ressource.loginpassword">:</td> <td height="30"><input class="i" type="password" name="pass"></td> </tr> <tr> <td align="right" height="50"> </td> <td height="50"><input class="s" type="submit" value="<cc:print value="&site.ressource.loginsubmit" javascript="1">"></td> </tr> </table> </form> <script language="JavaScript" type="text/javascript"> if (document.loginform.login.value=="") { document.loginform.login.focus(); } else { document.loginform.pass.focus(); } </script> </body> </html> <?php -2- C:\Program Files\DATA BECKER\web to date 8s\common\login.ccml Donnerstag, 28. November 2013 13:51 die; } ?> -3-