Was steht in der Zeile 3020 in der
/includes/functions.php kopiere gleich nen stück von 3000 - 3050 etwa
Die Zeile 3020 ist in rot markiert.
Code:
// ###################### Start checkforumpwd #######################
function verify_forum_password($forumid, $password, $showerror = true)
{
global $permissions, $bbuserinfo, $stylevar, $scriptpath;
if (!$password OR ($permissions['adminpermissions'] & CANCONTROLPANEL) OR ($permissions['adminpermissions'] & ISMODERATOR) OR can_moderate($forumid))
{
return true;
}
$foruminfo = fetch_foruminfo($forumid);
$parents = explode(',', $foruminfo['parentlist']);
foreach ($parents AS $fid)
{ // get the pwd from any parent forums -- allows pwd cookies to cascade down
if ($temp = fetch_bbarray_cookie('forumpwd', $fid) AND $temp == md5($bbuserinfo['userid'] . $password))
{
return true;
}
}
// didn't match the password in any cookie
if ($showerror)
{
// forum password is bad - show error
$postvars = construct_post_vars_html();
eval(print_standard_error('error_forumpasswordmissing'));
}
else
{
// forum password is bad - return false
return false;
}
}
// ###################### Start bits2array #######################
// takes a bitfield and the array describing the resulting fields
function convert_bits_to_array(&$bitfield, $_FIELDNAMES)
{
$bitfield = intval($bitfield);
$arry = array();
foreach ($_FIELDNAMES AS $field => $bitvalue)
{
if ($bitfield & $bitvalue)
{
$arry["$field"] = 1;
}
else
{
$arry["$field"] = 0;
}
}
return $arry;
}
// ###################### Start querypermissions #######################
// returns the full set of permissions for the specified user (called by global or init)
// returns combined usergroup permissions AND all individual forum permissions
function cache_permissions(&$user, $getforumpermissions=true)
{
global $DB_site, $vboptions, $_BITFIELD, $_INTPERMS, $_SERVER;
global $usergroupcache, $forumcache, $forumpermissioncache;
// these are the arrays created by this function
global $accesscache, $forumcache, $cpermscache, $calendarcache, $_PERMQUERY;
static $fpermscache;
$intperms = array();
$_PERMQUERY = array();
// set the usergroupid of the user's primary usergroup
$USERGROUPID = $user['usergroupid'];
if ($USERGROUPID == 0)
{ // set a default usergroupid if none is set
$USERGROUPID = 1;
}
// initialise $membergroups - make an array of the usergroups to which this user belongs
$membergroupids = fetch_membergroupids_array($user);
// build usergroup permissions
dann hast du hacks eingebaut?
Hmmm ein paar stück.. Vbarcade, Vbarticle, Vbadvanced Portal und mit Sicherheit noch ein paar kleinere.
Lesezeichen