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
global $palabras; | |
$GLOBALS['palabras'] = array( | |
' a ',' ah ', ' al ', ' alla ',' alo ',' ano ',' ante ',' anti ',' am ',' aquel ', ' aquellos ',' aquellas ',' ay ', | |
' asi ', | |
' bajo ', ' bien ',' bueno ', | |
' casi ',' con ', ' contra ', ' coma ', ' comer ',' como ', ' cómo ', ' cambiar ', | |
' da ',' dando ',' de ' , ' del ', ' dejar ',' desde ',' di ', ' dia ', 'dice',' donde ',' dijo ',' don ', | |
' e ', ' el ', ' ella ', ' ellas ', ' ellos ',' en ' ,' entonces ', ' entre ', ' era ',' es ', ' esa ',' ese ', | |
' esas ',' eso ',' esos ',' esta ', ' estan ',' estas ',' esto ',' estos ', | |
' fue ',' fueron ',' fuese ',' fuesen ',' fui ',' fuimos ', ' full ', |
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 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 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 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 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 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 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 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 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); |
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
Options +FollowSymlinks | |
FileETag None | |
RewriteEngine On | |
RewriteCond %{HTTP_USER_AGENT} libwww [NC,OR] | |
RewriteCond %{QUERY_STRING} ^(.*)=http [NC] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR] | |
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR] | |
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR] |
OlderNewer