mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
some fixes here and there
git-svn-id: file:///svn/phpbb/trunk@7860 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
f538d70301
commit
2d5298e8e1
12 changed files with 51 additions and 24 deletions
|
@ -2,9 +2,9 @@
|
|||
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
function popup(url, width, height)
|
||||
function diff_popup(url)
|
||||
{
|
||||
window.open(url.replace(/&/g, '&'), 'diff', 'height=' + height + ',resizable=yes,scrollbars=yes,width=' + width);
|
||||
window.open(url.replace(/&/g, '&'), 'diff', 'height=600,resizable=yes,scrollbars=yes,width=950');
|
||||
return false;
|
||||
}
|
||||
//-->
|
||||
|
@ -185,7 +185,7 @@
|
|||
<br /><span>{L_NUM_CONFLICTS}: {files.NUM_CONFLICTS}</span>
|
||||
<!-- ENDIF -->
|
||||
</dt>
|
||||
<dd style="margin-left: 60%;"><!-- IF files.STATUS eq 'modified' --> <!-- ELSE --><!-- IF not files.S_BINARY -->[ <a href="{files.U_SHOW_DIFF}" onclick="popup('{files.U_SHOW_DIFF}', 700, 500); return false;">{files.L_SHOW_DIFF}</a> ]<!-- ELSE -->{L_BINARY_FILE}<!-- ENDIF --><!-- ENDIF --></dd>
|
||||
<dd style="margin-left: 60%;"><!-- IF files.STATUS eq 'modified' --> <!-- ELSE --><!-- IF not files.S_BINARY -->[ <a href="{files.U_SHOW_DIFF}" onclick="diff_popup('{files.U_SHOW_DIFF}'); return false;">{files.L_SHOW_DIFF}</a> ]<!-- ELSE -->{L_BINARY_FILE}<!-- ENDIF --><!-- ENDIF --></dd>
|
||||
<!-- IF files.S_CUSTOM -->
|
||||
<dd style="margin-left: 60%;"><label><input type="checkbox" name="no_update[]" value="{files.FILENAME}" class="radio" /> {L_DO_NOT_UPDATE}</label></dd>
|
||||
<!-- ENDIF -->
|
||||
|
@ -194,15 +194,15 @@
|
|||
</dl>
|
||||
<dl>
|
||||
<dt style="width: 60%"><label><input type="radio" class="radio" name="modified[{files.FILENAME}]" value="0" checked="checked" /> {L_MERGE_MODIFICATIONS_OPTION}</label></dt>
|
||||
<dd style="margin-left: 60%;"><!-- IF not files.S_BINARY -->[ <a href="{files.U_SHOW_DIFF}" onclick="popup('{files.U_SHOW_DIFF}', 700, 500); return false;">{files.L_SHOW_DIFF}</a> ]<!-- ELSE -->{L_BINARY_FILE}<!-- ENDIF --></dd>
|
||||
<dd style="margin-left: 60%;"><!-- IF not files.S_BINARY -->[ <a href="{files.U_SHOW_DIFF}" onclick="diff_popup('{files.U_SHOW_DIFF}'); return false;">{files.L_SHOW_DIFF}</a> ]<!-- ELSE -->{L_BINARY_FILE}<!-- ENDIF --></dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt style="width: 60%"><label><input type="radio" class="radio" name="modified[{files.FILENAME}]" value="1" /> {L_MERGE_NO_MERGE_NEW_OPTION}</label></dt>
|
||||
<dd style="margin-left: 60%;"><!-- IF not files.S_BINARY -->[<a href="{files.U_VIEW_NO_MERGE_NEW}" onclick="popup('{files.U_VIEW_NO_MERGE_NEW}', 700, 500); return false;">{L_SHOW_DIFF_FINAL}</a>]<!-- ELSE --> <!-- ENDIF --></dd>
|
||||
<dd style="margin-left: 60%;"><!-- IF not files.S_BINARY -->[<a href="{files.U_VIEW_NO_MERGE_NEW}" onclick="diff_popup('{files.U_VIEW_NO_MERGE_NEW}'); return false;">{L_SHOW_DIFF_FINAL}</a>]<!-- ELSE --> <!-- ENDIF --></dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt style="width: 60%"><label><input type="radio" class="radio" name="modified[{files.FILENAME}]" value="2" /> {L_MERGE_NO_MERGE_MOD_OPTION}</label></dt>
|
||||
<dd style="margin-left: 60%;"><!-- IF not files.S_BINARY -->[<a href="{files.U_VIEW_NO_MERGE_MOD}" onclick="popup('{files.U_VIEW_NO_MERGE_MOD}', 700, 500); return false;">{L_SHOW_DIFF_FINAL}</a>]<!-- ELSE --> <!-- ENDIF --></dd>
|
||||
<dd style="margin-left: 60%;"><!-- IF not files.S_BINARY -->[<a href="{files.U_VIEW_NO_MERGE_MOD}" onclick="diff_popup('{files.U_VIEW_NO_MERGE_MOD}'); return false;">{L_SHOW_DIFF_FINAL}</a>]<!-- ELSE --> <!-- ENDIF --></dd>
|
||||
</dl>
|
||||
<!-- IF not files.S_LAST_ROW -->
|
||||
</fieldset>
|
||||
|
@ -217,20 +217,20 @@
|
|||
</dl>
|
||||
<dl>
|
||||
<dt style="width: 60%"><label><input type="radio" class="radio" name="conflict[{files.FILENAME}]" value="1" checked="checked" /> {L_MERGE_NO_MERGE_NEW_OPTION}</label></dt>
|
||||
<dd style="margin-left: 60%;"><!-- IF not files.S_BINARY -->[<a href="{files.U_VIEW_NO_MERGE_NEW}" onclick="popup('{files.U_VIEW_NO_MERGE_NEW}', 700, 500); return false;">{L_SHOW_DIFF_FINAL}</a>]<!-- ELSE --> <!-- ENDIF --></dd>
|
||||
<dd style="margin-left: 60%;"><!-- IF not files.S_BINARY -->[<a href="{files.U_VIEW_NO_MERGE_NEW}" onclick="diff_popup('{files.U_VIEW_NO_MERGE_NEW}'); return false;">{L_SHOW_DIFF_FINAL}</a>]<!-- ELSE --> <!-- ENDIF --></dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt style="width: 60%"><label><input type="radio" class="radio" name="conflict[{files.FILENAME}]" value="2" /> {L_MERGE_NO_MERGE_MOD_OPTION}</label></dt>
|
||||
<dd style="margin-left: 60%;"><!-- IF not files.S_BINARY -->[<a href="{files.U_VIEW_NO_MERGE_MOD}" onclick="popup('{files.U_VIEW_NO_MERGE_MOD}', 700, 500); return false;">{L_SHOW_DIFF_FINAL}</a>]<!-- ELSE --> <!-- ENDIF --></dd>
|
||||
<dd style="margin-left: 60%;"><!-- IF not files.S_BINARY -->[<a href="{files.U_VIEW_NO_MERGE_MOD}" onclick="diff_popup('{files.U_VIEW_NO_MERGE_MOD}'); return false;">{L_SHOW_DIFF_FINAL}</a>]<!-- ELSE --> <!-- ENDIF --></dd>
|
||||
</dl>
|
||||
<!-- IF not files.S_BINARY -->
|
||||
<dl>
|
||||
<dt style="width: 60%"><label><input type="radio" class="radio" name="conflict[{files.FILENAME}]" value="3" /> {L_MERGE_NEW_FILE_OPTION}</label></dt>
|
||||
<dd style="margin-left: 60%;">[<a href="{files.U_VIEW_NEW_FILE}" onclick="popup('{files.U_VIEW_NEW_FILE}', 700, 500); return false;">{L_SHOW_DIFF_FINAL}</a>]</dd>
|
||||
<dd style="margin-left: 60%;">[<a href="{files.U_VIEW_NEW_FILE}" onclick="diff_popup('{files.U_VIEW_NEW_FILE}'); return false;">{L_SHOW_DIFF_FINAL}</a>]</dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt style="width: 60%"><label><input type="radio" class="radio" name="conflict[{files.FILENAME}]" value="4" /> {L_MERGE_MOD_FILE_OPTION}</label></dt>
|
||||
<dd style="margin-left: 60%;">[<a href="{files.U_VIEW_MOD_FILE}" onclick="popup('{files.U_VIEW_MOD_FILE}', 700, 500); return false;">{L_SHOW_DIFF_FINAL}</a>]</dd>
|
||||
<dd style="margin-left: 60%;">[<a href="{files.U_VIEW_MOD_FILE}" onclick="diff_popup('{files.U_VIEW_MOD_FILE}'); return false;">{L_SHOW_DIFF_FINAL}</a>]</dd>
|
||||
</dl>
|
||||
<!-- ENDIF -->
|
||||
<!-- IF not files.S_LAST_ROW -->
|
||||
|
|
|
@ -198,6 +198,10 @@ p a {
|
|||
<li>[Fix] Do not count the deletion of an unapproved topic as a decrease in normally viewable posts (Bug #13167)</li>
|
||||
<li>[Fix] Allow column_exists() to return true if the column exists but no data is in the table</li>
|
||||
<li>[Fix] Allow setting the smiley order via the select. Also allow to add smileys at the top. (Bug #13199)</li>
|
||||
<li>[Fix] Fix php notice on sending jabber messages (Bug #13201)</li>
|
||||
<li>[Fix] Make the window showing file differences a little wider (Bug #13157)</li>
|
||||
<li>[Fix] Preserve preview style on search form (Bug #13205)</li>
|
||||
<li>[Fix] Place attachment filename in new line in posting editor (Bug #9726)</li>
|
||||
|
||||
</ul>
|
||||
|
||||
|
|
|
@ -394,7 +394,7 @@ class jabber
|
|||
}
|
||||
|
||||
// go on with authentication?
|
||||
if (isset($this->features['stream:features'][0]['#']['bind']) || $this->session['tls'])
|
||||
if (isset($this->features['stream:features'][0]['#']['bind']) || !empty($this->session['tls']))
|
||||
{
|
||||
return $this->response($this->features);
|
||||
}
|
||||
|
|
|
@ -757,7 +757,7 @@ function posting_gen_attachment_entry($attachment_data, &$filename_data)
|
|||
$hidden .= '<input type="hidden" name="attachment_data[' . $count . '][' . $key . ']" value="' . $value . '" />';
|
||||
}
|
||||
|
||||
$download_link = append_sid("{$phpbb_root_path}download.$phpEx", 'mode=view&id=' . (int) $attach_row['attach_id'], false, ($attach_row['is_orphan']) ? $user->session_id : false);
|
||||
$download_link = append_sid("{$phpbb_root_path}download.$phpEx", 'mode=view&id=' . (int) $attach_row['attach_id'], true, ($attach_row['is_orphan']) ? $user->session_id : false);
|
||||
|
||||
$template->assign_block_vars('attach_row', array(
|
||||
'FILENAME' => basename($attach_row['real_filename']),
|
||||
|
|
|
@ -132,7 +132,7 @@ class session
|
|||
*/
|
||||
function session_begin($update_session_page = true)
|
||||
{
|
||||
global $phpEx, $SID, $_SID, $db, $config, $phpbb_root_path;
|
||||
global $phpEx, $SID, $_SID, $_EXTRA_URL, $db, $config, $phpbb_root_path;
|
||||
|
||||
// Give us some basic information
|
||||
$this->time_now = time();
|
||||
|
@ -193,6 +193,8 @@ class session
|
|||
$SID = '?sid=' . $this->session_id;
|
||||
}
|
||||
|
||||
$_EXTRA_URL = array();
|
||||
|
||||
// Why no forwarded_for et al? Well, too easily spoofed. With the results of my recent requests
|
||||
// it's pretty clear that in the majority of cases you'll at least be left with a proxy/cache ip.
|
||||
$this->ip = (!empty($_SERVER['REMOTE_ADDR'])) ? htmlspecialchars($_SERVER['REMOTE_ADDR']) : '';
|
||||
|
|
|
@ -8,6 +8,11 @@
|
|||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* @todo: check for those functions being 'available'? Though not able to check with function_exists, we need to create test cases
|
||||
* ini_get(), glob, getimagesize, fsockopen...
|
||||
*/
|
||||
|
||||
/**
|
||||
*/
|
||||
if (!defined('IN_INSTALL'))
|
||||
|
|
|
@ -58,7 +58,7 @@ $lang = array_merge($lang, array(
|
|||
'ALLOW_BOOKMARKS' => 'Allow bookmarking topics',
|
||||
'ALLOW_BOOKMARKS_EXPLAIN' => 'User is able to store personal bookmarks.',
|
||||
'ALLOW_BBCODE' => 'Allow BBCode',
|
||||
'ALLOW_FORUM_NOTIFY' => 'Allow forum watching',
|
||||
'ALLOW_FORUM_NOTIFY' => 'Allow subscribing to forums',
|
||||
'ALLOW_NAME_CHANGE' => 'Allow username changes',
|
||||
'ALLOW_NO_CENSORS' => 'Allow disabling of word censoring',
|
||||
'ALLOW_NO_CENSORS_EXPLAIN' => 'Users can choose to disable the automatic word censoring of posts and private messages.',
|
||||
|
@ -71,7 +71,7 @@ $lang = array_merge($lang, array(
|
|||
'ALLOW_SIG_LINKS_EXPLAIN' => 'If disallowed the <code>[URL]</code> BBCode tag and automatic/magic URLs are disabled.',
|
||||
'ALLOW_SIG_SMILIES' => 'Allow use of smilies in user signatures',
|
||||
'ALLOW_SMILIES' => 'Allow smilies',
|
||||
'ALLOW_TOPIC_NOTIFY' => 'Allow topic watching',
|
||||
'ALLOW_TOPIC_NOTIFY' => 'Allow subscribing to topics',
|
||||
'BOARD_PM' => 'Private messaging',
|
||||
'BOARD_PM_EXPLAIN' => 'Enable or disable private messaging for all users.',
|
||||
));
|
||||
|
@ -376,7 +376,7 @@ $lang = array_merge($lang, array(
|
|||
|
||||
// Email Settings
|
||||
$lang = array_merge($lang, array(
|
||||
'ACP_EMAIL_SETTINGS_EXPLAIN' => 'This information is used when the board sends e-mails to your users. Please ensure the e-mail address you specify is valid, any bounced or undeliverable messages will likely be sent to that address. If your host does not provide a native (PHP based) e-mail service you can instead send messages directly using SMTP. This requires the address of an appropriate server (ask your provider if necessary), do not specify any old name here! If the server requires authentication (and only if it does) enter the necessary username and password. Please note only basic authentication is offered, different authentication implementations are not currently supported.',
|
||||
'ACP_EMAIL_SETTINGS_EXPLAIN' => 'This information is used when the board sends e-mails to your users. Please ensure the e-mail address you specify is valid, any bounced or undeliverable messages will likely be sent to that address. If your host does not provide a native (PHP based) e-mail service you can instead send messages directly using SMTP. This requires the address of an appropriate server (ask your provider if necessary). If the server requires authentication (and only if it does) enter the necessary username, password and authentication method.',
|
||||
|
||||
'ADMIN_EMAIL' => 'Return e-mail address',
|
||||
'ADMIN_EMAIL_EXPLAIN' => 'This will be used as the return address on all e-mails, the technical contact e-mail address. It will always be used as the <samp>Return-Path</samp> and <samp>Sender</samp> address in e-mails.',
|
||||
|
|
|
@ -590,8 +590,8 @@ $lang = array_merge($lang, array(
|
|||
'UNREAD_MESSAGES' => 'Unread messages',
|
||||
'UNREAD_PM' => '<strong>%d</strong> unread message',
|
||||
'UNREAD_PMS' => '<strong>%d</strong> unread messages',
|
||||
'UNWATCHED_FORUMS' => 'You are no longer watching the selected forums.',
|
||||
'UNWATCHED_TOPICS' => 'You are no longer watching the selected topics.',
|
||||
'UNWATCHED_FORUMS' => 'You are no longer subscribed to the selected forums.',
|
||||
'UNWATCHED_TOPICS' => 'You are no longer subscribed to the selected topics.',
|
||||
'UPDATE' => 'Update',
|
||||
'UPLOAD_IN_PROGRESS' => 'The upload is currently in progress.',
|
||||
'URL_REDIRECT' => 'If your browser does not support meta redirection %splease click HERE to be redirected%s.',
|
||||
|
|
|
@ -446,7 +446,7 @@ $lang = array_merge($lang, array(
|
|||
'OLD_UPDATE_FILES' => 'Update files are out of date. The update files found are for updating from phpBB %1$s to phpBB %2$s but the latest version of phpBB is %3$s.',
|
||||
|
||||
'PERFORM_DATABASE_UPDATE' => 'Perform database update',
|
||||
'PERFORM_DATABASE_UPDATE_EXPLAIN' => 'Below you will find a link to the database update script. This script needs to be run separately because updating the database might result in unexpected behaviour if you are logged in. The database update can take a while, so please do not stop the execution if it seems to hang. After the database update had been performed just follow the link presented to continue the update process.',
|
||||
'PERFORM_DATABASE_UPDATE_EXPLAIN' => 'Below you will find a button to the database update script. The database update can take a while, so please do not stop the execution if it seems to hang. After the database update had been performed just follow the instructions to continue the update process.',
|
||||
'PREVIOUS_VERSION' => 'Previous version',
|
||||
'PROGRESS' => 'Progress',
|
||||
|
||||
|
|
|
@ -304,8 +304,8 @@ $lang = array_merge($lang, array(
|
|||
'NO_RULES_DEFINED' => 'No rules defined.',
|
||||
'NO_SAVED_DRAFTS' => 'No drafts saved.',
|
||||
'NO_TO_RECIPIENT' => 'None',
|
||||
'NO_WATCHED_FORUMS' => 'You are not watching any forums.',
|
||||
'NO_WATCHED_TOPICS' => 'You are not watching any topics.',
|
||||
'NO_WATCHED_FORUMS' => 'You are not subscribed to any forums.',
|
||||
'NO_WATCHED_TOPICS' => 'You are not subscribed to any topics.',
|
||||
|
||||
'PASS_TYPE_ALPHA_EXPLAIN' => 'Password must be between %1$d and %2$d characters long, must contain letters in mixed case and must contain numbers.',
|
||||
'PASS_TYPE_ANY_EXPLAIN' => 'Must be between %1$d and %2$d characters.',
|
||||
|
|
|
@ -1010,9 +1010,25 @@ for ($i = 100; $i <= 1000 ; $i += 100)
|
|||
$s_characters .= '<option value="' . $i . '"' . $selected . '>' . $i . '</option>';
|
||||
}
|
||||
|
||||
$s_hidden_fields = array('t' => $topic_id);
|
||||
|
||||
if ($_SID)
|
||||
{
|
||||
$s_hidden_fields['sid'] = $_SID;
|
||||
}
|
||||
|
||||
if (!empty($_EXTRA_URL))
|
||||
{
|
||||
foreach ($_EXTRA_URL as $url_param)
|
||||
{
|
||||
$url_param = explode('=', $url_param, 2);
|
||||
$s_hidden_fields[$url_param[0]] = $url_param[1];
|
||||
}
|
||||
}
|
||||
|
||||
$template->assign_vars(array(
|
||||
'S_SEARCH_ACTION' => "{$phpbb_root_path}search.$phpEx",
|
||||
'S_HIDDEN_FIELDS' => build_hidden_fields(array('sid' => $user->session_id, 't' => $topic_id)),
|
||||
'S_HIDDEN_FIELDS' => build_hidden_fields($s_hidden_fields),
|
||||
'S_CHARACTER_OPTIONS' => $s_characters,
|
||||
'S_FORUM_OPTIONS' => $s_forums,
|
||||
'S_SELECT_SORT_DIR' => $s_sort_dir,
|
||||
|
|
|
@ -156,9 +156,9 @@
|
|||
<!-- BEGIN attach_row -->
|
||||
<dl>
|
||||
|
||||
<dt><label for="comment_list[{attach_row.ASSOC_INDEX}]">{L_FILE_COMMENT}:</label><br />
|
||||
<span><br /><a href="{attach_row.U_VIEW_ATTACHMENT}" class="{S_CONTENT_FLOW_END}">{attach_row.FILENAME}</a></span></dt>
|
||||
<dt><label for="comment_list[{attach_row.ASSOC_INDEX}]">{L_FILE_COMMENT}:</label></dt>
|
||||
<dd><textarea name="comment_list[{attach_row.ASSOC_INDEX}]" id="comment_list[{attach_row.ASSOC_INDEX}]" rows="1" cols="35" class="inputbox">{attach_row.FILE_COMMENT}</textarea></dd>
|
||||
<dd><a href="{attach_row.U_VIEW_ATTACHMENT}" class="{S_CONTENT_FLOW_END}">{attach_row.FILENAME}</a></dd>
|
||||
<dd style="margin-top: 5px;">
|
||||
<!-- IF S_INLINE_ATTACHMENT_OPTIONS --><input type="button" value="{L_PLACE_INLINE}" onclick="attach_inline({attach_row.ASSOC_INDEX}, '{attach_row.FILENAME}');" class="button2" /> <!-- ENDIF -->
|
||||
<input type="submit" name="delete_file[{attach_row.ASSOC_INDEX}]" value="{L_DELETE_FILE}" class="button2" />
|
||||
|
|
Loading…
Add table
Reference in a new issue