tupali_fork/index.php

1026 lines
35 KiB
PHP
Raw Normal View History

2016-11-24 14:35:37 +00:00
<?php session_start();
2016-10-29 15:07:15 +00:00
//ini_set('display_errors', 'On');
2016-11-24 14:35:37 +00:00
if(isset($_REQUEST['debug'])) {ini_set('display_errors', 'On');}
2016-10-29 15:07:15 +00:00
require ('milfs/xajax/xajax.inc.php');
//$xajax = new xajax();
$xajax = new xajax("");
//$xajax = new xajax("https://tupale.co/index.php");
require ("milfs/funciones/conex.php");
2016-11-26 14:27:01 +00:00
require ('milfs/funciones/funciones.php');
include ('milfs/addon/funciones.php');
require ("milfs/includes/markdown.php");
require ("milfs/includes/parametrizacion.php");
require ("milfs/includes/simple_html_dom.php");
2016-10-29 15:07:15 +00:00
$xajax->processRequests(); ?>
<!DOCTYPE html>
<html lang="en">
<head >
<meta http-equiv="Cache-control" content="public">
<meta charset="ISO-8859-1">
<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">
<!-- Chrome, Firefox OS y Opera -->
2016-11-24 14:35:37 +00:00
<?php
2016-10-29 15:07:15 +00:00
$embebido =0;
$acceso = 0;
$onload="";
$menu_lateral="";
$id_empresa="";
$link_empresa="";
$razon_social="";
$opciones="";
$background_imagen = "";
$titulo = array();
$sigla = "";
$slogan[] = "";
$uri_set = "";
$uri = "";
$set = "";
$descripcion_meta ="";
$identificador = "";
if(isset($_REQUEST['v'])) {
$variable = $_REQUEST['v'];
}else { $variable="";}
$cols_interior ="12";
$menu="";
$orden="";
$cantidad_registros ="10";
/// e = EMPRESA *
/// s= SET DE DATOS *
/// S= SET DE DATOS EMBEBIDO
/// i= IDENTIFICADOR *
/// I= IDENTIFICADOR EMBEBIDO*
/// d= IDENTIFICADOR EDITABLE *
/// f= FORMULARIO *
/// g=FORMULARIO EMBEBIDO *
/// h=ADDON *
/// j=ADDON EMBEBIDO *
/// a= Aplicacion
/// p= Aplicacion
$destacados = mas_visto("ultimos","6","6");
$aleatorios = mas_visto("aleatorios","6","6");
//if (isset($_GET['v'])) {$variable = $_GET['v'];}else {$variable = "";}
if (isset($_REQUEST['empresa'])) {$variable = "e".$_REQUEST['empresa'];}
2016-11-24 14:35:37 +00:00
elseif (isset($_REQUEST['form']) AND isset($_REQUEST['embebido']) ) {$variable = "g".$_REQUEST['form'];}
elseif (isset($_REQUEST['identificador']) AND $_REQUEST['t'] =='edit' ) {$variable = "d".$_REQUEST['identificador'];}
2016-10-29 15:07:15 +00:00
elseif (isset($_REQUEST['addon']) AND isset($_REQUEST['embebido']) ) {$variable = "j".$_REQUEST['addon'];}
elseif (isset($_REQUEST['set'])) {$variable = "s".$_REQUEST['set'];}
2016-11-24 14:35:37 +00:00
elseif (isset($_REQUEST['identificador'])) {$variable = "i".$_REQUEST['identificador'];}
elseif (isset($_REQUEST['form'])) {$variable = "f".$_REQUEST['form'];}
elseif (isset($_REQUEST['addon'])) {$variable = "h".$_REQUEST['addon'];}
2016-10-29 15:07:15 +00:00
else {}
//$variable="b43";
//$variable="b115";
if(isset($_REQUEST['variable'])){
$variable= $_REQUEST['variable'];
}
/*
if($variable =='' AND isset($_SESSION['id_empresa'])) {
$variable ="e$_SESSION[id_empresa]";
}else { $variable =""; }
*/
//$variable="e50";
//$variable="a74";
if ($variable !=''){
$v = decodifica_parametro($variable);
if($v[0] =='e') {
/// e = EMPRESA
2016-11-24 14:35:37 +00:00
$id_empresa = $v[1];
$id =$id_empresa;
2016-10-29 15:07:15 +00:00
$logo = remplacetas('empresa','id',"$id_empresa",'imagen','') ;
$titulo = remplacetas('empresa','id',"$id_empresa",'razon_social','') ;
$descripcion = remplacetas('empresa','id',"$id_empresa",'slogan','') ;
2016-11-24 14:35:37 +00:00
//$background_imagen = buscar_imagen('',"","","$id_empresa");
2016-10-29 15:07:15 +00:00
$background_imagen = remplacetas('empresa','id',"$id_empresa",'imagen','') ;
2016-11-24 14:35:37 +00:00
$background_imagen = $background_imagen[0];
2016-10-29 15:07:15 +00:00
$uri_set = "";
$acceso = 1;
$menu ="
<div class='col-sm-2 hidden-xs hidden-sm'>
<div class='container'>
<nav style=' max-height:95% !important ; overflow:auto !important; ' id='toc' data-spy='affix' data-toggle='toc'></nav>
</div>
</div>";
$cols_interior ="10";
2016-11-24 14:35:37 +00:00
}
2016-10-29 15:07:15 +00:00
elseif($v[0] =='b') {
/// s= SET DE DATOS
2016-11-24 14:35:37 +00:00
$set =$v[1];
2016-10-29 15:07:15 +00:00
$empresa = remplacetas('form_id','id',"$set",'id_empresa',"") ;
$logo = @remplacetas('empresa','id',"$id_empresa[0]",'imagen','') ;
$id_empresa = $empresa[0];
//$titulo = remplacetas('form_id','id',"$set",'nombre',"") ;
//$descripcion = remplacetas('form_id','id',"$set",'descripcion',"") ;
$titulo = remplacetas('empresa','id',"$id_empresa",'razon_social','') ;
$descripcion = remplacetas('empresa','id',"$id_empresa",'slogan','') ;
2016-11-24 14:35:37 +00:00
$background_imagen = buscar_imagen("$set","","","$id_empresa");
2016-10-29 15:07:15 +00:00
$uri_set = "";
$cantidad_registros="";
$orden="ASC";
2016-11-24 14:35:37 +00:00
2016-10-29 15:07:15 +00:00
$menu ="
<div class='col-sm-2 hidden-xs hidden-sm'>
<div class='container'>
<nav style=' max-height:95% !important ; overflow:auto !important; ' id='toc' data-spy='affix' data-toggle='toc'></nav>
</div>
2016-11-24 14:35:37 +00:00
2016-10-29 15:07:15 +00:00
</div>";
$cols_interior ="10";
2016-11-24 14:35:37 +00:00
//$onload = landingpage_contenido_formulario($set);
2016-10-29 15:07:15 +00:00
$publico = remplacetas('form_id','id',"$set",'publico',"") ;
if($publico[0] =='1') {$acceso = 1;}
2016-11-24 14:35:37 +00:00
}
2016-10-29 15:07:15 +00:00
elseif($v[0] =='s') {
/// s= SET DE DATOS
2016-11-24 14:35:37 +00:00
$set =$v[1];
2016-10-29 15:07:15 +00:00
$empresa = remplacetas('form_id','id',"$set",'id_empresa',"") ;
$logo = remplacetas('empresa','id',"$id_empresa[0]",'imagen','') ;
$id_empresa = $empresa[0];
$titulo = remplacetas('form_id','id',"$set",'nombre',"") ;
$descripcion = remplacetas('form_id','id',"$set",'descripcion',"") ;
2016-11-24 14:35:37 +00:00
$background_imagen = buscar_imagen("$set","","","$id_empresa");
2016-10-29 15:07:15 +00:00
$uri_set = "";
2016-11-24 14:35:37 +00:00
//$onload = landingpage_contenido_formulario($set);
2016-10-29 15:07:15 +00:00
$publico = remplacetas('form_id','id',"$set",'publico',"") ;
if($publico[0] =='1') {$acceso = 1;}
2016-11-24 14:35:37 +00:00
}
2016-10-29 15:07:15 +00:00
elseif($v[0] =='S') {
$set =$v[1];
/// s= SET DE DATOS
$embebido = "1";
$onload = "".consultar_contenido_formulario("$set",'5','','embebido','')."";
2016-11-24 14:35:37 +00:00
}
2016-10-29 15:07:15 +00:00
elseif($v[0] =='I') {
$identificador =$v[1];
if(strlen($identificador) > 32) {
$identificador_original= $identificador;
$key = substr($identificador, 32, $length = 40);
$identificador = substr($identificador, 0, $length = 32);
} else {$identificador_original = $identificador;}
$primer = formulario_uso("","$identificador",'primer') ;
$id_form="$primer[3]";
$embebido = "1";
//$onload = mostrar_identificador("$identificador","$id_form","landingpage",'simple');
$onload = landingpage_contenido_identificador("$identificador_original","$id_form","landingpage",'simple');
}
elseif($v[0] =='p') {
$identificador =$v[1];
if(strlen($identificador) > 32) {
$identificador_original= $identificador;
$key = substr($identificador, 32, $length = 40);
$identificador = substr($identificador, 0, $length = 32);
} else {$identificador_original = $identificador;}
$primer = formulario_uso("","$identificador",'primer') ;
$id_form="$primer[3]";
$embebido = "1";
//$onload = mostrar_identificador("$identificador","$id_form","landingpage",'simple');
$onload = landingpage_contenido_identificador("$identificador_original","$id_form","remplazo",'simple');
2016-11-24 14:35:37 +00:00
}
2016-10-29 15:07:15 +00:00
elseif($v[0] =='i') {
/// i= IDENTIFICADOR
$identificador =$v[1];
if(strlen($identificador) > 32) {
$identificador_original= $identificador;
$key = substr($identificador, 32, $length = 40);
$identificador = substr($identificador, 0, $length = 32);
} else {$identificador_original = $identificador;}
$primer = formulario_uso("","$identificador",'primer') ;
$id_form="$primer[3]";
2016-11-24 14:35:37 +00:00
//$form = remplacetas('form_datos','control',$identificador,'form_id',"") ;
2016-10-29 15:07:15 +00:00
$empresa = remplacetas('form_id','id',$id_form,'id_empresa',"") ;
$logo = remplacetas('empresa','id',"$id_empresa[0]",'imagen','') ;
$id_empresa = $empresa[0];
$id = $empresa[0];
$embebido = "0";
//$impresion = mostrar_identificador("$identificador","$id_form[0]","landingpage",'simple');
$impresion = landingpage_contenido_identificador("$identificador_original","$id_form","landingpage",'simple');
$razon_social = remplacetas('empresa','id',"$id_empresa",'razon_social','') ;
$impresion = strip_tags($impresion);
2016-11-24 14:35:37 +00:00
$descripcion_meta = $impresion;
2016-10-29 15:07:15 +00:00
$titulo = remplacetas('form_id','id',$id_form,'nombre',"") ;
$descripcion = remplacetas('form_id','id',$id_form,'descripcion',"") ;
$background_imagen = buscar_imagen("$id_form",$identificador,"","");
$uri_set = "<a class='' href='s$id_form'>$titulo[0]</a>";
$publico = remplacetas('form_id','id',$id_form,'publico',"") ;
//if($publico[0] =='1') {$acceso = 1;}
$acceso = 1;
}
elseif($v[0] =='d') {
/// d= IDENTIFICADOR EDITABLE
2016-11-24 14:35:37 +00:00
$identificador =$v[1];
2016-10-29 15:07:15 +00:00
// $form =$v[1];
//$embebido = "1";
//$onload = formulario_embebido_ajax($form[0],'$identificador','edit');
2016-11-24 14:35:37 +00:00
$form = remplacetas('form_datos','control',$identificador,'form_id',"") ;
2016-10-29 15:07:15 +00:00
$empresa = remplacetas('form_id','id',$form['0'],'id_empresa',"") ;
$id_empresa = $empresa[0];
$id = $empresa[0];
$impresion = mostrar_identificador("$identificador","","landingpage",'');
$impresion = strip_tags($impresion);
2016-11-24 14:35:37 +00:00
$descripcion_meta = $impresion;
2016-10-29 15:07:15 +00:00
$titulo = remplacetas('form_id','id',$form['0'],'nombre',"") ;
$background_imagen = buscar_imagen("$form[0]",$identificador,"","");
$uri_set = "<a class='' href='s$form[0]'>$titulo[0]</a>";
$publico = remplacetas('form_id','id',$form[0],'publico',"") ;
if($publico[0] =='1') {$acceso = 1;}
$t = "edit";
$embebido = "1";
2016-11-24 14:35:37 +00:00
2016-10-29 15:07:15 +00:00
$onload = formulario_embebido_ajax($form[0],"$identificador",'edit');
// $onload =" <script type=\"text/javascript\">xajax_formulario_embebido_ajax($form[0],'$identificador','edit')</script>";
}
elseif($v[0] =='f') {
/// f= FORMULARIO
$form =$v[1];
2016-11-24 14:35:37 +00:00
$onload =" <script type=\"text/javascript\">xajax_formulario_embebido_ajax('$form','','nuevo')</script>";
2016-10-29 15:07:15 +00:00
}
elseif($v[0] =='a') {
$form =$v[1];
/// a=Aplicacion
$geo = buscar_campo_tipo($form,"14");
$embebido = "1";
$empresa = remplacetas('form_id','id',$form,'id_empresa',"") ;
$razon_social_portal = remplacetas('empresa','id',"1",'razon_social','') ;
$id_empresa = $empresa[0];
$registros = consultar_contenido_formulario("$form",'5','','embebido','');
2016-11-24 14:35:37 +00:00
$formulario = formulario_embebido($form,$opciones);
2016-10-29 15:07:15 +00:00
$titulo = remplacetas('form_id','id',$form,'nombre',"") ;
$razon_social = remplacetas('empresa','id',"$id_empresa",'razon_social','') ;
$slogan = remplacetas('empresa','id',"$id_empresa",'slogan','') ;
$web = remplacetas('empresa','id',"$id_empresa",'web','');
$logo = remplacetas('empresa','id',"$id_empresa",'imagen','') ;
if($geo[0] != "") {
2016-11-24 14:35:37 +00:00
2016-10-29 15:07:15 +00:00
2016-11-24 14:35:37 +00:00
2016-10-29 15:07:15 +00:00
$mapa = "
<div class='text-center'>
<iframe src='https://$web[0]/milfs/map.php?id=$form' width='80%' height='600px;' ></iframe>
2016-11-24 14:35:37 +00:00
</div>";
2016-10-29 15:07:15 +00:00
}else {$mapa = "";}
$aplicacion = "
<div class='container center-block' style='word-wrap: break-word; '>
<div class='text-center'><a href='https://$web[0]'><i class='fa fa-home'></i> $razon_social_portal[0]</a> / <a href='https://$web[0]/e$id_empresa'>$razon_social[0]</a> $slogan[0]</div>
2016-11-24 14:35:37 +00:00
2016-10-29 15:07:15 +00:00
$formulario
2016-11-24 14:35:37 +00:00
2016-10-29 15:07:15 +00:00
<br>
2016-11-24 14:35:37 +00:00
$registros
$mapa
2016-10-29 15:07:15 +00:00
<span>Powered by <a href='https://github.com/humano/milfs' target='milfs'>MILFS</a></span>
<div class='container' style='background-color:white' >
<h2><img src= 'https://qwerty.co/qr/?d=https://$web[0]/a$form'>Comparte nuestra aplicación</h2>
2016-11-24 14:35:37 +00:00
<p>Descarga una aplicación para leer este código
2016-10-29 15:07:15 +00:00
<a href='https://play.google.com/store/search?q=qr%20code%20reader&hl=es_419'><i class='fa fa-android'></i></a>
<a href='https://itunes.apple.com/us/app/qr-reader-for-iphone/id368494609?mt=8'><i class='fa fa-apple'></i></a>
</p>
</div>";
$onload = "$aplicacion";
2016-11-24 14:35:37 +00:00
2016-10-29 15:07:15 +00:00
}
elseif($v[0] =='g') {
/// g=FORMULARIO EMBEBIDO
$form =$v[1];
$embebido = "1";
$onload = formulario_embebido($form,$opciones);
}
elseif($v[0] =='h') {
/// h=ADDON
$addon =$v[1];
$onload = include("milfs/addon/$addon/$addon".".php");
}
elseif($v[0] =='j') {
/// j=ADDON EMBEBIDO
$addon =$v[1];
$embebido = "1";
$onload = include("milfs/addon/$addon/$addon".".php");
}
else{
}
$video = remplacetas('form_parametrizacion','campo',"presentacion",'descripcion'," tabla='empresa' and opcion = 'video' and id_empresa = '$id_empresa'") ;
if($video[0] !="") { $video ="<iframe type='text/html' width='640' height='385' src='https://www.youtube.com/embed/$video[0]' frameborder='0'></iframe>"; }
else {$video ="";}
$logo = remplacetas('empresa','id',"$id_empresa",'imagen','') ;
$direccion = remplacetas('empresa','id',"$id_empresa",'direccion','') ;
$telefono = remplacetas('empresa','id',"$id_empresa",'telefono','') ;
$email = remplacetas('empresa','id',"$id_empresa",'email','') ;
$facebook = remplacetas('empresa','id',"$id_empresa",'facebook','') ;
$twitter = remplacetas('empresa','id',"$id_empresa",'twitter','') ;
$razon_social = remplacetas('empresa','id',"$id_empresa",'razon_social','') ;
$slogan = remplacetas('empresa','id',"$id_empresa",'slogan','') ;
$sigla = remplacetas('empresa','id',"$id_empresa",'sigla','') ;
2016-11-24 14:35:37 +00:00
$link_empresa = "e$id_empresa";
2016-10-29 15:07:15 +00:00
}else {
/*
if(isset($_SESSION['id_empresa'])) {
$id_empresa ="$_SESSION[id_empresa]";
}else { $id_empresa =""; }
*/
$id_empresa="";
$id="";
$logo = remplacetas('empresa','id',"1",'imagen','') ;
$background_imagen = remplacetas('empresa','id',"1",'imagen','') ;
2016-11-24 14:35:37 +00:00
$background_imagen = $background_imagen[0];
2016-10-29 15:07:15 +00:00
//$titulo[0] ="Tupale.co";
$titulo = remplacetas('empresa','id',"1",'razon_social','') ;
$slogan = remplacetas('empresa','id',"1",'slogan','') ;
//$descripcion[0] ="Los datos no hacen la felicidad, pero pueden medirla";
$descripcion = remplacetas('empresa','id',"1",'slogan','') ;
$twitter[0] ="tupaleco";
$facebook[0] ="https://www.facebook.com/Qwerty-co-146226688795185";
$video ="<div class='text-center'>
<!-- <iframe src='https://player.vimeo.com/video/3514904?color=ffffff&title=0&byline=0&portrait=0' width='640' height='281' frameborder='0' webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe> -->
</div>
";
}
$css_adicional = remplacetas('form_parametrizacion','campo',"index",'descripcion'," tabla='css' and opcion = 'adicional' and id_empresa = '$id_empresa'") ;
if($css_adicional[0] !="") {
$css_adicional ="<style >
$css_adicional[0]
</style>";
}
else {
$css_adicional ="<style ></style>";
}
$uri = trim($_SESSION['site'], '/').$_SERVER['REQUEST_URI'];
?>
<meta NAME="Language" CONTENT="Spanish">
<meta NAME="Revisit" CONTENT="1 days">
<meta NAME="Distribution" CONTENT="Global">
<meta NAME="Robots" CONTENT="All">
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="<?php echo $twitter[0]; ?>">
<meta name="twitter:creator" content="@qwerty_co">
<meta name="twitter:url" content="<?php echo $uri ; ?>">
<meta name="twitter:title" content="<?php echo $titulo[0]; ?>">
<meta name="twitter:description" content=" <?php echo $descripcion_meta; ?>">
<meta name="twitter:image" content="<?php echo "$_SESSION[url]images/secure/?file=full/$background_imagen"; ?>">
2016-11-24 14:35:37 +00:00
<meta property="og:type" content="article">
2016-10-29 15:07:15 +00:00
<meta property="og:title" content="<?php echo $titulo[0]; ?>" />
<meta property="og:type" content="website" />
<meta property="og:url" content="<?php echo "$uri"; ?>" />
<meta property="og:image" content="<?php echo "$_SESSION[url]images/secure/?file=full/$background_imagen"; ?>" />
<meta property="og:site_name" content="<?php echo $razon_social[0]; ?>" />
<meta property="og:description" content=" <?php echo $descripcion_meta; ?>" />
<link rel="shortcut icon" href="<?php echo "milfs/images/secure/?file=150/$logo[0]"; ?>">
<meta name='viewport' content='width=device-width'>
<meta name='mobile-web-app-capable' content='yes'>
<link rel='icon' sizes='192x192' href='<?php echo "milfs/images/secure/?file=150/$logo[0]"; ?>'>
<link rel="apple-touch-icon-precomposed" href="<?php echo "milfs/images/secure/?file=150/$logo[0]"; ?>">
<title><?php echo @$titulo[0]; ?> <?php echo strip_tags($slogan[0]); ?> Tupale.co </title>
2016-11-24 14:35:37 +00:00
<?php $xajax->printJavascript("milfs/xajax/");
2016-10-29 15:07:15 +00:00
//$xajax->debugOn();
$xajax->statusMessagesOn();
;?>
<style>
<!-- ESTILOS PRIORITARIOS -->
.modal-dialog {
2016-11-24 14:35:37 +00:00
width: 95% !important;
2016-10-29 15:07:15 +00:00
height: auto;
padding: 0;
}
.modal-lg {
2016-11-24 14:35:37 +00:00
width: 95% !important;
2016-10-29 15:07:15 +00:00
height: auto;
padding: 0;
}
.modal-content {
height: auto;
}
.modal-body {
max-height: calc(100vh - 100px);
overflow-y: auto;
2016-11-24 14:35:37 +00:00
}
2016-10-29 15:07:15 +00:00
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;
}
</style>
<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">
<link href="https://fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic,700italic" rel="stylesheet" type="text/css">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
2016-11-24 14:35:37 +00:00
<?php
2016-10-29 15:07:15 +00:00
$css = remplacetas('form_parametrizacion','campo',"index",'descripcion'," tabla='css' and opcion = 'bootstrap' and id_empresa = '$id_empresa'") ;
if($css[0] !="") {
$css ="
<!-- incluir tema bootstrap parametrizado -->
<link rel='stylesheet' href='$css[0]?".time()."' >";
$tema="";
}
else {
2016-11-24 14:35:37 +00:00
2016-11-26 14:27:01 +00:00
$tema= "chamitrip";
2016-10-29 15:07:15 +00:00
$css ='
<!-- incluir tema bootstrap por defecto -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css?'.time().'" integrity="sha512-dTfge/zgoMYpP7QbHy4gWMEGsbsdZeCXz7irItjcC3sPUFtf0kuFbDz/ixG7ArTxmDjLXDmezHubeNikyKGVyQ==" crossorigin="anonymous" >';
}
echo " <!-- tema $tema --> ";
2016-11-24 14:35:37 +00:00
if($tema=="") {
2016-10-29 15:07:15 +00:00
2016-11-24 14:35:37 +00:00
$barra="
2016-10-29 15:07:15 +00:00
<nav style='' class='navbar navbar-inverse navbar-fixed-top topnav' role='navigation'>
<div style='padding:10px; ' class='container topnav '>
2016-11-24 14:35:37 +00:00
2016-10-29 15:07:15 +00:00
<ul style=' ' class='nav navbar-nav navbar-center'>
2016-11-24 14:35:37 +00:00
2016-10-29 15:07:15 +00:00
<li class='dropdown' >
<a style=' ' href='#' class='dropdown-toggle' data-toggle='dropdown' role='button' aria-haspopup='true' aria-expanded='false'><i class='fa fa-bars'></i> $portal_sigla</a>
<ul class='dropdown-menu' style='background-color: white; width:500px;' >
<li><a class='' href='$portal_url'><i class='fa fa-home'></i> Portal</a></li>
<li><a class='' href='$link_empresa'>$sigla[0] Inicio</a></li>
<li><a href='milfs/'>Administrador</a></li>
<li role='separator' class='divider'></li>
".aplicaciones_listado("$id_empresa",'','nav','')."
</ul>
</li>
</ul>
2016-11-24 14:35:37 +00:00
2016-10-29 15:07:15 +00:00
</div>
2016-11-24 14:35:37 +00:00
2016-10-29 15:07:15 +00:00
</nav>
";
2016-11-24 14:35:37 +00:00
?> <?php echo $css; ?>
2016-10-29 15:07:15 +00:00
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js" integrity="sha512-K1qjQ+NcF2TYO/eI3M6v8EiNYZfA95pQumfvcVrTHtwQVDG+aHRqLi/ETn2uB+1JqwYqVG3LIvdm9lj6imS/pQ==" crossorigin="anonymous"></script>
2016-11-24 14:35:37 +00:00
2016-10-29 15:07:15 +00:00
<style>
.navbar .navbar-nav {
display: inline-block;
float: none;
}
.navbar .navbar-collapse {
text-align: center;
height: 30px;
margin-top: -13px;
2016-11-24 14:35:37 +00:00
2016-10-29 15:07:15 +00:00
}
.navbar-nav > li > a, .navbar-brand {
padding-top:0px !important; padding-bottom:0 !important;
height: 30px;
margin-top: -13px;
}
.navbar {min-height:30px !important;}
.navbar-nav > li > a, .navbar-brand {
padding-top:0px !important; padding-bottom:0 !important;
height: 30px;
margin-top: -13px;
color:black !important;
}
.topnav {
2016-11-24 14:35:37 +00:00
width: 100px !important;
2016-10-29 15:07:15 +00:00
display: inline;
height: 30px;
2016-11-24 14:35:37 +00:00
padding-top:-10px !important;
padding-bottom:0 !important;
height:30px;
background:none;
2016-10-29 15:07:15 +00:00
border:0px;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
/*width:80px; background: none; border:0px; -webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
*/
</style>
<style>
.fh5co-post-entry article h2{
font-size: 28px; !important;
}
#fh5co-offcanvas .fh5co-bio img{
2016-11-24 14:35:37 +00:00
border-radius: 10px !important;
2016-10-29 15:07:15 +00:00
}
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;
}
</style>
2016-11-24 14:35:37 +00:00
<?php
2016-10-29 15:07:15 +00:00
}
else {
echo "
<meta name='theme-color' content='#DF0101'/>
<!-- Windows Phone -->
<meta name='msapplication-navbutton-color' content='#DF0101'/>
<!-- iOS Safari -->
<meta name='apple-mobile-web-app-capable' content='yes'/>
2016-11-24 14:35:37 +00:00
<meta name='apple-mobile-web-app-status-bar-style' content='black-translucent'/>
2016-10-29 15:07:15 +00:00
";
include("temas/$tema/cabecera");
include("temas/$tema/pie");
2016-11-24 14:35:37 +00:00
$barra="
2016-10-29 15:07:15 +00:00
<ul >
<li><a class='' href='$portal_url'><i class='fa fa-home'></i> Portal</a></li>
<li><a class='' href='$link_empresa'>".@$sigla[0]." Inicio</a></li>
<li><a href='milfs/'>Administrador</a></li>
<li role='separator' class='divider'></li>
".aplicaciones_listado("$id_empresa",'','nav','')."
</ul>
2016-11-24 14:35:37 +00:00
2016-10-29 15:07:15 +00:00
";
$menu_lateral = "
<div id='fh5co-offcanvas'>
<a href='#' class='fh5co-close-offcanvas js-fh5co-close-offcanvas'><span><i class='icon-cross3'></i> <span>Close</span></span></a>
<div class='fh5co-bio'>
<figure>
<img src='milfs/images/secure/?file=300/$logo[0]' alt='Free HTML5 Bootstrap Template' class='img-responsive'>
</figure>
2016-11-24 14:35:37 +00:00
<h3 data-toc-skip >LO QUE SOMOS</h3>
2016-10-29 15:07:15 +00:00
<h2 data-toc-skip >".@$razon_social[0]." </h2>
2016-11-24 14:35:37 +00:00
<h3 >".@$titulo[0]."</h3>
2016-10-29 15:07:15 +00:00
<p>".@$descripcion[0]." </p>
<ul class='fh5co-social'>
<li><a href='https://twitter.com/$twitter[0]'><i class='icon-twitter'></i></a></li>
<li><a href='https://www.facebook.com/$facebook[0]'><i class='icon-facebook'></i></a></li>
2016-11-24 14:35:37 +00:00
2016-10-29 15:07:15 +00:00
</ul>
</div>
<div class='fh5co-menu'>
<div class='fh5co-box'>
2016-11-24 14:35:37 +00:00
2016-10-29 15:07:15 +00:00
$barra
2016-11-24 14:35:37 +00:00
2016-10-29 15:07:15 +00:00
</div>
<!-- <div class='fh5co-box'>
<h3 class='heading'>Search</h3>
<form action='#'>
<div class='form-group'>
<input type='text' class='form-control' placeholder='Type a keyword'>
</div>
</form>
</div> -->
</div>
</div>
";
}
?>
<!-- include codemirror (codemirror.css, codemirror.js, xml.js, formatting.js) -->
<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/codemirror/3.20.0/codemirror.css">
<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/codemirror/3.20.0/theme/monokai.css">
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/codemirror/3.20.0/codemirror.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/codemirror/3.20.0/mode/xml/xml.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/codemirror/2.36.0/formatting.js"></script>
<!-- wysiwyg -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/summernote/0.8.1/summernote.js"></script>
<!-- include summernote css/js-->
<link href="https://cdnjs.cloudflare.com/ajax/libs/summernote/0.8.1/summernote.css" rel="stylesheet">
<!-- add after bootstrap.min.js -->
<script src="milfs/js/scripts.js"></script>
<link rel="stylesheet" href="https://cdn.rawgit.com/afeld/bootstrap-toc/v0.3.0/dist/bootstrap-toc.min.css">
<script src="https://cdn.rawgit.com/afeld/bootstrap-toc/v0.3.0/dist/bootstrap-toc.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/ekko-lightbox/4.0.1/ekko-lightbox.min.js"></script>
<?php echo $css_adicional; ?>
<script type="text/javascript">
function addLink() {
var body_element = document.getElementsByTagName('body')[0];
var selection;
selection = window.getSelection();
var pagelink = " /* <br /><br />Gracias por compartir, por favor citanos así:<br/><a href='"+document.location.href+"'>"+document.location.href+"<br /><b>https://tupale.co</b> */";
var copytext = selection + pagelink;
var newdiv = document.createElement('div');
newdiv.style.position='absolute';
newdiv.style.left='-99999px';
body_element.appendChild(newdiv);
newdiv.innerHTML = copytext;
selection.selectAllChildren(newdiv);
window.setTimeout(function() {
body_element.removeChild(newdiv);
},0);
}
document.oncopy = addLink;
</script>
</head>
<body data-spy="scroll" data-target="#toc">
<!-- <div class="text-center">
<a href="frida.php?redirect" >
<img class='center-block img img-responsive' src='https://tupale.co/milfs/images/frida.gif'>
</a>
<a href="frida.php" ><small class="center-block" >¿ Necesitas ayuda para apoyarnos ?</small></a>
</div> -->
<?php
//echo "<h1>$identificador</h1>";
2016-11-24 14:35:37 +00:00
if($tema=="") {
2016-10-29 15:07:15 +00:00
echo $barra ;
}else{
echo " " ;
}
2016-11-24 14:35:37 +00:00
if(isset($_SESSION['id'])) {$id_empresa_portada='1'; echo panel_aplicaciones('1',"$_SESSION[id_empresa]",""); }
2016-10-29 15:07:15 +00:00
if( $embebido =="1" ){ /* SI SE SOLICITA UN EMBEBIDO SE MUESTRA ESTO */
2016-11-24 14:35:37 +00:00
echo $onload;
2016-10-29 15:07:15 +00:00
2016-11-24 14:35:37 +00:00
if(isset($set)) {
2016-10-29 15:07:15 +00:00
}
?>
<!-- </div> -->
<!-- Modal -->
<div class='modal fade ' id='muestraInfo' tabindex='-1' role='dialog' aria-labelledby='myModalLabel' aria-hidden='true'>
<div class='modal-dialog modal-lg' >
<div class='modal-content'>
<div class='modal-header' >
<button type='button' class='close' data-dismiss='modal' aria-hidden='true'><i class='fa fa-times-circle'></i></button>
<h4 class='modal-title' id='myModalLabel_info'><div id='titulo_modal'></div></h4>
</div>
<div class='modal-body'>
2016-11-24 14:35:37 +00:00
2016-10-29 15:07:15 +00:00
<div id='muestra_form'>
</div>
</div>
<div class='modal-footer' id='pie_modal'>
2016-11-24 14:35:37 +00:00
2016-10-29 15:07:15 +00:00
</div>
</div>
</div>
</div>
<!-- Modal -->
2016-11-24 14:35:37 +00:00
2016-10-29 15:07:15 +00:00
</body>
</html>
2016-11-24 14:35:37 +00:00
<?php //echo $barra ?>
2016-10-29 15:07:15 +00:00
<!-- fin embebido -->
2016-11-24 14:35:37 +00:00
<?php
2016-10-29 15:07:15 +00:00
}
else{ /* SI NO SE SOLICITA UN EMBEBIDO SE CONTINUA CON EL FLUJO DEL HTML */
2016-11-26 14:27:01 +00:00
$enable_menu = false;
2016-10-29 15:07:15 +00:00
?>
2016-11-26 14:27:01 +00:00
<!-- Navigation -->
<nav id="mainNav" class="navbar navbar-default navbar-fixed-top navbar-custom">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header page-scroll">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span> Menu <i class="fa fa-bars"></i>
</button>
<a class="navbar-brand" href="<?php echo $link_empresa ?>">
<img class='img img-responsive main-logo' style="" src="milfs/images/secure/?file=300/<?php echo $logo[0]; ?>">
</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
<li class="hidden">
<a href="#"></a>
</li>
<li>
<a href='?asistento'>Quiero crear una campaña </a>
</li>
<li><?php echo milfs_session("$login_formulario","$login_campo_usuario","$login_campo_password","boton",""); ?>
<div id='formulario_login' class='' ></div>
</li>
</ul>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container-fluid -->
</nav>
<!-- Header -->
<!-- The background image URL should be editable -->
<?php
// if( !empty($_REQUEST) ) : // agregar aqui validacion para saber cuando se esta en el home y mostrar el header con el search-form ?>
<header class="bg-cover" style="background-image: url(http://i0.wp.com/chamitrip.com/wp-content/uploads/2016/05/wild-865151_1920.jpg?fit=1920%2C1280);">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="intro-text">
<h1 class="name"><?php echo strlen($slogan[0])>0 ? $slogan[0] : '...Descubre - Vive - Comparte...'; ?></h1>
<div class="separator"> </div>
<form class="search-form col-xs-12 col-sm-8 col-sm-offset-2 col-md-6 col-md-offset-3">
<div class="input-group">
<input type="text" class="search-input form-control" placeholder="¿Qué estás buscando?">
<span class="input-group-btn">
<button class="btn btn-raised btn-primary" type="button">
<span class="glyphicon glyphicon-search"></span>
</button>
</span>
</div>
</form>
</div>
</div>
</div>
</div>
</header>
<?php // endif; ?>
<section id="contenido">
<!-- <div class="row">
<div class="col-sm-<?php echo $enable_menu ? $cols_interior : '12'; ?>"> -->
<?php // echo $menu_lateral ; //temporally disabled for dev stage... ?>
2016-10-29 15:07:15 +00:00
<!-- END #fh5co-offcanvas -->
2016-11-26 14:27:01 +00:00
<?php //if( isset($_REQUEST['asistento']) ) : ?>
<div id="fh5co-header">
2016-11-24 14:35:37 +00:00
2016-11-26 14:27:01 +00:00
<div class="container">
2016-10-29 15:07:15 +00:00
<div class="row">
2016-11-26 14:27:01 +00:00
2016-10-29 15:07:15 +00:00
<div class="col-lg-12 col-md-12 ">
2016-11-24 14:35:37 +00:00
2016-10-29 15:07:15 +00:00
<div class="row">
<div class="col-md-12">
2016-11-26 14:27:01 +00:00
2016-11-24 14:35:37 +00:00
</div>
2016-10-29 15:07:15 +00:00
<div class="col-md-12 text-center">
2016-11-26 14:27:01 +00:00
<!-- <h1 id="fh5co-logo" data-toc-skip ><a href="./"><?php echo $titulo[0]; ?></a></h1> -->
2016-10-29 15:07:15 +00:00
</div>
<div class="col-md-12 text-center">
<?php
if(isset($_REQUEST['asistento'])) {
2016-11-24 14:35:37 +00:00
echo asistente_aplicaciones("",'','','');
2016-11-26 14:27:01 +00:00
}
2016-10-29 15:07:15 +00:00
?>
2016-11-24 14:35:37 +00:00
2016-10-29 15:07:15 +00:00
</div>
<!-- <div class="text-center">
<a href="frida.php?redirect" >
<img class='center-block img img-responsive' src='https://tupale.co/milfs/images/frida.gif'>
</a>
<a href="frida.php" ><small class="center-block" >¿ Necesitas ayuda para apoyarnos ?</small></a>
</div> -->
<div class="col-md-12">
2016-11-24 14:35:37 +00:00
<div class='center-block'>
2016-10-29 15:07:15 +00:00
2016-11-24 14:35:37 +00:00
<?php
2016-10-29 15:07:15 +00:00
2016-11-24 14:35:37 +00:00
if($id_empresa=="") {
2016-10-29 15:07:15 +00:00
echo identificador_resaltado("1","");
2016-11-24 14:35:37 +00:00
//echo milfs_session("$login_formulario","$login_campo_usuario","$login_campo_password","","");
2016-10-29 15:07:15 +00:00
echo social_login("","","") ;
2016-11-24 14:35:37 +00:00
2016-10-29 15:07:15 +00:00
}else {echo identificador_resaltado($id_empresa,"landingpage");} ?>
</div>
</div>
2016-11-24 14:35:37 +00:00
</div>
2016-10-29 15:07:15 +00:00
2016-11-24 14:35:37 +00:00
</div>
</div>
2016-10-29 15:07:15 +00:00
</div>
2016-11-26 14:27:01 +00:00
</div><?php // endif; // endif condicional del asistento ?>
<div class="container">
2016-10-29 15:07:15 +00:00
<div class="row fh5co-post-entry">
<?php
2016-11-24 14:35:37 +00:00
2016-10-29 15:07:15 +00:00
if($id_empresa=="") {
2016-11-24 14:35:37 +00:00
2016-10-29 15:07:15 +00:00
2016-11-26 14:27:01 +00:00
echo "<div class='clearfix visible-lg-block visible-md-block visible-sm-block visible-xs-block'></div>";
echo mas_visto("formulario","4","");
echo mas_visto("aleatorios","4","");
2016-10-29 15:07:15 +00:00
echo "<div class='clearfix visible-lg-block visible-md-block visible-sm-block visible-xs-block'></div>";
echo mas_visto("ultimos","4","");
echo "<div class='clearfix visible-lg-block visible-md-block visible-sm-block visible-xs-block'></div>";
echo mas_visto("identificador","4","");
2016-11-26 14:27:01 +00:00
2016-10-29 15:07:15 +00:00
}
?>
2016-11-24 14:35:37 +00:00
2016-10-29 15:07:15 +00:00
<?php
if($acceso ==1) {
2016-11-24 14:35:37 +00:00
if($set != "") {
2016-10-29 15:07:15 +00:00
echo " ".consultar_contenido_formulario("$set",$cantidad_registros,'','contenido',"$orden","");
2016-11-24 14:35:37 +00:00
2016-10-29 15:07:15 +00:00
}
elseif($identificador !="") {
2016-11-24 14:35:37 +00:00
//echo landingpage_contenido_identificador($identificador);
2016-10-29 15:07:15 +00:00
echo "".landingpage_contenido_identificador("$identificador_original","$id_form","landingpage",'simple') ;
}
2016-11-24 14:35:37 +00:00
else{
2016-10-29 15:07:15 +00:00
if($id_empresa =="") {
//echo multiempresa_listado('','')."Hola mundo";
2016-11-24 14:35:37 +00:00
2016-10-29 15:07:15 +00:00
}
else {
//echo landingpage_contenido($id_empresa);
echo landingpage_contenido($id_empresa);
2016-11-24 14:35:37 +00:00
2016-10-29 15:07:15 +00:00
}
}
}else{ echo multiempresa_listado('',''); }
?>
2016-11-26 14:27:01 +00:00
</div>
</div>
2016-10-29 15:07:15 +00:00
2016-11-26 14:27:01 +00:00
<div class='container'><?php //echo $aleatorios ?> </div>
<!-- </div> // temporally disable to fit with bootstrap section styles-->
<?php echo $enable_menu ? $menu : ''; ?>
<!-- </div> // temporally disable to fit with bootstrap section styles-->
</section>
<footer id="fh5co-footer">
<div class="footer-below">
2016-10-29 15:07:15 +00:00
<small>
<p class="">Tupale.co funciona gracias a <a href='https://QWERTY.co/milfs'>&copy; MILFS Un proyecto de https://QWERTY.co</a> Se distribuye bajo licencia GPL V3
<a href="milfs/?psi" ><i class="fa fa-smile-o "></i> Políticas de privacidad y protección de datos.</a></p>
2016-11-26 14:27:01 +00:00
</small>
</div>
</footer>
2016-10-29 15:07:15 +00:00
<div class='modal fade ' id='muestraInfo' tabindex='-1' role='dialog' aria-labelledby='myModalLabel' aria-hidden='true'>
<div class='modal-dialog modal-lg' >
<div class='modal-content'>
<div class='modal-header' >
<button type='button' class='close' data-dismiss='modal' aria-hidden='true'><i class='fa fa-times-circle'></i></button>
<h4 class='modal-title' id='myModalLabel_info'><div id='titulo_modal'></div></h4>
</div>
<div class='modal-body'>
2016-11-24 14:35:37 +00:00
2016-10-29 15:07:15 +00:00
<div id='muestra_form'>
2016-11-24 14:35:37 +00:00
2016-10-29 15:07:15 +00:00
</div>
</div>
<div class='modal-footer' id='pie_modal'>
2016-11-24 14:35:37 +00:00
2016-10-29 15:07:15 +00:00
</div>
</div>
</div>
</div>
<!-- Modal -->
<!-- Footer -->
2016-11-24 14:35:37 +00:00
2016-10-29 15:07:15 +00:00
2016-11-24 14:35:37 +00:00
<?php echo $onload; ?>
2016-10-29 15:07:15 +00:00
<?php } ?>
<script type="text/javascript">
2016-11-24 14:35:37 +00:00
2016-10-29 15:07:15 +00:00
$(document).delegate('*[data-toggle="lightbox"]', 'click', function(event) {
event.preventDefault();
$(this).ekkoLightbox();
2016-11-24 14:35:37 +00:00
});
2016-10-29 15:07:15 +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});
});
2016-11-24 14:35:37 +00:00
</script>
2016-10-29 15:07:15 +00:00
<!-- Piwik -->
<script type="text/javascript">
var _paq = _paq || [];
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//stats.tupale.co/";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', 1]);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<noscript><p><img src="//stats.tupale.co/piwik.php?idsite=1" style="border:0;" alt="" /></p></noscript>
<!-- End Piwik Code -->
</body>
</html>