HEX
Server: Apache
System: Linux msm5694.mjhst.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: camjab_ssh (1000)
PHP: 5.3.29
Disabled: NONE
Upload Files
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;
        }
    }

}
?>