当前位置: 首页>>代码示例>>PHP>>正文


PHP construct_usercp_nav函数代码示例

本文整理汇总了PHP中construct_usercp_nav函数的典型用法代码示例。如果您正苦于以下问题:PHP construct_usercp_nav函数的具体用法?PHP construct_usercp_nav怎么用?PHP construct_usercp_nav使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了construct_usercp_nav函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: eval

            eval('$picturebits .= "' . fetch_template('modifyusercss_backgroundbit') . '";');
        }
        eval('$picturerowbits .= "' . fetch_template('modifyusercss_backgroundrow') . '";');
    }
    $show['albumselect'] = count($albums) == 1 ? false : true;
    $vbulletin->userinfo['cachedcss'] = $usercss->build_css($usercss->fetch_effective());
    $vbulletin->userinfo['cachedcss'] = str_replace('/*sessionurl*/', $vbulletin->session->vars['sessionurl_js'], $vbulletin->userinfo['cachedcss']);
    if ($vbulletin->userinfo['cachedcss']) {
        $userinfo = $vbulletin->userinfo;
        eval('$usercss_string = "' . fetch_template('memberinfo_usercss') . '";');
    } else {
        $usercss_string = '';
    }
    eval('$headinclude .= "' . fetch_template('modifyusercss_headinclude') . '";');
    $navbits[''] = $vbphrase['customize_profile'];
    construct_usercp_nav('customize');
    $templatename = 'modifyusercss';
}
// #############################################################################
// spit out final HTML if we have got this far
if ($templatename != '') {
    // make navbar
    $navbits = construct_navbits($navbits);
    eval('$navbar = "' . fetch_template('navbar') . '";');
    ($hook = vBulletinHook::fetch_hook('profile_complete')) ? eval($hook) : false;
    // shell template
    eval('$HTML = "' . fetch_template($templatename) . '";');
    eval('print_output("' . fetch_template($shelltemplatename) . '");');
}
/*======================================================================*\
|| ####################################################################
开发者ID:holandacz,项目名称:nb4,代码行数:31,代码来源:profile.php

示例2: implode

    }
    if ($vbulletin->GPC['sortorder'] == 'asc') {
        $pagenavbits[] = 'order=' . $vbulletin->GPC['sortorder'];
    }
    if ($type == 'deleted') {
        $pagenavbits[] = 'type=deleted';
    }
    $pagenavurl = 'moderation.php?' . $vbulletin->session->vars['sessionurl'] . implode('&', $pagenavbits);
    $pagenav = construct_page_nav($pagenumber, $perpage, $picturetotal, $pagenavurl);
    $show['havepictures'] = $picturetotal ? true : false;
    $first = $picturetotal ? ($pagenumber - 1) * $perpage + 1 : 0;
    $last = ($last = $perpage * $pagenumber) > $picturetotal ? $picturetotal : $last;
    $show['delete'] = can_moderate(0, 'candeletealbumpicture');
    $hook_query_fields = $hook_query_joins = $hook_query_where = '';
    unset($sqlsortfield, $sqlsortorder);
    $navbits[''] = $vbphrase['moderation'];
    $navbits = construct_navbits($navbits);
    construct_usercp_nav('moderatedpics');
    ($hook = vBulletinHook::fetch_hook('moderation_picture_complete')) ? eval($hook) : false;
    eval('$headinclude .= "' . fetch_template('picturecomment_css') . '";');
    eval('$moderation_filter = "' . fetch_template('moderation_filter') . '";');
    eval('$navbar = "' . fetch_template('navbar') . '";');
    eval('$HTML = "' . fetch_template('moderation_pictures') . '";');
    eval('print_output("' . fetch_template('USERCP_SHELL') . '");');
}
/*======================================================================*\
|| ####################################################################
|| # Downloaded: 09:39, Wed Nov 5th 2008
|| # CVS: $RCSfile$ - $Revision: 27907 $
|| ####################################################################
\*======================================================================*/
开发者ID:holandacz,项目名称:nb4,代码行数:31,代码来源:moderation.php

