|
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/ |
Upload File : |
<?php
include('./aplicaciones/admon/fnc/DBConnect.php');
include('./aplicaciones/admon/fnc/componente.php');
include('./aplicaciones/admon/fnc/parametro.php');
include('./aplicaciones/admon/fnc/utileria.php');
include('./aplicaciones/admon/fnc/bitacora.php');
include('./aplicaciones/admon/fnc/aplicacion.php');
include('./aplicaciones/admon/newsletter/fnc/newsletter.php');
include('./aplicaciones/admon/usuariosWeb/fnc/usuarioWeb.php');
include('./aplicaciones/admon/noticias/fnc/noticia.php');
session_start('web_demo');
$avail_contact=true;
session_register('avail_contact');
$avail_contact=true;
$newsletter = new Newsletter();
$newsletter->setFiles(6);
$usuarioW = new UsuarioWeb();
$usuarioW->setFiles(6);
$usuario = new UsuarioWeb();
$usuario->setFiles(6);
$contenido = new Noticia();
$contenido->setFiles(6);
$bitacora = new BitacoraPanel();
$bitacora->setFiles(6);
$seleccion = (array_key_exists('seleccion',$_REQUEST))? $_REQUEST['seleccion']:NULL;
$tarea = (array_key_exists('tarea',$_REQUEST))? $_REQUEST['tarea']:NULL;
$scriptFile = $usuario->util->pathFile(false);
$scriptFile .="actRegistro.php";
if($tarea=="actSubscripcion"){
$newsletter->modVinculoWeb($seleccion,"activo","sitio web");
//$mensaje = $newsletter->salida['msg'];
$inf = explode("|",$seleccion);
$user=$usuario->getUsuario("email",$inf[1]);
$mensaje = "Your username: ".$user['login']." has been activated.";
$usuarioW->modUsuarioWebEstado('activo', $user['id'], $nApli=3);
$usuarioW->add_carpeta2($id_usuario=$user['id']); //Asignacion automatica de espacio FTP, despues que confirma el registro.
$dt=$usuario->util->mascara($user['password']);
$enlace = "actRegistro.php?email=".$inf[1]."&data=".$dt;
}
if($tarea=="delSubscripcion"){
$newsletter->delSubscripcion($seleccion,"sitio web");
$mensaje = $newsletter->salida['msg'];
}
if($tarea=="delUsuarioWeb"){
//$seleccion = id|email|data
$inf = explode("|",$seleccion);
$user=$usuario->getUsuario("email",$inf[1]);
//Envio de un mail notificando que fue eliminado; con la opcion de re-activacion.
$plantilla ="aplicaciones/admon/newsletter/fnc/frmUnRegInfo.htm";
$newsletter->sendUnsuscripcion($user['email'], $id=$inf[0], $plantilla, $login = $user['login']);
$dt=$usuario->util->mascara($user['password']);
if($clave=="13acNts"){
if($usuario->modUsuarioWebEstado($est="eliminado",$user["id"],$nApli=3)){
//if($usuario->delUsuarioWeb($inf[0],"Sitio Web")){
$ms = $usuario->salida['msg'].$inf[1];
$bitacora->regOperacion("Usuarios Web","delUsuarioWeb($seleccion)",$usuario->salida['msg'],"Sitio Web");
$idn = $newsletter->getIdaplicacion("newsletter");//||temporalmente
$idv = $newsletter->getIdVinculoWeb($inf[0],$idn);//||temporalmente
$newsletter->delSubscripcion($idv."|".$inf[1],"Sitio Web");
//$catalogo->delSubscripcion($idv."|".$inf[1],"Sitio Web");
$mn = $newsletter->salida['msg'];
//$mensaje = $ms."<br>".$mn;
$mensaje = "Your username: ".$user['login']." has been deleted.";
}else{
$bitacora->regOperacion("Sitio Web","usuario->delUsuarioWeb($seleccion)",$usuario->salida['msg'],"Sitio Web");
$mensaje = $usuario->salida['msg'];
}
}else{
$mensaje = $newsletter->getMensaje("[141]","confirmacion");
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script src="js/validaciones.js" language="javascript"></script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>LogicSwap</title>
<style type="text/css">
<!--
@import url("main.css");
body {
background-color: #999999;
margin-top: 0px;
margin-bottom: 0px;
background-image: url(images/bkg.jpg);
}
.tble_outline {
border: 2px solid #000000;
}
a:link {
color: #000000;
}
a:visited {
color: #000000;
}
.tbleoutlinetable {
border: thin solid #D9EBF7;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
}
a:hover {
color: #333333;
}
.style34 {
color: #000000;
font-weight: bold;
}
.style38 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #000000; font-weight: bold; }
#Layer1 { position:absolute;
width:200px;
height:26px;
z-index:1;
left: 319px;
top: 174px;
}
-->
</style>
<script type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
</head>
<body onload="MM_preloadImages('btns_r1_c3.jpg','buttons/btns_r2_c3.jpg','buttons/btns_r11c3.jpg','buttons/btns_r2_cm.jpg','buttons/btns_r3_cm.jpg','buttons/btns_r4_cm.jpg','buttons/btns_r1_cm.jpg','buttons/btns_r6_c8.jpg','buttons/btns_r7_c9.jpg')">
<div id="Layer1" class="letra_blanca">
<? if (session_is_registered('carrito')){ echo 'You are Logged In. <a href="fnc/main.php?tarea=salir" targer="_self" >Logout</a>';}else{ echo '<a href="downloads.php" targer="_self" class="letra_blanca" >Log In</a>';}?>
</div>
<!-- Copyright � 2005. Spidersoft Ltd -->
<style>
A.applink:hover {border: 2px dotted #DCE6F4;padding:2px;background-color:#ffff00;color:green;text-decoration:none}
A.applink {border: 2px dotted #DCE6F4;padding:2px;color:#2F5BFF;background:transparent;text-decoration:none}
A.info {color:#2F5BFF;background:transparent;text-decoration:none}
A.info:hover {color:green;background:transparent;text-decoration:underline}
</style>
<!-- /Copyright � 2005. Spidersoft Ltd -->
<table width="804" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#000000" class="tble_outline">
<tr>
<td width="800" height="1601"><table width="800" height="685" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="800" height="85"><img src="logicwap_header2.jpg" width="800" height="145" /></td>
</tr>
<? require ('menu.php');?>
<tr>
<td height="83" bgcolor="#FFFFFF"><img src="topmid.jpg" width="800" height="83" /></td>
</tr>
<tr>
<td valign="top" height="325" bgcolor="#FFFFFF"><table width="715" height="1241" border="0" align="center" cellpadding="5" cellspacing="0" class="maintxt">
<tr>
<th width="705" height="1241" valign="top" scope="col"><div align="justify" class="maintxt"><span class="style34"><?=$mensaje?></span><br />
</div>
<p> </p>
</th>
</tr>
</table></td>
</tr>
<tr>
<? require ('menu_footer.php');?>
</tr>
</table></td>
</tr>
</table>
</body>
</html>