This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Banco: | |
<select name="banco"> | |
<option value=""></option> | |
<option value="0156">100%BANCO</option> | |
<option value="0196">ABN AMRO BANK</option> | |
<option value="0172">BANCAMIGA BANCO MICROFINANCIERO, C.A.</option> | |
<option value="0171">BANCO ACTIVO BANCO COMERCIAL, C.A.</option> | |
<option value="0166">BANCO AGRICOLA</option> | |
<option value="0175">BANCO BICENTENARIO</option> | |
<option value="0128">BANCO CARONI, C.A. BANCO UNIVERSAL</option> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function get_source($url,$quitar,$show_headers=0) | |
{ if(preg_match('!^http://!',$url)) | |
$url=substr($url,7,strlen($url)); | |
if($start=strpos($url,'/')) $uri=substr($url,$start,strlen($url)); | |
else $uri=''; | |
$fp= @fsockopen($url,80,$errno,$errstr,4); | |
if(!$fp) | |
{ echo "Imposible conectar $url o no ha indicado URL"; | |
return false; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# Extrae imagenes de un usuario y se filtra por los hastag | |
# | |
# Uso: | |
# Debe crear un archivo .txt de nombre data.txt | |
# Debe crear una carpeta de nombre grabar | |
# | |
/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function API_YOUTUBE($video,$ancho,$alto) | |
{ ?> | |
<div class="embed-responsive embed-responsive-16by9 bordevideo"> | |
<script asyn defer> | |
var tag=document.createElement('script'); | |
tag.src ="https://www.youtube.com/player_api"; | |
var firstScriptTag =document.getElementsByTagName('script')[0]; | |
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag); | |
var player; | |
function onYouTubePlayerAPIReady(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function VERIFICA_EMAIL($email){ | |
$email = strtolower(trim($email)); | |
$mail_correcto = 0; | |
if ((strlen($email) >= 6) && (substr_count($email,"@") == 1) && (substr($email,0,1) != "@") && (substr($email,strlen($email)-1,1) != "@")){ | |
if ((!strstr($email,"'")) && (!strstr($email,"\"")) && (!strstr($email,"\\")) && (!strstr($email,"\$")) && (!strstr($email," "))) { | |
if (substr_count($email,".")>= 1){ | |
$term_dom = substr(strrchr ($email, '.'),1); | |
if (strlen($term_dom)>1 && strlen($term_dom)<5 && (!strstr($term_dom,"@")) ){ | |
$antes_dom = substr($email,0,strlen($email) - strlen($term_dom) - 1); | |
$caracter_ult = substr($antes_dom,strlen($antes_dom)-1,1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$imagen = 'images/img_promos/'.$_GET["imagen"]; | |
$imagen = imagecreatefromjpeg($imagen); | |
$marca = imagecreatefrompng('images/promo.jpg'); | |
$destino_x = imagesx($imagen); | |
$destino_y = imagesy($imagen); | |
$medi_marca_y = imagesy($marca); | |
$medi_marca_x = imagesx($marca); | |
$dest_y = 540; | |
$dest_x = 960; | |
$calidad = 72; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Si son varias separar por comas | |
// en este ejemplo se carga la fuente "lato" | |
// debe colocarse en el head | |
// es para no usar | |
// <link href='https://fonts.googleapis.com/css?family=Lato:400,900,700' rel='stylesheet' type='text/css'> | |
<script type="text/javascript" async defer> | |
WebFontConfig={google:{families:['Lato:400,900,700']}}; | |
(function(){var wf=document.createElement('script'); | |
wf.src=('https:'==document.location.protocol ? 'https' : 'http') + '://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js'; | |
wf.type='text/javascript';wf.async='true'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# extraer la ubicacion (latitud y longitud) | |
# desde Google Maps | |
# | |
function CLIMA($latitud,$longitud) | |
{ $url = "http://api.openweathermap.org/data/2.5/weather?lat=$latitud&lon=$longitud&units=metric"; | |
# -------------------- | |
$clima = file_get_contents($url); | |
$json = json_decode($clima); | |
$temperatura = $json->main->temp; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* ------------------------------------------------------- | |
Script bajo los términos y Licencia | |
GNU GENERAL PUBLIC LICENSE | |
Ver Terminos en: | |
http://www.gnu.org/copyleft/gpl.html | |
Autor:Hector A. Mantellini (Xombra) |
NewerOlder