This file contains hidden or 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
$List_User_Agent = array( | |
'android' => 'android', 'AvantGo' => 'AvantGo', 'PLAYSTATION' => 'PLAYSTATION','Mobile','Mobile', | |
'BlackBerry' => 'BlackBerry', 'blazer' => 'blazer', 'hiptop' => 'hiptop', 'GoBrowser' => 'GoBrowser', | |
'Cellphone' => 'Cellphone', 'EudoraWeb' => 'EudoraWeb', 'fennec' => 'fennec', 'IEMobile' => 'IEMobile', | |
'iPhone' => 'iPhone', 'iPod' => 'iPod', 'Googlebot-Mobile' => 'Googlebot-Mobile', 'Iris' => 'Iris', | |
'iphone' => 'iphone', 'GoogleMobilizer' => 'Google Wireless Transcoder', 'KYOCERA' => 'KYOCERA', | |
'LGE' => 'LGE', 'midp' => 'midp', 'Minimo' => 'Minimo', 'NetFront' => 'NetFront', 'Dorothy' => 'Dorothy', | |
'Nintendo' => 'Nintendo', 'Nitro' => 'Nitro', 'Nokia' => 'Nokia', 'Motorola' => 'mot-', 'TeaShark' => 'TeaShark', | |
'OperaMini' => 'Opera Mini', 'Palm' => 'Palm', 'PDA' => 'PDA', 'Blazer' => 'Blazer', 'iPad' => 'iPad', | |
'BOLT' => 'BOLT', 'Fennec' => 'Fennec', 'Opera Mobi' => 'Opera Mobi', 'Series60' => 'Se |
This file contains hidden or 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 TIMEZONE($time, $zone) { | |
setlocale(LC_ALL, 'es_VE'); | |
$output = date("D, j-M-Y", ($time + (3600 * $zone))); | |
return $output; | |
} | |
function TIMEZONE_SHORT($time, $zone) { | |
setlocale(LC_ALL, 'es_VE'); | |
$output = date("d/m/Y", ($time + (3600 * $zone))); | |
return $output; |
This file contains hidden or 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 PUB_GOOGLE($google_ad_client,$google_ad_slot,$google_ad_width,$google_ad_height) | |
{ | |
?> | |
<script async type="text/javascript"> | |
google_ad_client = "<?php echo $google_ad_client; ?>"; | |
google_ad_slot = "<?php echo $google_ad_slot; ?>"; | |
google_ad_width = <?php echo $google_ad_width; ?>; | |
google_ad_height = <?php echo $google_ad_height; ?>; | |
</script> | |
<script async type="text/javascript" |
This file contains hidden or 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 MOVIL($lista_user_agents, $user_agents_capturado){ | |
$List_User_Agent = array( | |
'android' => 'android', 'AvantGo' => 'AvantGo', 'PLAYSTATION' => 'PLAYSTATION','Mobile','Mobile', | |
'BlackBerry' => 'BlackBerry', 'blazer' => 'blazer', 'hiptop' => 'hiptop', 'GoBrowser' => 'GoBrowser', | |
'Cellphone' => 'Cellphone', 'EudoraWeb' => 'EudoraWeb', 'fennec' => 'fennec', 'IEMobile' => 'IEMobile', | |
'iPhone' => 'iPhone', 'iPod' => 'iPod', 'Googlebot-Mobile' => 'Googlebot-Mobile', 'Iris' => 'Iris', | |
'iphone' => 'iphone', 'GoogleMobilizer' => 'Google Wireless Transcoder', 'KYOCERA' => 'KYOCERA', | |
'LGE' => 'LGE', 'midp' => 'midp', 'Minimo' => 'Minimo', 'NetFront' => 'NetFront', 'Dorothy' => 'Dorothy', | |
'Nintendo' => 'Nintendo', 'Nitro' => 'Nitro', 'Nokia' => 'Nokia', 'Motorola' => 'mot-', 'TeaShark' => 'TeaShark', | |
'OperaMini' => 'Opera Mini', 'Palm' => 'Palm', 'PDA' => 'PDA', 'Blazer' => 'Blazer', 'iPad' => 'iPad', |
This file contains hidden or 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 hidden or 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
// Verificación de puertos | |
$ip = gethostbyaddr($_SERVER['REMOTE_ADDR']); // direccion IP | |
$timeout = 1; // 1 segundo de espera Máximo recomendado 10 | |
$puertos_TCP = array(21, // puertos usados | |
22, | |
23, | |
25, | |
79, | |
80, | |
110, |
This file contains hidden or 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 compress($buffer) | |
{ $search = array('/\>[^\S ]+/s','/[^\S ]+\</s','/(\s)+/s',"/\s+/"); | |
$replace = array('>','<','\\1',' '); | |
$buffer = trim(preg_replace($search, $replace, $buffer)); | |
$buffer = str_replace(' }','}', $buffer); | |
$buffer = str_replace('{ ','{', $buffer); | |
return $buffer; | |
} |
This file contains hidden or 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
$exif = exif_read_data('aqui_la_imagen.jpg', 0, true); | |
header("Content-type: image/jpeg"); | |
$imagen = exif_thumbnail("IMG-20140326-WA0010.jpg"); | |
imagejpeg($imagen,NULL,100); | |
foreach ($exif as $clave => $seccion) { | |
foreach ($seccion as $nombre => $valor) { | |
if ( "$clave.$nombre" == 'FILE.FileDateTime'){ $valor = date("d-m-Y",$valor); } | |
echo "$clave.$nombre : $valor<br />\n"; | |
} | |
} |
This file contains hidden or 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 hidden or 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 REDIMENSIONAR($anchura,$maxima_y,$nombre) | |
{ $img_nueva = $nombre; | |
$datos = getimagesize($nombre); | |
$maxima_y = $datos[1]; | |
switch ($datos[2]) { | |
case 2: | |
$img = imagecreatefromjpeg($nombre); | |
break; | |
case 3: | |
$img = imagecreatefrompng($nombre); |