本文整理汇总了PHP中checkrights函数的典型用法代码示例。如果您正苦于以下问题:PHP checkrights函数的具体用法?PHP checkrights怎么用?PHP checkrights使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了checkrights函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: CreateMBX
function CreateMBX($uid, $MailBoxMaxSize = 0)
{
$cyrus = new cyrus();
if (!$cyrus->MailBoxExists($uid)) {
build_progress("Check privileges...", 10);
if (!checkrights($uid, $MailBoxMaxSize)) {
build_progress("{error_creating_mailbox}", 110);
return;
}
build_progress("{create_mailbox2}", 50);
if (!$cyrus->CreateMailbox($uid, 1, 50)) {
build_progress("{error_creating_mailbox}", 110);
return;
}
build_progress("Building privileges", 80);
$cyrus = new cyrus();
$cyrus->CreateACLS($uid);
build_progress("{success}", 100);
echo $cyrus->cyrus_infos . "\n";
return;
}
build_progress("Building privileges", 80);
$cyrus = new cyrus();
$cyrus->CreateACLS($uid);
build_progress("{$uid}: {mailbox_already_exists} {success}", 100);
}
示例2: fusion_console
function fusion_console()
{
if (iADMIN && checkrights('ERRO') || iSUPERADMIN) {
$error_logs = new \PHPFusion\ErrorLogs();
$error_logs->compressed = 1;
if (!defined('no_debugger')) {
ob_start();
echo openmodal('tbody', 'Error Console', array('class' => 'modal-lg modal-center zindex-boost', 'button_id' => 'turbo_debugger'));
$error_logs->show_footer_logs();
echo closemodal();
add_to_footer(ob_get_contents());
ob_end_clean();
}
}
}
示例3: checkrights
function checkrights($el, $rec = false)
{
$perms = show_perms($el);
if (is_readable($el) && is_writeable($el)) {
$color = 'green';
} else {
$color = 'red';
}
echo '
<tr>
<td width="100%" class="row1" style="color: ' . $color . '">' . $el . '</td>
<td class="row2" nowrap>' . show_perms($el) . '</td>
</tr>';
if (is_dir($el) && $rec) {
$dir = rcms_scandir($el);
foreach ($dir as $del) {
checkrights($el . '/' . $del, true);
}
}
}
示例4: render_article
function render_article($subject, $article, $info)
{
global $locale, $settings, $aidlink;
$category = "<a href='" . BASEDIR . "articles.php?cat_id=" . $info['cat_id'] . "'>" . $info['cat_name'] . "</a>\n";
$comment = "<a href='" . BASEDIR . "articles.php?article_id=" . $info['article_id'] . "#comments'>" . $info['article_comments'] . " comment</a>\n";
echo "<article>\n";
echo "<div class='news-action text-right'>";
echo "<a title='" . $locale['global_075'] . "' href='" . BASEDIR . "print.php?type=A&item_id=" . $info['article_id'] . "'><i class='entypo print'></i></a>";
echo iADMIN && checkrights("A") ? "<a href='" . ADMIN . "articles.php" . $aidlink . "&action=edit&article_id=" . $info['article_id'] . "' title='" . $locale['global_076'] . "' /><i class='entypo pencil'></i></a>\n" : '';
echo "</div>\n";
echo "<div class='news-info'>Posted <span class='news-date'>" . showdate("%d %b %Y", $info['article_date']) . "</span> in {$category} and {$comment}</div>\n";
echo "<h2 class='news-title'>{$subject}</h2>";
echo "<div class='article'>\n";
echo ($info['article_breaks'] == "y" ? nl2br($article) : $article) . "<br />\n";
echo "</div>\n";
echo "<div class='news-user-info'>\n";
echo "<h4>About <a href='" . BASEDIR . "profile.php?lookup=" . $info['user_id'] . "'>" . $info['user_name'] . "</a>\n</h4>";
echo "<div class='pull-left m-r-10'>" . display_avatar($info, '80px') . "</div>\n";
echo "<strong>" . getuserlevel($info['user_level']) . "</strong><br/>\n";
echo "<strong>Joined since: " . showdate('newsdate', $info['user_joined']) . "</strong><br/>\n";
echo "</div>\n";
echo "</article>";
}
示例5: alcr_can_admin
function alcr_can_admin($user_id)
{
global $alcr_settings;
if (checkrights("ALCR")) {
return true;
} else {
if ($alcr_settings['calendar_admin_group'] == 0) {
return true;
} else {
if ($alcr_settings['calendar_admin_group'] == 101 && iMEMBER) {
return true;
} else {
if ($alcr_settings['calendar_admin_group'] == 102 && iADMIN) {
return true;
} else {
if ($alcr_settings['calendar_admin_group'] == 103 && iSUPERADMIN) {
return true;
} else {
$result = dbquery("SELECT user_groups FROM " . DB_USERS . " WHERE user_id='" . $user_id . "'");
if (dbrows($result)) {
$data = dbarray($result);
if (in_array($alcr_settings['calendar_admin_group'], explode(".", $data['user_groups']))) {
return true;
}
}
$result = dbquery("SELECT * FROM " . DB_AL_CALENDAR_ADMINS . " WHERE alcr_admin_user='" . $user_id . "'");
if (dbrows($result)) {
return true;
}
}
}
}
}
}
return false;
}
示例6: Jones
| Filename: infusions.php
| Author: Nick Jones (Digitanium)
| Co-Author: Christian Damsgaard Jørgensen (PMM)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
require_once "../maincore.php";
require_once THEMES . "templates/admin_header.php";
include LOCALE . LOCALESET . "admin/infusions.php";
if (!checkrights("I") || !defined("iAUTH") || $_GET['aid'] != iAUTH) {
redirect("../index.php");
}
$inf_title = "";
$inf_description = "";
$inf_version = "";
$inf_developer = "";
$inf_email = "";
$inf_weburl = "";
$inf_folder = "";
$inf_newtable = "";
$inf_insertdbrow = "";
$inf_droptable = "";
$inf_altertable = "";
$inf_deldbrow = "";
$inf_sitelink = "";
示例7: die
<?php
$MYSQL_DUMPER = true;
if (!(require_once "../../maincore.php")) {
die("<div style='font-family:Verdana;font-size:11px;text-align:center;'><strong>maincore.php not found!</strong><br /></div>");
}
if (!defined("iAUTH") || !checkrights("DB") || !iSUPERADMIN) {
die("No Access");
}
示例8: dbcount
echo $locale['SB_enter_validation_code'] . "<br />\n<input type='text' name='captcha_code' class='textbox' style='width:100px' /><br />\n";
}
echo "<br /><input type='submit' name='post_archive_shout' value='" . $locale['SB_shout'] . "' class='button' />\n";
echo "</div>\n</form>\n<br />\n";
} else {
echo "<div style='text-align:center'>" . $locale['SB_login_req'] . "</div>\n";
}
$rows = dbcount("(shout_id)", DB_SHOUTBOX, "shout_hidden='0'");
if (!isset($_GET['rowstart']) || !isnum($_GET['rowstart'])) {
$_GET['rowstart'] = 0;
}
if ($rows != 0) {
$result = dbquery("SELECT s.shout_id, s.shout_name, s.shout_message, s.shout_datestamp, u.user_id, u.user_name, u.user_status\r\n\t\tFROM " . DB_SHOUTBOX . " s\r\n\t\tLEFT JOIN " . DB_USERS . " u ON s.shout_name=u.user_id\r\n\t\t" . (multilang_table("SB") ? "WHERE shout_language='" . LANGUAGE . "' AND" : "WHERE") . " s.shout_hidden='0'\r\n\t\tORDER BY s.shout_datestamp DESC LIMIT " . $_GET['rowstart'] . ",20");
while ($data = dbarray($result)) {
echo "<div class='tbl2'>\n";
if (iADMIN && checkrights("S") || iMEMBER && $data['shout_name'] == $userdata['user_id'] && isset($data['user_name'])) {
echo "<div style='float:right'>\n<a href='" . FUSION_SELF . "?action=edit&shout_id=" . $data['shout_id'] . "'>" . $locale['SB_edit'] . "</a> |\n";
echo "<a href='" . FUSION_SELF . "?action=delete&shout_id=" . $data['shout_id'] . "'>" . $locale['SB_delete'] . "</a>\n</div>\n";
}
if ($data['user_name']) {
echo "<span class='comment-name'><span class='slink'>" . profile_link($data['user_id'], $data['user_name'], $data['user_status']) . "</span>\n</span>\n";
} else {
echo "<span class='comment-name'>" . $data['shout_name'] . "</span>\n";
}
echo "<span class='small'>" . showdate("longdate", $data['shout_datestamp']) . "</span>";
echo "</div>\n<div class='tbl1'>\n" . sbawrap(parseubb(parsesmileys($data['shout_message']), "b|i|u|url|color")) . "</div>\n";
}
} else {
echo "<div style='text-align:center'><br />\n" . $locale['SB_no_msgs'] . "<br /><br />\n</div>\n";
}
closetable();
示例9: switch
switch ($data['user_level']) {
case "103":
$temp_user_level = $locale['ucc_110'];
break;
case "102":
$temp_user_level = $locale['ucc_111'];
break;
case "101":
$temp_user_level = $locale['ucc_112'];
break;
default:
$temp_user_level = $locale['ucc_150'];
}
echo "<tr>\n\t\t<td class='" . $cls . "' align='left'>" . $data['user_id'] . "</td>\n\t\t<td class='" . $cls . "' align='left'><a href='" . BASEDIR . "profile.php?lookup=" . $data['user_id'] . "' class='side'>" . $data['user_name'] . "</a></td>\n\t\t<td class='" . $cls . "' align='center'>" . $temp_user_level . "</td>\n\t\t<td class='" . $cls . "' align='center'><a href='mailto:" . $data['user_email'] . "'>" . $data['user_email'] . "</a></td>\n\t\t<td class='" . $cls . "' align='center'><a href='http://www.geoiptool.com/en/?IP=" . $data['user_ip'] . "' target='_blank'>" . $data['user_ip'] . "</a></td>";
if (checkrights("M")) {
if (iUSER > $data['user_level'] and $data['user_id'] != 1 and checkrights("M")) {
echo "<td class='" . $cls . "' align='center'><a href='" . FUSION_SELF . $aidlink . "&section=lastlogin&action=delete&user_id=" . $data['user_id'] . "&rowstart={$rowstart}' onClick='return DeleteMember();'>" . $locale['409'] . "</a></td>";
} else {
echo "<td class='" . $cls . "' align='center'> </td>";
}
}
echo "<td class='" . $cls . "' align='left'>";
if ($data['user_lastvisit'] != 0) {
echo showdate("shortdate", $data['user_lastvisit']);
}
get_lavi($data['user_lastvisit'], $locale);
echo "</td>\n </tr>";
}
echo "</table>";
echo "<br>" . $locale['ucc_414'] . " ";
if ($sortby != "lastvisit") {
示例10: die
if (!defined("IN_FUSION")) {
die("Access Denied");
}
include LOCALE . LOCALESET . "admin/main.php";
include INFUSIONS . "user_info_panel/user_info_panel.php";
@(list($title) = dbarraynum(dbquery("SELECT admin_title FROM " . DB_ADMIN . " WHERE admin_link='" . FUSION_SELF . "'")));
add_to_title($locale['global_200'] . $locale['global_123'] . ($title ? $locale['global_201'] . $title : ""));
$pages = array(1 => false, 2 => false, 3 => false, 4 => false, 5 => false);
$index_link = false;
$admin_nav_opts = "";
$current_page = 0;
openside($locale['global_001']);
$result = dbquery("SELECT admin_title, admin_page, admin_rights, admin_link FROM " . DB_ADMIN . " ORDER BY admin_page DESC, admin_title ASC");
$rows = dbrows($result);
while ($data = dbarray($result)) {
if ($data['admin_link'] != "reserved" && checkrights($data['admin_rights'])) {
$pages[$data['admin_page']] .= "<option value='" . ADMIN . $data['admin_link'] . $aidlink . "'>" . preg_replace("/&(?!(#\\d+|\\w+);)/", "&", $data['admin_title']) . "</option>\n";
}
}
$content = false;
for ($i = 1; $i < 6; $i++) {
$page = $pages[$i];
if ($i == 1) {
echo THEME_BULLET . " <a href='" . ADMIN . "index.php" . $aidlink . "' class='side'>" . $locale['ac00'] . "</a>\n";
echo "<hr class='side-hr' />\n";
}
if ($page) {
$admin_pages = true;
echo "<form action='" . FUSION_SELF . "'>\n";
echo "<select onchange='window.location.href=this.value' style='width:100%;' class='textbox'>\n";
echo "<option value='" . FUSION_SELF . "' style='font-style:italic;' selected='selected'>" . $locale['ac0' . $i] . "</option>\n";
示例11: dbarray
echo "</table></td>";
}
//winner
if ($tour['tour_w1'] != "0") {
$uv = dbarray(dbquery("SELECT user_name FROM " . DB_USERS . " WHERE user_id='" . $tour['tour_w1'] . "'"));
$winner = "<a href='" . BASEDIR . "profile.php?lookup=" . $tour['tour_w1'] . "'><strong>" . $uv['user_name'] . "</strong></a>";
} else {
$winner = "TBA";
}
echo "<td valign='middle'><table width='170'><tr><td class='tbl2' width='100%' height='30'>" . $winner . "</td></tr></table></td>";
echo "</tr></table><br /><br /><br />";
// 3-4
$z = $rounds + 1;
$f34 = dbarray(dbquery("SELECT * FROM " . DB_T_MATCHES . " WHERE match_tour='" . $tid . "' AND match_round='" . $z . "' AND match_match='1'"));
// vs
if (checkrights("T") || $userdata['user_id'] == $f34['match_pl1'] || $userdata['user_id'] == $f34['match_pl2']) {
$vs34 = "<a href='" . BASEDIR . "tourney.php?p=result&id=" . $f34['match_id'] . "'>" . ($f34['match_played'] == "1" ? $f34['match_score1'] . ":" . $f34['match_score2'] : "vs") . "</a>";
} else {
$vs34 = $f34['match_played'] == "1" ? $f34['match_score1'] . ":" . $f34['match_score2'] : "vs";
}
// pl1
if ($f34['match_pl1'] == "0") {
$pl134 = "TBA";
} elseif ($f34['match_pl1'] == $bye) {
$pl134 = "freeslot";
} else {
$u134 = dbarray(dbquery("SELECT user_name FROM " . DB_USERS . " WHERE user_id='" . $f34['match_pl1'] . "'"));
$pl134 = "<a href='" . BASEDIR . "profile.php?lookup=" . $f34['match_pl1'] . "'>" . ($f34['match_winner'] == $f34['match_pl1'] ? "<strong>" . $u134['user_name'] . "</strong>" : $u134['user_name']) . "</a>";
}
// pl2
if ($f34['match_pl2'] == "0") {
示例12: dbquery
$result = dbquery("SELECT s.*, u.user_id, u.user_name, u.user_status, u.user_avatar\n\t\t\t\tFROM " . DB_SUBMISSIONS . " s LEFT JOIN " . DB_USERS . " u on u.user_id=s.submit_user\n\t\t\t\tORDER BY submit_datestamp DESC LIMIT " . $_GET['s_rowstart'] . ", " . $settings['comments_per_page'] . "\n\t\t\t\t");
$global_submissions['data'] = array();
if (dbrows($result) > 0 && checkrights('SU')) {
while ($_subdata = dbarray($result)) {
$global_submissions['data'][] = $_subdata;
}
} else {
$global_submissions['nodata'] = $locale['254a'];
}
if ($global_submissions['rows'] > $settings['comments_per_page']) {
$global_submissions['submissions_nav'] = "<span class='pull-right text-smaller'>" . makepagenav($_GET['s_rowstart'], $settings['comments_per_page'], $global_submissions['rows'], 2) . "</span>\n";
}
// Icon Grid
if (isset($_GET['pagenum']) && isnum($_GET['pagenum'])) {
$result = dbquery("SELECT * FROM " . DB_ADMIN . " WHERE admin_page='" . $_GET['pagenum'] . "' ORDER BY admin_title");
$admin_icons['rows'] = dbrows($result);
$admin_icons['data'] = array();
if (dbrows($result)) {
while ($_idata = dbarray($result)) {
if (checkrights($_idata['admin_rights']) && $_idata['admin_link'] != "reserved") {
// Current locale file have the admin title definitions paired by admin_rights.
if ($_idata['admin_page'] !== 5) {
$_idata['admin_title'] = isset($locale[$_idata['admin_rights']]) ? $locale[$_idata['admin_rights']] : $_idata['admin_title'];
}
$admin_icons['data'][] = $_idata;
}
}
}
}
render_admin_dashboard();
require_once THEMES . "templates/footer.php";
示例13: showdate
$data['download_post_time'] = showdate('shortdate', $data['download_datestamp']);
$data['download_post_time2'] = $locale['global_049'] . " " . timer($data['download_datestamp']);
$data['download_count'] = format_word($data['download_count'], $locale['fmt_download']);
$data['download_version'] = $data['download_version'] ? $data['download_version'] : $locale['na'];
$data['download_license'] = $data['download_license'] ? $data['download_license'] : $locale['na'];
$data['download_os'] = $data['download_os'] ? $data['download_os'] : $locale['na'];
$data['download_copyright'] = $data['download_copyright'] ? $data['download_copyright'] : $locale['na'];
if ($data['download_homepage']) {
$urlprefix = !strstr($data['download_homepage'], "http://") && !strstr($data['download_homepage'], "https://") ? 'http://' : '';
$data['download_homepage'] = "<a href='" . $urlprefix . $data['download_homepage'] . "' title='" . $urlprefix . $data['download_homepage'] . "' target='_blank'>" . $locale['download_1018'] . "</a>\n";
} else {
$data['download_homepage'] = $locale['na'];
}
/* Admin link */
$data['admin_link'] = '';
if (iADMIN && checkrights('D')) {
$data['admin_link'] = array('edit' => INFUSIONS . "downloads/downloads_admin.php" . $aidlink . "&action=edit&section=nform&download_id=" . $data['download_id'], 'delete' => INFUSIONS . "downloads/downloads_admin.php" . $aidlink . "&action=delete&section=nform&download_id=" . $data['download_id']);
}
$info['download_title'] = $data['download_title'];
$info['download_updated'] = $locale['global_049'] . " " . timer($data['download_datestamp']);
add_breadcrumb(array('link' => INFUSIONS . "downloads/downloads.php?download_id=" . $_GET['download_id'], 'title' => $data['download_title']));
add_to_title($data['download_title']);
add_to_meta($data['download_title'] . ($data['download_keywords'] ? "," . $data['download_keywords'] : ''));
if ($data['download_keywords'] !== "") {
set_meta("keywords", $data['download_keywords']);
}
$data['download_title'] = "<a class='text-dark' href='" . INFUSIONS . "downloads/downloads.php?readmore=" . $data['download_id'] . "'>" . $data['download_title'] . "</a>";
$info['download_item'] = $data;
} else {
redirect(INFUSIONS . "downloads/downloads.php");
}
示例14: dbquery
$result = dbquery("DELETE FROM " . DB_COMMENTS . " WHERE comment_name='" . $data['user_id'] . "'");
$result = dbquery("DELETE FROM " . DB_MESSAGES . " WHERE message_to='" . $data['user_id'] . "' OR message_from='" . $data['user_id'] . "'");
$result = dbquery("DELETE FROM " . DB_NEWS . " WHERE news_name='" . $data['user_id'] . "'");
$result = dbquery("DELETE FROM " . DB_POLL_VOTES . " WHERE vote_user='" . $data['user_id'] . "'");
$result = dbquery("DELETE FROM " . DB_RATINGS . " WHERE rating_user='" . $data['user_id'] . "'");
$result = dbquery("DELETE FROM " . DB_SUSPENDS . " WHERE suspended_user='" . $data['user_id'] . "'");
$result = dbquery("DELETE FROM " . DB_THREADS . " WHERE thread_author='" . $data['user_id'] . "'");
$result = dbquery("DELETE FROM " . DB_POSTS . " WHERE post_author='" . $data['user_id'] . "'");
$result = dbquery("DELETE FROM " . DB_THREAD_NOTIFY . " WHERE notify_user='" . $data['user_id'] . "'");
}
}
if ($usr_deactivate > 10) {
$new_time = $settings['cronjob_day'];
}
}
$result = dbquery("UPDATE " . DB_SETTINGS . " SET settings_value='" . $new_time . "' WHERE settings_name='cronjob_day'");
}
// Error handling
if (iADMIN && checkrights("ERRO") && count($_errorHandler) > 0) {
echo "<div class='admin-message'>" . str_replace("[ERROR_LOG_URL]", ADMIN . "errors.php" . $aidlink, $locale['err_101']) . "</div>\n";
}
echo "</body>\n</html>\n";
$output = ob_get_contents();
if (ob_get_length() !== FALSE) {
ob_end_clean();
}
echo handle_output($output);
if (ob_get_length() !== FALSE) {
ob_end_flush();
}
mysql_close($db_connect);
示例15: render_dashboard
function render_dashboard()
{
global $members, $forum, $download, $news, $articles, $weblinks, $photos, $global_comments, $global_ratings, $global_submissions, $link_type, $submit_type, $comments_type, $locale, $aidlink, $settings, $infusions_count;
$mobile = '12';
$tablet = '12';
$laptop = '6';
$desktop = '3';
opentable($locale['250']);
echo "<!--Start Members-->\n";
echo "<div class='row'>\n";
echo "<div class='col-xs-{$mobile} col-sm-{$tablet} col-md-{$laptop} col-lg-{$desktop}'>\n";
openside();
echo "<img class='pull-left m-r-10 dashboard-icon' src='" . get_image("ac_M") . "'/>\n";
echo "<h4 class='text-right m-t-0 m-b-0'>\n" . number_format($members['registered']) . "</h4>";
echo "<span class='m-t-10 text-uppercase text-lighter text-smaller pull-right'><strong>" . $locale['251'] . "</strong></span>\n";
closeside("" . (checkrights("M") ? "<div class='text-right text-uppercase'>\n<a class='text-smaller' href='" . ADMIN . "members.php" . $aidlink . "'>" . $locale['255'] . "</a><i class='entypo right-open-mini'></i></div>\n" : '') . "");
echo "</div>\n<div class='col-xs-{$mobile} col-sm-{$tablet} col-md-{$laptop} col-lg-{$desktop}'>\n";
openside();
echo "<img class='pull-left m-r-10 dashboard-icon' src='" . get_image("ac_M") . "'/>\n";
echo "<h4 class='text-right m-t-0 m-b-0'>\n" . number_format($members['cancelled']) . "</h4>";
echo "<span class='m-t-10 text-uppercase text-lighter text-smaller pull-right'><strong>" . $locale['263'] . "</strong></span>\n";
closeside("" . (checkrights("M") ? "<div class='text-right text-uppercase'>\n<a class='text-smaller' href='" . ADMIN . "members.php" . $aidlink . "&status=5'>" . $locale['255'] . "</a> <i class='entypo right-open-mini'></i></div>\n" : '') . "");
echo "</div>\n<div class='col-xs-{$mobile} col-sm-{$tablet} col-md-{$laptop} col-lg-{$desktop}'>\n";
openside();
echo "<img class='pull-left m-r-10 dashboard-icon' src='" . get_image("ac_M") . "'/>\n";
echo "<h4 class='text-right m-t-0 m-b-0'>\n" . number_format($members['unactivated']) . "</h4>";
echo "<span class='m-t-10 text-uppercase text-lighter text-smaller pull-right'><strong>" . $locale['252'] . "</strong></span>\n";
closeside("" . (checkrights("M") ? "<div class='text-right text-uppercase'>\n<a class='text-smaller' href='" . ADMIN . "members.php" . $aidlink . "&status=2'>" . $locale['255'] . "</a> <i class='entypo right-open-mini'></i></div>\n" : '') . "");
echo "</div>\n<div class='col-xs-{$mobile} col-sm-{$tablet} col-md-{$laptop} col-lg-{$desktop}'>\n";
openside();
echo "<img class='pull-left m-r-10 dashboard-icon' src='" . get_image("ac_M") . "'/>\n";
echo "<h4 class='text-right m-t-0 m-b-0'>\n" . number_format($members['security_ban']) . "</h4>";
echo "<span class='m-t-10 text-uppercase text-lighter text-smaller pull-right'><strong>" . $locale['253'] . "</strong></span>\n";
closeside("" . (checkrights("M") ? "<div class='text-right text-uppercase'><a class='text-smaller' href='" . ADMIN . "members.php" . $aidlink . "&status=4'>" . $locale['255'] . "</a> <i class='entypo right-open-mini'></i></div>\n" : '') . "");
echo "</div>\n</div>\n";
echo "<!--End Members-->\n";
$mobile = '12';
$tablet = '12';
$laptop = '6';
$desktop = '4';
echo "<div class='row'>\n";
if (db_exists(DB_FORUMS)) {
echo "<div class='col-xs-{$mobile} col-sm-{$tablet} col-md-{$laptop} col-lg-{$desktop}'>\n";
openside("", "well");
echo "<span class='text-smaller text-uppercase'><strong>" . $locale['265'] . " " . $locale['258'] . "</strong></span>\n<br/>\n";
echo "<div class='clearfix m-t-10'>\n";
echo "<img class='img-responsive pull-right dashboard-icon' src='" . get_image("ac_F") . "'/>\n";
echo "<div class='pull-left display-inline-block m-r-10'>\n";
echo "<span class='text-smaller'>" . $locale['265'] . "</span>\n<br/>\n";
echo "<h4 class='m-t-0'>" . number_format($forum['count']) . "</h4>\n";
echo "</div>\n";
echo "<div class='pull-left display-inline-block m-r-10'>\n";
echo "<span class='text-smaller'>" . $locale['256'] . "</span>\n<br/>\n";
echo "<h4 class='m-t-0'>" . number_format($forum['thread']) . "</h4>\n";
echo "</div>\n";
echo "<div class='pull-left display-inline-block m-r-10'>\n";
echo "<span class='text-smaller'>" . $locale['259'] . "</span>\n<br/>\n";
echo "<h4 class='m-t-0'>" . number_format($forum['post']) . "</h4>\n";
echo "</div>\n";
echo "<div class='pull-left display-inline-block m-r-10'>\n";
echo "<span class='text-smaller'>" . $locale['260'] . "</span>\n<br/>\n";
echo "<h4 class='m-t-0'>" . $forum['users'] . "</h4>\n";
echo "</div>\n";
echo "</div>\n";
closeside();
echo "</div>\n";
}
if (db_exists(DB_DOWNLOADS)) {
echo "<div class='col-xs-{$mobile} col-sm-{$tablet} col-md-{$laptop} col-lg-{$desktop}'>\n";
openside("", "well");
echo "<span class='text-smaller text-uppercase'><strong>" . $locale['268'] . " " . $locale['258'] . "</strong></span>\n<br/>\n";
echo "<div class='clearfix m-t-10'>\n";
echo "<img class='img-responsive pull-right dashboard-icon' src='" . get_image("ac_D") . "'/>\n";
echo "<div class='pull-left display-inline-block m-r-10'>\n";
echo "<span class='text-smaller'>" . $locale['268'] . "</span>\n<br/>\n";
echo "<h4 class='m-t-0'>" . number_format($download['download']) . "</h4>\n";
echo "</div>\n";
echo "<div class='pull-left display-inline-block m-r-10'>\n";
echo "<span class='text-smaller'>" . $locale['257'] . "</span>\n<br/>\n";
echo "<h4 class='m-t-0'>" . number_format($download['comment']) . "</h4>\n";
echo "</div>\n";
echo "<div class='pull-left display-inline-block m-r-10'>\n";
echo "<span class='text-smaller'>" . $locale['254'] . "</span>\n<br/>\n";
echo "<h4 class='m-t-0'>" . number_format($download['submit']) . "</h4>\n";
echo "</div>\n";
echo "</div>\n";
closeside();
echo "</div>\n";
}
if (db_exists(DB_NEWS)) {
echo "<div class='col-xs-{$mobile} col-sm-{$tablet} col-md-{$laptop} col-lg-{$desktop}'>\n";
openside("", "well");
echo "<span class='text-smaller text-uppercase'><strong>" . $locale['269'] . " " . $locale['258'] . "</strong></span>\n<br/>\n";
echo "<div class='clearfix m-t-10'>\n";
echo "<img class='img-responsive pull-right dashboard-icon' src='" . get_image("ac_N") . "'/>\n";
echo "<div class='pull-left display-inline-block m-r-10'>\n";
echo "<span class='text-smaller'>" . $locale['269'] . "</span>\n<br/>\n";
echo "<h4 class='m-t-0'>" . number_format($news['news']) . "</h4>\n";
echo "</div>\n";
echo "<div class='pull-left display-inline-block m-r-10'>\n";
//.........这里部分代码省略.........