<?php /* Author: Jeffery Schefke License : GNU General Public License phproxyimproved.com */ //To Do: Implment into Admin Module //Completeting the URL include_once '../index.php'; //Mobile link for Facebook $mfb = complete_url('http://m.facebook.com/'); //Force users to use Facebook mobile $forcemoble = false; //Title message $tmassage = "Sorry, PHProxyImproved does not support facebook.com"; //Body Message $tbody = "Please try the <a href=" . $mfb . ">mobile version</a> of Facebook.";
function proxify_css_url($url) { $url = trim($url); $delim = strpos($url, '"') === 0 ? '"' : (strpos($url, "'") === 0 ? "'" : ''); return $delim . preg_replace('#([\\(\\),\\s\'"\\\\])#', '\\$1', complete_url(trim(preg_replace('#\\\\(.)#', '$1', trim($url, $delim))))) . $delim; }
case 'frame': case 'iframe': if (isset($attrs['src'])) { $rebuild = true; $attrs['src'] = complete_url($attrs['src']) . '&nf=1'; } if (isset($attrs['longdesc'])) { $rebuild = true; $attrs['longdesc'] = complete_url($attrs['longdesc']); } break; default: foreach ($tags[$tag] as $attr) { if (isset($attrs[$attr])) { $rebuild = true; $attrs[$attr] = complete_url($attrs[$attr]); } } break; } } if ($rebuild) { $new_tag = "<{$tag}"; foreach ($attrs as $name => $value) { $delim = strpos($value, '"') && !strpos($value, "'") ? "'" : '"'; $new_tag .= ' ' . $name . ($value !== false ? '=' . $delim . $value . $delim : ''); } $_response_body = str_replace($matches[0][$i], $new_tag . '>' . $extra_html, $_response_body); } } if ($_flags['include_form'] && !isset($_GET['nf'])) {