File: /home/httpd/html/baretube.com.new/admin/scrape_functions.php
<?php
include_once('config.php');
include_once('scrape_class.php');
if (!function_exists('decode_url')) {
function decode_url($url) {
$search = array('%26', '%2F', '%3A', '%3D', '%3F', '%2f', '%3a', '%3d', '%3f');
$replace = array('&', '/', ':', '=', '?', '/', ':', '=', '?');
$url = str_replace($search, $replace, $url);
return $url;
}
}
if (!function_exists('decode_url')) {
function getAttribute($attrib, $tag) {
$re = '/' . $attrib . '=["\']?([^"\' ]*)["\' ]/is';
preg_match($re, $tag, $match);
if ($match) {
return urldecode($match[1]);
} else {
return false;
}
}
}
?>