function __construct($url, $validate = false, $headers_only = false)
 {
     if (!seoauto_is_valid_url($url) && $validate == true) {
         throw new Exception('Invalid URL: ' . $url);
     } else {
         if ($headers_only != true) {
             $this->url = $url;
             $this->file = self::get();
         } else {
             $this->url = $url;
             $this->file = self::getHead();
         }
     }
 }
	');
$smarty->compile_dir = ABSPATH . PLUGINDIR . '/seo-automatic-seo-tools/writable';
//$smarty->template_dir = ABSPATH . PLUGINDIR . '/seo-automatic-seo-tools/libs/smarty/templates';
$smarty->config_dir = ABSPATH . PLUGINDIR . '/seo-automatic-seo-tools/libs/smarty/configs';
$smarty->plugins_dir = array(ABSPATH . PLUGINDIR . '/seo-automatic-seo-tools/libs/smarty/plugins');
/*****************************************/
$smarty->assign('page', $page);
if (empty($_REQUEST['url']) && !empty($_POST['seourl'])) {
    $_REQUEST['url'] = $_POST['seourl'];
}
if (isset($_REQUEST['url']) || isset($_POST['seourl']) || isset($_REQUEST['seoprint'])) {
    $url = ensure_url_scheme($_REQUEST['url'], 'http');
    if (empty($_REQUEST['url'])) {
        die('That doesn\'t look like a valid url.');
    }
    if (seoauto_is_valid_url($url)) {
        $settings = get_option('autoseo_options');
        if (function_exists('aw_paypal_user_has_credits') && $settings['paypal']['require']) {
            if (!aw_paypal_user_has_credits()) {
                die("Oops! You don't have enough credits to run that report.");
            }
            aw_paypal_charge_credits();
        }
        $smarty->assign('url', $url);
        if ($settings['ungrouped']['resultset']) {
            $showungrouped = 'ON';
        } else {
            $showungrouped = 'OFF';
        }
        //Heather
        $smarty->assign('showungrouped', $showungrouped);