diff --git a/upload/includes/init_bb.php b/upload/includes/init_bb.php index 1943d71f6..6fb32414c 100644 --- a/upload/includes/init_bb.php +++ b/upload/includes/init_bb.php @@ -131,13 +131,13 @@ function bb_setcookie ($name, $val, $lifetime = COOKIE_PERSIST, $httponly = fals if (PHP_VERSION < 5.2) { - // HttpOnly hack by Matt Mecham [http://blog.mattmecham.com/archives/2006/09/http_only_cookies_without_php.html] - $domain .= ($httponly) ? '; HttpOnly' : ''; - return setcookie($name, $val, $lifetime, $bb_cfg['cookie_path'], $domain, $bb_cfg['cookie_secure']); + // HttpOnly hack by Matt Mecham [http://blog.mattmecham.com/archives/2006/09/http_only_cookies_without_php.html] + $domain .= ($httponly) ? '; HttpOnly' : ''; + return setcookie($name, $val, $lifetime, $bb_cfg['cookie_path'], $domain, $bb_cfg['cookie_secure']); } else { - return setcookie($name, $val, $lifetime, $bb_cfg['cookie_path'], $domain, $bb_cfg['cookie_secure'], $httponly); + return setcookie($name, $val, $lifetime, $bb_cfg['cookie_path'], $domain, $bb_cfg['cookie_secure'], $httponly); } } diff --git a/upload/includes/sessions.php b/upload/includes/sessions.php index 978f0109f..b1bc3cf0c 100644 --- a/upload/includes/sessions.php +++ b/upload/includes/sessions.php @@ -490,6 +490,8 @@ class user_common COOKIE_DBG, 'torhelp', 'kb_layout', + 'explain', + 'sql_log' ); foreach ($delete_cookies as $cookie) @@ -500,8 +502,7 @@ class user_common } } } - - if ($user_id != ANONYMOUS) + else { $c_sdata_resv = !empty($_COOKIE[COOKIE_DATA]) ? $_COOKIE[COOKIE_DATA] : null; $c_sdata_curr = ($this->sessiondata) ? serialize($this->sessiondata) : ''; diff --git a/upload/report.php b/upload/report.php index 4289a1dc3..0786f515b 100644 --- a/upload/report.php +++ b/upload/report.php @@ -1,38 +1,14 @@ session_start(); - -if (!$userdata['session_logged_in']) -{ - redirect(append_sid("index.php", true)); -} +$user->session_start(array('req_login' => true)); $return_links = array( 'index' => '

' . sprintf($lang['CLICK_RETURN_INDEX'], '', ''), @@ -691,7 +667,7 @@ else } else if ($report_change['report_change_comment'] != '') { - $report_change_text = sprintf($lang['REPORT_CHANGE_TEXT_COMMENT'], $report_change_status, $report_change_user, $report_change_time, $report_change['report_change_comment']); + $report_change_text = sprintf($lang['REPORT_CHANGE_TEXT_COMMENT'], $report_change_status, $report_change_user, $report_change_time, bbcode2html($report_change['report_change_comment'])); } else { @@ -739,7 +715,7 @@ else 'REPORT_TITLE' => $report['report_title'], 'REPORT_AUTHOR' => $report['username'], 'REPORT_TIME' => bb_date($report['report_time']), - 'REPORT_DESC' => str_replace("\n", '
', $report['report_desc']), + 'REPORT_DESC' => bbcode2html($report['report_desc']), 'REPORT_STATUS' => $lang['REPORT_STATUS'][$report['report_status']], 'REPORT_STATUS_CLASS' => $report_status_classes[$report['report_status']], diff --git a/upload/templates/default/report_view_body.tpl b/upload/templates/default/report_view_body.tpl index 732514af3..448234bd3 100644 --- a/upload/templates/default/report_view_body.tpl +++ b/upload/templates/default/report_view_body.tpl @@ -5,7 +5,7 @@ {REPORT_TITLE}

- + @@ -14,7 +14,7 @@

- + @@ -40,7 +40,7 @@

- + @@ -61,10 +61,10 @@ - +
{L_REPORTED_BY}:
{L_MESSAGE}:{REPORT_DESC}
{REPORT_DESC}
- +
@@ -84,7 +84,7 @@
- +
@@ -94,7 +94,7 @@ - {switch_report_changes.report_changes.TEXT} +
{switch_report_changes.report_changes.TEXT}