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/usuariosWeb/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /domains/logicswapweb/aplicaciones/admon/usuariosWeb/modUsuario.php
<?php
include('./../fnc/DBConnect.php');
include('./../fnc/componente.php');
include('./../fnc/parametro.php');
include('./../fnc/vinculo.php');
include('./../fnc/UsuarioPanel.php');
include('./../fnc/bitacora.php');
include('./../fnc/aplicacion.php');
include('./../fnc/panel.php');
include('./../fnc/utileria.php');
include('./fnc/usuarioWeb.php');
session_start('PanelAzulDigial');
if(!session_is_registered("panel")){
	echo "<div style=\"	font-family: Verdana, Arial, Helvetica, sans-serif;	color: #ff4455;	font-size: 16px;font-weight: bolder;\">User wrong</div>";
	echo "<div style=\"	font-family: Verdana, Arial, Helvetica, sans-serif;	color: #0066CC;	font-size: 16px;font-weight: bolder;\"><a href=\"../../index.php\" target=\"_top\">Start session again</a></div>";
	echo "<script>window.open('../../index.php','_top')</script>";
}else{
$seleccion = (array_key_exists('seleccion', $_REQUEST)) ? $_REQUEST['seleccion']: NULL;
$usuarioW = new UsuarioWeb();
$usuarioW->setFiles(2);

$panel->reactivarDB();
$user = $usuarioW->getUsuario("id",$seleccion);
if(!$user){
	$panel->mostrarMensaje($usuarioW->salida['msg']);
}
$userModificar = "";
$userEliminar = "";
$userAdicionar = "";

if($panel->usuario->tipo==3 && $panel->usuario->vinculo->modificar=="NO" && $panel->usuario->vinculo->administrador=="NO"){
	$userModificar = "disabled";
}
if($panel->usuario->tipo==3 && $panel->usuario->vinculo->eliminar=="NO" && $panel->usuario->vinculo->administrador=="NO"){
	$userEliminar= "disabled";
}
if($panel->usuario->tipo==3 && $panel->usuario->vinculo->adicionar=="NO" && $panel->usuario->vinculo->administrador=="NO"){
	$userAdicionar= "disabled";
}

$carpeta 		= $usuarioW->existeCarpetaAsignada($id_usuario=$seleccion);
$nameCarpeta	= $usuarioW->getNombreCaperta($id_usuario=$seleccion);

?>
<html>
<head>
<link href="css/panel2.css" rel="stylesheet" type="text/css">
<link href="css/panel2Contenido.css" rel="stylesheet" type="text/css">
<link href="css/scrollbar.css" rel="stylesheet" type="text/css">
<link href="css/scrollbar2.css" rel="stylesheet" type="text/css">
<script src="js/validaciones.js"></script>
<script> 
if (history.forward(1)){location.replace(history.forward(1))} 
</script> 

<script>
function mOvr(src,clrOver) {
	var elmts = document.getElementsByTagName("tr");
	elmts[src.id].style.cursor = 'hand';
	elmts[src.id].bgColor = clrOver;

}
function mOut(src,clrIn) {
	var elmts = document.getElementsByTagName("tr");
	elmts[src.id].style.cursor = 'default';
	elmts[src.id].bgColor = clrIn;
}
function mgOver(obj){
	var elm = document.getElementsByTagName("a");
	elm[obj.id].setAttribute("class","migasover");
}
function mgOut(obj){
	var elm = document.getElementsByTagName("a");
	elm[obj.id].setAttribute("class","migas");
}

function restringir(evt, ascii) //event
{
	var nav4 = window.Event ? true : false;
	var key = nav4 ? evt.which : evt.keyCode; 
	return (key!=ascii);
}

function habilitar(){
	document.getElementById("apli").style.display = "inline";
	document.getElementById("apli").style.visibility = "visible";
}

function deshabilitar(){
	document.getElementById("apli").style.visibility = "hidden";
	document.getElementById("apli").style.display = "none";	
}

function todos(ind,est){
	eval("document.frm.admin_"+ind+".checked="+est);
	eval("document.frm.adicionar_"+ind+".checked="+est);
	eval("document.frm.consultar_"+ind+".checked="+est);
	eval("document.frm.modificar_"+ind+".checked="+est);
	eval("document.frm.eliminar_"+ind+".checked="+est);
}

function selecciono(){
	var tipe = document.frm.tipo.options[document.frm.tipo.selectedIndex].value;
	if(tipe=="3"){
		apl = document.frm.cantidad.value;
		sal = 0;
		for(i=0;i<apl;i++){
			val1 = eval("document.frm.admin_"+i+".checked");
			val2 = eval("document.frm.adicionar_"+i+".checked");
			val3 = eval("document.frm.consultar_"+i+".checked");
			val4 = eval("document.frm.modificar_"+i+".checked");
			val5 = eval("document.frm.eliminar_"+i+".checked");
			if(val1||val2||val3||val4||val5){
				sal++;
			}
		}
		if( (sal>0&&document.frm.tipo.options[document.frm.tipo.selectedIndex].value==3) || (document.frm.tipo.options[document.frm.tipo.selectedIndex].value==2) ) {
			if(fncCheckFormRegistro(document.frm,0,1,2,3,5,6)){
				document.frm.submit();
			}
		}else{
			alert("Debe seleciconar por lo menos una aplicaci�n para disposicion de este usuario, dando un perfil de trabajo para el mismo!");	
			return false;
		}
	}else{
		if(fncCheckFormRegistro(document.frm,0,1,2,3,5,6)){
			document.frm.submit();
		}
	}
}

function valores(obj){
	var val = obj.options[obj.selectedIndex].value;
	if( val == 2){
		deshabilitar();
		return;
	}
	if( val == 3){
		habilitar();
		return;
	}
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

</script>
</head>
<body>
<form action="fnc/main.php?tarea=modUsuarioWebEstado" method="post" id="frm" name="frm" target="_self">
	<table width="610" border="0" align="left" cellpadding="2" cellspacing="2" class="toexto1">
    	<tr bgcolor="#cccccc">
    	    <td colspan="4" align="left"><div align="lleft" class="migas">
			<a id="migainicio" href="../contenido.php" class="migas" style="cursor:hand" title="Indice de Aplicaciones" onMouseOver="javascript: mgOver(this);" onMouseOut="javascript: mgOut(this);">Start</a> / <a id="migaindex" href="menu.php" class="migas" onMouseOver="javascript: mgOver(this);" onMouseOut="javascript: mgOut(this);"><?=ucfirst($panel->aplicativo->nombre)?></a> / <span class="migasactivo">Change User</span>
	        </div></td>
	    </tr>
    	<tr>
    	    <td colspan="4" align="left" class="texto1"><div align="left"></div></td>
	    </tr>
    	<tr class="texto1">
    		<td colspan="4" bgcolor="#000099">
				<table width="100%" cellspacing="0" border="0" bgcolor="#FFFFFF">
				  <tr valign="top" bgcolor="#000099" class="texto1">
				<td width="79"><span class="titular1"><a onClick="javascript: document.location.href= 'menu.php?seleccion=3'" title="Volver" style="cursor:hand; width:40"><img src="img/atras.gif" style="cursor:hand "></a></span></td>
				<td colspan="3"><span class="titular1"><strong>User Information </strong></span></td>
		  </tr>
			      <tr valign="top" class="texto1">
			        <td>&nbsp;</td>
			        <td colspan="3">&nbsp;</td>
		          </tr>
			      <tr valign="top" class="texto1">
			        
            <td><strong>First Name : </strong></td>
			        <td colspan="3"><?=ucfirst(strtolower($user['nombres']))?></td>
		          </tr>
			      <tr valign="top" class="texto1">
			  <td width="79"><div align="left"><strong>
				  
                <label for="nombre">Last  Name</label>
              </strong></div></td>
			  <td colspan="3"><div align="left"><?=ucfirst(strtolower($user['apellidos']))?>
					  <input name="apellidos" type="hidden" id="apellidos" value="<?=ucfirst(strtolower($user['apellidos']))?>" size="65" maxlength="100">
			  </div></td>
		  </tr>
			<tr valign="top" class="texto1">
				<td width="79"><div align="left"><strong>
					  <label for="nombre">E-mail</label>
			:</strong></div></td>
				<td colspan="3"><?=strtolower($user['email'])?>
						<input name="email" type="hidden" id="email"  onKeyDown="return restringir(event, 32);" value="<?=strtolower($user['email'])?>" size="65" maxlength="50"></td>
			</tr>
			<tr valign="top" class="texto1">
				<td><div align="left"><strong>
						  <label for="label">Login</label>
	:
	<label for="aplicacion"></label>
				</strong></div></td>
				<td><div align="left"><?=$user['login']?>
						<input name="login" type="hidden" id="login" onKeyDown="return restringir(event, 32);" value="<?=$user['login']?>" maxlength="50">
	</div></td>
			  <td><strong>
			    <label for="tipo">Status :</label>
&nbsp;&nbsp;&nbsp;&nbsp;</strong></td>
				<td><select name="estado" style="width:133">
				  <option value="activo" <? if($user['estado']=="activo"){echo "selected";}?>>ACTIVE</option>
				  <option value="bloqueado" <? if($user['estado']=="bloqueado"){echo "selected";}?>>BLOCKED</option>
				  <option value="eliminado" <? if($user['estado']=="eliminado"){echo "selected";}?>>DELETED</option>
				  <option value="preactivo" <? if($user['estado']=="preactivo"){echo "selected";}?>>PREACTIVE</option>
				  
				</select></td>
			</tr>
			<tr valign="top" class="texto1">
			  <td><div align="left"><strong>
                <label for="pwd1">Password</label>
		      :</strong></div></td>
			  <td><div align="left">
			    <?=$user['password']?>
                <input name="password" type="hidden" id="password" onKeyDown="return restringir(event, 32);" value="<?=$user['password']?>" maxlength="50">
              </div></td>
			  <td>&nbsp;</td>
			  <td>&nbsp;</td>
			  </tr>
			<tr valign="top" class="texto1">
				<td><strong>
				  <label>City: </label>
                </strong></td>
				<td width="161"><?=$user['ciudad']?>
			    <input name="ciudad" type="hidden" id="ciudad" onKeyDown="return restringir(event, 32);" value="<?=$user['ciudad']?>" maxlength="40"></td>
				<td width="97"><strong>Company Name</strong></td>
  <td width="182"><div align="left">&nbsp;&nbsp;&nbsp;<?=$user['empresa']?>
  <input name="password_" type="hidden" id="password_" onKeyDown="return restringir(event, 32);" value="<?=$user['password']?>" maxlength="50">
					</div></td>
			</tr>
			
			<tr class="texto1">
			  <td valign="top"><strong>
			    <label>Country : </label>
			  </strong></td>
			  <td><?=$user['pais']?>
		      <input name="pais" type="hidden" id="pais" onKeyDown="return restringir(event, 32);" value="<?=$user['pais']?>" maxlength="40"></td>
			  <td valign="top"><strong>
			    <label>Company Phone No.: </label>
			  </strong></td>
			  <td>&nbsp;&nbsp;&nbsp;<?=$user['telefono_fijo']?><input name="telefono_fijo" type="hidden" id="telefono_fijo" onKeyDown="return restringir(event, 32);" value="<?=$user['telefono_fijo']?>" maxlength="10"></td>
		  </tr>
			<tr class="texto1">
			  <td valign="top"><strong>
			    Created on:
		        <label></label>
			  </strong></td>
			  <td><?=$usuarioW->util->fecha($user['fecha_ing'])?></td>
			  <td valign="top"><strong>
			    <label>Mobile No.: </label>
			  </strong></td>
			  <td>&nbsp;&nbsp;&nbsp;<?=$user['telefono_movil']?><input name="telefono_movil" type="hidden" id="telefono_movil" onKeyDown="return restringir(event, 32);" value="<?=$user['telefono_movil']?>" maxlength="12"></td>
		  </tr>
			<tr class="texto1">
			  <td valign="top"><strong>Updated on:</strong></td>
			  <td colspan="3"><?
			  	if($user['fecha_nmto']!='0000-00-00'){
					echo $usuarioW->util->fecha($user['fecha_nmto']);
				}
			  	
			  ?></td>
			  </tr>
			<tr class="texto1">
			  <td valign="top">&nbsp;</td>
			  <td colspan="3"><input type="hidden" name="seleccion" value="<?=$user['id']?>">
		      <input name="lastEstado" type="hidden" id="lastEstado" value="todos"></td>
		  </tr>
			<tr class="texto1">
			  <td colspan="4" valign="top"><strong>Space to files (FTP) : </strong></td>
			  </tr>
			<tr class="texto1">
			  <td colspan="4" valign="top">
			  <?
			  	if (!$carpeta){?>
                <input name="Submit22" type="button" class="boton2" onClick="MM_openBrWindow('addCarpeta.php?id_usuario=<?=$seleccion?>','addCarpeta','width=20,height=20')" value="Create Space FTP for this User">
				<? }else{ echo "<div class='boton5'>Space FTP assigned: <br> <span class='texto1'>".$nameCarpeta."</span></div>"; } ?>			  </td>
			  </tr>
			<tr class="texto1">
			  <td colspan="4" valign="top"><div align="center">
		      </div></td>
			  </tr>
		</table>
	</td>
   		</tr>
	<tr>
		<td><div align="center">
		  <input name="Submit" type="submit" class="boton1" value="Chage Status" <?=$userModificar?>>
		  &nbsp;
  		  <input name="Submit" type="button" class="boton1" onClick="javascript:document.location.href = 'menu.php'" value="Go Back" <?=$userModificar?>>
&nbsp;
		</div></td>
	</tr>
  </table>
 </form>
</body>
</html>
<? }?>

Anon7 - 2021