示例#1
0
    $module['Forums']['Prune'] = $filename;
    return;
}
//
// Load default header
//
$phpbb_root_path = "./../";
require $phpbb_root_path . 'extension.inc';
require './pagestart.' . $phpEx;
require $phpbb_root_path . 'includes/prune.' . $phpEx;
require $phpbb_root_path . 'includes/functions_admin.' . $phpEx;
//-- mod: sf
include $phpbb_root_path . 'includes/functions_sf.' . $phpEx;
include $phpbb_root_path . 'includes/functions_sf_admin.' . $phpEx;
_sf_lang($lang);
$_sf_tree = new _sf_tree();
$_sf_tree->read();
//-- mod: sf - end
//
// Get the forum ID for pruning
//
if (isset($HTTP_GET_VARS[POST_FORUM_URL]) || isset($HTTP_POST_VARS[POST_FORUM_URL])) {
    $forum_id = isset($HTTP_POST_VARS[POST_FORUM_URL]) ? $HTTP_POST_VARS[POST_FORUM_URL] : $HTTP_GET_VARS[POST_FORUM_URL];
    if ($forum_id == -1) {
        $forum_sql = '';
    } else {
        $forum_id = intval($forum_id);
        $forum_sql = "AND forum_id = {$forum_id}";
    }
} else {
    $forum_id = '';
示例#2
0
    $module['Forums']['Manage'] = $file;
    return;
}
//
// Load default header
//
$phpbb_root_path = "./../";
require $phpbb_root_path . 'extension.inc';
require './pagestart.' . $phpEx;
include $phpbb_root_path . 'includes/functions_admin.' . $phpEx;
include $phpbb_root_path . 'includes/bbc_box_tags.' . $phpEx;
//-- mod: sf
include $phpbb_root_path . 'includes/functions_sf.' . $phpEx;
include $phpbb_root_path . 'includes/functions_sf_admin.' . $phpEx;
_sf_lang($lang);
$_sf_tree = new _sf_tree();
$_sf_tree->read();
//-- mod: sf - end
$forum_auth_ary = array("auth_view" => AUTH_ALL, "auth_read" => AUTH_ALL, "auth_post" => AUTH_REG, "auth_reply" => AUTH_REG, "auth_edit" => AUTH_REG, "auth_delete" => AUTH_REG, "auth_sticky" => AUTH_MOD, "auth_announce" => AUTH_MOD, "auth_vote" => AUTH_REG, "auth_pollcreate" => AUTH_REG, "auth_ban" => AUTH_MOD, "auth_greencard" => AUTH_ADMIN, "auth_bluecard" => AUTH_REG);
//-- mod : Edit Forums On Index -----------------------------------------------------
//-- add
$in_from = $_POST['popup'] ? $_POST['popup'] : $HTTP_POST_VARS['popup'];
if ($in_from && $userdata['user_level'] != ADMIN) {
    message_die(GENERAL_ERROR, '<a href="#" onclick="javascript:window.close();">' . $lang['close_popup'] . '</a>');
}
//-- fin mod : Edit Forums On Index -------------------------------------------------
$forum_auth_ary['auth_attachments'] = AUTH_REG;
$forum_auth_ary['auth_download'] = AUTH_REG;
//
// Mode setting
//
示例#3
0
    $module['Users']['Permissions'] = $filename . "?mode=user";
    $module['Groups']['Permissions'] = $filename . "?mode=group";
    return;
}
//
// Load default header
//
$no_page_header = TRUE;
$phpbb_root_path = "./../";
require $phpbb_root_path . 'extension.inc';
require './pagestart.' . $phpEx;
//-- mod: sf
include $phpbb_root_path . 'includes/functions_sf.' . $phpEx;
include $phpbb_root_path . 'includes/functions_sf_admin.' . $phpEx;
_sf_lang($lang);
$_sf_tree = new _sf_tree();
$_sf_tree->read();
//-- mod: sf - end
$params = array('mode' => 'mode', 'user_id' => POST_USERS_URL, 'group_id' => POST_GROUPS_URL, 'adv' => 'adv');
while (list($var, $param) = @each($params)) {
    if (!empty($HTTP_POST_VARS[$param]) || !empty($HTTP_GET_VARS[$param])) {
        ${$var} = !empty($HTTP_POST_VARS[$param]) ? $HTTP_POST_VARS[$param] : $HTTP_GET_VARS[$param];
    } else {
        ${$var} = "";
    }
}
$user_id = intval($user_id);
$group_id = intval($group_id);
$adv = intval($adv);
$mode = htmlspecialchars($mode);
//
示例#4
0
文件: search.php 项目: Nekrofage/FJR
//
$userdata = session_pagestart($user_ip, PAGE_SEARCH);
init_userprefs($userdata);
//
// End session management
//
//Page invisible aux invités
if (!$userdata['session_logged_in']) {
    $header_location = @preg_match("/Microsoft|WebSTAR|Xitami/", getenv("SERVER_SOFTWARE")) ? "Refresh: 0; URL=" : "Location: ";
    header($header_location . append_sid("login." . $phpEx . "?redirect=index." . $phpEx, true));
    exit;
}
//-- mod: sf
include $phpbb_root_path . 'includes/functions_sf.' . $phpEx;
include $phpbb_root_path . 'includes/functions_sf_admin.' . $phpEx;
$_sf_tree = new _sf_tree();
$_sf_tree->read();
//-- mod: sf - end
//
// Define initial vars
//
if (isset($HTTP_POST_VARS['mode']) || isset($HTTP_GET_VARS['mode'])) {
    $mode = isset($HTTP_POST_VARS['mode']) ? $HTTP_POST_VARS['mode'] : $HTTP_GET_VARS['mode'];
} else {
    $mode = '';
}
$only_bluecards = isset($HTTP_POST_VARS['only_bluecards']) ? $HTTP_POST_VARS['only_bluecards'] ? TRUE : 0 : 0;
if (isset($HTTP_POST_VARS['search_keywords']) || isset($HTTP_GET_VARS['search_keywords'])) {
    $search_keywords = isset($HTTP_POST_VARS['search_keywords']) ? $HTTP_POST_VARS['search_keywords'] : $HTTP_GET_VARS['search_keywords'];
} else {
    $search_keywords = '';