Zeile 1694 | Zeile 1694 |
---|
{ if(!empty($groupscache[$gid])) {
|
{ if(!empty($groupscache[$gid])) {
|
| $level_permissions = array();
|
// If our permissions arn't inherited we need to figure them out if(empty($fpermcache[$fid][$gid])) {
| // If our permissions arn't inherited we need to figure them out if(empty($fpermcache[$fid][$gid])) {
|
Zeile 1770 | Zeile 1772 |
---|
* @return bool */ function forum_password_validated($forum, $ignore_empty=false, $check_parents=false)
|
* @return bool */ function forum_password_validated($forum, $ignore_empty=false, $check_parents=false)
|
{
| {
|
global $mybb, $forum_cache;
if($check_parents && isset($forum['parentlist']))
| global $mybb, $forum_cache;
if($check_parents && isset($forum['parentlist']))
|
Zeile 1846 | Zeile 1848 |
---|
if($forum_cache[$parent_id]['password'] !== "") { check_forum_password($parent_id, $fid);
|
if($forum_cache[$parent_id]['password'] !== "") { check_forum_password($parent_id, $fid);
|
} }
| } }
|
}
if($forum_cache[$fid]['password'] !== '')
| }
if($forum_cache[$fid]['password'] !== '')
|
Zeile 1857 | Zeile 1859 |
---|
if(my_hash_equals($forum_cache[$fid]['password'], $mybb->get_input('pwverify'))) { my_setcookie("forumpass[$fid]", md5($mybb->user['uid'].$mybb->get_input('pwverify')), null, true);
|
if(my_hash_equals($forum_cache[$fid]['password'], $mybb->get_input('pwverify'))) { my_setcookie("forumpass[$fid]", md5($mybb->user['uid'].$mybb->get_input('pwverify')), null, true);
|
$showform = false;
| $showform = false;
|
} else { eval("\$pwnote = \"".$templates->get("forumdisplay_password_wrongpass")."\";");
|
} else { eval("\$pwnote = \"".$templates->get("forumdisplay_password_wrongpass")."\";");
|
$showform = true;
| $showform = true;
|
} } else
| } } else
|
Zeile 1876 | Zeile 1878 |
---|
$showform = false; } }
|
$showform = false; } }
|
}
| }
|
else { $showform = false;
| else { $showform = false;
|
Zeile 1885 | Zeile 1887 |
---|
if($return) { return $showform;
|
if($return) { return $showform;
|
}
| }
|
if($showform) { if($pid)
|
if($showform) { if($pid)
|
{
| {
|
header("Location: ".$mybb->settings['bburl']."/".get_forum_link($fid)); } else
| header("Location: ".$mybb->settings['bburl']."/".get_forum_link($fid)); } else
|
Zeile 1900 | Zeile 1902 |
---|
output_page($pwform); } exit;
|
output_page($pwform); } exit;
|
}
| }
|
}
/**
| }
/**
|
Zeile 1915 | Zeile 1917 |
---|
{ global $mybb, $cache, $db; static $modpermscache;
|
{ global $mybb, $cache, $db; static $modpermscache;
|
|
|
if($uid < 1) { $uid = $mybb->user['uid'];
| if($uid < 1) { $uid = $mybb->user['uid'];
|
Zeile 1924 | Zeile 1926 |
---|
if($uid == 0) { return false;
|
if($uid == 0) { return false;
|
}
| }
|
if(isset($modpermscache[$fid][$uid])) {
| if(isset($modpermscache[$fid][$uid])) {
|
Zeile 1973 | Zeile 1975 |
---|
continue; }
|
continue; }
|
| if(!isset($perms[$action])) { $perms[$action] = $value; }
|
// Figure out the user permissions
|
// Figure out the user permissions
|
if($value == 0)
| else if($value == 0)
|
{ // The user doesn't have permission to set this action $perms[$action] = 0;
|
{ // The user doesn't have permission to set this action $perms[$action] = 0;
|
} else {
| } else {
|
$perms[$action] = max($perm[$action], $perms[$action]); } }
| $perms[$action] = max($perm[$action], $perms[$action]); } }
|
Zeile 1998 | Zeile 2004 |
---|
foreach($perm as $action => $value) { if(strpos($action, "can") === false)
|
foreach($perm as $action => $value) { if(strpos($action, "can") === false)
|
{
| {
|
continue;
|
continue;
|
}
| }
|
|
|
$perms[$action] = max($perm[$action], $perms[$action]);
| if(!isset($perms[$action])) { $perms[$action] = $value; } else { $perms[$action] = max($perm[$action], $perms[$action]); }
|
} } }
| } } }
|
Zeile 3319 | Zeile 3332 |
---|
if($forum['active'] != 0) { $jumpfcache[$forum['pid']][$forum['disporder']][$forum['fid']] = $forum;
|
if($forum['active'] != 0) { $jumpfcache[$forum['pid']][$forum['disporder']][$forum['fid']] = $forum;
|
}
| }
|
} }
| } }
|
Zeile 3343 | Zeile 3356 |
---|
if($selitem == $forum['fid']) { $optionselected = 'selected="selected"';
|
if($selitem == $forum['fid']) { $optionselected = 'selected="selected"';
|
}
$forum['name'] = htmlspecialchars_uni(strip_tags($forum['name']));
| }
$forum['name'] = htmlspecialchars_uni(strip_tags($forum['name']));
|
eval("\$forumjumpbits .= \"".$templates->get("forumjump_bit")."\";");
| eval("\$forumjumpbits .= \"".$templates->get("forumjump_bit")."\";");
|
Zeile 3362 | Zeile 3375 |
---|
if($addselect) { if($showextras == 0)
|
if($addselect) { if($showextras == 0)
|
{
| {
|
$template = "special"; } else
| $template = "special"; } else
|
Zeile 3370 | Zeile 3383 |
---|
$template = "advanced";
if(strpos(FORUM_URL, '.html') !== false)
|
$template = "advanced";
if(strpos(FORUM_URL, '.html') !== false)
|
{
| {
|
$forum_link = "'".str_replace('{fid}', "'+option+'", FORUM_URL)."'"; } else
| $forum_link = "'".str_replace('{fid}', "'+option+'", FORUM_URL)."'"; } else
|
Zeile 3387 | Zeile 3400 |
---|
/** * Returns the extension of a file.
|
/** * Returns the extension of a file.
|
*
| *
|
* @param string $file The filename. * @return string The extension of the file. */
| * @param string $file The filename. * @return string The extension of the file. */
|
Zeile 3725 | Zeile 3738 |
---|
{ $finds = explode("\n", $smilie['find']); $finds_count = count($finds);
|
{ $finds = explode("\n", $smilie['find']); $finds_count = count($finds);
|
|
|
// Only show the first text to replace in the box $smilie['find'] = $finds[0];
| // Only show the first text to replace in the box $smilie['find'] = $finds[0];
|
Zeile 3741 | Zeile 3754 |
---|
{ $dropdownsmilies .= '"'.$find.'": "'.$image.'",'; ++$i;
|
{ $dropdownsmilies .= '"'.$find.'": "'.$image.'",'; ++$i;
|
}
| }
|
else { $moresmilies .= '"'.$find.'": "'.$image.'",';
| else { $moresmilies .= '"'.$find.'": "'.$image.'",';
|
Zeile 3775 | Zeile 3788 |
---|
}
if($mybb->settings['allowsizemycode'] == 1)
|
}
if($mybb->settings['allowsizemycode'] == 1)
|
{
| {
|
$size = "size,";
|
$size = "size,";
|
}
| }
|
if($mybb->settings['allowcolormycode'] == 1) { $color = "color,";
|
if($mybb->settings['allowcolormycode'] == 1) { $color = "color,";
|
}
| }
|
if($mybb->settings['allowfontmycode'] == 1 || $mybb->settings['allowsizemycode'] == 1 || $mybb->settings['allowcolormycode'] == 1)
|
if($mybb->settings['allowfontmycode'] == 1 || $mybb->settings['allowsizemycode'] == 1 || $mybb->settings['allowcolormycode'] == 1)
|
{
| {
|
$removeformat = "removeformat|";
|
$removeformat = "removeformat|";
|
}
| }
|
if($mybb->settings['allowemailmycode'] == 1) { $email = "email,";
|
if($mybb->settings['allowemailmycode'] == 1) { $email = "email,";
|
}
| }
|
if($mybb->settings['allowlinkmycode'] == 1)
|
if($mybb->settings['allowlinkmycode'] == 1)
|
{
| {
|
$link = "link,unlink"; }
if($mybb->settings['allowlistmycode'] == 1) { $list = "bulletlist,orderedlist|";
|
$link = "link,unlink"; }
if($mybb->settings['allowlistmycode'] == 1) { $list = "bulletlist,orderedlist|";
|
}
| }
|
if($mybb->settings['allowcodemycode'] == 1) {
| if($mybb->settings['allowcodemycode'] == 1) {
|
Zeile 3844 | Zeile 3857 |
---|
if(!(int)$tid || (int)$tid <= 0) { return $subscription_methods[$subscription_method];
|
if(!(int)$tid || (int)$tid <= 0) { return $subscription_methods[$subscription_method];
|
}
| }
|
// If method not predefined set using data from database if(isset($postoptions['subscriptionmethod']))
| // If method not predefined set using data from database if(isset($postoptions['subscriptionmethod']))
|
Zeile 3860 | Zeile 3873 |
---|
$subscription = $db->fetch_array($query);
if(!empty($subscription) && $subscription['tid'])
|
$subscription = $db->fetch_array($query);
if(!empty($subscription) && $subscription['tid'])
|
{
| {
|
$subscription_method = (int)$subscription['notification'] + 1; } }
| $subscription_method = (int)$subscription['notification'] + 1; } }
|
Zeile 3910 | Zeile 3923 |
---|
$mybb->settings['smilieinsertertot'] = $smiliecount; } else if($mybb->settings['smilieinsertertot'] < $smiliecount)
|
$mybb->settings['smilieinsertertot'] = $smiliecount; } else if($mybb->settings['smilieinsertertot'] < $smiliecount)
|
{
| {
|
$smiliecount = $mybb->settings['smilieinsertertot']; eval("\$getmore = \"".$templates->get("smilieinsert_getmore")."\";"); }
| $smiliecount = $mybb->settings['smilieinsertertot']; eval("\$getmore = \"".$templates->get("smilieinsert_getmore")."\";"); }
|
Zeile 3918 | Zeile 3931 |
---|
$smilies = $smilie_icons = ''; $counter = 0; $i = 0;
|
$smilies = $smilie_icons = ''; $counter = 0; $i = 0;
|
|
|
$extra_class = ''; foreach($smiliecache as $smilie) {
| $extra_class = ''; foreach($smiliecache as $smilie) {
|
Zeile 3927 | Zeile 3940 |
---|
$smilie['image'] = str_replace("{theme}", $theme['imgdir'], $smilie['image']); $smilie['image'] = htmlspecialchars_uni($mybb->get_asset_url($smilie['image'])); $smilie['name'] = htmlspecialchars_uni($smilie['name']);
|
$smilie['image'] = str_replace("{theme}", $theme['imgdir'], $smilie['image']); $smilie['image'] = htmlspecialchars_uni($mybb->get_asset_url($smilie['image'])); $smilie['name'] = htmlspecialchars_uni($smilie['name']);
|
|
|
// Only show the first text to replace in the box $temp = explode("\n", $smilie['find']); // assign to temporary variable for php 5.3 compatibility $smilie['find'] = $temp[0];
| // Only show the first text to replace in the box $temp = explode("\n", $smilie['find']); // assign to temporary variable for php 5.3 compatibility $smilie['find'] = $temp[0];
|
Zeile 3995 | Zeile 4008 |
---|
$prefix_cache = $cache->read("threadprefixes");
if(!is_array($prefix_cache))
|
$prefix_cache = $cache->read("threadprefixes");
if(!is_array($prefix_cache))
|
{
| {
|
// No cache $prefix_cache = $cache->read("threadprefixes", true);
if(!is_array($prefix_cache)) { return array();
|
// No cache $prefix_cache = $cache->read("threadprefixes", true);
if(!is_array($prefix_cache)) { return array();
|
} }
| } }
|
$prefixes_cache = array(); foreach($prefix_cache as $prefix)
| $prefixes_cache = array(); foreach($prefix_cache as $prefix)
|
Zeile 4018 | Zeile 4031 |
---|
else if(!empty($prefixes_cache)) { return $prefixes_cache;
|
else if(!empty($prefixes_cache)) { return $prefixes_cache;
|
}
| }
|
return false; }
| return false; }
|
Zeile 4061 | Zeile 4074 |
---|
{ // This prefix is not in our forum list continue;
|
{ // This prefix is not in our forum list continue;
|
} }
| } }
|
if(is_member($prefix['groups']) || $prefix['pid'] == $previous_pid) {
| if(is_member($prefix['groups']) || $prefix['pid'] == $previous_pid) {
|
Zeile 4264 | Zeile 4277 |
---|
{ $fid = (int)$data['fid']; unset($data['fid']);
|
{ $fid = (int)$data['fid']; unset($data['fid']);
|
}
| }
|
$tid = 0; if(isset($data['tid'])) {
| $tid = 0; if(isset($data['tid'])) {
|
Zeile 4402 | Zeile 4415 |
---|
{ global $mybb, $plugins;
|
{ global $mybb, $plugins;
|
$ip = strtolower($_SERVER['REMOTE_ADDR']);
| $ip = strtolower($_SERVER['REMOTE_ADDR']);
|
if($mybb->settings['ip_forwarded_check']) { $addresses = array();
| if($mybb->settings['ip_forwarded_check']) { $addresses = array();
|
Zeile 4536 | Zeile 4549 |
---|
$time = number_format(round(1000000 * $time, 2))." μs"; } elseif(round(1000000 * $time, 2) >= 1000 && round(1000000 * $time, 2) < 1000000)
|
$time = number_format(round(1000000 * $time, 2))." μs"; } elseif(round(1000000 * $time, 2) >= 1000 && round(1000000 * $time, 2) < 1000000)
|
{
| {
|
$time = number_format(round((1000 * $time), 2))." ms"; } else
| $time = number_format(round((1000 * $time), 2))." ms"; } else
|
Zeile 4560 | Zeile 4573 |
---|
if(!$attachtypes) { $attachtypes = $cache->read("attachtypes");
|
if(!$attachtypes) { $attachtypes = $cache->read("attachtypes");
|
}
| }
|
$ext = my_strtolower($ext);
if($attachtypes[$ext]['icon'])
| $ext = my_strtolower($ext);
if($attachtypes[$ext]['icon'])
|
Zeile 4586 | Zeile 4599 |
---|
{ global $change_dir; $attach_icons_schemes[$ext] = $change_dir."/".str_replace("{theme}", $theme['imgdir'], $attachtypes[$ext]['icon']);
|
{ global $change_dir; $attach_icons_schemes[$ext] = $change_dir."/".str_replace("{theme}", $theme['imgdir'], $attachtypes[$ext]['icon']);
|
$attach_icons_schemes[$ext] = $mybb->get_asset_url($attach_icons_schemes[$ext]);
| $attach_icons_schemes[$ext] = $mybb->get_asset_url($attach_icons_schemes[$ext]);
|
} else {
| } else {
|
Zeile 4604 | Zeile 4617 |
---|
if(defined("IN_ADMINCP")) { $theme['imgdir'] = "../images";
|
if(defined("IN_ADMINCP")) { $theme['imgdir'] = "../images";
|
}
| }
|
else if(defined("IN_PORTAL")) { global $change_dir; $theme['imgdir'] = "{$change_dir}/images"; }
|
else if(defined("IN_PORTAL")) { global $change_dir; $theme['imgdir'] = "{$change_dir}/images"; }
|
|
|
$icon = "{$theme['imgdir']}/attachtypes/unknown.png";
|
$icon = "{$theme['imgdir']}/attachtypes/unknown.png";
|
|
|
$name = $lang->unknown; }
| $name = $lang->unknown; }
|
Zeile 4620 | Zeile 4633 |
---|
eval("\$attachment_icon = \"".$templates->get("attachment_icon")."\";"); return $attachment_icon; }
|
eval("\$attachment_icon = \"".$templates->get("attachment_icon")."\";"); return $attachment_icon; }
|
|
|
/** * Get a list of the unviewable forums for the current user *
| /** * Get a list of the unviewable forums for the current user *
|
Zeile 4645 | Zeile 4658 |
---|
foreach($forum_cache as $fid => $forum) { if($permissioncache[$forum['fid']])
|
foreach($forum_cache as $fid => $forum) { if($permissioncache[$forum['fid']])
|
{
| {
|
$perms = $permissioncache[$forum['fid']]; } else
| $perms = $permissioncache[$forum['fid']]; } else
|
Zeile 4670 | Zeile 4683 |
---|
{ $pwverified = 0; break;
|
{ $pwverified = 0; break;
|
} }
| } }
|
}
if($perms['canview'] == 0 || $pwverified == 0 || ($only_readable_threads == true && $perms['canviewthreads'] == 0))
| }
if($perms['canview'] == 0 || $pwverified == 0 || ($only_readable_threads == true && $perms['canviewthreads'] == 0))
|
Zeile 4806 | Zeile 4819 |
---|
}
foreach($forum_cache as $key => $val)
|
}
foreach($forum_cache as $key => $val)
|
{
| {
|
$pforumcache[$val['fid']][$val['pid']] = $val; } }
| $pforumcache[$val['fid']][$val['pid']] = $val; } }
|
Zeile 4830 | Zeile 4843 |
---|
{ // Set up link to forum in breadcrumb. if($pforumcache[$fid][$forumnav['pid']]['type'] == 'f' || $pforumcache[$fid][$forumnav['pid']]['type'] == 'c')
|
{ // Set up link to forum in breadcrumb. if($pforumcache[$fid][$forumnav['pid']]['type'] == 'f' || $pforumcache[$fid][$forumnav['pid']]['type'] == 'c')
|
{
| {
|
$navbits[$navsize]['url'] = "{$base_url}forum-".$forumnav['fid'].".html"; } else
| $navbits[$navsize]['url'] = "{$base_url}forum-".$forumnav['fid'].".html"; } else
|
Zeile 4854 | Zeile 4867 |
---|
}
return 1;
|
}
return 1;
|
}
| }
|
/** * Resets the breadcrumb navigation to the first item, and clears the rest */
| /** * Resets the breadcrumb navigation to the first item, and clears the rest */
|
Zeile 4872 | Zeile 4885 |
---|
unset($GLOBALS['navbits']); $GLOBALS['navbits'] = $newnav;
|
unset($GLOBALS['navbits']); $GLOBALS['navbits'] = $newnav;
|
}
| }
|
/** * Builds a URL to an archive mode page *
| /** * Builds a URL to an archive mode page *
|
Zeile 4882 | Zeile 4895 |
---|
* @return string The URL */ function build_archive_link($type="", $id=0)
|
* @return string The URL */ function build_archive_link($type="", $id=0)
|
{
| {
|
global $mybb;
// If the server OS is not Windows and not Apache or the PHP is running as a CGI or we have defined ARCHIVE_QUERY_STRINGS, use query strings - DIRECTORY_SEPARATOR checks if running windows
| global $mybb;
// If the server OS is not Windows and not Apache or the PHP is running as a CGI or we have defined ARCHIVE_QUERY_STRINGS, use query strings - DIRECTORY_SEPARATOR checks if running windows
|
Zeile 4890 | Zeile 4903 |
---|
if($mybb->settings['seourls_archive'] == 1) { $base_url = $mybb->settings['bburl']."/archive/index.php/";
|
if($mybb->settings['seourls_archive'] == 1) { $base_url = $mybb->settings['bburl']."/archive/index.php/";
|
}
| }
|
else { $base_url = $mybb->settings['bburl']."/archive/index.php?";
| else { $base_url = $mybb->settings['bburl']."/archive/index.php?";
|
Zeile 4941 | Zeile 4954 |
---|
if($mybb->settings['gzipoutput'] != 0) { $gzipen = "Enabled";
|
if($mybb->settings['gzipoutput'] != 0) { $gzipen = "Enabled";
|
} else {
| } else {
|
$gzipen = "Disabled"; }
| $gzipen = "Disabled"; }
|
Zeile 5282 | Zeile 5295 |
---|
}
if(!isset($options['minutes']) || $options['minutes'] !== false)
|
}
if(!isset($options['minutes']) || $options['minutes'] !== false)
|
{
| {
|
if($minutes == 1)
|
if($minutes == 1)
|
{
| {
|
$nicetime['minutes'] = "1".$lang_minute;
|
$nicetime['minutes'] = "1".$lang_minute;
|
}
| }
|
else if($minutes > 1) { $nicetime['minutes'] = $minutes.$lang_minutes;
|
else if($minutes > 1) { $nicetime['minutes'] = $minutes.$lang_minutes;
|
} }
| } }
|
if(!isset($options['seconds']) || $options['seconds'] !== false) {
| if(!isset($options['seconds']) || $options['seconds'] !== false) {
|
Zeile 5308 | Zeile 5321 |
---|
if(!empty($nicetime)) { return implode(", ", $nicetime);
|
if(!empty($nicetime)) { return implode(", ", $nicetime);
|
}
| }
|
}
/**
| }
/**
|
Zeile 5316 | Zeile 5329 |
---|
* * @param int $reset 1 to reset the row to trow1. * @return string trow1 or trow2 depending on the previous call
|
* * @param int $reset 1 to reset the row to trow1. * @return string trow1 or trow2 depending on the previous call
|
*/
| */
|
function alt_trow($reset=0) { global $alttrow;
| function alt_trow($reset=0) { global $alttrow;
|
Zeile 5324 | Zeile 5337 |
---|
if($alttrow == "trow1" && !$reset) { $trow = "trow2";
|
if($alttrow == "trow1" && !$reset) { $trow = "trow2";
|
}
| }
|
else { $trow = "trow1";
| else { $trow = "trow1";
|
Zeile 5349 | Zeile 5362 |
---|
if($uid == $mybb->user['uid']) { $user = $mybb->user;
|
if($uid == $mybb->user['uid']) { $user = $mybb->user;
|
}
| }
|
else { $query = $db->simple_select("users", "additionalgroups, usergroup", "uid='".(int)$uid."'");
| else { $query = $db->simple_select("users", "additionalgroups, usergroup", "uid='".(int)$uid."'");
|
Zeile 5482 | Zeile 5495 |
---|
}
$form_html .= "<input type=\"hidden\" name=\"".htmlspecialchars_uni($name)."\" value=\"".htmlspecialchars_uni($value)."\" />\n";
|
}
$form_html .= "<input type=\"hidden\" name=\"".htmlspecialchars_uni($name)."\" value=\"".htmlspecialchars_uni($value)."\" />\n";
|
} }
| } }
|
return array('location' => $location, 'form_html' => $form_html, 'form_method' => $mybb->request_method); } else
| return array('location' => $location, 'form_html' => $form_html, 'form_method' => $mybb->request_method); } else
|
Zeile 5501 | Zeile 5514 |
---|
} else { $current_query_string = '';
|
} else { $current_query_string = '';
|
}
| }
|
parse_str($current_query_string, $current_parameters);
| parse_str($current_query_string, $current_parameters);
|
Zeile 5510 | Zeile 5523 |
---|
if(!in_array($name, $ignore)) { $parameters[$name] = $value;
|
if(!in_array($name, $ignore)) { $parameters[$name] = $value;
|
}
| }
|
}
if($mybb->request_method === 'post')
| }
if($mybb->request_method === 'post')
|
Zeile 5552 | Zeile 5565 |
---|
global $db, $themeselect, $tcache, $lang, $mybb, $limit, $templates, $num_themes, $themeselect_option;
if($tid == 0)
|
global $db, $themeselect, $tcache, $lang, $mybb, $limit, $templates, $num_themes, $themeselect_option;
if($tid == 0)
|
{
| {
|
$tid = 1; $num_themes = 0; $themeselect_option = '';
| $tid = 1; $num_themes = 0; $themeselect_option = '';
|
Zeile 5686 | Zeile 5699 |
---|
if(is_int($number)) { return number_format($number, 0, $mybb->settings['decpoint'], $mybb->settings['thousandssep']);
|
if(is_int($number)) { return number_format($number, 0, $mybb->settings['decpoint'], $mybb->settings['thousandssep']);
|
} else
| } else
|
{ $parts = explode('.', $number);
if(isset($parts[1])) { $decimals = my_strlen($parts[1]);
|
{ $parts = explode('.', $number);
if(isset($parts[1])) { $decimals = my_strlen($parts[1]);
|
}
| }
|
else { $decimals = 0;
| else { $decimals = 0;
|
Zeile 5719 | Zeile 5732 |
---|
static $use_iconv;
if(!isset($charset))
|
static $use_iconv;
if(!isset($charset))
|
{
| {
|
$charset = my_strtolower($lang->settings['charset']);
|
$charset = my_strtolower($lang->settings['charset']);
|
}
| }
|
if($charset == "utf-8") { return $str;
|
if($charset == "utf-8") { return $str;
|
}
| }
|
if(!isset($use_iconv)) { $use_iconv = function_exists("iconv");
| if(!isset($use_iconv)) { $use_iconv = function_exists("iconv");
|
Zeile 5744 | Zeile 5757 |
---|
{ $from_charset = $lang->settings['charset']; $to_charset = "UTF-8";
|
{ $from_charset = $lang->settings['charset']; $to_charset = "UTF-8";
|
} else {
| } else {
|
$from_charset = "UTF-8"; $to_charset = $lang->settings['charset'];
|
$from_charset = "UTF-8"; $to_charset = $lang->settings['charset'];
|
}
| }
|
if($use_iconv)
|
if($use_iconv)
|
{
| {
|
return iconv($from_charset, $to_charset."//IGNORE", $str);
|
return iconv($from_charset, $to_charset."//IGNORE", $str);
|
} else {
| } else {
|
return @mb_convert_encoding($str, $to_charset, $from_charset); } }
| return @mb_convert_encoding($str, $to_charset, $from_charset); } }
|
Zeile 5890 | Zeile 5903 |
---|
$lang->month_10, $lang->month_11, $lang->month_12
|
$lang->month_10, $lang->month_11, $lang->month_12
|
);
| );
|
// This needs to be in this specific order $find = array(
| // This needs to be in this specific order $find = array(
|
Zeile 6026 | Zeile 6039 |
---|
LIMIT 1" ); $lastpost = $db->fetch_array($query);
|
LIMIT 1" ); $lastpost = $db->fetch_array($query);
|
| if(!$lastpost) { return false; }
|
if(empty($lastpost['username'])) {
| if(empty($lastpost['username'])) {
|