예제 #1
0
$phrasegroups = array('threadmanage', 'posting', 'inlinemod');
// get special data templates from the datastore
$specialtemplates = array();
$globaltemplates = array('threadadmin_authenticate');
$actiontemplates = array('inlinedelete' => array('socialgroups_deletemessages'));
// ######################### REQUIRE BACK-END ############################
require_once './global.php';
require_once DIR . '/includes/functions_socialgroup.php';
require_once DIR . '/includes/modfunctions.php';
require_once DIR . '/includes/functions_log_error.php';
// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################
//not sure why "THIS_SCRIPT" is inlinemod instead of group_inlinemod.  Override
//so that verify works.
verify_forum_url('group_inlinemod');
if (($current_memory_limit = ini_size_to_bytes(@ini_get('memory_limit'))) < 128 * 1024 * 1024 and $current_memory_limit > 0) {
    @ini_set('memory_limit', 128 * 1024 * 1024);
}
@set_time_limit(0);
if (!$vbulletin->userinfo['userid'] or !$vbulletin->options['socnet_groups_msg_enabled']) {
    print_no_permission();
}
$itemlimit = 200;
// This is a list of ids that were checked on the page we submitted from
$vbulletin->input->clean_array_gpc('r', array('userid' => TYPE_UINT, 'inline_discussion' => TYPE_BOOL));
// Whether we are inlining from the discussion view.  Used for aesthetics.
$inline_discussion = $vbulletin->GPC['inline_discussion'];
$inline_cookie = $inline_discussion ? 'vbulletin_inlinegdiscussion' : 'vbulletin_inlinegmessage';
$messagelist = $inline_discussion ? 'gdiscussionlist' : 'gmessagelist';
$vbulletin->input->clean_array_gpc('p', array($messagelist => TYPE_ARRAY_KEYS_INT));
예제 #2
0
{
    global $vbulletin;
    $vbulletin->input->clean_gpc('r', 'goto', TYPE_STR);
    if ($vbulletin->GPC['goto'] == 'newpost' or $vbulletin->GPC['goto'] == 'postid') {
        $vbulletin->noheader = true;
    }
}
// ######################### REQUIRE BACK-END ############################
require_once './global.php';
require_once DIR . '/includes/functions_bigthree.php';
require_once DIR . '/includes/class_postbit.php';
require_once DIR . '/includes/class_friendly_url.php';
// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################
verify_forum_url();
($hook = vBulletinHook::fetch_hook('showthread_start')) ? eval($hook) : false;
$vbulletin->input->clean_array_gpc('r', array('perpage' => TYPE_UINT, 'pagenumber' => TYPE_UINT, 'highlight' => TYPE_STR, 'posted' => TYPE_BOOL, 'viewfull' => TYPE_BOOL, 'mode' => TYPE_STR));
// *********************************************************************************
// set $threadedmode (continued from global.php)
if ($vbulletin->options['allowthreadedmode'] and !$show['search_engine'] and !VB_API) {
    if (!empty($vbulletin->GPC['mode'])) {
        // Look for command to switch types on the query string
        switch ($vbulletin->GPC['mode']) {
            case 'threaded':
                $threadedCookieVal = 'threaded';
                break;
            case 'hybrid':
                $threadedCookieVal = 'hybrid';
                break;
            default:
예제 #3
0
파일: forum.php 프로젝트: 0hyeah/yurivn
$actiontemplates = array();
// ######################### REQUIRE BACK-END ############################
require_once './global.php';
// Redirect if required
if (VB_REDIRECT === true) {
    $tabid = get_navigation_default(build_navigation_list(), false);
    if ($url = get_navigation_url($tabid)) {
        exec_header_redirect($url);
    }
}
require_once DIR . '/includes/functions_bigthree.php';
require_once DIR . '/includes/functions_forumlist.php';
// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################
verify_forum_url($vbulletin->options['forumhome']);
($hook = vBulletinHook::fetch_hook('forumhome_start')) ? eval($hook) : false;
// get permissions to view forumhome
if (!($permissions['forumpermissions'] & $vbulletin->bf_ugp_forumpermissions['canview'])) {
    print_no_permission();
}
$navbits = array();
if (empty($foruminfo['forumid'])) {
    // show all forums
    $forumid = -1;
    $navbits[''] = $vbphrase['forum'];
} else {
    // check forum permissions
    $_permsgetter_ = 'index';
    $forumperms = fetch_permissions($foruminfo['forumid']);
    if (!($forumperms & $vbulletin->bf_ugp_forumpermissions['canview'])) {