if (!function_exists('get_absolute_path')) {
    function get_absolute_path()
    {
        $domain = '';
        if (isset($_SERVER['HTTP_HOST'])) {
            $domain = $_SERVER['HTTP_HOST'];
        } else {
            if (isset($_SERVER['SERVER_NAME'])) {
                $domain = $_SERVER['SERVER_NAME'];
            }
        }
        $port = strpos($domain, ':');
        if ($port !== false) {
            $domain = substr($domain, 0, $port);
        }
        // Get the path to the file
        $path = substr(dirname(__FILE__), strlen($_SERVER["DOCUMENT_ROOT"]));
        $apath = "//" . $domain . $path;
        $apath = str_replace('\\', '/', $apath);
        return $apath . '/..';
    }
}
// set the defaults url
if (!isset($site_url)) {
    $site_url = get_absolute_path();
}
//  setup new instance of plugin if not standalone
if (class_exists("advancediFrame")) {
    $cons_advancediFrame = new advancediFrame();
    echo $cons_advancediFrame->do_iframe_script(null, null);
}