Location: PHPKode > projects > PHPExplorer > login.php
<?
$ok=0; $pub=1;if($set_pwd) $pwd=$set_pwd;
require("include/config.php");
require($instp."/include/psw.php");
require($instp."/modules/pub/config.php");
for($i=0;$pubpass[$i];$i++) if($pwd==$pubpass[$i]){ $ok=1; $pub=1;}
if($pwd==base64_decode($bonpass)){ $ok=1; $pub=0;}
if($supersecu&&$ok==1){
  $ok=0; $okx=0; $oky=0; $tx=$mousex; $ty=$mousey;
  for($i=-10;$i<=10;$mousex=$tx,$mousex=$mousex+$i,$i++){ if($mousex==$posx) $okx=1; }
  for($i=-10;$i<=10;$mousey=$ty,$mousey=$mousey+$i,$i++){ if($mousey==$posy) $oky=1; }
  if($okx&&$oky) $ok=1;
}
if(!$ok||$logout){
 setCookie("pwd"); setCookie("ordre"); setCookie("sens");
 setCookie("incdirs"); @include("include/config.php");
?>
<html>
<head><title>PHPExplorer ~ Connection</title>
<style type="text/css">
a{color:#999999;}a:hover{color:#C0C0C0;}a:visited{#666666;}
.bg{}
.b{background-image:url(images/login.gif);background-repeat:no-repeat; background-position:center left;}
.bo{background-image:url(images/logino.gif);background-repeat:no-repeat; background-position:center left;}
</style></head>
<body bgcolor="#C0C0C0" text="#CCCCCC" onLoad="document.f.set_pwd.focus();">
<Script Language="JavaScript">
<!--
var ok = 0; var x; var y;
function verif(e)
{
  if(event.keyCode==178)
  {
    if(ok==0){ ok = 1; window.status='Placez votre curseur sur le point secret puis appuyez sur ²';
    }else{ ok=0; window.status='La position a été enregistrée';
     if(document.f.set_pwd.value=='') document.f.set_pwd.focus();}
    event.keyCode=0;
  }
}
function pos(e)
{
 if(ok){ 
  x = event.x+document.body.scrollLeft;
  y = event.y+document.body.scrollTop;
  window.status = "Position de la souris [ X="+x+" / Y="+y+" ]";
 }
}
document.onmousemove = pos;
document.onkeypress = verif;
-->
</Script>

<table align="center" height="100%" width="100%" border="0" cellspacing="0" cellpadding="0"><tr>
<td align="center" width=100% height=100%>
<table border='0' cellpadding='0' cellspacing='0' height="46" width="45%" align="center">
<tr height="8"><td rowspan='2' colspan='2' height="8" width="99%">
<table border="2" bordercolor="#222222" cellspacing="0" cellpadding="3" bgcolor="#999999" height=100% width=100%>
<tr><td align=center width=100%>
<b><font color="#000000" SIZE=5>Bienvenue à PHP-Explorer</font></b>
</td></tr></table>
</td><td background='images/ombre_1.gif' width="6" height="8"></td></tr>
<tr height="30"><td background='images/ombre_2.gif' width="6"></td></tr>
<tr height="8">
  <td background="images/ombre_3.gif" width="1%"></td>
  <td background="images/ombre_4.gif" width="98%"></td>
  <td background="images/ombre_5.gif" width="1%"></td>
</tr></table>
<br>
<table border='0' cellpadding='0' cellspacing='0' height="180" width="45%" align="center">
<tr height="8"><td rowspan='2' colspan='2' height="8" width="99%">
<table align="center" border="2" bordercolor="#222222" cellspacing="0" cellpadding="3" bgcolor="#777777" width="100%" height="100%">
<form action="<?=$PHP_SELF?>?sup=L" method="post" onSubmit="if(x&&y){document.f.mousey.value=y;document.f.mousex.value=x;}" name="f">
<input type="hidden" name="mousex" value="0"><input type="hidden" name="mousey" value="0">
<input type="hidden" name="login" value="1"><tr><td align="center" width="100%" height="100%">
<table align=center width=100% border=0 cellspacing=2 cellpadding=0>
<tr>
  <td align=right width=40%><font color="black">Mot de passe : </font></td>
  <td align=left width=60%> &nbsp; <input type="password" name="set_pwd" style="width:160;background-image:url(images/pass.gif);background-repeat:no-repeat; background-position:center right;"></td>
</tr><tr>
  <td align=right width=40%><font color="black">Skin : </font></td>
  <td align=left> &nbsp; <select name="set_sk" style="width:160;">
<? $zz=opendir("./skins");
while($d=readdir($zz)){ if($d!="."&&$d!="..") print("<option class=bg value=\"$d\""); if($skin_defaut==$d) print(" selected"); print(">$d</option>");}
if(@file_exists("modules/console.php")){ ?><option class=bg value="*console*">Console</option><? } ?></Select></td></tr>
<? if($supersecu){ ?><tr height=23><td colspan="2" align=center><b><font color="#330000">Le mode super-sécurité est actif !</font></b></td></tr><? } ?></table><br>
<input type="submit" value="Connection" style="background-color:#C0C0C0;color:#000000;width:150;" class="b" onMouseDown="this.className='bo';" onMouseUp="this.className='b';" onMouseOut="this.className='b';"> 
</td></form></tr></table>
</td><td background='images/ombre_1.gif' width="6" height="8"></td></tr>
<tr height="164"><td background='images/ombre_2.gif' width="6"></td></tr>
<tr height="8">
  <td background="images/ombre_3.gif" width="1%"></td>
  <td background="images/ombre_4.gif" width="98%"></td>
  <td background="images/ombre_5.gif" width="1%"></td>
</tr></table>
</td></tr></table>
</body>
</html>
<? exit();
}else if($login){ $pub=0;setCookie("pwd",$pwd);
for($i=0;$pubpass[$i];$i++) if($pwd==$pubpass[$i]){ $pubpass=$pubpass[$i]; $pubdir=$anonymous[$i]; $pub=1;}
if($set_sk=="*console*"&&$pub){die("<html><script>alert('Le mode console est réservé à l\\'accèes comlplet !');window.location.href='$PHP_SELF?logout=1&sup=E';</script></html>");}else{setCookie("sk",$set_sk); }
if($pub){ $rd="./modules/pub/index.php?sup=ok";  }elseif($set_sk=="*console*"&&!$pub){ $rd="./modules/console.php?sup=ok&text=&cmd=cls"; 
}else{ $rd="./index.php?sup=ok"; }?>
<html>
<script>window.location.href='<?=$rd."&rand=".rand(0,9999)?>';</script>
<body>
Si vous n'etes pas redirigé, cliquez <a href="<?=$rd?>">ici</a>
</body>
</html>
<? exit(); } ?>
<html><head><title>Redirection ...</title><script>window.location.href='./index.php?sup=ok';</script>
</head><body>Si vous n'etes pas redirigé, cliquez <a href="./index.php?sup=ok">ici</a></body></html>
Return current item: PHPExplorer