function areaFooter() { global $db_advertdb; if (!defined('AREA_PAGE') && ($db_advertdb['Site.PopupNotice'] || $db_advertdb['Site.FloatLeft'] || $db_advertdb['Site.FloatRight'] || $db_advertdb['Site.FloatRand'])) { require PrintEot('advert'); } $output = cookTemplate(); echo ObContents($output); unset($output); N_flush(); }
function guestfooter() { global $db_footertime, $db_obstart, $db_union, $P_S_T, $timestamp, $db; Update_ol(); $wind_spend = ''; if ($db_footertime == 1) { $t_array = explode(' ', microtime()); $totaltime = number_format($t_array[0] + $t_array[1] - $P_S_T, 6); $qn = $db ? $db->query_num : 0; $wind_spend = "Total {$totaltime}(s) query {$qn},"; } $ft_time = get_date($timestamp, 'm-d H:i'); $ft_gzip = ($db_obstart ? 'Gzip enabled' : 'Gzip disabled') . $db_union[3]; $output = preg_replace("/<span id=\"windspend\"\\>(.+?)<\\/span>/is", "<span id=\"windspend\">{$wind_spend} Time now is:{$ft_time}, {$ft_gzip}</span>", ob_get_contents()); echo ObContents($output); unset($output); N_flush(); exit; }
<script type="text/javascript" src="js/pw_ajax.js"></script> <script type="text/javascript"> var imgpath = '{$imgpath}'; var verifyhash = '{$verifyhash}'; var modeimg = '{$pwModeImg}'; var modeBase = '{$baseUrl}'; var winduid = '{$winduid}'; var windid\t= '{$windid}'; var groupid\t= '{$groupid}'; var basename = '{$basename}'; var temp_basename = '{$temp_basename}'; </script> </head> <body> <div class="main-wrap"> \t<div id="main"> EOT; include stopic_load_topic_view($special); print <<<EOT \t</div> </div> <script type="text/javascript" src="js/global.js"></script> </body> </html> EOT; $output = ob_get_contents(); $output = str_replace(array('<!--<!--<!---->', '<!--<!---->', '<!---->-->', '<!---->'), '', $output); echo ObContents($output); unset($output);
function afooter($unfoot = null) { static $showafooter; global $db_redundancy, $wind_version, $db, $db_debug, $admin_keyword; $showafooter = false; if (empty($unfoot)) { $showafooter = true; require PrintEot('adminbottom'); } $output = ob_get_contents(); $output = str_replace(array('<!--<!--<!---->', '<!--<!---->', '<!---->-->', '<!---->'), '', $output); if ($admin_keyword) { $output = preg_replace('/(' . preg_quote($admin_keyword, '/') . ')([^">]*<)(?!\\/script|\\/textarea)/si', '<font color="red"><u>\\1</u></font>\\2', $output); } $output = preg_replace("/\\<form([^\\<\\>]*)\\saction=['|\"]?([^\\s\"'\\<\\>]+)['|\"]?([^\\<\\>]*)\\>/ies", "FormCheck('\\1','\\2','\\3')", rtrim($output, '<!--')); echo ObContents($output); unset($output); exit; }
<?php !defined('P_W') && exit('Forbidden'); S::gp(array('alias', 'ifactive'), 'G'); header('Content-type: application/javascript;charset=' . $db_charset); header('Cache-Control: no-cache'); extract(L::style('', $skinco)); //* include_once pwCache::getPath(D_P.'data/bbscache/area_config.php'); pwCache::getData(D_P . 'data/bbscache/area_config.php'); $chanelService = L::loadClass('channelService', 'area'); $channelInfo = $chanelService->getChannelInfoByAlias($alias); if (empty($channelInfo)) { exit; } $areaLevelService = L::loadClass('arealevel', 'area'); $ifChannelEdit = $areaLevelService->getAreaLevel($winduid, $channelInfo['id']); list($_Navbar, $_LoginInfo) = pwNavBar(); list(, $showq) = explode("\t", $db_qcheck); require modeEot('m_header'); $output = str_replace(array('<!--<!---->', '<!---->'), '', ob_get_contents()); $output = addslashes(preg_replace("'([\r\n])+'", "", trim($output))); $output = str_replace('</script>', '<\\/script>', $output); echo ObContents("document.write('" . $output . "');");
function footer() { global $db, $db_obstart, $db_footertime, $db_htmifopen, $P_S_T, $mtablewidth, $db_ceoconnect, $wind_version, $imgpath, $stylepath, $footer_ad, $db_union, $timestamp, $db_icp, $db_icpurl, $db_advertdb, $groupid, $SCR, $db_ystats_ifopen, $db_ystats_unit_id, $db_ystats_style, $db_redundancy, $pwServer, $db_ifcredit, $credit_pop, $db_foot, $db_mode, $db_modes, $shortcutforum, $_G, $winddb, $db_toolbar, $winduid, $db_menuinit, $db_appifopen, $db_job_ispop, $db_job_isopen, $db_siteappkey; defined('AJAX') && ajax_footer(); Update_ol(); $wind_spend = ''; $ft_gzip = ($db_obstart ? 'Gzip enabled' : 'Gzip disabled') . $db_union[3]; if ($db_footertime == 1) { $t_array = explode(' ', microtime()); $totaltime = number_format($t_array[0] + $t_array[1] - $P_S_T, 6); $qn = $db ? $db->query_num : 0; $wind_spend = "Total {$totaltime}(s) query {$qn},"; } $ft_time = get_date($timestamp, 'm-d H:i'); $db_icp && ($db_icp = "<a href=\"http://www.miibeian.gov.cn\" target=\"_blank\">{$db_icp}</a>"); if ($db_toolbar) { if ($_COOKIE['toolbarhide']) { $toolbarstyle = 'style="display:none"'; $openbarstyle = ''; $closebarstyle = 'style="display:none"'; } else { $toolbarstyle = ''; $openbarstyle = 'style="display:none"'; $closebarstyle = ''; if ($db_appifopen) { $appshortcut = trim($winddb['appshortcut'], ','); if (!empty($appshortcut) && $db_siteappkey) { $appclient = L::loadClass('appclient'); $bottom_appshortcut = $appclient->userApplist($winduid, $appshortcut, 1); } } } } $db_menuinit = trim($db_menuinit, ','); runJob(); require PrintEot('footer'); if ($db_advertdb['Site.PopupNotice'] || $db_advertdb['Site.FloatLeft'] || $db_advertdb['Site.FloatRight'] || $db_advertdb['Site.FloatRand']) { require PrintEot('advert'); } $output = ob_get_contents(); if ($db_htmifopen) { $output = preg_replace("/\\<a(\\s*[^\\>]+\\s*)href\\=([\"|\\']?)((index|cate|thread|read|faq|rss)\\.php\\?[^\"\\'>\\s]+\\s?)[\"|\\']?/ies", "Htm_cv('\\3','<a\\1href=\"')", $output); } if ($db_redundancy && $SCR != 'post') { /* $output = str_replace( array("\r","\n\n","\n\t","\n ",">\n","\n<","}\n","{\n",";\n","/\n","\t ",">\t","\t<","}\t","{\t",";\t","/\t",' ','<!--<!---->','<!---->'), array('',"\n",' ',' ','>','<','}','{',';','/',' ','>','<','}','{',';','/',' ','',''), $output ); */ $output = str_replace(array("\r", '<!---->-->', '<!--<!---->', "<!---->\n", '<!---->', '<!-- -->', "<!--\n-->", "\t\t", ' ', "\n\t", "\n\n"), array('', '', '', '', '', '', '', "\n", "\n"), $output); } else { $output = str_replace(array('<!---->-->', '<!--<!---->', "<!---->\r\n", '<!---->', '<!-- -->', "\t\t\t"), '', $output); } if ($SCR != 'post') { $ceversion = defined('CE') ? 1 : 0; $output .= "<script language=\"JavaScript\" src=\"http://init.phpwind.net/init.php?sitehash={$GLOBALS[db_sitehash]}&v={$wind_version}&c={$ceversion}\"></script>"; } if ($groupid == 'guest' && !defined('MSG') && GetGcache()) { require_once R_P . 'require/guestfunc.php'; creatguestcache($output); } updateCacheData(); echo ObContents($output); unset($output); N_flush(); exit; }
function ajax_footer() { global $db_charset; $output = str_replace(array('<!--<!---->', '<!---->'), '', ob_get_contents()); header("Content-Type: text/xml;charset={$db_charset}"); echo ObContents("<?xml version=\"1.0\" encoding=\"{$db_charset}\"?><ajax><![CDATA[" . $output . "]]></ajax>"); exit; }
/** * 将输出缓存中的内容以ajax格式输出,并中断程序 * * @global string $db_charset */ function ajax_footer() { global $db_charset, $db_htmifopen; if (defined('SHOWLOG')) { Error::writeLog(); } $output = str_replace(array('<!--<!--<!---->', '<!--<!---->', '<!---->-->', '<!---->', '<!-- -->'), '', ob_get_contents()); if (P_W == 'admincp') { $output = preg_replace("/\\<form([^\\<\\>]*)\\saction=['|\"]?([^\\s\"'\\<\\>]+)['|\"]?([^\\<\\>]*)\\>/ies", "FormCheck('\\1','\\2','\\3')", rtrim($output, '<!--')); } else { $output = parseHtmlUrlRewrite($output, $db_htmifopen); } header("Content-Type: text/xml;charset={$db_charset}"); echo ObContents("<?xml version=\"1.0\" encoding=\"{$db_charset}\"?><ajax><![CDATA[" . $output . "]]></ajax>"); exit; }
exit('document.write("<div style=\\"background:#ffffe3;border:1px solid #cccccc;color:#333;padding:5px 10px;\\">模块api未开放</div>");'); } $pieces = $invokeService->getInvokePieces($invokeInfo['name']); if (!$pieces) { exit('document.write("id is null");'); } $tplGetData = L::loadClass('tplgetdata', 'area'); $tplGetData->init($pieces); $invokeFile = $invokeService->getInvokeApiFile($id); if (!file_exists($invokeFile)) { pwCache::writeover($invokeFile, "<?php\r\nprint <<<EOT\r\n" . $invokeInfo['parsecode'] . "\r\nEOT;\r\n?>"); } include_once Pcv($invokeFile); $result = preg_replace("/\\<a(\\s*[^\\>]+\\s*)href=([\"|\\'])([^\"\\'>\\s]+)(\\2)/ies", "encodeApiUrl('\\3','\\1')", ob_get_contents()); $result = str_replace(array('"', "\r", "\n"), array('\\"', "", ""), $result); $result = ObContents('document.write("' . $result . '");'); echo $result; } elseif ($type == 'data') { $pieceInfo = $invokeService->getInvokePieceByInvokeId($id); if (!$pieceInfo) { exit('document.write("id is null");'); } $invokeInfo = $invokeService->getInvokeByName($pieceInfo['invokename']); if (!$invokeInfo) { exit('document.write("id is null");'); } if (!$invokeInfo['ifapi']) { exit('document.write("<div style=\\"background:#ffffe3;border:1px solid #cccccc;color:#333;padding:5px 10px;\\">模块api未开放</div>");'); } $pieces = array(); $pieces[$id] = $pieceInfo['title'];
function pwOutPut() { global $db_htmifopen, $db_redundancy, $SCR, $groupid; $masterDb = $GLOBALS['db']->getMastdb(); if ($masterDb->arr_query) { writeover(D_P . "data/sqllist.txt", $masterDb->arr_query, 'wb'); } Update_ol(); $output = parseHtmlUrlRewrite(ob_get_contents(), $db_htmifopen); if ($db_redundancy && $SCR != 'post') { $output = str_replace(array("\r", '<!--<!---->-->', '<!---->-->', '<!--<!---->', "<!---->\n", '<!---->', '<!-- -->', "<!--\n-->", "\t\t", ' ', "\n\t", "\n\n"), array('', '', '', '', '', '', '', '', '', '', "\n", "\n"), $output); } else { $output = str_replace(array('<!--<!---->-->', '<!---->-->', '<!--<!---->', "<!---->\r\n", '<!---->', '<!-- -->', "\t\t\t"), '', $output); } if (!defined('AJAX')) { require_once R_P . 'aCloud/aCloud.php'; $output .= ACloud_App_Guiding::getApp(); } if ($SCR != 'post' && !defined('AJAX')) { $ceversion = defined('CE') ? 1 : 0; $output .= "<script type=\"text/javascript\">(function(d,t){\r\nvar url=\"http://init.phpwind.net/init.php?sitehash={$GLOBALS[db_sitehash]}&v={$GLOBALS[wind_version]}&c={$ceversion}\";\r\nvar g=d.createElement(t);g.async=1;g.src=url;d.body.insertBefore(g,d.body.firstChild);}(document,\"script\"));</script>"; } if ($groupid == 'guest' && !defined('MSG') && GetGcache()) { require_once R_P . 'require/guestfunc.php'; creatguestcache($output); } if (defined('SHOWLOG')) { Error::writeLog(); } if (defined('PW_PACK_FILES')) { pwPack::files(); } echo ObContents($output); unset($output); N_flush(); exit; }