#11259
#11291
#11335
#11457
#11473
#11475
#11511
#11523
#11527


git-svn-id: file:///svn/phpbb/trunk@7663 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
David M 2007-05-22 21:32:26 +00:00
parent 648399cff3
commit 3899e337e6
17 changed files with 56 additions and 30 deletions

View file

@ -65,8 +65,8 @@
<legend>{L_SELECT_IMAGE}</legend> <legend>{L_SELECT_IMAGE}</legend>
{L_SELECT_IMAGE}: <select name="imgname" onchange="this.form.submit();"> {L_SELECT_IMAGE}: <select name="imgname" onchange="this.form.submit();">
<!-- BEGIN category --> <!-- BEGIN category -->
<option class="sep" value="">{category.NAME}</option> <option class="sep" value="" disabled="disabled">{category.NAME}</option>
<!-- BEGIN images --><option value="{category.images.VALUE}"<!-- IF category.images.SELECTED--> selected="selected"<!-- ENDIF -->>{category.images.TEXT}</option> <!-- BEGIN images --><option value="{category.images.VALUE}"<!-- IF category.images.SELECTED--> selected="selected"<!-- ENDIF -->>&nbsp;&nbsp;&nbsp;&nbsp;{category.images.TEXT}</option>
<!-- END images --> <!-- END images -->
<!-- END category --> <!-- END category -->
</select>&nbsp; <input class="button1" type="submit" value="{L_SELECT}" tabindex="100" /> </select>&nbsp; <input class="button1" type="submit" value="{L_SELECT}" tabindex="100" />
@ -80,7 +80,7 @@
</dl> </dl>
<dl> <dl>
<dt><label>{L_SELECTED_IMAGE}:</label></dt> <dt><label>{L_SELECTED_IMAGE}:</label></dt>
<dd><img src="images/no_image.png" id="newimg" alt="" /></dd> <dd><img src="{IMG_SRC}" id="newimg" alt="" /></dd>
</dl> </dl>
</fieldset> </fieldset>

View file

@ -46,6 +46,6 @@
<br /> <br />
<!-- INCLUDE simple_footer.html -->
</div> </div>
<!-- INCLUDE simple_footer.html -->

View file

