Sh3ll



Directory :  /home/zjabogados/public_html/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

Current File : /home/zjabogados/public_html/home.php
<?php 
session_start();

//ini_set('display_errors', 0);
//error_reporting(~E_ALL);

/*
$errLvl = error_reporting();
for ($i = 0; $i < 15;  $i++ ) {
    print FriendlyErrorType($errLvl & pow(2, $i)) . "<br>\\n";
}

function FriendlyErrorType($type)
{
    switch($type)
    {
        case E_ERROR: // 1 //
            return 'E_ERROR';
        case E_WARNING: // 2 //
            return 'E_WARNING';
        case E_PARSE: // 4 //
            return 'E_PARSE';
        case E_NOTICE: // 8 //
            return 'E_NOTICE';
        case E_CORE_ERROR: // 16 //
            return 'E_CORE_ERROR';
        case E_CORE_WARNING: // 32 //
            return 'E_CORE_WARNING';
        case E_COMPILE_ERROR: // 64 //
            return 'E_COMPILE_ERROR';
        case E_COMPILE_WARNING: // 128 //
            return 'E_COMPILE_WARNING';
        case E_USER_ERROR: // 256 //
            return 'E_USER_ERROR';
        case E_USER_WARNING: // 512 //
            return 'E_USER_WARNING';
        case E_USER_NOTICE: // 1024 //
            return 'E_USER_NOTICE';
        case E_STRICT: // 2048 //
            return 'E_STRICT';
        case E_RECOVERABLE_ERROR: // 4096 //
            return 'E_RECOVERABLE_ERROR';
        case E_DEPRECATED: // 8192 //
            return 'E_DEPRECATED';
        case E_USER_DEPRECATED: // 16384 //
            return 'E_USER_DEPRECATED';
    }
    return "";
}

*/

$motorBD = $_SESSION['motorBD'];


require_once("../Connections/$motorBD.php"); 
require_once("Libs/classdata$motorBD.php"); 

require_once("Libs/functionsquerys.php"); 
require_once("Libs/functionsextra.php"); 

if (isset($_GET['usuario'])) {
	$usuario = sql_quote($_GET['usuario']);
	$clave = md5(sql_quote($_GET['clave']));
	}
else {
	$usuario = sql_quote($_POST['usuario']);
	$clave = md5(sql_quote($_POST['clave']));
	}

$codigo_captcha = sql_quote($_POST['codigo']);
if (strtolower($_SESSION['tmptxt']) == strtolower($codigo_captcha) or ($_SERVER['SERVER_ADDR'] == $_SERVER['REMOTE_ADDR'])) {

	$MGMData_Usuarios = RSUserLoguin($usuario, $clave);
	
	if ($MGMData_Usuarios->cant_rows <> 1) {
		?>				
		<script language="javascript">
		location = 'login.php?e=x';
		</script>	
		<?php
		}
		
	else {
	
		$MGMData_Usuarios->Next();

		$_SESSION['idusuario'] = $MGMData_Usuarios->row[0];

		if ($_SERVER['SERVER_ADDR'] == $_SERVER['REMOTE_ADDR']) {	
			$_SESSION['path_mgm'] = 'http://localhost/zyz/public_html/manager/';
			$_SESSION['path_files'] = 'http://localhost/zyz/public_html/manager/files/bd/';
			}
		else {
			$_SESSION['path_mgm'] = 'http://www.zjabogados.com.ar/manager/';
			$_SESSION['path_files'] = 'http://www.zjabogados.com.ar/manager/files/bd/';
			}


		
		$MGMData_Usuarios->Close();	
	 ?>
	 
	 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
	<html>
	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
	<title>MULTI GENERATOR MANAGER (MGM)</title>
	</head>
	
	<frameset rows="118,*" cols="*" frameborder="NO" border="0" framespacing="0">
	  <frame src="superior.php" name="topFrame" scrolling="NO" noresize >
	  <frameset rows="*" cols="240,*" framespacing="0" frameborder="NO" border="0">
		<frame src="menu.php" name="mainFrame" scrolling="YES" noresize>
		<frame src="conte.php" name="rightFrame">
	  </frameset>
	</frameset>
	<noframes><body>
	</body></noframes>
	</html>
	
	<?php
		}
	}
else {
	?>				
	<script language="javascript">
	location = 'login.php?e=c';
	</script>	
	<?php
}

?>		


Sh3LL