mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 22:33:55 -07:00
r52
git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@52 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
parent
218629a79a
commit
8a672bf043
3 changed files with 7 additions and 38 deletions
|
@ -732,7 +732,7 @@ function topic_review ($topic_id)
|
||||||
// Fetch posts data
|
// Fetch posts data
|
||||||
$review_posts = DB()->fetch_rowset("
|
$review_posts = DB()->fetch_rowset("
|
||||||
SELECT
|
SELECT
|
||||||
p.*, pt.post_text
|
p.*, pt.post_text,
|
||||||
IF(p.poster_id = ". ANONYMOUS .", p.post_username, u.username) AS username, u.user_id
|
IF(p.poster_id = ". ANONYMOUS .", p.post_username, u.username) AS username, u.user_id
|
||||||
FROM
|
FROM
|
||||||
". BB_POSTS ." p,
|
". BB_POSTS ." p,
|
||||||
|
|
|
@ -916,27 +916,6 @@ else if ( $save && $mark_list && $folder != 'savebox' && $folder != 'outbox' )
|
||||||
}
|
}
|
||||||
else if ( $submit || $refresh || $mode != '' )
|
else if ( $submit || $refresh || $mode != '' )
|
||||||
{
|
{
|
||||||
//
|
|
||||||
// Toggles
|
|
||||||
//
|
|
||||||
if ( !$bb_cfg['allow_bbcode'] )
|
|
||||||
{
|
|
||||||
$bbcode_on = 0;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$bbcode_on = ($submit || $refresh) ? (int) empty($_POST['disable_bbcode']) : $bb_cfg['allow_bbcode'];
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( !$bb_cfg['allow_smilies'] )
|
|
||||||
{
|
|
||||||
$smilies_on = 0;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$smilies_on = ($submit || $refresh) ? (int) empty($_POST['disable_smilies']) : $bb_cfg['allow_smilies'];
|
|
||||||
}
|
|
||||||
|
|
||||||
if (IS_USER && $submit && $mode != 'edit')
|
if (IS_USER && $submit && $mode != 'edit')
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
|
@ -1093,13 +1072,13 @@ else if ( $submit || $refresh || $mode != '' )
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$sql_info = "INSERT INTO " . BB_PRIVMSGS . " (privmsgs_type, privmsgs_subject, privmsgs_from_userid, privmsgs_to_userid, privmsgs_date, privmsgs_ip, privmsgs_enable_bbcode, privmsgs_enable_smilies)
|
$sql_info = "INSERT INTO " . BB_PRIVMSGS . " (privmsgs_type, privmsgs_subject, privmsgs_from_userid, privmsgs_to_userid, privmsgs_date, privmsgs_ip)
|
||||||
VALUES (" . PRIVMSGS_NEW_MAIL . ", '" . str_replace("\'", "''", $privmsg_subject) . "', " . $userdata['user_id'] . ", " . $to_userdata['user_id'] . ", $msg_time, '". USER_IP ."', $bbcode_on, $smilies_on)";
|
VALUES (" . PRIVMSGS_NEW_MAIL . ", '" . str_replace("\'", "''", $privmsg_subject) . "', " . $userdata['user_id'] . ", " . $to_userdata['user_id'] . ", $msg_time, '". USER_IP ."')";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$sql_info = "UPDATE " . BB_PRIVMSGS . "
|
$sql_info = "UPDATE " . BB_PRIVMSGS . "
|
||||||
SET privmsgs_type = " . PRIVMSGS_NEW_MAIL . ", privmsgs_subject = '" . str_replace("\'", "''", $privmsg_subject) . "', privmsgs_from_userid = " . $userdata['user_id'] . ", privmsgs_to_userid = " . $to_userdata['user_id'] . ", privmsgs_date = $msg_time, privmsgs_ip = '". USER_IP ."', privmsgs_enable_bbcode = $bbcode_on, privmsgs_enable_smilies = $smilies_on
|
SET privmsgs_type = " . PRIVMSGS_NEW_MAIL . ", privmsgs_subject = '" . str_replace("\'", "''", $privmsg_subject) . "', privmsgs_from_userid = " . $userdata['user_id'] . ", privmsgs_to_userid = " . $to_userdata['user_id'] . ", privmsgs_date = $msg_time, privmsgs_ip = '". USER_IP ."'
|
||||||
WHERE privmsgs_id = $privmsg_id";
|
WHERE privmsgs_id = $privmsg_id";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1437,8 +1416,6 @@ else if ( $submit || $refresh || $mode != '' )
|
||||||
'SUBJECT' => htmlCHR($privmsg_subject),
|
'SUBJECT' => htmlCHR($privmsg_subject),
|
||||||
'USERNAME' => $to_username,
|
'USERNAME' => $to_username,
|
||||||
'MESSAGE' => $privmsg_message,
|
'MESSAGE' => $privmsg_message,
|
||||||
'SMILIES_STATUS' => $smilies_status,
|
|
||||||
'BBCODE_STATUS' => sprintf($bbcode_status, '<a href="' . append_sid("faq.php?mode=bbcode") . '" target="_phpbbcode">', '</a>'),
|
|
||||||
'FORUM_NAME' => $lang['PRIVATE_MESSAGE'],
|
'FORUM_NAME' => $lang['PRIVATE_MESSAGE'],
|
||||||
|
|
||||||
'BOX_NAME' => $l_box_name,
|
'BOX_NAME' => $l_box_name,
|
||||||
|
@ -1448,11 +1425,7 @@ else if ( $submit || $refresh || $mode != '' )
|
||||||
'SAVEBOX' => $savebox_url,
|
'SAVEBOX' => $savebox_url,
|
||||||
|
|
||||||
'POSTING_TYPE_TITLE' => $post_a,
|
'POSTING_TYPE_TITLE' => $post_a,
|
||||||
'L_DISABLE_BBCODE' => $lang['DISABLE_BBCODE_PM'],
|
|
||||||
'L_DISABLE_SMILIES' => $lang['DISABLE_SMILIES_PM'],
|
|
||||||
|
|
||||||
'S_BBCODE_CHECKED' => ( !$bbcode_on ) ? ' checked="checked"' : '',
|
|
||||||
'S_SMILIES_CHECKED' => ( !$smilies_on ) ? ' checked="checked"' : '',
|
|
||||||
'S_HIDDEN_FORM_FIELDS' => $s_hidden_fields,
|
'S_HIDDEN_FORM_FIELDS' => $s_hidden_fields,
|
||||||
'S_POST_ACTION' => append_sid("privmsg.php"),
|
'S_POST_ACTION' => append_sid("privmsg.php"),
|
||||||
|
|
||||||
|
|
|
@ -115,15 +115,13 @@
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<!-- IF SHOW_VIRTUAL_KEYBOARD --><!-- INCLUDE kb.tpl --><!-- ENDIF -->
|
<!-- IF SHOW_VIRTUAL_KEYBOARD --><!-- INCLUDE kb.tpl --><!-- ENDIF -->
|
||||||
|
<!-- IF IN_PM -->
|
||||||
|
<!-- ELSEIF LOGGED_IN -->
|
||||||
<tr>
|
<tr>
|
||||||
<td class="row1 vTop pad_4" valign="top">
|
<td class="row1 vTop pad_4" valign="top">
|
||||||
<p><b>{L_OPTIONS}</b></p>
|
<p><b>{L_OPTIONS}</b></p>
|
||||||
</td>
|
</td>
|
||||||
<td class="row2">
|
<td class="row2">
|
||||||
|
|
||||||
<!-- IF IN_PM -->
|
|
||||||
<!-- ELSEIF LOGGED_IN -->
|
|
||||||
<div class="floatL">
|
<div class="floatL">
|
||||||
<table class="borderless inline">
|
<table class="borderless inline">
|
||||||
<!-- IF SHOW_UPDATE_POST_TIME -->
|
<!-- IF SHOW_UPDATE_POST_TIME -->
|
||||||
|
@ -140,11 +138,9 @@
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<!-- ENDIF / LOGGED_IN -->
|
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<!-- ENDIF / LOGGED_IN -->
|
||||||
<!-- BEGIN switch_type_toggle -->
|
<!-- BEGIN switch_type_toggle -->
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2" class="row2 tCenter pad_6">{S_TYPE_TOGGLE}</td>
|
<td colspan="2" class="row2 tCenter pad_6">{S_TYPE_TOGGLE}</td>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue