Экспорт. Коммит №28. Экспорт из приватного репозитария завершен. _Xz_. git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@30 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
glix08 2011-06-27 21:46:47 +00:00
commit edf38fb2d5
4 changed files with 18 additions and 41 deletions

View file

@ -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) : '';

View file

@ -1,38 +1,14 @@
<?php
/*
This file is part of TorrentPier
TorrentPier is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
TorrentPier is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
A copy of the GPL 2.0 should have been included with the program.
If not, see http://www.gnu.org/licenses/
Official SVN repository and contact information can be found at
http://code.google.com/p/torrentpier/
*/
define('IN_PHPBB', true);
define('BB_SCRIPT', 'report');
define('BB_ROOT', './');
require(BB_ROOT ."common.php");
require(INC_DIR ."bbcode.php");
require(INC_DIR ."functions_report.php");
// Init userdata
$user->session_start();
if (!$userdata['session_logged_in'])
{
redirect(append_sid("index.php", true));
}
$user->session_start(array('req_login' => true));
$return_links = array(
'index' => '<br /><br />' . sprintf($lang['CLICK_RETURN_INDEX'], '<a href="' . append_sid("index.php") . '">', '</a>'),
@ -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", '<br />', $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']],

View file

@ -61,7 +61,7 @@
<!-- END switch_report_reason -->
<tr>
<td class="row2" valign="top"><span class="gen">{L_MESSAGE}:</span></td>
<td class="row2"><span class="gen">{REPORT_DESC}</span></td>
<td class="row2"><div class="post_wrap">{REPORT_DESC}</div></td>
</tr>
</table>
@ -94,7 +94,7 @@
</tr>
<!-- BEGIN report_changes -->
<tr>
<td class="{switch_report_changes.report_changes.ROW_CLASS}"><span class="genmed">{switch_report_changes.report_changes.TEXT}</span></td>
<td class="{switch_report_changes.report_changes.ROW_CLASS}"><div class="med post_wrap">{switch_report_changes.report_changes.TEXT}</div></td>
</tr>
<!-- END report_changes -->
<!-- END switch_report_changes -->