@ -185,7 +185,15 @@ p a {
<div class="paragraph"> <div class="paragraph">
<ul class="menu"> <ul class="menu">
<li>&nbsp;</li> <li>[Fix] MCP looses forum_id in some panels (Bug #11255)</li>
<li>[Fix] (X)HTML name/id property collision login_forum.html (Bug #11255)</li>
<li>[Fix] (X)HTML &lt;/dl&gt; missing in memberlist_im.html for prosilver (Bug #11255)</li>
<li>[Fix] Moderation queue used unfriendly notification of no posts/topics (Bug #11291)</li>
<li>[Fix] Array in Oracle DBAL not always set (Bug #11475)</li>
<li>[Fix] Improper continue; in acp_styles.php (Bug #11523)</li>
<li>[Fix] Imageset editor more friendly (Bug #11511)</li>
<li>[Fix] Made Custom BBCode validation more strict (Bug #11335)</li>
<li>[Fix] Proper sync of data on topic copy (Bug #11335)</li>
</ul> </ul>
</div> </div>

View file

@ -383,6 +383,13 @@ class acp_bbcodes
// Lowercase tags // Lowercase tags
$bbcode_tag = preg_replace('/.*?\[([a-z0-9_-]+=?).*/i', '$1', $bbcode_match); $bbcode_tag = preg_replace('/.*?\[([a-z0-9_-]+=?).*/i', '$1', $bbcode_match);
if (!preg_match('/^[a-zA-Z0-9_-]+=?$/', $bbcode_tag))
{
global $user;
trigger_error($user->lang['BBCODE_INVALID'] . adm_back_link($this->u_action), E_USER_WARNING);
}
$fp_match = preg_replace('#\[/?' . $bbcode_tag . '#ie', "strtolower('\$0')", $fp_match); $fp_match = preg_replace('#\[/?' . $bbcode_tag . '#ie', "strtolower('\$0')", $fp_match);
$fp_replace = preg_replace('#\[/?' . $bbcode_tag . '#ie', "strtolower('\$0')", $fp_replace); $fp_replace = preg_replace('#\[/?' . $bbcode_tag . '#ie', "strtolower('\$0')", $fp_replace);
$sp_match = preg_replace('#\[/?' . $bbcode_tag . '#ie', "strtolower('\$0')", $sp_match); $sp_match = preg_replace('#\[/?' . $bbcode_tag . '#ie', "strtolower('\$0')", $sp_match);

View file

@ -1355,19 +1355,17 @@ parse_css_file = {PARSE_CSS_FILE}
{ {
$dp2 = @opendir("$dir/$imgnamelang"); $dp2 = @opendir("$dir/$imgnamelang");
if (!$dp2) if ($dp2)
{ {
continue; while (($file2 = readdir($dp2)) !== false)
}
while (($file2 = readdir($dp2)) !== false)
{
if (preg_match('#\.(?:gif|jpg|png)$#', $file2))
{ {
$imagesetlist['lang'][] = "$imgnamelang/$file2"; if (preg_match('#\.(?:gif|jpg|png)$#', $file2))
{
$imagesetlist['lang'][] = "$imgnamelang/$file2";
}
} }
closedir($dp2);
} }
closedir($dp2);
} }
closedir($dp); closedir($dp);
} }
@ -1408,7 +1406,8 @@ parse_css_file = {PARSE_CSS_FILE}
sort($imagesetlist['lang']); sort($imagesetlist['lang']);
sort($imagesetlist['nolang']); sort($imagesetlist['nolang']);
$imagesetlist_options = ''; $image_found = false;
$img_val = '';
foreach ($imagesetlist as $type => $img_ary) foreach ($imagesetlist as $type => $img_ary)
{ {
if ($type !== 'lang' || $sql_extra) if ($type !== 'lang' || $sql_extra)
@ -1424,7 +1423,8 @@ parse_css_file = {PARSE_CSS_FILE}
$selected = (!empty($imgname) && strpos($image_filename, $imgtext) !== false); $selected = (!empty($imgname) && strpos($image_filename, $imgtext) !== false);
if ($selected) if ($selected)
{ {
$template->assign_var('IMAGE_SELECT', true); $image_found = true;
$img_val = htmlspecialchars($img);
} }
$template->assign_block_vars('imagesetlist.images', array( $template->assign_block_vars('imagesetlist.images', array(
'SELECTED' => $selected, 'SELECTED' => $selected,
@ -1442,13 +1442,14 @@ parse_css_file = {PARSE_CSS_FILE}
'L_TITLE' => $user->lang[$this->page_title], 'L_TITLE' => $user->lang[$this->page_title],
'L_EXPLAIN' => $user->lang[$this->page_title . '_EXPLAIN'], 'L_EXPLAIN' => $user->lang[$this->page_title . '_EXPLAIN'],
'IMAGE_OPTIONS' => $img_options, 'IMAGE_OPTIONS' => $img_options,
'IMAGELIST_OPTIONS' => $imagesetlist_options,
'IMAGE_SIZE' => $imgsize_bool, 'IMAGE_SIZE' => $imgsize_bool,
'IMAGE_REQUEST' => $image_request, 'IMAGE_REQUEST' => $image_request,
'U_ACTION' => $this->u_action . "&amp;action=edit&amp;id=$imageset_id", 'U_ACTION' => $this->u_action . "&amp;action=edit&amp;id=$imageset_id",
'U_BACK' => $this->u_action, 'U_BACK' => $this->u_action,
'NAME' => $imageset_name, 'NAME' => $imageset_name,
'ERROR' => !$valid_name 'ERROR' => !$valid_name,
'IMG_SRC' => ($image_found) ? '../styles/' . $imageset_path . '/imageset/' . $img_val : 'images/no_image.png',
'IMAGE_SELECT' => $image_found
)); ));
} }

View file

@ -127,7 +127,7 @@ class auth
} }
} }
} }
return !$negate;
// Founder always has all global options set to true... // Founder always has all global options set to true...
return ($negate) ? !$this->cache[$f][$opt] : $this->cache[$f][$opt]; return ($negate) ? !$this->cache[$f][$opt] : $this->cache[$f][$opt];
} }

View file