示例3: vb_number_format

    }
    if ($vbulletin->GPC['folderid'] == -1) {
        $show['sentto'] = true;
        $show['movetofolder'] = false;
    } else {
        $show['sentto'] = false;
        $show['movetofolder'] = true;
    }
    $totalmessages = vb_number_format($totalmessages);
    $pmtotal = vb_number_format($vbulletin->userinfo['pmtotal']);
    $pmquota = vb_number_format($vbulletin->userinfo['permissions']['pmquota']);
    $templatename = 'pm_messagelist';
}
// #############################################################################
if ($templatename != '') {
    // draw cp nav bar
    construct_usercp_nav($templatename);
    // build navbar
    $navbits = construct_navbits($navbits);
    eval('$navbar = "' . fetch_template('navbar') . '";');
    ($hook = vBulletinHook::fetch_hook('private_complete')) ? eval($hook) : false;
    // print page
    eval('$HTML = "' . fetch_template($templatename) . '";');
    eval('print_output("' . fetch_template('USERCP_SHELL') . '");');
}
/*======================================================================*\
|| ####################################################################
|| # Downloaded: 22:41, Fri Oct 10th 2008
|| # CVS: $RCSfile$ - $Revision: 27516 $
|| ####################################################################
\*======================================================================*/
开发者ID:holandacz,项目名称:nb4,代码行数:31,代码来源:private.php

示例4: iif

            $templater->register('bgclass', $bgclass);
            $templater->register('request', $request);
            $joinrequestbits .= $templater->render();
        }
    }
    // end if ($numrequests > 0)
    $show['joinrequests'] = iif($joinrequestbits != '', true, false);
    // make the navbar elements
    $navbits = construct_navbits(array('usercp.php' . $vbulletin->session->vars['sessionurl_q'] => $vbphrase['user_control_panel'], 'profile.php?' . $vbulletin->session->vars['sessionurl'] . "do=editusergroups" => $vbphrase['group_memberships'], '' => "{$vbphrase['join_requests']}: '{$usergroup['title']}'"));
    $includecss['joinrequests'] = 'joinrequests.css';
}
// #############################################################################
// spit out final HTML if we have got this far
// build the cp nav
require_once DIR . '/includes/functions_user.php';
construct_usercp_nav('usergroups');
($hook = vBulletinHook::fetch_hook('joinrequest_complete')) ? eval($hook) : false;
$navbar = render_navbar_template($navbits);
$templater = vB_Template::create('JOINREQUESTS');
$templater->register('gobutton', $gobutton);
$templater->register('joinrequestbits', $joinrequestbits);
$templater->register('pagenav', $pagenav);
$templater->register('perpage', $perpage);
$templater->register('usergroup', $usergroup);
$templater->register('usergroupbits', $usergroupbits);
$templater->register('usergroupid', $usergroupid);
$HTML = $templater->render();
if (!$vbulletin->options['storecssasfile']) {
    $includecss = implode(',', $includecss);
}
// shell template
开发者ID:0hyeah,项目名称:yurivn,代码行数:31,代码来源:joinrequests.php

示例5: print_standard_redirect

    $vbulletin->url = 'calendar.php?' . $vbulletin->session->vars['sessionurl'] . "do=getinfo&e={$eventinfo['eventid']}";
    print_standard_redirect('redirect_subsadd_event');
}
// ############################### start add subscription ###############################
if ($_REQUEST['do'] == 'addreminder') {
    if (!$vbulletin->userinfo['userid']) {
        print_no_permission();
    }
    if (!$eventinfo['eventid']) {
        eval(standard_error(fetch_error('invalidid', $idname, $vbulletin->options['contactuslink'])));
    }
    $navbits['calendar.php?' . $vbulletin->session->vars['sessionurl'] . "do=viewreminder"] = $vbphrase['event_reminders'];
    $navbits[''] = $vbphrase['add_reminder'];
    $navbits = construct_navbits($navbits);
    require_once DIR . '/includes/functions_user.php';
    construct_usercp_nav('event_reminders');
    $navbar = render_navbar_template($navbits);
    ($hook = vBulletinHook::fetch_hook('calendar_addreminder')) ? eval($hook) : false;
    $url =& $vbulletin->url;
    $templater = vB_Template::create('calendar_reminder_choosetype');
    $templater->register('eventinfo', $eventinfo);
    $templater->register('url', $url);
    $HTML = $templater->render();
    $templater = vB_Template::create('USERCP_SHELL');
    $templater->register_page_templates();
    $templater->register('cpnav', $cpnav);
    $templater->register('HTML', $HTML);
    $templater->register('navbar', $navbar);
    $templater->register('navclass', $navclass);
    $templater->register('onload', $onload);
    $templater->register('pagetitle', $pagetitle);
开发者ID:0hyeah,项目名称:yurivn,代码行数:31,代码来源:calendar.php

示例6: print_standard_redirect

        }
        $reportobj->do_report($vbulletin->GPC['reason'], $pminfo);
        $url =& $vbulletin->url;
        print_standard_redirect('redirect_reportthanks');
    }
}
// #############################################################################
if (!empty($page_templater)) {
    // draw cp nav bar
    if ($_REQUEST['do'] == 'messagelist') {
        construct_usercp_nav('pm_folder' . $vbulletin->GPC['folderid']);
    } else {
        if ($_REQUEST['do'] == 'showpm') {
            construct_usercp_nav('pm_folder' . $pm['folderid']);
        } else {
            construct_usercp_nav($page_templater->get_template_name());
        }
    }
    // build navbar
    $navbits = construct_navbits($navbits);
    $navbar = render_navbar_template($navbits);
    ($hook = vBulletinHook::fetch_hook('private_complete')) ? eval($hook) : false;
    $includecss['private'] = 'private.css';
    $includeiecss['private'] = 'private-ie.css';
    if (!$vbulletin->options['storecssasfile']) {
        $includecss = implode(',', $includecss);
        $includeiecss = implode(',', $includeiecss);
    }
    // print page
    $templater = vB_Template::create('USERCP_SHELL');
    $templater->register_page_templates();
开发者ID:0hyeah,项目名称:yurivn,代码行数:31,代码来源:private.php

示例7: eval

        }
        if ($costs["{$subscriptionsubid}"]['cost']["{$currency}"] > 0) {
            $form = $subobj->construct_payment($hash, $method, $costs["{$subscriptionsubid}"], $currency, $sub, $vbulletin->userinfo);
            if (!empty($form)) {
                $typetext = $method['classname'] . '_order_instructions';
                ($hook = vBulletinHook::fetch_hook('paidsub_order_paymentbit')) ? eval($hook) : false;
                eval('$orderbits .= "' . fetch_template('subscription_paymentbit') . '";');
            }
        }
    }
    $navbits['payments.php' . $vbulletin->session->vars['sessionurl_q']] = $vbphrase['paid_subscriptions'];
    $navbits[''] = $vbphrase['select_payment_method'];
    $templatename = 'subscription_payment';
}
// #############################################################################
if ($templatename != '') {
    // build the cp nav
    require_once DIR . '/includes/functions_user.php';
    construct_usercp_nav('paid_subscriptions');
    ($hook = vBulletinHook::fetch_hook('paidsub_complete')) ? eval($hook) : false;
    $navbits = construct_navbits($navbits);
    eval('$navbar = "' . fetch_template('navbar') . '";');
    eval('$HTML = "' . fetch_template($templatename) . '";');
    eval('print_output("' . fetch_template('USERCP_SHELL') . '");');
}
/*======================================================================*\
|| ####################################################################
|| # Downloaded: 12:56, Sat Oct 11th 2008
|| # CVS: $RCSfile$ - $Revision: 26981 $
|| ####################################################################
\*======================================================================*/
开发者ID:holandacz,项目名称:nb4,代码行数:31,代码来源:payments.php

