示例#1
0
function cpfooter()
{
    global $_G, $admincp;
    if (defined('FOOTERDISABLED')) {
        exit;
    }
    require_once DISCUZ_ROOT . './source/discuz_version.php';
    $version = DISCUZ_VERSION;
    $charset = CHARSET;
    echo "\n</div>";
    if (!empty($_GET['highlight'])) {
        $kws = explode(' ', $_GET['highlight']);
        echo '<script type="text/JavaScript">';
        foreach ($kws as $kw) {
            echo 'parsetag(\'' . dhtmlspecialchars($kw) . '\');';
        }
        echo '</script>';
    }
    if (defined('DISCUZ_DEBUG') && DISCUZ_DEBUG && @(include libfile('function/debug'))) {
        function_exists('debugmessage') && debugmessage();
    }
    if ($_G['adminid'] == 1 && $_GET['action'] == 'index') {
        $release = DISCUZ_RELEASE;
        $newsurl = 'ht' . 'tp:/' . '/cus' . 'tome' . 'r.disc' . 'uz.n' . 'et/n' . 'ews' . '.p' . 'hp?' . siteinformation();
        echo <<<EOT
<script type="text/javascript">
\tvar newhtml = '';
\tnewhtml += '<table class="tb tb2"><tr><th class="partition edited">&#x60A8;&#x5F53;&#x524D;&#x4F7F;&#x7528;&#x7684; Discuz! &#x7A0B;&#x5E8F;&#x7248;&#x672C;&#x6709;&#x91CD;&#x8981;&#x66F4;&#x65B0;&#xFF0C;&#x8BF7;&#x53C2;&#x7167;&#x4EE5;&#x4E0B;&#x63D0;&#x793A;&#x8FDB;&#x884C;&#x53CA;&#x65F6;&#x5347;&#x7EA7;</th></tr>';
\tnewhtml += '<tr><td class="tipsblock"><a href="http://faq.comsenz.com/checkversion.php?product=Discuz&version={$version}&release={$release}&charset={$charset}" target="_blank"><img src="{$newsurl}" onload="shownews()" /></a></td></tr></table>';
\t\$('boardnews').style.display = 'none';
\t\$('boardnews').innerHTML = newhtml;
\tfunction shownews() {
\t\t\$('boardnews').style.display = '';
\t}
</script>
EOT;
    }
    echo "\n</body>\n</html>";
}
示例#2
0
function cpfooter() {
	global $_G, $admincp;
	if(defined('FOOTERDISABLED')) {
		exit;
	}

	require_once DISCUZ_ROOT.'./source/discuz_version.php';
	$version = DISCUZ_VERSION;
	$charset = CHARSET;

	echo "\n</div>";
	if(!empty($_GET['highlight'])) {
		$kws = explode(' ', $_GET['highlight']);
		echo '<script type="text/JavaScript">';
		foreach($kws as $kw) {
			$kw = addslashes($kw);
			echo 'parsetag(\''.dhtmlspecialchars($kw, ENT_QUOTES).'\');';
		}
		echo '</script>';
	}

	if(defined('DISCUZ_DEBUG') && DISCUZ_DEBUG && @include(libfile('function/debug'))) {
		function_exists('debugmessage') && debugmessage();
	}

	if($_G['adminid'] == 1 && $_GET['action'] == 'index') {
		$release = DISCUZ_RELEASE;

		$newsurl =  'ht'.'tp:/'.'/cus'.'tome'.'r.disc'.'uz.n'.'et/n'.'ews'.'.p'.'hp?'.siteinformation();
		echo <<<EOT
<script type="text/javascript">
	var newhtml = '';
	newhtml += '<table class="tb tb2"><tr><th class="partition edited">Kiểm tra phiên bản discuz.</th></tr>';
	newhtml += '<tr><td class="tipsblock"><a href="http://help.discuzvn.com/checkversion.php?product=Discuz&version={$version}&release={$release}&charset={$charset}" target="_blank"><img src="{$newsurl}" onload="shownews()" /></a></td></tr></table>';
	\$('boardnews').style.display = 'none';
	\$('boardnews').innerHTML = newhtml;
	function shownews() {
		\$('boardnews').style.display = '';
	}
</script>
EOT;
	}

	echo "\n</body>\n</html>";

}
示例#3
0
function cpfooter()
{
    global $_G, $admincp;
    if (defined('FOOTERDISABLED')) {
        exit;
    }
    require_once DISCUZ_ROOT . './source/discuz_version.php';
    $version = DISCUZ_VERSION;
    $charset = CHARSET;
    echo "\n</div>";
    if (!empty($_GET['highlight'])) {
        $kws = explode(' ', $_GET['highlight']);
        echo '<script type="text/JavaScript">';
        foreach ($kws as $kw) {
            echo 'parsetag(\'' . htmlspecialchars($kw) . '\');';
        }
        echo '</script>';
    }
    if (defined('DISCUZ_DEBUG') && DISCUZ_DEBUG && @(include libfile('function/debug'))) {
        function_exists('debugmessage') && debugmessage();
    }
    if ($_G['adminid'] == 1 && $_GET['action'] == 'index') {
        $release = DISCUZ_RELEASE;
        /*vot*/
        $newsurl = 'http://customer.discuz.net/news.php?' . siteinformation();
        /*vot*/
        $subscribe = cplang('subscribe');
        /*vot*/
        $lang = DISCUZ_LANG;
        echo <<<EOT
<script type="text/javascript">
\tvar newhtml = '';
/*vot*/\tvar lang = '{$lang}';
/*vot*/\tvar code;
/*vot*/\tnewhtml += '<table class="tb tb2"><tr><th class="partition edited">You are currently using up-to-date Discuz! program. To update, please refer to the prompts of following line</th></tr>';
\tnewhtml += '<tr><td class="tipsblock"><a href="http://faq.comsenz.com/checkversion.php?product=Discuz&version={$version}&release={$release}&charset={$charset}" target="_blank"><img src="{$newsurl}" onload="shownews()" /></a></td></tr></table>';
/*vot*/\tvar elem = document.getElementsByClassName('rssbutton')[0];
/*vot*/\tcode = elem.innerHTML;
/*vot*/\tcode = elem.innerHTML.replace(/订阅/, '{$subscribe}');

/*vot*/\telem.innerHTML = code;
\t\$('boardnews').style.display = 'none';
//vot\t\$('boardnews').innerHTML = newhtml;
\tfunction shownews() {
\t\t\$('boardnews').style.display = '';
\t}
</script>
EOT;
    }
    echo "\n</body>\n</html>";
}
示例#4
0
function cpfooter()
{
    global $_G, $admincp;
    if (defined('FOOTERDISABLED')) {
        exit;
    }
    require_once DISCUZ_ROOT . './source/discuz_version.php';
    $version = DISCUZ_VERSION;
    $charset = CHARSET;
    echo "\n</div>";
    if (!empty($_GET['highlight'])) {
        $kws = explode(' ', $_GET['highlight']);
        echo '<script type="text/JavaScript">';
        foreach ($kws as $kw) {
            echo 'parsetag(\'' . htmlspecialchars($kw) . '\');';
        }
        echo '</script>';
    }
    if (defined('DISCUZ_DEBUG') && DISCUZ_DEBUG && @(include libfile('function/debug'))) {
        function_exists('debugmessage') && debugmessage();
    }
    if ($_G['adminid'] == 1 && $_GET['action'] == 'index') {
        $release = DISCUZ_RELEASE;
        /*vot*/
        $newsurl = 'http://customer.discuz.net/news.php?' . siteinformation();
        echo <<<EOT
<script type="text/javascript">
\tvar newhtml = '';
\tnewhtml += '<table class="tb tb2"><tr><th class="partition edited">'+lng['version_uptodate']+'</th></tr>';
\tnewhtml += '<tr><td class="tipsblock"><a href="http://faq.comsenz.com/checkversion.php?product=Discuz&version={$version}&release={$release}&charset={$charset}" target="_blank"><img src="{$newsurl}" onload="shownews()" /></a></td></tr></table>';
\t\$('boardnews').style.display = 'none';
\t\$('boardnews').innerHTML = newhtml;
\tfunction shownews() {
\t\t\$('boardnews').style.display = '';
\t}
</script>
EOT;
    }
    echo "\n</body>\n</html>";
}