@ -110,10 +110,11 @@ class dbal_oracle extends dbal
$in_transaction = true; $in_transaction = true;
} }
$array = array();
// We overcome Oracle's 4000 char limit by binding vars // We overcome Oracle's 4000 char limit by binding vars
if (strlen($query) > 4000) if (strlen($query) > 4000)
{ {
$array = array();
if (preg_match('/^(INSERT INTO[^(]+)\\(([^()]+)\\) VALUES[^(]+\\((.*?)\\)$/s', $query, $regs)) if (preg_match('/^(INSERT INTO[^(]+)\\(([^()]+)\\) VALUES[^(]+\\((.*?)\\)$/s', $query, $regs))
{ {

View file

@ -1146,7 +1146,7 @@ function mcp_fork_topic($topic_ids)
} }
// Sync new topics, parent forums and board stats // Sync new topics, parent forums and board stats
sync('topic', 'topic_id', $new_topic_id_list, true); sync('topic', 'topic_id', $new_topic_id_list);
$sync_sql = array(); $sync_sql = array();
@ -1162,7 +1162,7 @@ function mcp_fork_topic($topic_ids)
$db->sql_query($sql); $db->sql_query($sql);
} }
sync('forum', 'forum_id', $to_forum_id, true); sync('forum', 'forum_id', $to_forum_id);
set_config('num_topics', $config['num_topics'] + sizeof($new_topic_id_list), true); set_config('num_topics', $config['num_topics'] + sizeof($new_topic_id_list), true);
set_config('num_posts', $config['num_posts'] + $total_posts, true); set_config('num_posts', $config['num_posts'] + $total_posts, true);

View file

