KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.62
System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64
User : www ( 80)
PHP Version : 8.3.8
Disable Function : NONE
Directory :  /domains/logicswapweb/aplicaciones/admon/clientes/fnc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /domains/logicswapweb/aplicaciones/admon/clientes/fnc/main.php
<?php session_start();
$tarea = (array_key_exists('tarea', $_REQUEST)) ? $_REQUEST['tarea']: NULL;
$nombre= (array_key_exists('nombre', $_REQUEST)) ? $_REQUEST['nombre']: NULL;
$apellido= (array_key_exists('apellido', $_REQUEST)) ? $_REQUEST['apellido']: NULL;
$email= (array_key_exists('email', $_REQUEST)) ? $_REQUEST['email']: NULL;
$to= (array_key_exists('to', $_REQUEST)) ? $_REQUEST['to']: NULL;
$mensaje= (array_key_exists('mensaje', $_REQUEST)) ? $_REQUEST['mensaje']: NULL;
$sujeto= (array_key_exists('sujeto', $_REQUEST)) ? $_REQUEST['sujeto']: NULL;
$empresa= (array_key_exists('empresa', $_REQUEST)) ? $_REQUEST['empresa']: NULL;
$ciudad= (array_key_exists('ciudad', $_REQUEST)) ? $_REQUEST['ciudad']: NULL;
$telefono= (array_key_exists('telefono', $_REQUEST)) ? $_REQUEST['telefono']: NULL;
$pais= (array_key_exists('pais', $_REQUEST)) ? $_REQUEST['pais']: NULL;
$direccion= (array_key_exists('direccion', $_REQUEST)) ? $_REQUEST['direccion']: NULL;
$preferencias= (array_key_exists('preferencias', $_REQUEST)) ? $_REQUEST['preferencias']: NULL;
$pagina=(array_key_exists('pagina', $_REQUEST)) ? $_REQUEST['pagina']: NULL;
$cliente=(array_key_exists('cliente', $_REQUEST)) ? $_REQUEST['cliente']: NULL;

$dia= (array_key_exists('dia', $_REQUEST)) ? $_REQUEST['dia']: NULL;
$mes= (array_key_exists('mes', $_REQUEST)) ? $_REQUEST['mes']: NULL;
$anio= (array_key_exists('anio', $_REQUEST)) ? $_REQUEST['anio']: NULL;
$fecha_nmto = $anio."-".$mes."-".$dia;
if(!$anio){
	$fecha_nmto="0000-00-00";
}

include('cliente.php');
$usuario = new Cliente();

	switch($tarea){
		case "mod_cliente":
			$response = $usuario->mod_cliente($nombres, $apellidos, $email, $fecha_nmto, $direccion, $ciudad, $pais, $telefono,$cliente);
			$msg=$response['msg'];
			if($response['resul']){
				echo "<script>alert(\"www.joseordonez.net.\\n$msg\");</script>";
				echo "<script>parent.location.href=\"../index.php?ini_line=$pagina\";</script>";
			}else{
			$out="Imposibilidad de Modificar el usuario!!!\\nerror:: ";
			$out.=$msg;
			echo "<script>alert(\"$out\");</script>";
			}
		break;
		case "eli_cliente":
			$response = $usuario->eli_cliente($cliente);
			$msg=$response['msg'];
			if($response['resul']){
				echo "<script>alert(\"www.joseordonez.net.\\n$msg\");</script>";
				echo "<script>parent.location.href=\"../index.php?ini_line=$pagina\";</script>";
			}else{
			$out="Imposibilidad de eliminar el usuario!!!\\nerror:: ";
			$out.=$msg;
			echo "<script>alert(\"$out\");</script>";
			}
		break;
	
	default:
		$msg= trim($usuario->get_error("[002]"));
		echo "<script>alert(\"$msg\");</script>";

	}//nd_switch
?>

Anon7 - 2021