Zeile 134 | Zeile 134 |
---|
cache_forums();
// If we're accessing a post, fetch the forum theme for it and if we're overriding it
|
cache_forums();
// If we're accessing a post, fetch the forum theme for it and if we're overriding it
|
if(!empty($mybb->input['pid']))
| if(!empty($mybb->input['pid']) && THIS_SCRIPT != "polls.php")
|
{ $query = $db->simple_select("posts", "fid", "pid = '".intval($mybb->input['pid'])."'", array("limit" => 1)); $fid = $db->fetch_field($query, "fid");
| { $query = $db->simple_select("posts", "fid", "pid = '".intval($mybb->input['pid'])."'", array("limit" => 1)); $fid = $db->fetch_field($query, "fid");
|
Zeile 157 | Zeile 157 |
---|
$load_from_forum = 1; } }
|
$load_from_forum = 1; } }
|
| // If we're accessing poll results, fetch the forum theme for it and if we're overriding it else if(!empty($mybb->input['pid']) && THIS_SCRIPT == "polls.php") { $query = $db->simple_select("threads", "fid", "poll = '".intval($mybb->input['pid'])."'", array("limit" => 1)); $fid = $db->fetch_field($query, "fid");
|
|
|
| if($fid) { $style = $forum_cache[$fid]; $load_from_forum = 1; } }
|
// We have a forum id - simply load the theme from it else if($mybb->input['fid']) {
| // We have a forum id - simply load the theme from it else if($mybb->input['fid']) {
|
Zeile 309 | Zeile 320 |
---|
// Set the current date and time now $datenow = my_date($mybb->settings['dateformat'], TIME_NOW, '', false); $timenow = my_date($mybb->settings['timeformat'], TIME_NOW);
|
// Set the current date and time now $datenow = my_date($mybb->settings['dateformat'], TIME_NOW, '', false); $timenow = my_date($mybb->settings['timeformat'], TIME_NOW);
|
$lang->welcome_current_time = $lang->sprintf($lang->welcome_current_time, $datenow . $lang->comma . $timenow);
| $lang->welcome_current_time = $lang->sprintf($lang->welcome_current_time, $datenow.', '.$timenow);
|
// Format the last visit date of this user appropriately if(isset($mybb->user['lastvisit'])) {
|
// Format the last visit date of this user appropriately if(isset($mybb->user['lastvisit'])) {
|
$lastvisit = my_date($mybb->settings['dateformat'], $mybb->user['lastvisit']) . $lang->comma . my_date($mybb->settings['timeformat'], $mybb->user['lastvisit']);
| $lastvisit = my_date($mybb->settings['dateformat'], $mybb->user['lastvisit']) . ', ' . my_date($mybb->settings['timeformat'], $mybb->user['lastvisit']);
|
}
// Otherwise, they've never visited before
| }
// Otherwise, they've never visited before
|