@ -43,6 +43,7 @@ $lang = array_merge($lang, array(
'BBCODE_HELPLINE_EXPLAIN' => 'This field contains the mouse over text of the BBCode.', 'BBCODE_HELPLINE_EXPLAIN' => 'This field contains the mouse over text of the BBCode.',
'BBCODE_HELPLINE_TEXT' => 'Help line text', 'BBCODE_HELPLINE_TEXT' => 'Help line text',
'BBCODE_INVALID_TAG_NAME' => 'The BBCode tag name that you selected already exists.', 'BBCODE_INVALID_TAG_NAME' => 'The BBCode tag name that you selected already exists.',
'BBCODE_INVALID' => 'Your BBCode is constructed in an invalid form.',
'BBCODE_OPEN_ENDED_TAG' => 'Your custom BBCode must contain both an opening and a closing tag.', 'BBCODE_OPEN_ENDED_TAG' => 'Your custom BBCode must contain both an opening and a closing tag.',
'BBCODE_TAG' => 'Tag', 'BBCODE_TAG' => 'Tag',
'BBCODE_TAG_TOO_LONG' => 'The tag name you selected is too long.', 'BBCODE_TAG_TOO_LONG' => 'The tag name you selected is too long.',

View file

@ -222,7 +222,7 @@ $lang = array_merge($lang, array(
'NO_REPORT_SELECTED' => 'You must select at least one report to perform this action.', 'NO_REPORT_SELECTED' => 'You must select at least one report to perform this action.',
'NO_TOPIC_ICON' => 'None', 'NO_TOPIC_ICON' => 'None',
'NO_TOPIC_SELECTED' => 'You must select at least one topic to perform this action.', 'NO_TOPIC_SELECTED' => 'You must select at least one topic to perform this action.',
'NO_TOPICS_QUEUE' => 'No topics', 'NO_TOPICS_QUEUE' => 'There are no topics waiting for approval.',
'ONLY_TOPIC' => 'Only topic "%s"', 'ONLY_TOPIC' => 'Only topic "%s"',
'OTHER_USERS' => 'Other users posting from this IP', 'OTHER_USERS' => 'Other users posting from this IP',

View file

@ -49,7 +49,7 @@ $lang = array_merge($lang, array(
'BBCODE_IS_ON' => '%sBBCode%s is <em>ON</em>', 'BBCODE_IS_ON' => '%sBBCode%s is <em>ON</em>',
'BBCODE_I_HELP' => 'Italic text: [i]text[/i]', 'BBCODE_I_HELP' => 'Italic text: [i]text[/i]',
'BBCODE_L_HELP' => 'List: [list]text[/list]', 'BBCODE_L_HELP' => 'List: [list]text[/list]',
'BBCODE_LISTITEM_HELP' => 'List item: [*]text[/*]', 'BBCODE_LISTITEM_HELP' => 'List item: [*]text[/*]',
'BBCODE_O_HELP' => 'Ordered list: [list=]text[/list]', 'BBCODE_O_HELP' => 'Ordered list: [list=]text[/list]',
'BBCODE_P_HELP' => 'Insert image: [img]http://image_url[/img]', 'BBCODE_P_HELP' => 'Insert image: [img]http://image_url[/img]',
'BBCODE_Q_HELP' => 'Quote text: [quote]text[/quote]', 'BBCODE_Q_HELP' => 'Quote text: [quote]text[/quote]',

View file

@ -267,7 +267,9 @@ function _module_warn_url($mode, &$module_row)
{ {
if ($mode == 'front' || $mode == 'list') if ($mode == 'front' || $mode == 'list')
{ {
return ''; global $forum_id;
return ($forum_id) ? "&amp;f=$forum_id" : '';
} }
if ($mode == 'warn_post') if ($mode == 'warn_post')
@ -307,6 +309,11 @@ function _module_queue_url($mode, &$module_row)
return extra_url(); return extra_url();
} }
function _module_reports_url($mode, &$module_row)
{
return extra_url();
}
function extra_url() function extra_url()
{ {
global $forum_id, $topic_id, $post_id, $user_id; global $forum_id, $topic_id, $post_id, $user_id;

View file

@ -2,7 +2,7 @@
<h2 class="solo">{L_LOGIN} {FORUM_NAME}</h2> <h2 class="solo">{L_LOGIN} {FORUM_NAME}</h2>
<form id="login" method="post" action="{S_LOGIN_ACTION}"> <form id="login_forum" method="post" action="{S_LOGIN_ACTION}">
<div class="panel"> <div class="panel">
<div class="inner"><span class="corners-top"><span></span></span> <div class="inner"><span class="corners-top"><span></span></span>

View file

@ -77,7 +77,7 @@
</li> </li>
</ul> </ul>
<!-- ELSE --> <!-- ELSE -->
<p class="notopics"><strong><!-- IF S_TOPICS -->{L_NO_TOPICS_QUEUE}<!-- ELSE -->{L_NO_POSTS}<!-- ENDIF --></strong></p> <p class="notopics"><strong><!-- IF S_TOPICS -->{L_NO_TOPICS_QUEUE}<!-- ELSE -->{L_UNAPPROVED_POSTS_ZERO_TOTAL}<!-- ENDIF --></strong></p>
<!-- ENDIF --> <!-- ENDIF -->
<span class="corners-bottom"><span></span></span></div> <span class="corners-bottom"><span></span></span></div>

View file

@ -49,6 +49,7 @@
<dd><object classid="clsid:FB7199AB-79BF-11d2-8D94-0000F875C541" codetype="application/x-oleobject" id="objMessengerApp" width="0" height="0"></object></dd> <dd><object classid="clsid:FB7199AB-79BF-11d2-8D94-0000F875C541" codetype="application/x-oleobject" id="objMessengerApp" width="0" height="0"></object></dd>
<dd><a href="#" onclick="objMessengerApp.LaunchAddContactUI('{IM_CONTACT}'); return false;">{L_IM_ADD_CONTACT}</a></dd> <dd><a href="#" onclick="objMessengerApp.LaunchAddContactUI('{IM_CONTACT}'); return false;">{L_IM_ADD_CONTACT}</a></dd>
<dd><a href="#" onclick="objMessengerApp.LaunchIMUI('{IM_CONTACT}'); return false;">{L_IM_SEND_MESSAGE}</a></dd> <dd><a href="#" onclick="objMessengerApp.LaunchIMUI('{IM_CONTACT}'); return false;">{L_IM_SEND_MESSAGE}</a></dd>
</dl>
<!-- ENDIF --> <!-- ENDIF -->
<!-- IF S_SEND_JABBER --> <!-- IF S_SEND_JABBER -->

View file

@ -2,7 +2,7 @@
<div id="pagecontent"> <div id="pagecontent">
<form name="login" method="post" action="{S_LOGIN_ACTION}"> <form name="login_forum" method="post" action="{S_LOGIN_ACTION}">
<table class="tablebg" width="100%" cellspacing="1" align="center"> <table class="tablebg" width="100%" cellspacing="1" align="center">
<tr> <tr>

View file

@ -27,7 +27,7 @@
</tr> </tr>
<!-- BEGINELSE --> <!-- BEGINELSE -->
<tr> <tr>
<td class="row1" colspan="4" height="30" align="center" valign="middle"><span class="gen"><!-- IF S_TOPICS -->{L_NO_TOPICS_QUEUE}<!-- ELSE -->{L_NO_POSTS}<!-- ENDIF --></span></td> <td class="row1" colspan="4" height="30" align="center" valign="middle"><span class="gen"><!-- IF S_TOPICS -->{L_NO_TOPICS_QUEUE}<!-- ELSE -->{L_UNAPPROVED_POSTS_ZERO_TOTAL}<!-- ENDIF --></span></td>
</tr> </tr>
<!-- END postrow --> <!-- END postrow -->
<tr> <tr>