Added append_sid() where possible
This commit is contained in:
@@ -84,6 +84,7 @@ if( $attach_forums === TRUE )
|
|||||||
'POST_IDS' => (!empty($post_ids[$row['attach_id']])) ? $post_ids[$row['attach_id']] : '',
|
'POST_IDS' => (!empty($post_ids[$row['attach_id']])) ? $post_ids[$row['attach_id']] : '',
|
||||||
'POST_MSG_ID' => $row['post_msg_id'], // grab post ID to redirect to post
|
'POST_MSG_ID' => $row['post_msg_id'], // grab post ID to redirect to post
|
||||||
'U_FILE' => append_sid($phpbb_root_path . 'download/file.' . $phpEx, 'id=' . $row['attach_id']),
|
'U_FILE' => append_sid($phpbb_root_path . 'download/file.' . $phpEx, 'id=' . $row['attach_id']),
|
||||||
|
'U_TOPIC' => append_sid($phpbb_root_path . 'viewtopic.'.$phpEx, 'p='.$row['post_msg_id'].'#p'.$row['post_msg_id']),
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
$db->sql_freeresult($result);
|
$db->sql_freeresult($result);
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ if (!defined('IN_PORTAL'))
|
|||||||
|
|
||||||
$template->assign_vars(array(
|
$template->assign_vars(array(
|
||||||
'S_DISPLAY_PORTALSEARCH' => true,
|
'S_DISPLAY_PORTALSEARCH' => true,
|
||||||
'S_SEARCH_ACTION' => "{$phpbb_root_path}search.$phpEx",
|
'S_SEARCH_ACTION' => append_sid("{$phpbb_root_path}search.$phpEx"),
|
||||||
|
|
||||||
));
|
));
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<!-- IF .attach -->
|
<!-- IF .attach -->
|
||||||
<span style="float:left;"><strong>{L_FILENAME}</strong></span><br />
|
<span style="float:left;"><strong>{L_FILENAME}</strong></span><br />
|
||||||
<!-- BEGIN attach -->
|
<!-- BEGIN attach -->
|
||||||
<span style="float:left;" class="portal-gensmall"><img src="portal/images/icon_topic_attach.gif" alt="" /> <a href="viewtopic.php?p={attach.POST_MSG_ID}#p{attach.POST_MSG_ID}" ><strong>{attach.REAL_FILENAME}</strong></a></span><br style="clear:both" />
|
<span style="float:left;" class="portal-gensmall"><img src="portal/images/icon_topic_attach.gif" alt="" /> <a href="{attach.U_TOPIC}" ><strong>{attach.REAL_FILENAME}</strong></a></span><br style="clear:both" />
|
||||||
<!-- <span style="float:right;padding-right:10px;" class="portal-gensmall">{attach.FILESIZE}</span><br style="clear:both" /> -->
|
<!-- <span style="float:right;padding-right:10px;" class="portal-gensmall">{attach.FILESIZE}</span><br style="clear:both" /> -->
|
||||||
<span style="float:left;padding-right:10px;">{L_FILESIZE}:</span><span style="float:right;padding-right:10px;" class="portal-gensmall"><strong>{attach.FILESIZE}</strong></span><br style="clear:both" />
|
<span style="float:left;padding-right:10px;">{L_FILESIZE}:</span><span style="float:right;padding-right:10px;" class="portal-gensmall"><strong>{attach.FILESIZE}</strong></span><br style="clear:both" />
|
||||||
<span style="float:left;padding-right:10px;">{L_DOWNLOADS}:</span><span style="float:right;padding-right:10px;" class="portal-gensmall"><strong>{attach.DOWNLOAD_COUNT}</strong></span><br style="clear:both" />
|
<span style="float:left;padding-right:10px;">{L_DOWNLOADS}:</span><span style="float:right;padding-right:10px;" class="portal-gensmall"><strong>{attach.DOWNLOAD_COUNT}</strong></span><br style="clear:both" />
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
<span style="float:left;"><strong>{L_FILENAME}</strong></span>
|
<span style="float:left;"><strong>{L_FILENAME}</strong></span>
|
||||||
<span style="float:right;padding-right:10px;"><strong>{L_FILESIZE}</strong></span><br />
|
<span style="float:right;padding-right:10px;"><strong>{L_FILESIZE}</strong></span><br />
|
||||||
<!-- BEGIN attach -->
|
<!-- BEGIN attach -->
|
||||||
<span style="float:left;" class="gensmall"><img src="portal/images/icon_topic_attach.gif" alt="" /> <a href="viewtopic.php?p={attach.POST_MSG_ID}#p{attach.POST_MSG_ID}" ><strong>{attach.REAL_FILENAME}</strong></a></span><br style="clear:both" />
|
<span style="float:left;" class="gensmall"><img src="portal/images/icon_topic_attach.gif" alt="" /> <a href="{attach.U_TOPIC}" ><strong>{attach.REAL_FILENAME}</strong></a></span><br style="clear:both" />
|
||||||
<span style="float:left;">{L_FILESIZE}:</span><span style="float:right;" class="gensmall"><strong>{attach.FILESIZE}</strong></span><br style="clear:both" />
|
<span style="float:left;">{L_FILESIZE}:</span><span style="float:right;" class="gensmall"><strong>{attach.FILESIZE}</strong></span><br style="clear:both" />
|
||||||
<span style="float:left;">{L_DOWNLOADS}:</span><span style="float:right;" class="gensmall"><strong>{attach.DOWNLOAD_COUNT}</strong></span><br style="clear:both" />
|
<span style="float:left;">{L_DOWNLOADS}:</span><span style="float:right;" class="gensmall"><strong>{attach.DOWNLOAD_COUNT}</strong></span><br style="clear:both" />
|
||||||
<hr />
|
<hr />
|
||||||
|
|||||||
Reference in New Issue
Block a user