<?php // Das Templatesystem einbinden include("template.class.php"); include("include/session.php"); include("include/constants.php"); $tpl = new Template(); $page = $_GET['page']; if(isset($page)) { if(file_exists($page.'.php')) { include($page.'.php'); $tpl->load($page.'.tpl'); $tpl->assign("content", showlogin()); $tpl->assign("title", "Willkommen"); $tpl->out(); } else { $tpl->load('error.tpl'); $tpl->assign("pagename", $page); $tpl->out(); } } else { $tpl->load('index.tpl'); $tpl->assign("title", "Startseite"); $tpl->out(); } ?>
</div> <!-- #content --> <div id="topNav"> <ul> <li> <?php if ($_SESSION["islog"] == 1) { ?> <a href="#menuProfile" class="menu"><?php echo showlogin(); ?> </a> <?php } ?> <?php if (count($tabmenu2) > 0 && __light__ != true) { ?> <div id="menuProfile" class="menu-container menu-dropdown"> <div class="menu-content"> <ul class=""> <?php for ($i = 0; $i < count($tabmenu2); $i++) { echo "<li><a href=\"" . $tabmenu2[$i][1] . "?mode=list\" target=\"framecontent\">" . $tabmenu2[$i][0] . "</a></li>"; } ?> </ul> </div> </div> <?php } ?>
<?php if (!defined('IN_CRONLITE')) { exit; } $title = "首页"; include_once TEMPLATE_ROOT . "head.php"; navi(); $gg = $conf['gg']; if (!empty($gg)) { echo '<div class="w h">公告栏</div><div class="box">' . $gg . '</div>'; } showlogin(); echo '<div class="w h">运行日志:  <a href="index.php?mod=all">详细>></a></div><div class="box">系统共有<font color="#ff0000">' . $zongs . '</font>条任务<br>共有<font color="#ff0000">' . $qqs . '</font>个QQ正在挂机<br>系统累计运行了<font color="#ff0000">' . $info['times'] . '</font>次<br>上次运行:<font color="#ff0000">' . $info['last'] . '</font><br>当前时间:<font color="#ff0000">' . $date . '</font></div>'; //echo'<div class="w h">数据统计:</div>'; //echo'<div class="box">'; //include(ROOT.'includes/content/tongji.php'); //echo'</div>'; ##交流社区start $row12 = $DB->get_row("select * from wjob_chat order by id desc limit 1"); echo '<div class="w h"><a href="index.php?mod=chat">交流社区</a></div>'; echo '<div class= "box">'; if ($row12['nr'] == '') { echo '还没有友友说话哦 <a href="index.php?mod=chat">聊天</a>'; } else { if ($row12['user'] == $gl) { echo '<a href="index.php?mod=chat&to=' . $row12['user'] . '">我</a>'; } else { echo '<a href="index.php?mod=chat&to=' . $row12['user'] . '">' . $row12['user'] . '</a>'; } $n = $row12['nr'];
/** * Shows the statistics page. */ public function Show() { // Get the needed objects. // fetch and show page header global $dontUseWikiDb; BootstrapSkin::displayInternalHeader(); if ($this->requiresWikiDatabase() && $dontUseWikiDb == 1) { // wiki database unavailable, don't show stats page BootstrapSkin::displayAlertBox("This statistics page is currently unavailable.", "alert-error", "Database unavailable", true, false); BootstrapSkin::displayInternalFooter(); die; } // wiki database available OR stats page doesn't need wiki database // check protection level if ($this->isProtected()) { if (User::getCurrent()->isCommunityUser()) { showlogin(); BootstrapSkin::displayInternalFooter(); die; } $session = new session(); $session->checksecurity(); } // not protected or access allowed echo '<div class="page-header"><h1>' . $this->getPageTitle() . '</h1></div>'; if ($this->requiresSimpleHtmlEnvironment()) { echo '<div class="row-fluid"><div class="span12">'; BootstrapSkin::pushTagStack("</div>"); BootstrapSkin::pushTagStack("</div>"); } echo $this->execute(); // Display the footer of the interface. BootstrapSkin::displayInternalFooter(); }
/** * Shows the statistics page. */ public function Show() { // Get the needed objects. // fetch and show page header global $dontUseWikiDb, $session; BootstrapSkin::displayInternalHeader(); if ($this->requiresWikiDatabase() && $dontUseWikiDb == 1) { // wiki database unavailable, don't show stats page BootstrapSkin::displayAlertBox("This statistics page is currently unavailable.", "alert-error", "Database unavailable", true, false); BootstrapSkin::displayInternalFooter(); die; } // wiki database available OR stats page doesn't need wiki database // check protection level if ($this->isProtected()) { // protected, check accesslevel. $sessionuser = isset($_SESSION['user']) ? $_SESSION['user'] : ""; if (!($session->hasright($sessionuser, "Admin") || $session->hasright($sessionuser, "User"))) { // not authed showlogin(); BootstrapSkin::displayInternalFooter(); die; } } // not protected or access allowed echo '<div class="page-header"><h1>' . $this->getPageTitle() . '</h1></div>'; if ($this->requiresSimpleHtmlEnvironment()) { echo '<div class="row-fluid"><div class="span12">'; BootstrapSkin::pushTagStack("</div>"); BootstrapSkin::pushTagStack("</div>"); } echo $this->execute(); // Display the footer of the interface. BootstrapSkin::displayInternalFooter(); }