gulli:board Logo

Anzeige


  Antwort
deleted user
 
Beiträge: n/a
Prob beim einbau der VBB hide hacks bitte helft mir

Habe ein problem beim einbau des VBB Gold hide hacks da kommt folgender fehler vielleicht kann mir da einer auf die sprünge helfen ich bekomm es nicht hin

Fatal error: Call to undefined function: lock_count() in /var/www/html/VB0DE/includes/functions_showthread.php on line 714


PHP-Code:
<?php
/*======================================================================*\
|| #################################################################### ||
|| # vBulletin 3.0.0 
|| # ---------------------------------------------------------------- # ||
|| # Copyright ©2000–2004 Jelsoft Enterprises Ltd. All Rights Reserved. ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ------------------ VBULLETIN IS FREE SOFTWARE ------------------ # ||

|| #################################################################### ||
\*======================================================================*/

error_reporting(E_ALL & ~E_NOTICE);
if (!
is_object($DB_site))
{
    exit;
}

require_once(
'./includes/functions_bbcodeparse.php');
// ##### [hide] [/hide] Start #####require_once('./includes/functions_hide.php');// ##### [hide] [/hide] End #####
// ###################### Start getreputationimage #######################
function fetch_reputation_image(&$post)
{
    global 
$vboptions$stylevar$vbphrase;

    if (!
$vboptions['reputationenable'])
    {
        return 
true;
    }

    
$reputation_value $post['reputation'];
    if (
$post['reputation'] < AND $post['reputation'] >=-100)
    {
        
$reputationgif 'balance';
        
$reputation_value = ($post['reputation'] * -1);
    }
    else if (
$post['reputation'] < -100)
    {
        
$reputationgif 'neg';
        
$reputationhighgif 'highneg';
        
$reputation_value = ($post['reputation'] * -1);
    }
    else if (
$post['reputation'] == 0)
    {
        
$reputationgif 'balance';
    }
    else
    {
        
$reputationgif 'pos';
        
$reputationhighgif 'highpos';
    }

    if (
$reputation_value 500)
    {  
// bright green bars take 200 pts not the normal 100
        
$reputation_value = ($reputation_value - ($reputation_value 500)) + (($reputation_value 500) / 2);
    }

    
$reputationbars intval($reputation_value 100); // award 1 reputation bar for every 100 points
    
if ($reputationbars 10)
    {
        
$reputationbars 10;
    }
    if (
$post['showreputation'] == AND $vboptions['reputationhide'] == 1)
    {
        
$posneg 'off';
        
$post['level'] = $vbphrase['reputation_disabled'];
        eval(
'$post[\'reputationdisplay\'] = "' fetch_template('postbit_reputation') . '";');
    }
    else
    {
        if (!
$post['reputationlevelid'])
        {
            
$post['level'] = $vboptions['reputationundefined'];
        }
        for (
$i 0$i <= $reputationbars$i++)
        {
            if (
$i >= 5)
            {
                
$posneg $reputationhighgif;
            }
            else
            {
                
$posneg $reputationgif;
            }
            eval(
'$post[\'reputationdisplay\'] .= "' fetch_template('postbit_reputation') . '";');
        }
    }

    return 
true;
}

// ###################### Start doimicons #######################
function construct_im_icons(&$userinfo$ignore_off_setting false)
{
    global 
$vboptions$stylevar$show$vbphrase;

    
$show['hasimicons'] = false;

    
$userinfo['icq'] = intval($userinfo['icq']);
    if (!empty(
$userinfo['icq']) AND ($vboptions['showimicons'] OR $ignore_off_setting))
    {
        eval(
'$userinfo[\'icqicon\'] = "' fetch_template('im_icq') . '";');
        
$userinfo['showicq'] = true;
        
$show['hasimicons'] = true;
    }
    else
    {
        
$userinfo['icqicon'] = '';
        
$userinfo['showicq'] = false;
    }

    if (
$userinfo['aim'] != '' AND ($vboptions['showimicons'] OR $ignore_off_setting))
    {
        eval(
'$userinfo[\'aimicon\'] = "' fetch_template('im_aim') . '";');
        
$userinfo['showaim'] = true;
        
$show['hasimicons'] = true;
    }
    else
    {
        
$userinfo['aimicon'] = '';
        
$userinfo['showaim'] = false;
    }

    if (
$userinfo['yahoo'] != '' AND ($vboptions['showimicons'] OR $ignore_off_setting))
    {
        eval(
'$userinfo[\'yahooicon\'] = "' fetch_template('im_yahoo') . '";');
        
$userinfo['showyahoo'] = true;
        
$show['hasimicons'] = true;
    }
    else
    {
        
$userinfo['yahooicon'] = '';
        
$userinfo['showyahoo'] = false;
    }

    if (
$userinfo['msn'] != '' AND ($vboptions['showimicons'] OR $ignore_off_setting))
    {
        eval(
'$userinfo[\'msnicon\'] = "' fetch_template('im_msn') . '";');
        
$userinfo['showmsn'] = true;
        
$show['hasimicons'] = true;
    }
    else
    {
        
$userinfo['msnicon'] = '';
        
$userinfo['showmsn'] = false;
    }

}