示例8: unset

    $templater->register('threadinfo', $threadinfo);
    $infractionbits .= $templater->render();
    $show['infractions'] = true;
}
unset($bbcode_parser);
require_once DIR . '/includes/functions_misc.php';
// check if user can be invisible and is invisible
if (!($permissions['genericpermissions'] & $vbulletin->bf_ugp_genericpermissions['caninvisible']) and $vbulletin->userinfo['invisible']) {
    // init user data manager
    $userdata =& datamanager_init('User', $vbulletin, ERRTYPE_STANDARD);
    $userdata->set_existing($vbulletin->userinfo);
    $userdata->set_bitfield('options', 'invisible', 0);
    $userdata->save();
}
// draw cp nav bar
construct_usercp_nav('usercp');
$navpopup = array('id' => 'usercp_navpopup', 'title' => $vbphrase['user_control_panel'], 'link' => 'usercp.php' . $vbulletin->session->vars['sessionurl_q']);
construct_quick_nav($navpopup);
($hook = vBulletinHook::fetch_hook('usercp_complete')) ? eval($hook) : false;
$templater = vB_Template::create('USERCP');
$templater->register('forumbits', $forumbits);
$templater->register('forumhome_markread_script', $forumhome_markread_script);
$templater->register('forumjump', $forumjump);
$templater->register('grouplist', $grouplist);
$templater->register('invitesleft', $invitesleft);
$templater->register('pendinginvites_joined', $pendinginvites_joined);
$templater->register('groupsneedattention', $groupsneedattention);
$templater->register('groups_awaiting', $groups_awaiting);
$templater->register('groupsleft', $groupsleft);
$templater->register('infractionbits', $infractionbits);
$templater->register('messagebits', $messagebits);
开发者ID:Kheros,项目名称:MMOver,代码行数:31,代码来源:usercp.php

示例9: vb_number_format

     $templater->register('uniquebit', $uniquebit);
     $attachmentlistbits .= $templater->render();
 }
 $show['haveattachments'] = $totalattachments ? true : false;
 $totalattachments = vb_number_format($totalattachments);
 $showingfrom = ($pagenumber - 1) * $perpage + 1;
 $showingto = $showingfrom + count($attachments) - 1;
 $first = $picturetotal ? ($pagenumber - 1) * $perpage + 1 : 0;
 $last = ($last = $perpage * $pagenumber) > $picturetotal ? $picturetotal : $last;
 $show['delete'] = can_moderate(0, 'candeletealbumpicture');
 $hook_query_fields = $hook_query_joins = $hook_query_where = '';
 unset($sqlsortfield, $sqlsortorder);
 $navbits[''] = $vbphrase['moderation'];
 $navbits = construct_navbits($navbits);
 $highlight = $show['popups'] ? $type . 'items' : $type . 'pics';
 construct_usercp_nav($highlight);
 ($hook = vBulletinHook::fetch_hook('moderation_picture_complete')) ? eval($hook) : false;
 $templater = vB_Template::create('moderation_filter');
 $templater->register('daysprunesel', $daysprunesel);
 $templater->register('first', $first);
 $templater->register('last', $last);
 $templater->register('messagetotal', $messagetotal);
 $templater->register('messagetype', $messagetype);
 $templater->register('order', $order);
 $templater->register('pagenumber', $pagenumber);
 $templater->register('perpage', $perpage);
 $templater->register('sort', $sort);
 $templater->register('type', $type);
 $moderation_filter = $templater->render();
 $navbar = render_navbar_template($navbits);
 $templater = vB_Template::create('moderation_attachments');
开发者ID:Kheros,项目名称:MMOver,代码行数:31,代码来源:moderation.php

