Zeile 1868 | Zeile 1868 |
---|
if($httponly == true) { $cookie .= "; HttpOnly";
|
if($httponly == true) { $cookie .= "; HttpOnly";
|
| }
if($mybb->settings['cookiesecureflag']) { $cookie .= "; Secure";
|
}
$mybb->cookies[$name] = $value;
| }
$mybb->cookies[$name] = $value;
|
Zeile 2147 | Zeile 2152 |
---|
function my_unserialize($str) { // Ensure we use the byte count for strings even when strlen() is overloaded by mb_strlen()
|
function my_unserialize($str) { // Ensure we use the byte count for strings even when strlen() is overloaded by mb_strlen()
|
if(function_exists('mb_internal_encoding') && (((int)ini_get('mbstring.func_overload')) & 2)) { $mbIntEnc = mb_internal_encoding(); mb_internal_encoding('ASCII'); }
$out = _safe_unserialize($str);
if(isset($mbIntEnc)) { mb_internal_encoding($mbIntEnc); }
return $out; }
/** * Credits go to https://github.com/piwik
| if(function_exists('mb_internal_encoding') && (((int)ini_get('mbstring.func_overload')) & 2)) { $mbIntEnc = mb_internal_encoding(); mb_internal_encoding('ASCII'); }
$out = _safe_unserialize($str);
if(isset($mbIntEnc)) { mb_internal_encoding($mbIntEnc); }
return $out; }
/** * Credits go to https://github.com/piwik
|
* Safe serialize() replacement * - output a strict subset of PHP's native serialized representation * - does not my_serialize objects
| * Safe serialize() replacement * - output a strict subset of PHP's native serialized representation * - does not my_serialize objects
|
Zeile 2458 | Zeile 2463 |
---|
/** * Updates the forum counters with a specific value (or addition/subtraction of the previous value)
|
/** * Updates the forum counters with a specific value (or addition/subtraction of the previous value)
|
*
| *
|
* @param int $fid The forum ID * @param array $changes Array of items being updated (threads, posts, unapprovedthreads, unapprovedposts, deletedposts, deletedthreads) and their value (ex, 1, +1, -1) */
| * @param int $fid The forum ID * @param array $changes Array of items being updated (threads, posts, unapprovedthreads, unapprovedposts, deletedposts, deletedthreads) and their value (ex, 1, +1, -1) */
|
Zeile 2753 | Zeile 2758 |
---|
'lastposteruid' => (int)$lastpost['uid'], ); $db->update_query("threads", $update_array, "tid='{$tid}'");
|
'lastposteruid' => (int)$lastpost['uid'], ); $db->update_query("threads", $update_array, "tid='{$tid}'");
|
}
| }
|
/** * Updates the user counters with a specific value (or addition/subtraction of the previous value)
| /** * Updates the user counters with a specific value (or addition/subtraction of the previous value)
|
Zeile 3048 | Zeile 3053 |
---|
if(!isset($avatars)) { $avatars = array();
|
if(!isset($avatars)) { $avatars = array();
|
| }
if(my_strpos($avatar, '://') !== false && !$mybb->settings['allowremoteavatars']) { // Remote avatar, but remote avatars are disallowed. $avatar = null;
|
}
if(!$avatar)
| }
if(!$avatar)
|