From 8c8f9da5643a7fc41c1decbd51d6fece67a22096 Mon Sep 17 00:00:00 2001 From: Kleper Date: Wed, 30 Nov 2016 22:01:51 -0500 Subject: [PATCH] Rescatando la aplicacion para twittear --- .htaccess | 1 + 404.php | 11 ++- milfs/addon/funciones.php | 4 +- milfs/addon/tuitealo/funciones/funciones.php | 96 ++++++++++++++++++++ milfs/addon/tuitealo/index.php | 0 milfs/addon/tuitealo/tuitealo.php | 66 ++++++++++++++ 6 files changed, 174 insertions(+), 4 deletions(-) create mode 100644 milfs/addon/tuitealo/funciones/funciones.php create mode 100644 milfs/addon/tuitealo/index.php create mode 100755 milfs/addon/tuitealo/tuitealo.php diff --git a/.htaccess b/.htaccess index 1fe4123..59b2184 100755 --- a/.htaccess +++ b/.htaccess @@ -1,3 +1,4 @@ + Options +FollowSymLinks Header set Access-Control-Allow-Origin: * Header set Access-Control-Allow-Credentials: true diff --git a/404.php b/404.php index c3ef008..9307cc0 100644 --- a/404.php +++ b/404.php @@ -1,2 +1,9 @@ - -

Mano peluda

\ No newline at end of file + + + +

Mano peluda

+ + + + + diff --git a/milfs/addon/funciones.php b/milfs/addon/funciones.php index fc4bf1f..4a78e1c 100755 --- a/milfs/addon/funciones.php +++ b/milfs/addon/funciones.php @@ -1,6 +1,6 @@ \ No newline at end of file +?> diff --git a/milfs/addon/tuitealo/funciones/funciones.php b/milfs/addon/tuitealo/funciones/funciones.php new file mode 100644 index 0000000..0facd06 --- /dev/null +++ b/milfs/addon/tuitealo/funciones/funciones.php @@ -0,0 +1,96 @@ +$nombre[0] +

$descripcion[0]

+
+ $formulario +
+ +
+
+ + + + Previsualizar +
+
+ +
+
+

Powered by: MIFS

+
+ +
+ + "; + return $formulario; + } + $respuesta = new xajaxResponse('utf-8'); + $sujeto = $form[1301][0]; + $accion = $form[1302][0]; + $verbo = $form[1303][0]; + $tiempo = $form[1305][0]; + $ht = $form[1306][0]; + $mensaje = $form[1307][0]; + $arroba = $form[1301][0]; + if( $accion =="" or $verbo =="" or $tiempo =="" or $ht =="" or $arroba =="" ) { + $error ="

Hay campos vacíos

"; + $respuesta->addAssign("tuitealo_error","innerHTML","$error"); + return $respuesta; + + } + $arroba = remplacetas('form_datos','control',"$arroba",'contenido',"id_campo = '77'") ; + $arroba = $arroba[0]; + $url_propia = urlencode("https://patos.redpatodos.co"); + $texto="$sujeto $accion $verbo $tiempo $ht $mensaje cc $arroba "; + $texto = ucfirst($texto); + $texto_url=urlencode($texto); + $largo = strlen($texto.$url_propia); + if($largo > 140) { $alert ="danger"; $mensaje =" El texto es demasiado largo y se recortará"; + $texto = substr($texto, 0, 140)."..."; } + else{$alert='success'; $mensaje="";} + + + + $url ="https://twitter.com/share?url=$url_propia&text=$texto_url"; + + $previsualizar ="
+ +
+
$largo
$mensaje

$texto

+ + Previsualizar + Tuitéalo + + "; + +if( $tipo =="previsualizar") { + + $respuesta->addAssign("tuitealo_div","innerHTML","$previsualizar"); + + }else{ + $respuesta->addScript("window.location.href ='$url';"); + } + + return $respuesta; +} + +$xajax->registerFunction("tuitealo"); + +?> diff --git a/milfs/addon/tuitealo/index.php b/milfs/addon/tuitealo/index.php new file mode 100644 index 0000000..e69de29 diff --git a/milfs/addon/tuitealo/tuitealo.php b/milfs/addon/tuitealo/tuitealo.php new file mode 100755 index 0000000..0ee353f --- /dev/null +++ b/milfs/addon/tuitealo/tuitealo.php @@ -0,0 +1,66 @@ +processRequests(); +$logo = remplacetas('empresa','id','1','imagen') ; +$direccion = remplacetas('empresa','id','1','direccion') ; +$telefono = remplacetas('empresa','id','1','telefono') ; +$email = remplacetas('empresa','id','1','email') ; + + +?> + + + + + + + + + + printJavascript("milfs/xajax/"); + + + ?> + + + + + + + + + + + + + + + +
+ + + +
+
+
+ + + + + +