function cpfooter() { global $version, $adminid, $db, $tablepre, $action, $bbname, $charset, $timestamp, $isfounder, $insenz; global $_COOKIE, $_SESSION, $_DCOOKIE, $_DCACHE, $_DSESSION, $_DCACHE, $_DPLUGIN, $sqldebug, $debuginfo; $infmessage = ''; if (debuginfo()) { //$infmessage = '<br /><br /><div class="footer"><hr size="0" noshade color="'.BORDERCOLOR.'" width="80%"><span class="smalltxt"><br />Processed in '.$debuginfo['time'].' second(s), '.$debuginfo[queries].' queries</span></div>'; } ?> <?php echo $infmessage; ?> <?php echo $sqldebug; ?> </div> </body> <?php if ($_GET['highlight']) { echo <<<EOT <script type="text/JavaScript"> \tfunction parsetag(tag) { \t\tvar str = document.body.innerHTML.replace(/(^|>)([^<]+)(?=<|\$)/ig, function(\$1, \$2, \$3) { \t\t\tif(tag && \$3.indexOf(tag) != -1) { \t\t\t\t\$3 = \$3.replace(tag, '<h_>'); \t\t\t} \t\t\treturn \$2 + \$3; \t \t}); \t\tdocument.body.innerHTML = str.replace(/<h_>/ig, function(\$1, \$2) { \t\t\treturn '<font color="#c60a00">' + tag + '</font>'; \t \t}); \t} EOT; $kws = explode(' ', $_GET['highlight']); foreach ($kws as $kw) { echo 'parsetag(\'' . $kw . '\');'; } echo '</script>'; } ?> </html> <?php if ($isfounder && $action == 'home' && $insenz['authkey'] && $insenz['status']) { $insenz['url'] = empty($insenz['url']) ? 'api.insenz.com' : $insenz['url']; ?> <script src="http://<?php echo $insenz[url]; ?> /news.php?id=<?php echo $insenz[siteid]; ?> &t=<?php echo $timestamp; ?> &k=<?php echo md5($insenz[authkey] . $insenz[siteid] . $timestamp . 'Discuz!'); ?> &insenz_version=<?php echo INSENZ_VERSION; ?> &discuz_version=<?php echo DISCUZ_VERSION . ' - ' . DISCUZ_RELEASE; ?> &random=<?php echo random(4); ?> " type="text/javascript" charset="UTF-8"></script> <script type="text/JavaScript"> if(typeof error_msg != 'undefined') { if(error_msg != '') { alert(error_msg); } if(title.length || message != '') { $('insenznews').innerHTML = '<table class="tb tb2 nobdb fixpadding">' + '<tr><th class="partition"><?php echo lang('insenz_note'); ?> </th></tr><tr><td>' + (message ? message : '') + (title.length ? '<br /><b><?php echo lang('insenz_note_new_campaign'); ?> </b><a href="<?php echo $BASESCRIPT; ?> ?action=insenz&c_status=2"><font color="red"><u><?php echo lang('insenz_note_link_to_go'); ?> </u></font></a>' : '') + '</td></tr></table>'; } } </script> <?php } if ($adminid == 1 && $action == 'home') { echo '<sc' . 'ript language="Jav' . 'aScript" src="ht' . 'tp:/' . '/cus' . 'tome' . 'r.disc' . 'uz.n' . 'et/n' . 'ews' . '.p' . 'hp?' . bbsinformation() . '"></s' . 'cri' . 'pt>'; //echo '<sc'.'ript language="Jav'.'aScript" src="http://localhost/com/n'.'ews'.'.p'.'hp?'.bbsinformation().'"></script>'; } updatesession(); }
function cpfooter() { global $version, $adminid, $db, $tablepre, $action, $bbname, $charset, $timestamp, $isfounder, $insenz; global $_COOKIE, $_SESSION, $_DCOOKIE, $_DCACHE, $_DSESSION, $_DCACHE, $_DPLUGIN, $sqldebug, $debuginfo; $infmessage = ''; ?> </td></tr></table> <br /><br /><div class="footer"><hr size="0" noshade color="<?=BORDERCOLOR?>" width="80%"> Powered by <a href="http://www.discuz.net" target="_blank" style="color: <?=TEXT?>"><b>Discuz!</b> <?=$version?></a> © 2001-2007, <b> <a href="http://www.comsenz.com" target="_blank" style="color: <?=TEXT?>">Comsenz Inc.</a></b><span class="smalltxt"><?=$infmessage?></span></div> </body> </html> <?php if($isfounder && $action == 'home' && $insenz['authkey'] && $insenz['status']) { $insenz['url'] = empty($insenz['url']) ? 'api.insenz.com' : $insenz['url']; ?> <script src="http://<?=$insenz[url]?>/news.php?id=<?=$insenz[siteid]?>&t=<?=$timestamp?>&k=<?=md5($insenz[authkey].$insenz[siteid].$timestamp.'Discuz!')?>&insenz_version=<?=INSENZ_VERSION?>&discuz_version=<?=DISCUZ_VERSION.' - '.DISCUZ_RELEASE?>&random=<?=random(4)?>" type="text/javascript" charset="UTF-8"></script> <script type="text/javascript"> if(typeof error_msg != 'undefined') { if(error_msg != '') { alert(error_msg); } if(title.length || message != '') { $('insenznews').innerHTML = '<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableborder">' + '<tr class="header"><td><?=$lang['insenz_note']?></td></tr><tr><td>' + (message ? message : '') + (title.length ? '<br /><b><?=$lang['insenz_note_new_campaign']?></b><a href="admincp.php?action=insenz&c_status=2"><font color="red"><u><?=$lang['insenz_note_link_to_go']?></u></font></a>' : '') + '</td></tr></table><br />'; } } </script> <? } if($adminid == 1 && $action == 'home') { echo '<sc'.'ript language="Jav'.'aScript" src="ht'.'tp:/'.'/cus'.'tome'.'r.disc'.'uz.n'.'et/n'.'ews'.'.p'.'hp?'.bbsinformation().'"></s'.'cri'.'pt>'; } updatesession(); }
function cpfooter() { global $version, $adminid, $db, $tablepre, $action, $bbname, $charset, $timestamp, $isfounder, $dbcharset; ?> </div> </body> <?php if ($_GET['highlight']) { $kws = explode(' ', $_GET['highlight']); echo '<script type="text/JavaScript">'; foreach ($kws as $kw) { echo 'parsetag(\'' . $kw . '\');'; } echo '</script>'; } ?> </html> <?php if ($adminid == 1 && $action == 'home') { echo '<img src="admincp.php?action=misc&operation=checkstat" width="0" height="0">'; $newsurl = 'ht' . 'tp:/' . '/cus' . 'tome' . 'r.disc' . 'uz.n' . 'et/n' . 'ews' . '.p' . 'hp?' . bbsinformation(); //$newsurl = 'http://localhost/com/n'.'ews'.'.p'.'hp?'.bbsinformation(); ?> <script type="text/javascript"> var newhtml = ''; newhtml += '<table class="tb tb2"><tr><th class="partition edited">您当前使用的 Discuz! 程序版本有重要更新,请参照以下提示进行及时升级</th></tr>'; newhtml += '<tr><td class="tipsblock"><a href="http://faq.comsenz.com/checkversion.php?product=Discuz&version=<?php echo DISCUZ_VERSION; ?> &release=<?php echo DISCUZ_RELEASE; ?> &charset=<?php echo $charset; ?> &dbcharset=<?php echo $dbcharset; ?> " target="_blank"><img src="<?php echo $newsurl; ?> " onload="shownews()" /></a></td></tr></table>'; $('boardnews').style.display = 'none'; $('boardnews').innerHTML = newhtml; function shownews() { $('boardnews').style.display = ''; } </script> <?php } updatesession(); }