Esempio n. 1
0
    $url2 = str_replace("http://", "", isset($_POST['seourl']));
} else {
    $url2 = str_replace("http://", "", isset($_GET['url']));
}
if ($url2 == '1') {
    $url2 = '';
}
$seoautorun = plugins_url() . '/seo-automatic-seo-tools/index.php';
$smarty->assign('app', $settings['app']);
// Site Branding
$smarty->assign('locale', $settings['locale']);
$smarty->assign('this_theme', plugins_url() . '/seo-automatic-seo-tools/themes/' . $settings['app']['theme']);
$smarty->assign('navigation', isset($settings['navigation']));
$smarty->assign('this_page', get_permalink($post->ID));
//for permalinks
$smarty->assign('perma_page', unslash_url(isset($_POST['ref'])));
//for permalinks
$smarty->assign('heading_correct', $settings['heading']['correct']);
$smarty->assign('heading_problem', $settings['heading']['problem']);
$smarty->assign('heading_critical', $settings['heading']['critical']);
$smarty->assign('heading_overview', $settings['heading']['overview']);
$smarty->assign('button_text', $settings['misc']['button']);
$smarty->assign('url_path', $urlpath);
$smarty->assign('analyze_loader', 'analyze');
$smarty->assign('url2', $url2);
$smarty->assign('seoautorun', $seoautorun);
$smarty->assign('top_message', str_replace('[number-credits]', get_usermeta($user_ID, 'paypalcredits'), $settings['misc']['top-message']));
// Disable functions
$smarty->assign('title_enable', $settings['locale']['title']['enable']);
$smarty->assign('description_enable', $settings['locale']['description']['enable']);
$smarty->assign('h1_status_enable', $settings['locale']['h1_status']['enable']);
Esempio n. 2
0
        if ($settings['ungrouped']['resultset']) {
            $showungrouped = 'ON';
        } else {
            $showungrouped = 'OFF';
        }
        //Heather
        $smarty->assign('showungrouped', $showungrouped);
        //Heather
        $results = new SEOSite($url);
        $smarty->assign_by_ref('results', $results);
        //$postid = autoseo_save_report($results, $url); // function defined in seo-automatic.php
        if (empty($user_ID)) {
            $token = '&token=' . wp_create_nonce(wp_salt() . $postid);
        }
        //add a nonce to the end of print urls for security
        $smarty->assign('print_url', unslash_url($_POST['ref']) . '/?url=' . $url . '&seoprint=1' . $token);
        if (isset($_REQUEST['seoprint'])) {
            $smarty->assign('url', $url);
        } else {
            autoseo_tracking($url);
        }
    } else {
        $smarty->assign('error', "Oops! You need to enter a valid URL.");
    }
}
//Print Versions
if (isset($_REQUEST['seoprint']) && isset($_REQUEST['reportid'])) {
    //		if (empty($_REQUEST['reportid']))
    //			die('There was a problem accessing this report');
    //		error_reporting(0);
    //		$report = get_post($_REQUEST['reportid']);