Example #1
0
<?php

require $REX['INCLUDE_PATH'] . '/addons/seo42/classes/class.seo42_tool.inc.php';
require $REX['INCLUDE_PATH'] . '/addons/seo42/classes/class.seo42_tool_manager.inc.php';
$func = rex_request('func', 'string');
if ($func == 'add_domain') {
    $REX['ADDON']['seo42']['settings']['pagerank_checker_unlock'] = true;
    seo42_utils::updateSettingsFile();
}
$googleIndexLink = 'https://www.google.com/search?q=site:' . seo42::getServerWithSubDir();
?>

<?php 
if ($REX['ADDON']['seo42']['settings']['pagerank_checker']) {
    ?>
<div class="rex-addon-output">
	<h2 class="rex-hl2"><?php 
    echo $I18N->msg('seo42_pr_tool');
    ?>
</h2>
	<div class="rex-area-content">
		<div class="tool-icon"></div>
		<p><?php 
    echo $I18N->msg('seo42_pr_tool_msg') . ' ' . seo42::getServerWithSubdir();
    ?>
.</p>
		<p class="pr"><?php 
    echo $I18N->msg('seo42_pr_tool_pagerank');
    ?>
: <span id="pagerank" class="info"><?php 
    if ($REX['ADDON']['seo42']['settings']['pagerank_checker_unlock']) {