milfs/index.php

347 lines
13 KiB
PHP
Raw Permalink Normal View History

2018-10-21 17:48:02 +00:00
<?php session_start();
$timestamp=time();
setcookie("timestamp",$timestamp,($timestamp + 5000));
$_SESSION['timestamp']= $timestamp;
if($_SESSION['grupo'] != "administrador") {
// header("Location: ../");
}
if(isset($_REQUEST['debug'])) {ini_set('display_errors', 'On');}
require ('xajax/xajax.inc.php');
2015-11-28 03:24:32 +00:00
$xajax = new xajax();
//$xajax = new xajax("https://tupale.co/milfs/index.php");
2018-11-29 15:06:17 +00:00
include ('librerias/parsedown/Parsedown.php');
require ('funciones/funciones.php');
2015-11-28 03:24:32 +00:00
//require ('funciones/convert.php');
require ('funciones/login.php');
require ("includes/markdown.php");
require ("includes/simple_html_dom.php");
require ("funciones/conex.php");
2015-11-28 03:24:32 +00:00
2018-10-15 02:31:13 +00:00
$xajax->processRequests();
2015-11-28 03:24:32 +00:00
$embebido =0;
2018-11-29 15:06:17 +00:00
if (isset($_REQUEST['form'])) {
$form = $_REQUEST['form'];
2018-10-15 02:31:13 +00:00
$opciones["formato"]= $_REQUEST['formato'];
} else {$form = "";}
if($form !='') {$embebido = 1;}
if (isset($_REQUEST['identificador'])) {$identificador = $_REQUEST['identificador'];} else {$identificador = "";}
if($identificador !='') {$embebido = 1;}
if (isset($_REQUEST['id'])) {$id = $_REQUEST['id'];} else {$id = "";}
if (isset($_REQUEST['campo'])) {$campo = $_REQUEST['campo'];} else {$campo = "";}
if (isset($_REQUEST['consulta'])) {$consulta = $_REQUEST['consulta'];} else {$consulta = "";}
if (isset($_REQUEST['t'])) {$t = $_REQUEST['t'];} else {$t = "";}
2015-11-28 03:24:32 +00:00
?>
2014-12-18 13:49:18 +00:00
<!DOCTYPE html>
2019-02-19 10:46:49 +00:00
<html lang="es">
2014-12-18 13:49:18 +00:00
<head >
<meta charset="utf-8">
<meta name="viewport" content="user-scalable=no, width=device-width, maximum-scale=1, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
2015-11-28 03:24:32 +00:00
<meta name="description" content="">
2018-10-15 02:31:13 +00:00
<?php
2019-04-01 19:55:30 +00:00
2015-11-28 03:24:32 +00:00
?>
<link rel="shortcut icon" href="favicon-152.png">
<link rel="apple-touch-icon-precomposed" href="favicon-152.png">
<!-- <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha256-k2/8zcNbxVIh5mnQ52A0r3a6jAgMGxFJFE2707UxGCk= sha512-ZV9KawG2Legkwp3nAlxLIVFudTauWuBpC10uEafMHYL0Sarrz5A7G79kXh5+5+woxQ5HM559XX2UZjMJ36Wplg==" crossorigin="anonymous"> -->
2018-10-15 02:31:13 +00:00
<?php if($form !='') {
//echo "<link href='css/embebidoXXX.css' rel='stylesheet'>";
2018-10-15 02:31:13 +00:00
}else{
//echo "<link href='css/estilos.php?dd' rel='stylesheet'>";
2019-04-01 19:55:30 +00:00
}
$xajax->printJavascript("xajax/");
// $xajax->debugOn();
//$xajax->statusMessagesOn();
if(!isset($_REQUEST['experimental'])){
$bootstrap= "
<script
src='https://code.jquery.com/jquery-3.3.1.min.js'
integrity='sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8='
crossorigin='anonymous'></script>
<script src='https://code.jquery.com/jquery-3.3.1.slim.min.js' integrity='sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo' crossorigin='anonymous'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js' integrity='sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1' crossorigin='anonymous'></script>
<script src='https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js' integrity='sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM' crossorigin='anonymous'></script>
<link rel='stylesheet' href='https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css' integrity='sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T' crossorigin='anonymous'>
<link href='https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css' rel='stylesheet'>
";
}else{
$bootstrap="
<script src='../librerias/jquery/jquery-2.1.4.min.js'></script>
<script src='../librerias/bootstrap/js/bootstrap.min.js'></script>
<link href='../librerias/bootstrap/css/bootstrap.min.css' rel='stylesheet' type='text/css'>
";
}
echo $bootstrap; ?>
<link rel="stylesheet" type="text/css" media="screen" href="css/milfs.css">
2019-04-01 19:55:30 +00:00
<link rel="stylesheet" type="text/css" media="screen" href="css/bootstrap-markdown.css">
<link rel="stylesheet" type="text/css" media="screen" href="css/bootstrap-markdown.min.css">
2014-12-18 13:49:18 +00:00
2015-11-28 03:24:32 +00:00
<style>
#map {width: 500px;height:200px;}
2018-10-15 02:31:13 +00:00
2015-11-28 03:24:32 +00:00
</style>
2015-11-28 00:51:14 +00:00
2015-11-28 03:24:32 +00:00
<title>I<3MILFS</title>
2015-11-28 00:51:14 +00:00
2015-11-28 03:24:32 +00:00
<?php
2015-11-28 00:51:14 +00:00
if($id !=''){$onload ="<script type=\"text/javascript\"> xajax_formulario_listado('','contenido','$id')</script>";}
elseif($campo !=''){$onload ="<script type=\"text/javascript\"> xajax_formulario_crear_campo('','$campo','contenido')</script>";}
elseif($consulta !=''){$onload ="<script type=\"text/javascript\"> xajax_consultar_formulario('$consulta','','','modal')</script>";}
else{}
2018-10-15 02:31:13 +00:00
if( isset($_REQUEST['psi'])){$onload ="<script type=\"text/javascript\"> xajax_mostrar_psi()</script>";}
2015-11-28 03:24:32 +00:00
?>
2015-11-28 03:24:32 +00:00
<!-- <script src="js/jquery.min.js"></script>
<script src="js/bootstrap.js"></script> -->
<!-- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> -->
<script src="js/jquery-2.1.4.min.js"></script>
2018-10-15 02:31:13 +00:00
<!-- UPLOAD -->
<script src="plugins/upload/js/vendor/jquery.ui.widget.js"></script>
<script src="plugins/upload/js/jquery.iframe-transport.js"></script>
<script src="plugins/upload/js/jquery.fileupload.js"></script>
<!-- The Load Image plugin is included for the preview images and image resizing functionality -->
<script src="plugins/upload/js/load-image.all.min.js"></script>
<!-- The Canvas to Blob plugin is included for image resizing functionality -->
<script src="plugins/upload/js/canvas-to-blob.min.js"></script>
<script src="plugins/upload/js/jquery.fileupload-process.js"></script>
2018-10-15 02:31:13 +00:00
<script src="plugins/upload/js/jquery.fileupload-image.js"></script>
<script src="plugins/upload/js/jquery.fileupload-audio.js"></script>
<script src="plugins/upload/js/jquery.fileupload-video.js"></script>
<script src="plugins/upload/js/jquery.fileupload-validate.js"></script>
<link rel="stylesheet" href="plugins/upload/css/jquery.fileupload.css">
<!-- <link rel="stylesheet" href="plugins/upload/css/style.css"> -->
<!-- JavaScript used to call the fileupload widget to upload files -->
2018-10-15 02:31:13 +00:00
<!-- UPLOAD -->
<!-- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script> -->
<script src="../librerias/bootstrap/js/bootstrap.min.js" ></script>
2015-11-28 03:24:32 +00:00
<script src="js/markdown.js"></script>
<script src="js/to-markdown.js"></script>
<script src="js/bootstrap-markdown.js"></script>
<script src="js/scripts.js"></script>
2018-10-15 02:31:13 +00:00
<!-- include codemirror (codemirror.css, codemirror.js, xml.js, formatting.js) -->
<link rel="stylesheet" type="text/css" href="../librerias/codemirror/codemirror.css">
<link rel="stylesheet" type="text/css" href="../librerias/codemirror/monokai.css">
<script type="text/javascript" src="../librerias/codemirror/codemirror.js"></script>
<script type="text/javascript" src="../librerias/codemirror/xml.js"></script>
<script type="text/javascript" src="../librerias/codemirror/formatting.js"></script>
<!-- wysiwyg -->
<script src="../librerias/summernote/summernote.js"></script>
<!-- include summernote css/js-->
<link href="../librerias/summernote/summernote.css" rel="stylesheet">
2015-11-28 03:24:32 +00:00
<script type="text/javascript">
2018-10-15 02:31:13 +00:00
2015-11-28 03:24:32 +00:00
//Recoger elemento arrastrable//
function evdragstart(ev,el) { //ev= el evento, el=elemento arrastrado.
cont1=el.parentNode; //guardamos el elemento padre del elemento en una variable.
2018-10-15 02:31:13 +00:00
ev.dataTransfer.setData("text",ev.target.id); //guardamos datos del elemento.
2015-11-28 03:24:32 +00:00
}
//mientras se arrastra:
function evdragover (ev) { //ev=el evento.
ev.preventDefault(); //quitar comportamiento por defecto.
}
//Al soltar el elemento arrastrado
function evdrop(ev,el) { //ev=el evento; el=receptor de soltado
2018-10-15 02:31:13 +00:00
ev.stopPropagation(); //impedir otras acciones
2015-11-28 03:24:32 +00:00
ev.preventDefault(); //quitar comportamiento por defecto
var data=ev.dataTransfer.getData("text"); //recogemos datos del elemento
mielem=ev.target.appendChild(document.getElementById(data)); //obtenemos el elemento arrastrado
cont1.appendChild(mielem); //ponemos el elemento arrastrado en el mismo sitio donde estaba.
mielem2=mielem.cloneNode(true); //creamos una copia del elemento arrastrado.
mielem2.setAttribute("draggable","false"); //impedimos que el nuevo elemento pueda volver a arrastrarse
el.appendChild(mielem2); //colocamos la copia en el receptor de soltado
}
</script>
<style>
fieldset.fieldset-borde {
border: 2px solid #EDEDED !important;
border-radius:3px;
padding: 0 1.4em 1.4em 1.4em !important;
margin: 0 0 1.5em 0 !important;
-webkit-box-shadow: 0px 0px 0px 0px #000;
box-shadow: 0px 0px 0px 0px #000;
}
legend.legend-area {
font-size: 1.2em !important;
font-weight: bold !important;
text-align: left !important;
width:auto;
padding:0 10px;
border-bottom:none;
}
.modal-dialog {
2018-10-15 02:31:13 +00:00
width: 95% !important;
height: auto;
padding: 0;
}
.modal-lg {
2018-10-15 02:31:13 +00:00
width: 95% !important;
height: auto;
padding: 0;
}
.modal-content {
height: auto;
}
.modal-body {
max-height: calc(100vh - 220px);
overflow-y: auto;
}
</style>
2014-12-18 13:49:18 +00:00
</head>
2018-10-21 17:48:02 +00:00
<body onload="revisarSession()"; >
<?php if($embebido ==1) {
if($form!=''){ echo formulario_embebido($form,$opciones);}
elseif($identificador !='') { echo mostrar_identificador($identificador,$id);}
//elseif($_REQUEST['psi'] !='') { include("psi.php") ; echo $aviso;}
else{}
}else{
?>
2015-11-28 03:24:32 +00:00
<?php echo @$onload; ?>
2018-10-15 02:31:13 +00:00
<?php
if ( isset ( $_SESSION['id'] ) ) { ?>
2019-04-01 19:55:30 +00:00
<nav class="navbar navbar-expand-lg navbar-dark bg-dark " id="barra_milfs" role="navigation">
<a class="navbar-brand" href="#"><img src="favicon-152.png" style="width:60px" alt="MILFS" title="Multi Interactive Light Form System"></a>
<button type="button" class="navbar-toggler" data-toggle="collapse" data-target="#navbar-collapse">
<span class="navbar-toggler-icon"></span>
2015-11-28 03:24:32 +00:00
</button>
2019-04-01 19:55:30 +00:00
2015-11-28 00:51:14 +00:00
2015-11-28 03:24:32 +00:00
<?php echo milfs() ?>
2019-04-01 19:55:30 +00:00
</nav>
2018-10-15 02:31:13 +00:00
<?php }else{ } ?>
2015-11-28 03:24:32 +00:00
<div id='debug'></div>
<div class='container' id='contenedor_principal'>
2015-11-28 03:24:32 +00:00
<div id='contenido'>
2018-10-08 17:38:35 +00:00
<div class='row'>
<div id='' class='col-sm-6'>
<?php if(isset($_SESSION['id'])){ echo "
<form id='manejo_sesion' name='form_session' class='navbar-form navbar-left'>
<div class='input-group'>
<input type='text' name='tiempo_session' size='18' class='form-control input-sm' readonly>
<span class='input-group-addon'><a href='#' onclick=\"location.reload();\" title='Renovar'><span class='glyphicon glyphicon-refresh' aria-hidden='true'></span></a></span>
</div>
</form> "; } ?>
2018-10-15 02:31:13 +00:00
<?php
///echo adjuntar_basico('33');
if(!isset($_SESSION['id_empresa'])) {$id_empresa_portada='1';} else{$id_empresa_portada = $_SESSION['id_empresa'];}
$encabezado = empresa_datos("$id_empresa_portada",'encabezado');
2018-10-15 02:31:13 +00:00
$pie = empresa_datos("$id_empresa_portada",'pie');
2018-10-15 02:31:13 +00:00
echo "$encabezado";
//if(isset($_SESSION['id_empresa'])) {$id_empresa_portada='1'; echo panel_aplicaciones('1',"");}
echo " </div>
<div id='div_login' class='col-xs-12 col-sm-6'>";
if(isset($_REQUEST['change'])){
echo cambiar_password_formato("$_REQUEST[change]");
}
revisar_ingreso('');
echo "</div>";
echo $pie; ?>
2015-11-28 03:24:32 +00:00
<img class='img-responsive center-block' src="images/logo.png" alt="MILFS">
</div>
2018-10-08 17:38:35 +00:00
</div>
2014-12-18 13:49:18 +00:00
2015-11-28 00:51:14 +00:00
2014-12-18 13:49:18 +00:00
<!-- Modal -->
<div class='modal fade ' id='muestraInfo' tabindex='-1' role='dialog' aria-labelledby='myModalLabel' aria-hidden='true'>
2015-11-28 03:24:32 +00:00
<div class='modal-dialog' >
2014-12-18 13:49:18 +00:00
<div class='modal-content'>
2015-11-28 03:24:32 +00:00
<button type='button' class='close' data-dismiss='modal' aria-hidden='true'><i class='fa fa-times-circle'></i></button>
2014-12-18 13:49:18 +00:00
<div class='modal-header' >
2018-10-15 02:31:13 +00:00
2014-12-18 13:49:18 +00:00
<h4 class='modal-title' id='myModalLabel_info'><div id='titulo_modal'></div></h4>
</div>
<div class='modal-body'>
<?php include("psi.php") ;?>
2014-12-18 13:49:18 +00:00
<div id='muestra_form'></div>
</div>
<div class='modal-footer' id='pie_modal'>
2018-10-15 02:31:13 +00:00
2014-12-18 13:49:18 +00:00
</div>
</div>
</div>
</div>
2015-11-28 03:24:32 +00:00
</div>
<div class="">
<div class="container">
<a href='http://QWERTY.co/milfs'>&copy; MILFS Un proyecto de http://QWERTY.co</a> Se distribuye bajo licencia GPL V3
<a href="?psi" target="_psi"><i class="fa fa-smile-o "></i> Políticas de privacidad y protección de datos.</a>
2018-10-15 02:31:13 +00:00
</div>
2015-11-28 03:24:32 +00:00
</div>
<?php } ?>
<script type="text/javascript">
2018-10-15 02:31:13 +00:00
$(document).delegate('*[data-toggle="lightbox"]', 'click', function(event) {
event.preventDefault();
$(this).ekkoLightbox();
2018-10-15 02:31:13 +00:00
});
//// wysiwyg
var edit = function() {
$('.wysiwyg').summernote({height: 250, codemirror: { theme: 'default' },dialogsInBody: true});
};
var save = function() {
var makrup = $('.wysiwyg').summernote('code');
$('.wysiwyg').summernote('destroy');
};
$(document).ready(function() {
$('.wysiwyg_auto').summernote({dialogsInBody: true});
});
2015-11-28 03:24:32 +00:00
</script>
2014-12-18 13:49:18 +00:00
</body>
</html>