Important: This page is using cookies (cookies). Using this website without turning off cookies in browser, means that you agree for using it.
Buy Now! Features Downloads

Earn with us!

If you would like to start earning money with vBET join to Affiliate Program.
Results 1 to 9 of 9

Thread: Upgrade error

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Junior Member
    Join Date
    Apr 2010
    Posts
    18

    Default

    VB version is 3.84 global.php is:


    PHP Code:
    // if user can control panel, allow selection of any style (for testing purposes)
    // otherwise only allow styles that are user-selectable
    $styleid intval($styleid);
    $style NULL;

    (
    $hook vBulletinHook::fetch_hook('style_fetch')) ? eval($hook) : false;

    if (!
    is_array($style))
    {
        
    $style $db->query_first_slave("
            SELECT *
            FROM " 
    TABLE_PREFIX "style
            WHERE (styleid = 
    $styleidiif(!($vbulletin->userinfo['permissions']['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['cancontrolpanel']) AND !$userselect' AND userselect = 1') . ")
                OR styleid = " 
    $vbulletin->options['styleid'] . "
            ORDER BY styleid " 
    iif($styleid $vbulletin->options['styleid'], 'DESC''ASC') . "
            LIMIT 1
        "
    );
    }
    define('STYLEID'$style['styleid']); 
    I'm not sure if dreamweaver is showing the correct line so I added the complete code arround this, 238 is
    ($hook = vBulletinHook::fetch_hook('style_fetch')) ? eval($hook) : false;
    Last edited by Ramses; 22-06-10 at 16:56.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •