当前位置: 首页>>代码示例>>PHP>>正文


PHP debugmessage函数代码示例

本文整理汇总了PHP中debugmessage函数的典型用法代码示例。如果您正苦于以下问题:PHP debugmessage函数的具体用法?PHP debugmessage怎么用?PHP debugmessage使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了debugmessage函数的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: cpfooter

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>";
}
开发者ID:softhui,项目名称:discuz,代码行数:39,代码来源:function_admincp.php

示例2: output

function output()
{
    global $_G;
    if (defined('DISCUZ_OUTPUTED')) {
        return;
    } else {
        define('DISCUZ_OUTPUTED', 1);
    }
    if (!empty($_G['blockupdate'])) {
        block_updatecache($_G['blockupdate']['bid']);
    }
    $_G['domain'] = array();
    foreach ($_G['config']['app']['domain'] as $app => $domain) {
        if ($domain || $_G['config']['app']['domain']['default']) {
            $domain = empty($domain) ? $_G['config']['app']['domain']['default'] : $domain;
            $_G['domain']['search'][$app] = "<a href=\"{$app}.php";
            $_G['domain']['replace'][$app] = '<a href="http://' . $domain . $_G['siteroot'] . $app . '.php';
            $_G['domain']['pregxp'][$app] = '<a href\\="http\\:\\/\\/(' . preg_quote($domain . $_G['siteroot'], '/') . ')' . preg_quote($app . '.php', '/');
        } else {
            $_G['domain']['pregxp'][$app] = "<a href\\=\"(){$app}.php";
        }
    }
    if ($_G['setting']['rewritestatus'] || $_G['domain']['search']) {
        $content = ob_get_contents();
        $_G['domain']['search'] && ($content = str_replace($_G['domain']['search'], $_G['domain']['replace'], $content));
        $_G['config']['app']['domain']['default'] && ($content = preg_replace("/<a href=\"([^\"]+)\"/e", "rewriteoutput('site_default', 0, '" . $_G['config']['app']['domain']['default'] . $_G['siteroot'] . "', '\\1')", $content));
        if ($_G['setting']['rewritestatus'] && !defined('IN_MODCP') && !defined('IN_ADMINCP')) {
            $searcharray = $replacearray = array();
            $array = rewritedata();
            $content = preg_replace($array['search'], $array['replace'], $content);
        }
        ob_end_clean();
        $_G['gzipcompress'] ? ob_start('ob_gzhandler') : ob_start();
        echo $content;
    }
    if ($_G['setting']['ftp']['connid']) {
        @ftp_close($_G['setting']['ftp']['connid']);
    }
    $_G['setting']['ftp'] = array();
    if (defined('CACHE_FILE') && CACHE_FILE && !defined('CACHE_FORBIDDEN')) {
        global $_G;
        if (diskfreespace(DISCUZ_ROOT . './' . $_G['setting']['cachethreaddir']) > 1000000) {
            if ($fp = @fopen(CACHE_FILE, 'w')) {
                flock($fp, LOCK_EX);
                fwrite($fp, empty($content) ? ob_get_contents() : $content);
            }
            @fclose($fp);
            chmod(CACHE_FILE, 0777);
        }
    }
    if (defined('DISCUZ_DEBUG') && DISCUZ_DEBUG && @(include libfile('function/debug'))) {
        function_exists('debugmessage') && debugmessage();
    }
}
开发者ID:Kingson4Wu,项目名称:php_demo,代码行数:54,代码来源:function_core.php

示例3: output_ajax

function output_ajax()
{
    global $_G;
    $s = ob_get_contents();
    ob_end_clean();
    $s = preg_replace("/([\\x01-\\x08\\x0b-\\x0c\\x0e-\\x1f])+/", ' ', $s);
    $s = str_replace(array(chr(0), ']]>'), array(' ', ']]&gt;'), $s);
    if (defined('DISCUZ_DEBUG') && DISCUZ_DEBUG && @(include libfile('function/debug'))) {
        function_exists('debugmessage') && ($s .= debugmessage(1));
    }
    $havedomain = implode('', $_G['setting']['domain']['app']);
    if ($_G['setting']['rewritestatus'] || !empty($havedomain)) {
        $s = output_replace($s);
    }
    return $s;
}
开发者ID:dalinhuang,项目名称:healthshop,代码行数:16,代码来源:function_core.php

示例4: cpfooter

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>";
}
开发者ID:v998,项目名称:discuzx-en,代码行数:51,代码来源:function_admincp.php

示例5: cpfooter

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>";

}
开发者ID:vuchannguyen,项目名称:vuchan,代码行数:46,代码来源:function_admincp.php

示例6: output

function output()
{
    global $_G;
    if (defined('DISCUZ_OUTPUTED')) {
        return;
    } else {
        define('DISCUZ_OUTPUTED', 1);
    }
    if (!empty($_G['blockupdate'])) {
        block_updatecache($_G['blockupdate']['bid']);
    }
    $_G['domain'] = array();
    $port = empty($_SERVER['SERVER_PORT']) || $_SERVER['SERVER_PORT'] == '80' ? '' : ':' . $_SERVER['SERVER_PORT'];
    foreach ($_G['config']['app']['domain'] as $app => $domain) {
        if ($domain || $_G['config']['app']['domain']['default']) {
            $domain = empty($domain) ? $_G['config']['app']['domain']['default'] : $domain;
            $_G['domain']['search'][$app] = "<a href=\"{$app}.php";
            $_G['domain']['replace'][$app] = '<a href="http://' . $domain . $port . $_G['siteroot'];
            $_G['domain']['pregxprw'][$app] = '<a href\\="http\\:\\/\\/(' . preg_quote($domain . $port . $_G['siteroot'], '/') . ')';
        } else {
            $_G['domain']['pregxprw'][$app] = "<a href\\=\"(){$app}.php";
        }
    }
    if (defined('DISCUZ_DEBUG') && DISCUZ_DEBUG && @(include libfile('function/debug'))) {
        function_exists('debugmessage') && debugmessage();
    }
}
开发者ID:pan289091315,项目名称:Discuz,代码行数:27,代码来源:function_core.php

示例7: output_ajax

function output_ajax()
{
    $s = ob_get_contents();
    ob_end_clean();
    $s = preg_replace("/([\\x01-\\x08\\x0b-\\x0c\\x0e-\\x1f])+/", ' ', $s);
    $s = str_replace(array(chr(0), ']]>'), array(' ', ']]&gt;'), $s);
    if (defined('DISCUZ_DEBUG') && DISCUZ_DEBUG && @(include libfile('function/debug'))) {
        function_exists('debugmessage') && ($s .= debugmessage(1));
    }
    return $s;
}
开发者ID:v998,项目名称:discuzx-en,代码行数:11,代码来源:function_core.php

示例8: cpfooter

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>";
}
开发者ID:v998,项目名称:discuzx-en,代码行数:40,代码来源:function_admincp.php


注:本文中的debugmessage函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。