本文整理汇总了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">您当前使用的 Discuz! 程序版本有重要更新,请参照以下提示进行及时升级</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: 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();
}
}
示例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(' ', ']]>'), $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;
}
示例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>";
}
示例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>";
}
示例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();
}
}
示例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(' ', ']]>'), $s);
if (defined('DISCUZ_DEBUG') && DISCUZ_DEBUG && @(include libfile('function/debug'))) {
function_exists('debugmessage') && ($s .= debugmessage(1));
}
return $s;
}
示例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>";
}