示例10: while

    while ($foldercount < 4) {
        for ($x = $folderid + 1; 1 == 1; $x++) {
            if (!$folders["{$x}"]) {
                $folderid = $x;
                break;
            }
        }
        eval('$newfolderboxes .= "' . fetch_template('subscribe_folderbit') . '";');
        $foldercount++;
    }
    // generate navbar
    $navbits['subscription.php?' . $vbulletin->session->vars['sessionurl'] . "do=viewsubscription"] = $vbphrase['subscriptions'];
    $navbits[''] = $vbphrase['edit_folders'];
    $navbits = construct_navbits($navbits);
    // build the cp nav
    construct_usercp_nav('substhreads_editfolders');
    $show['customfolders'] = iif($folderboxes != '', true, false);
    ($hook = vBulletinHook::fetch_hook('usersub_editfolders')) ? eval($hook) : false;
    eval('$navbar = "' . fetch_template('navbar') . '";');
    eval('$HTML = "' . fetch_template('subscribe_showfolders') . '";');
    eval('print_output("' . fetch_template('USERCP_SHELL') . '");');
}
#end editfolders
// ############################### start update folders ###############################
if ($_POST['do'] == 'doeditfolders') {
    $vbulletin->input->clean_array_gpc('p', array('folderlist' => TYPE_ARRAY_NOHTML));
    $folders = unserialize($vbulletin->userinfo['subfolders']);
    ($hook = vBulletinHook::fetch_hook('usersub_doeditfolders')) ? eval($hook) : false;
    if (!empty($vbulletin->GPC['folderlist'])) {
        foreach ($vbulletin->GPC['folderlist'] as $folderid => $title) {
            $folderid = intval($folderid);
开发者ID:holandacz,项目名称:nb4,代码行数:31,代码来源:subscription.php

示例11: construct_usercp_nav

<?php

if ($_REQUEST['do'] == 'repprestige') {
    // draw cp nav bar
    construct_usercp_nav('repprestige');
    // check user is logged in
    if ($vbulletin->userinfo['userid'] < 1) {
        print_no_permission();
    }
    // do you even prestige bro
    $canprestige = fetch_canprestige($vbulletin->userinfo['reputationprestige'], $vbulletin->userinfo['reputation']);
    if (isset($_REQUEST['prestige']) && $canprestige) {
        // update their prestige level
        $query = $vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET reputationprestige = reputationprestige+1 WHERE userid = '" . intval($vbulletin->userinfo['userid']) . "'");
        // reset $vbulletin->userinfo, assuming it's fine to just use fetch_userinfo(), shouldn't cause any issues..
        $vbulletin->userinfo = fetch_userinfo($vbulletin->userinfo['userid']);
    }
    // no point in calculating this if they're at the top prestige level
    if ($vbulletin->userinfo['reputationprestige'] < 10) {
        $nextprestige = intval($vbulletin->userinfo['reputationprestige']) + 1;
    } else {
        $nextprestige = 10;
    }
    // render template
    $navbits[''] = 'Reputation Prestige';
    $page_templater = vB_Template::create('reputation_prestige_usercp');
    $page_templater->register('checked', $checked);
    $page_templater->register('nextprestige', $nextprestige);
    $page_templater->register('canprestige', $canprestige);
}
开发者ID:xijbx,项目名称:reputationprestige,代码行数:30,代码来源:profile_start.php

示例12: array

                     break;
                 case 'none':
                 default:
                     $group['notification'] = $vbphrase['none'];
             }
             $templater = vB_Template::create('socialgroups_groupsub_bit');
             $templater->register('group', $group);
             $group_subscribe_list .= $templater->render();
         }
     }
 }
 // Construct navbits
 $navbits = array('usercp.php' . $vbulletin->session->vars['sessionurl_q'] => $vbphrase['user_control_panel'], '' => $vbphrase['group_subscriptions']);
 $navbits = construct_navbits($navbits);
 // Construct cp nav
 construct_usercp_nav('socialgroups');
 $navpopup = array('id' => 'groupsub_navpopup', 'title' => $vbphrase['group_subscriptions'], 'link' => 'groupsubscription.php' . $vbulletin->session->vars['sessionurl_q']);
 construct_quick_nav($navpopup);
 $navbar = render_navbar_template($navbits);
 $templater = vB_Template::create('socialgroups_subscriptions');
 $templater->register('discussionbits', $discussionbits);
 $templater->register('forumjump', $forumjump);
 $templater->register('gobutton', $gobutton);
 $templater->register('group_subscribe_list', $group_subscribe_list);
 $templater->register('orderlinks', $orderlinks);
 $templater->register('pagenav', $pagenav);
 $templater->register('pagenumber', $pagenumber);
 $templater->register('perpage', $perpage);
 $templater->register('sortarrow', $sortarrow);
 $templater->register('totaldiscussions', $totaldiscussions);
 $HTML = $templater->render();
开发者ID:Kheros,项目名称:MMOver,代码行数:31,代码来源:groupsubscription.php

示例13: vbseo_complete_sec