// ###################### Start getpostbit #######################
function construct_postbit($post$maintemplatename 'postbit'$alternate '')
{
    
// sorts through all the stuff to return the postbit template
        // ##### [hide] [/hide] Start #####
        
global $DB_site,$threadid;
        
// ##### [hide] [/hide] End #####

    // user
    
global $bbuserinfo$session$ignore$permissions$_REQUEST;
    
// showthread
    
global $counter$firstnew$highlight$postid$forum$replacewords$bgclass$altbgclass;
    global 
$thread$threadedmode$tachyusers$SHOWQUICKREPLY$onload;
    global 
$spacer_open$spacer_close$parsed_postcache;
    
// global options
    
global $vboptions$stylevar$vbphrase$DB_site$datastore$_USEROPTIONS$style$show$usergroupcache;

    static 
$gotrank$sigcache$sigperms$gotage$month$day$year$counter;

    
// hide users in Coventry from non-staff members
    
if ($tachyuser in_coventry($post['userid']) AND !can_moderate($thread['forumid']))
    {
        return;
    }

    
$counter ++;

    
exec_switch_bg();

    
$post array_merge($postconvert_bits_to_array($post['options'], $_USEROPTIONS));

    if (!
$vboptions['allowthreadedmode'])
    {
        
$threadedmode 0;
    }

    
// set $scrolltothis value if necessary
    
if (THIS_SCRIPT == 'showthread')
    {
        if (
$post['postid'] == $postid)
        {
            
$scrolltothis " id=\"currentPost\"";
            if (
$threadedmode == 0)
            {
                
$onload "if (is_ie || is_moz) { fetch_object('currentPost').scrollIntoView(!is_moz); }";
            }
        }
        else
        {
            
$scrolltothis '';
        }
    }

    
// find first new post
    
if (isset($bbuserinfo['lastvisit']))
    {
        if (
$post['dateline'] > $bbuserinfo['lastvisit'] AND $firstnew == 0)
        {
            
$firstnew $post['postid'];
            
$post['firstnewinsert' ] = '<a name="newpost"></a>';
        }
        else
        {
            
$post['firstnewinsert'] = '';
        }
    }

    
// format date/time
    
$post['postdate'] = vbdate($vboptions['dateformat'], $post['dateline'], true);
    
$post['posttime'] = vbdate($vboptions['timeformat'], $post['dateline']);

    
// do word wrap
    
if ($vboptions['wordwrap'])
    {
        
$post['title'] = fetch_word_wrapped_string($post['title']);
    }
    
$post['title'] = fetch_censored_text($post['title']);

    
// get attachment info
    
if (is_array($post['attachments']))
    {
        if (
can_moderate($foruminfo['forumid'], 'canmoderateattachments') OR $post['userid'] == $bbuserinfo['userid'])
        {
            
$show['modattachmentlink'] = true;
        }
        else
        {
            
$show['modattachmentlink'] = false;
        }
        
$show['attachments'] = true;
        
$show['moderatedattachment'] = $show['thumbnailattachment'] = $show['otherattachment'] = false;
        
$show['imageattachment'] = $show['imageattachmentlink'] = false;
        
$attachcount sizeof($post['attachments']);
        
$thumbcount 0;
        if (!
$vboptions['attachthumbs'] AND !$vboptions['viewattachedimages'])
        {
            
$showimagesprev $bbuserinfo['showimages'];
            
$bbuserinfo['showimages'] = false;
        }
        foreach(
$post['attachments'] AS $attachmentid => $attachment)
        {
            if(
$attachment['thumbnailsize'] == $attachment['filesize'])
            { 
// This is an image that is already thumbnail sized..
                
$attachment['hasthumbnail'] = 0;
                
$attachment['forceimage'] = 1;
            }
            
$attachment['filename'] = fetch_censored_text(htmlspecialchars_uni($attachment['filename']));
            
$attachment['attachmentextension'] = strtolower(file_extension($attachment['filename']));
            
$attachment['filesize'] = vb_number_format($attachment['filesize'], 1true);

            if (
$attachment['visible'])
            {
                switch(
$attachment['attachmentextension'])
                {
                    case 
'gif':
                    case 
'jpg':
                    case 
'jpeg':
                    case 
'jpe':
                    case 
'png':
                    case 
'bmp':
                        if (!
$bbuserinfo['showimages'])
                        {
                            eval(
'$post[\'imageattachmentlinks\'] .= "' fetch_template('postbit_attachment') . '";');
                            
$show['imageattachmentlink'] = true;
                        }
                        else if (
$vboptions['attachthumbs'])
                        {
                            if (
$attachment['hasthumbnail'])
                            {
                                
$thumbcount++;
                                if (
$thumbcount >= $vboptions['attachrow'])
                                {
                                    
$thumbcount 0;
                                    
$show['br'] = true;
                                }
                                else
                                {
                                    
$show['br'] = false;
                                }
                                eval(
'$post[\'thumbnailattachments\'] .= "' fetch_template('postbit_attachmentthumbnail') . '";');
                                
$show['thumbnailattachment'] = true;
                            }
                            else if (
$attachment['forceimage'])
                            {
                                eval(
'$post[\'imageattachments\'] .= "' fetch_template('postbit_attachmentimage') . '";');
                                
$show['imageattachment'] = true;
                            }
                            else
                            {
                                eval(
'$post[\'imageattachmentlinks\'] .= "' fetch_template('postbit_attachment') . '";');
                                
$show['imageattachmentlink'] = true;
                            }
                        }
                        else if (
$vboptions['viewattachedimages'] == OR ($vboptions['viewattachedimages'] == AND $attachcount == 1))
                        {
                            eval(
'$post[\'imageattachments\'] .= "' fetch_template('postbit_attachmentimage') . '";');
                            
$show['imageattachment'] = true;
                        }
                        else
                        {
                            eval(
'$post[\'imageattachmentlinks\'] .= "' fetch_template('postbit_attachment') . '";');
                            
$show['imageattachmentlink'] = true;
                        }
                        break;
                    default:
                        eval(
'$post[\'otherattachments\'] .= "' fetch_template('postbit_attachment') . '";');
                        
$show['otherattachment'] = true;
                }
            }
            else
            {
                eval(
'$post[\'moderatedattachments\'] .= "' fetch_template('postbit_attachmentmoderated') . '";');
                
$show['moderatedattachment'] = true;
            }
        }
        if (!
$vboptions['attachthumbs'] AND !$vboptions['viewattachedimages'])
        {
            
$bbuserinfo['showimages'] = $showimagesprev;
        }
    }
    else
    {
        
$show['attachments'] = false;
    }

    
// get edited by
    
if ($post['edit_userid'])
    {
        
$post['edit_date'] = vbdate($vboptions['dateformat'], $post['edit_dateline'], true);
        
$post['edit_time'] = vbdate($vboptions['timeformat'], $post['edit_dateline']);
        
$show['postedited'] = true;
    }
    else
    {
        
$show['postedited'] = false;
    }

    
// get new/old post statusicon
    
if ($post['dateline'] > $bbuserinfo['lastvisit'])
    {
        
$post['statusicon'] = 'new';
        
$post['statustitle'] = $vbphrase['unread'];
    }
    else
    {
        
$post['statusicon'] = 'old';
        
$post['statustitle'] = $vbphrase['old'];
    }

    
// show default icon
    
if ((!$forum['allowicons'] OR $post['iconid'] == 0) AND THIS_SCRIPT != 'announcement')
    {
        if (!empty(
$vboptions['showdeficon']))
        {
            
$post['iconpath'] = $vboptions['showdeficon'];
            
$post['icontitle'] = $vbphrase['default'];
        }
    }

    
// *******************************************************
    // not posted by an unregistered user so get profile stuff
    
if ($post['userid'])
    {
        
// get rank
        
if (!$gotrank[$post['userid']])
        {
            eval(
$datastore['rankphp']);
            
$gotrank["$post[userid]"] = $post['rank'];
        }
        else
        {
            
$post['rank'] = $gotrank["$post[userid]"];
        }

        
// get online status
        
fetch_online_status($posttrue);

        
// get avatar
        
if ($post['avatarid'])
        {
            
$avatarurl $post['avatarpath'];
        }
        else
        {
            if (
$post['hascustomavatar'] AND $vboptions['avatarenabled'])
            {
                if (
$vboptions['usefileavatar'])
                {
                    
$avatarurl "$vboptions[avatarurl]/avatar$post[userid]_$post[avatarrevision].gif";
                }
                else
                {
                    
$avatarurl "image.php?$session[sessionurl]u=$post[userid]&amp;dateline=$post[avatardateline]";
                }
            }
            else
            {
                
$avatarurl '';
            }
        }
        if (empty(
$avatarurl) OR ($bbuserinfo['userid'] > AND !($bbuserinfo['showavatars'])))
        {
            
$show['avatar'] = false;

        }
        else
        {
            
$show['avatar'] = true;
        }

        
// get custom title
        
if ($post['customtitle'] == 2)
        { 
// user title is not set by admin staff, so parse it.
            
$post['usertitle'] = htmlspecialchars_uni($post['usertitle']);
        }

        
// get join date & posts per day
        
$jointime = (TIMENOW $post['joindate']) / 86400// Days Joined
        
if ($jointime 1)
        { 
// User has been a member for less than one day.
            
$postsperday $post['posts'];
        }
        else
        {
            
$postsperday vb_number_format($post['posts'] / $jointime2);
        }
        
$post['joindate'] = vbdate($vboptions['registereddateformat'], $post['joindate']);

        
// format posts number
        
$post['posts'] = vb_number_format($post['posts']);

        
// assign $userinfo from $post
        
$userinfo = &$post;

        
$show['profile'] = true;
        
$show['search'] = true;
        
$show['buddy'] = true;
        
$show['emaillink'] = iif ($post['showemail'] AND $vboptions['displayemails'] AND (!$vboptions['secureemail'] OR ($vboptions['secureemail'] AND $vboptions['enableemail'])), truefalse);
        
$show['homepage'] = iif ($post['homepage'] != '' AND $post['homepage'] != 'http://'truefalse);
        
$show['pmlink'] = iif ($post['receivepm'] AND $vboptions['enablepms'], truefalse);

        
// get reputation
        
if ($vboptions['reputationenable'] == 1)
        {
            
fetch_reputation_image($post);
            
$show['reputation'] = true;
        }
        else
        {
            
$show['reputation'] = false;
        }

        
// IM icons
        
construct_im_icons($post);

        
// Generate Age
        
if ($vboptions['enableage'])
        {
            if (!
$year)
            {
                
$year vbdate('Y'TIMENOWfalsefalse);
                
$month vbdate('n'TIMENOWfalsefalse);
                
$day vbdate('j'TIMENOWfalsefalse);
            }
            if (empty(
$gotage["$post[userid]"]))
            {
                
$date explode('-'$post['birthday']);
                if (
$year $date[2] AND $date[2] != '0000')
                {
                    
$post['age'] = $year $date[2];
                    if (
$month $date[0] OR

Geändert von tiberian (12. 02. 2005 um 00:43 Uhr).
Alt 11. 02. 2005, 18:52 Mit Zitat antworten #1
deleted user
 
Beiträge: n/a
teil 2

PHP-Code:
($month == $date[0] AND $day $date[1]))
                    {
                        
$post['age']--;
                    }
                    if (
$post['age'] < 101)
                    {
                        
$gotage["$post[userid]"] = $post['age'];
                    }
                    else
                    {
                        unset(
$post['age']);
                    }
                }