//.........这里部分代码省略.........
                if (!can_moderate(0, 'vbseo_linkbacks')) {
                    print_no_permission();
                }
                vbseo_startup();
                $vbseolinkbackbits = '';
                $perpage = 20;
                $pagenumber = $_GET['page'] ? $_GET['page'] : 1;
                $vbseodb = vbseo_get_db();
                $tp = $vbseodb->vbseodb_query_first("\nSELECT COUNT(*) as cnt\nFROM " . vbseo_tbl_prefix('vbseo_linkback') . "\nWHERE t_incoming=1 AND t_deleted=0 AND t_approve=0");
                $totalposts = $tp['cnt'];
                $vbseopings = $vbseodb->vbseodb_query($q = "\nSELECT t_id, t_time, t_src_url, t_dest_url, t_type, t_postid, t_postcount, t_threadid, t_page, t_title, t_text, t_approve, forumid\nFROM " . vbseo_tbl_prefix('vbseo_linkback') . "\nLEFT JOIN " . vbseo_tbl_prefix('thread') . " on threadid=t_threadid\nWHERE t_incoming=1 AND t_deleted=0 AND t_approve=0\nORDER BY t_time " . (preg_match('#^(asc|desc)$#i', VBSEO_DEFAULT_LINKBACKS_ORDER) ? VBSEO_DEFAULT_LINKBACKS_ORDER : "DESC") . " LIMIT " . ($pagenumber - 1) * $perpage . "," . $perpage);
                $pagenav = construct_page_nav($pagenumber, $perpage, $totalposts, "moderation.php?do=viewlinkbacks");
                while ($vbseoping = @$vbseodb->funcs['fetch_assoc']($vbseopings)) {
                    if (can_moderate($vbseoping['forumid'], 'vbseo_linkbacks')) {
                        $vbseoping['postno'] = $vbseoping['t_postcount'];
                        $vbseoping['ismod'] = 1;
                        $vbseoping['date'] = vbdate($vbulletin->options['dateformat'], $vbseoping['t_time'], true);
                        $vbseoping['time'] = vbdate($vbulletin->options['timeformat'], $vbseoping['t_time'], true);
                        $vbseoping['t_src_url'] = htmlentities($vbseoping['t_src_url']);
                        $vbseoping['t_dest_url'] = htmlentities($vbseoping['t_dest_url']);
                        $vbseoping['t_text_nohtml'] = htmlspecialchars(strip_tags($vbseoping['t_text']));
                        $vbseoping['t_title_html'] = htmlspecialchars($vbseoping['t_title']);
                        eval('$vbseolinkbackbits .= "' . fetch_template('vbseo_linkbackbit') . '";');
                    }
                }
                if ($vbseolinkbackbits) {
                    eval('$HTML = "' . fetch_template('vbseo_linkbacks') . '";');
                } else {
                    $HTML = $vbphrase['vbseo_no_linkbacks_found'];
                }
                unset($vbseolinkbackbits);
                $navbits[''] = $vbphrase['moderation'];
                $navbits = construct_navbits($navbits);
                construct_usercp_nav('moderatedlinkbacks');
                eval('$navbar = "' . fetch_template('navbar') . '";');
                eval('print_output("' . fetch_template('USERCP_SHELL') . '");');
            }
            break;
        case 'misc_start':
            if ($_REQUEST['do'] == 'linkbacks') {
                global $navbits, $headinclude, $header, $footer;
                $navbits = construct_navbits(array('faq.' . VBSEO_VB_EXT . $vbulletin->session->vars['sessionurl_q'] => $vbphrase['faq'], '' => $vbphrase['vbseo_linkbacks']));
                @extract($GLOBALS);
                @eval('$navbar = "' . fetch_template('navbar') . '";');
                @eval('print_output("' . fetch_template('vbseo_help_linkback') . '");');
            }
            break;
        case 'archive_forum_thread':
            if ($GLOBALS['pda'] == 'vbseo') {
                $GLOBALS['pda'] = false;
            }
            break;
        case 'archive_navigation':
            if (VBSEO_ARCHIVE_ORDER_DESC && !$GLOBALS['pda']) {
                $GLOBALS['pda'] = 'vbseo';
            }
            break;
        case 'forumrules':
            $pingrules = '<div>" . construct_phrase("$vbphrase[vbseo_trackback_is_x]", "misc.".VBSEO_VB_EXT."?do=linkbacks#trackbacks", "' . iif(VBSEO_EXT_TRACKBACK, $vbphrase['on'], $vbphrase['off']) . '") . "</div>
<div>" . construct_phrase("$vbphrase[vbseo_pingback_is_x]", "misc.".VBSEO_VB_EXT."?do=linkbacks#pingbacks", "' . iif(VBSEO_EXT_PINGBACK, $vbphrase['on'], $vbphrase['off']) . '") . "</div>
<div>" . construct_phrase("$vbphrase[vbseo_refback_is_x]", "misc.".VBSEO_VB_EXT."?do=linkbacks#refbacks", "' . iif(VBSEO_IN_REFBACK, $vbphrase['on'], $vbphrase['off']) . '") . "</div>';
            vbseo_modify_template('forumrules', '#(html_code_is_x.*?</div>)#s', '$1' . $pingrules, 0, '<!--LINKBACK_POSTRULES-->');
            break;
        case 'showthread_complete':
            global $onload;
            if (!$onload) {
开发者ID:holandacz,项目名称:nb4,代码行数:67,代码来源:functions_vbseo_hook.php

示例14: array

	foreach($blocks as $blockid => $block)
	{
		if ($block['enabled'])
		{
			$selected = array($block['requirement'] => 'selected="selected"');
			$templater = vB_Template::create('modifyprivacy_bit');
				$templater->register('block', $block);
				$templater->register('blockid', $blockid);
				$templater->register('selected', $selected);
			$profileprivacybits .= $templater->render();
		}
	}

	$navbits[''] = $vbphrase['profile_privacy'];

	construct_usercp_nav('privacy');

	$page_templater = vB_Template::create('modifyprofileprivacy');
	$page_templater->register('errors', $errors);
	$page_templater->register('profileprivacybits', $profileprivacybits);
}

// #############################################################################
// dismiss notice (non-ajax / no js user)
if ($_POST['do'] == 'dismissnotice')
{
	$vbulletin->input->clean_array_gpc('p', array(
		'dismiss_noticeid' => TYPE_UINT
	));

	$dismiss_noticeid = $vbulletin->GPC['dismiss_noticeid'];
开发者ID:hungnv0789,项目名称:vhtm,代码行数:31,代码来源:profile.php

示例15: eval

            $template = 'nick_changer_check_error';
        } else {
            $template = 'nick_changer_check_ok';
        }
        eval('$echo = "' . fetch_template($template) . '";');
        echo $echo;
        exit;
    } else {
        # Redirect back to the post
        $vbulletin->url = "nick_changer.php";
        eval(print_standard_redirect('redirect_nick_changer_already_registered'));
    }
}
if ($_REQUEST['do'] == 'chance_username') {
    // draw cp nav bar
    construct_usercp_nav('nick_changer');
    $navbits = construct_navbits($navbits);
    eval('$navbar = "' . fetch_template('navbar') . '";');
    ($hook = vBulletinHook::fetch_hook('profile_complete')) ? eval($hook) : false;
    eval('$template_hook["usercp_navbar_bottom"] .= " ' . fetch_template('nick_changer_usercp') . '";');
    if (nick_changer_can_change_username($vbulletin->userinfo)) {
        eval('$HTML = "' . fetch_template('nick_changer_form') . '";');
    } else {
        if ($vbulletin->options['nick_changer_on_off'] == 1) {
            $days = ceil(($vbulletin->options['nick_changer_days'] * 86400 - (TIMENOW - $vbulletin->userinfo['nick_changer_last_change'])) / 86400);
            $days = construct_phrase($vbphrase['nick_changer_no_permission_days'], $days);
        } else {
            $days = "";
        }
        eval('$HTML = "' . fetch_template('nick_changer_no_permission') . '";');
    }
开发者ID:Gazer,项目名称:vbulletin-nick-changer,代码行数:31,代码来源:nick_changer.php


注:本文中的construct_usercp_nav函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。