mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Merge remote-tracking branch 'upstream/develop' into ticket/11015
* upstream/develop: (22 commits) [ticket/11206] Remove includes to non-existent files from download/file.php [ticket/11205] Fix merge conflict in readme.html. [ticket/11202] Check response success before content assertions. [ticket/11204] Reindent. [ticket/11198] Remove additional asterix as /** is doc-block only [ticket/11200] Add a reminder comment. [ticket/11202] Custom message does not make sense here, delete it. [ticket/11202] Check response success before content assertions. [ticket/11202] Add a heuristic function to check for response success. [ticket/11200] Make cache available during container construction [ticket/11199] Match cache purge container files against container_* [ticket/11199] Purge dumped container correctly on cache purge. [ticket/11199] Revert merge of 'marc1706/ticket/11199' into develop [ticket/11199] Cache purge does not remove dumped container [ticket/11198] Store the swapping partners in vars and simplify the logic [ticket/11198] Correctly set links after an item is moved up/down with AJAX [ticket/11197] Prefix the css classes for the small arrow with "arrow" [ticket/10879] Remove arrow icon from attachment link in editor [ticket/11195] Condense logic, remove improperly formatted if() [ticket/11190-develop] Functional tests purge cache before running. ... Conflicts: tests/test_framework/phpbb_database_test_connection_manager.php
This commit is contained in:
commit
423c79e106
30 changed files with 157 additions and 122 deletions
|
@ -454,12 +454,12 @@
|
||||||
<td style="vertical-align: top; width: 100px; text-align: right; white-space: nowrap;">
|
<td style="vertical-align: top; width: 100px; text-align: right; white-space: nowrap;">
|
||||||
<!-- IF forums.S_FIRST_ROW && not forums.S_LAST_ROW -->
|
<!-- IF forums.S_FIRST_ROW && not forums.S_LAST_ROW -->
|
||||||
<span class="up">{ICON_MOVE_UP_DISABLED}</span>
|
<span class="up">{ICON_MOVE_UP_DISABLED}</span>
|
||||||
<span class="down"><a href="{forums.U_MOVE_DOWN}" data-ajax="forum_down" data-overlay="false">{ICON_MOVE_DOWN}</a></span>
|
<span class="down"><a href="{forums.U_MOVE_DOWN}" data-ajax="row_down" data-overlay="false">{ICON_MOVE_DOWN}</a></span>
|
||||||
<!-- ELSEIF not forums.S_FIRST_ROW && not forums.S_LAST_ROW -->
|
<!-- ELSEIF not forums.S_FIRST_ROW && not forums.S_LAST_ROW -->
|
||||||
<span class="up"><a href="{forums.U_MOVE_UP}" data-ajax="forum_up" data-overlay="false">{ICON_MOVE_UP}</a></span>
|
<span class="up"><a href="{forums.U_MOVE_UP}" data-ajax="row_up" data-overlay="false">{ICON_MOVE_UP}</a></span>
|
||||||
<span class="down"><a href="{forums.U_MOVE_DOWN}" data-ajax="forum_down" data-overlay="false">{ICON_MOVE_DOWN}</a></span>
|
<span class="down"><a href="{forums.U_MOVE_DOWN}" data-ajax="row_down" data-overlay="false">{ICON_MOVE_DOWN}</a></span>
|
||||||
<!-- ELSEIF forums.S_LAST_ROW && not forums.S_FIRST_ROW -->
|
<!-- ELSEIF forums.S_LAST_ROW && not forums.S_FIRST_ROW -->
|
||||||
<span class="up"><a href="{forums.U_MOVE_UP}" data-ajax="forum_up" data-overlay="false">{ICON_MOVE_UP}</a></span>
|
<span class="up"><a href="{forums.U_MOVE_UP}" data-ajax="row_up" data-overlay="false">{ICON_MOVE_UP}</a></span>
|
||||||
<span class="down">{ICON_MOVE_DOWN_DISABLED}</span>
|
<span class="down">{ICON_MOVE_DOWN_DISABLED}</span>
|
||||||
<!-- ELSE -->
|
<!-- ELSE -->
|
||||||
<span class="up">{ICON_MOVE_UP_DISABLED}</span>
|
<span class="up">{ICON_MOVE_UP_DISABLED}</span>
|
||||||
|
|
|
@ -10,76 +10,98 @@ var img_templates = {
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The following callbacks are for reording forums in acp_forums. forum_down
|
* The following callbacks are for reording items. row_down
|
||||||
* is triggered when a forum is moved down, and forum_up is triggered when
|
* is triggered when an item is moved down, and row_up is triggered when
|
||||||
* a forum is moved up. It moves the row up or down, and deactivates /
|
* an item is moved up. It moves the row up or down, and deactivates /
|
||||||
* activates any up / down icons that require it (the ones at the top or bottom).
|
* activates any up / down icons that require it (the ones at the top or bottom).
|
||||||
*/
|
*/
|
||||||
phpbb.add_ajax_callback('forum_down', function() {
|
phpbb.add_ajax_callback('row_down', function() {
|
||||||
var el = $(this),
|
var el = $(this),
|
||||||
tr = el.parents('tr');
|
tr = el.parents('tr'),
|
||||||
|
tr_swap = tr.next();
|
||||||
|
|
||||||
|
/*
|
||||||
|
* If the element was the first one, we have to:
|
||||||
|
* - Add the up-link to the row we moved
|
||||||
|
* - Remove the up-link on the next row
|
||||||
|
*/
|
||||||
if (tr.is(':first-child'))
|
if (tr.is(':first-child'))
|
||||||
{
|
{
|
||||||
var up_img = img_templates.up.clone().attr('href', tr.attr('data-up'));
|
var up_img = img_templates.up.clone().attr('href', tr.attr('data-up'));
|
||||||
el.parents('span').siblings('.up').html(up_img);
|
tr.find('.up').html(up_img);
|
||||||
|
|
||||||
tr.next().find('.up').html(img_templates.up_disabled);
|
|
||||||
|
|
||||||
phpbb.ajaxify({
|
phpbb.ajaxify({
|
||||||
selector: el.parents('span').siblings('.up').children('a'),
|
selector: tr.find('.up').children('a'),
|
||||||
callback: 'forum_up',
|
callback: 'row_up',
|
||||||
overlay: false
|
overlay: false
|
||||||
});
|
});
|
||||||
|
|
||||||
|
tr_swap.find('.up').html(img_templates.up_disabled);
|
||||||
}
|
}
|
||||||
|
|
||||||
tr.insertAfter(tr.next());
|
tr.insertAfter(tr_swap);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* As well as:
|
||||||
|
* - Remove the down-link on the moved row, if it is now the last row
|
||||||
|
* - Add the down-link to the next row, if it was the last row
|
||||||
|
*/
|
||||||
if (tr.is(':last-child'))
|
if (tr.is(':last-child'))
|
||||||
{
|
{
|
||||||
el.replaceWith(img_templates.down_disabled);
|
tr.find('.down').html(img_templates.down_disabled);
|
||||||
|
|
||||||
var down_img = img_templates.down.clone().attr('href', tr.attr('data-down'));
|
var down_img = img_templates.down.clone().attr('href', tr_swap.attr('data-down'));
|
||||||
tr.prev().find('.down').html(down_img);
|
tr_swap.find('.down').html(down_img);
|
||||||
|
|
||||||
phpbb.ajaxify({
|
phpbb.ajaxify({
|
||||||
selector: tr.prev().find('.down').children('a'),
|
selector: tr_swap.find('.down').children('a'),
|
||||||
callback: 'forum_down',
|
callback: 'row_down',
|
||||||
overlay: false
|
overlay: false
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
phpbb.add_ajax_callback('forum_up', function() {
|
phpbb.add_ajax_callback('row_up', function() {
|
||||||
var el = $(this),
|
var el = $(this),
|
||||||
tr = el.parents('tr');
|
tr = el.parents('tr'),
|
||||||
|
tr_swap = tr.prev();
|
||||||
|
|
||||||
|
/*
|
||||||
|
* If the element was the last one, we have to:
|
||||||
|
* - Add the down-link to the row we moved
|
||||||
|
* - Remove the down-link on the next row
|
||||||
|
*/
|
||||||
if (tr.is(':last-child'))
|
if (tr.is(':last-child'))
|
||||||
{
|
{
|
||||||
var down_img = img_templates.down.clone().attr('href', tr.attr('data-down'));
|
var down_img = img_templates.down.clone().attr('href', tr.attr('data-down'));
|
||||||
el.parents('span').siblings('.down').html(down_img);
|
tr.find('.down').html(down_img);
|
||||||
|
|
||||||
tr.prev().find('.down').html(img_templates.down_disabled);
|
|
||||||
|
|
||||||
phpbb.ajaxify({
|
phpbb.ajaxify({
|
||||||
selector: el.parents('span').siblings('.down').children('a'),
|
selector: tr.find('.down').children('a'),
|
||||||
callback: 'forum_down',
|
callback: 'row_down',
|
||||||
overlay: false
|
overlay: false
|
||||||
});
|
});
|
||||||
|
|
||||||
|
tr_swap.find('.down').html(img_templates.down_disabled);
|
||||||
}
|
}
|
||||||
|
|
||||||
tr.insertBefore(tr.prev());
|
tr.insertBefore(tr_swap);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* As well as:
|
||||||
|
* - Remove the up-link on the moved row, if it is now the first row
|
||||||
|
* - Add the up-link to the previous row, if it was the first row
|
||||||
|
*/
|
||||||
if (tr.is(':first-child'))
|
if (tr.is(':first-child'))
|
||||||
{
|
{
|
||||||
el.replaceWith(img_templates.up_disabled);
|
tr.find('.up').html(img_templates.up_disabled);
|
||||||
|
|
||||||
var up_img = img_templates.up.clone().attr('href', tr.attr('data-up'));
|
var up_img = img_templates.up.clone().attr('href', tr_swap.attr('data-up'));
|
||||||
tr.next().find('.up').html(up_img);
|
tr_swap.find('.up').html(up_img);
|
||||||
|
|
||||||
phpbb.ajaxify({
|
phpbb.ajaxify({
|
||||||
selector: tr.next().find('.up').children('a'),
|
selector: tr_swap.find('.up').children('a'),
|
||||||
callback: 'forum_up',
|
callback: 'row_up',
|
||||||
overlay: false
|
overlay: false
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -324,11 +324,7 @@
|
||||||
|
|
||||||
<p>Please remember that running any application on a developmental version of PHP can lead to strange/unexpected results which may appear to be bugs in the application (which may not be true). Therefore we recommend you upgrade to the newest stable version of PHP before running phpBB3. If you are running a developmental version of PHP please check any bugs you find on a system running a stable release before submitting.</p>
|
<p>Please remember that running any application on a developmental version of PHP can lead to strange/unexpected results which may appear to be bugs in the application (which may not be true). Therefore we recommend you upgrade to the newest stable version of PHP before running phpBB3. If you are running a developmental version of PHP please check any bugs you find on a system running a stable release before submitting.</p>
|
||||||
|
|
||||||
<<<<<<< HEAD
|
<p>This board has been developed and tested under Linux and Windows (amongst others) running Apache using MySQL 3.23, 4.x, 5.x, MSSQL Server 2000, PostgreSQL 8.x, Oracle 8, SQLite 2 and Firebird. Versions of PHP used range from 5.3.x to 5.4.x without problem.</p>
|
||||||
<p>This board has been developed and tested under Linux and Windows (amongst others) running Apache using MySQL 3.23, 4.x, 5.x, MSSQL Server 2000, PostgreSQL 8.x, Oracle 8, SQLite and Firebird. Versions of PHP used range from 5.3.x to 5.4.x without problem.</p>
|
|
||||||
=======
|
|
||||||
<p>This board has been developed and tested under Linux and Windows (amongst others) running Apache using MySQL 3.23, 4.x, 5.x, MSSQL Server 2000, PostgreSQL 7.x, Oracle 8, SQLite 2 and Firebird. Versions of PHP used range from 4.3.3 to 5.4.x without problem. </p>
|
|
||||||
>>>>>>> develop-olympus
|
|
||||||
|
|
||||||
<a name="phpsec"></a><h3>7.i. Notice on PHP security issues</h3>
|
<a name="phpsec"></a><h3>7.i. Notice on PHP security issues</h3>
|
||||||
|
|
||||||
|
|
2
phpBB/includes/cache/driver/file.php
vendored
2
phpBB/includes/cache/driver/file.php
vendored
|
@ -214,7 +214,7 @@ class phpbb_cache_driver_file extends phpbb_cache_driver_base
|
||||||
|
|
||||||
while (($entry = readdir($dir)) !== false)
|
while (($entry = readdir($dir)) !== false)
|
||||||
{
|
{
|
||||||
if (strpos($entry, 'container') !== 0 &&
|
if (strpos($entry, 'container_') !== 0 &&
|
||||||
strpos($entry, 'sql_') !== 0 &&
|
strpos($entry, 'sql_') !== 0 &&
|
||||||
strpos($entry, 'data_') !== 0 &&
|
strpos($entry, 'data_') !== 0 &&
|
||||||
strpos($entry, 'ctpl_') !== 0 &&
|
strpos($entry, 'ctpl_') !== 0 &&
|
||||||
|
|
2
phpBB/includes/cache/driver/memory.php
vendored
2
phpBB/includes/cache/driver/memory.php
vendored
|
@ -162,7 +162,7 @@ abstract class phpbb_cache_driver_memory extends phpbb_cache_driver_base
|
||||||
|
|
||||||
while (($entry = readdir($dir)) !== false)
|
while (($entry = readdir($dir)) !== false)
|
||||||
{
|
{
|
||||||
if (strpos($entry, 'container') !== 0 &&
|
if (strpos($entry, 'container_') !== 0 &&
|
||||||
strpos($entry, 'sql_') !== 0 &&
|
strpos($entry, 'sql_') !== 0 &&
|
||||||
strpos($entry, 'data_') !== 0 &&
|
strpos($entry, 'data_') !== 0 &&
|
||||||
strpos($entry, 'ctpl_') !== 0 &&
|
strpos($entry, 'ctpl_') !== 0 &&
|
||||||
|
|
|
@ -84,8 +84,13 @@ function phpbb_create_compiled_container(array $extensions, array $passes, $phpb
|
||||||
$tmp_container = phpbb_create_container($extensions, $phpbb_root_path, $php_ext);
|
$tmp_container = phpbb_create_container($extensions, $phpbb_root_path, $php_ext);
|
||||||
$tmp_container->compile();
|
$tmp_container->compile();
|
||||||
|
|
||||||
|
// XXX stop writing to global $cache when
|
||||||
|
// http://tracker.phpbb.com/browse/PHPBB3-11203 is fixed
|
||||||
|
$GLOBALS['cache'] = $tmp_container->get('cache');
|
||||||
|
$installed_exts = $tmp_container->get('ext.manager')->all_enabled();
|
||||||
|
|
||||||
// Now pass the enabled extension paths into the ext compiler extension
|
// Now pass the enabled extension paths into the ext compiler extension
|
||||||
$extensions[] = new phpbb_di_extension_ext($tmp_container->get('ext.manager')->all_enabled());
|
$extensions[] = new phpbb_di_extension_ext($installed_exts);
|
||||||
|
|
||||||
// Create the final container to be compiled and cached
|
// Create the final container to be compiled and cached
|
||||||
$container = phpbb_create_container($extensions, $phpbb_root_path, $php_ext);
|
$container = phpbb_create_container($extensions, $phpbb_root_path, $php_ext);
|
||||||
|
@ -126,15 +131,12 @@ function phpbb_create_dumped_container(array $extensions, array $passes, $phpbb_
|
||||||
|
|
||||||
function phpbb_create_dumped_container_unless_debug(array $extensions, array $passes, $phpbb_root_path, $php_ext)
|
function phpbb_create_dumped_container_unless_debug(array $extensions, array $passes, $phpbb_root_path, $php_ext)
|
||||||
{
|
{
|
||||||
if (defined('DEBUG')) {
|
$container_factory = defined('DEBUG') ? 'phpbb_create_compiled_container' : 'phpbb_create_dumped_container';
|
||||||
return phpbb_create_compiled_container($extensions, $passes, $phpbb_root_path, $php_ext);
|
return $container_factory($extensions, $passes, $phpbb_root_path, $php_ext);
|
||||||
}
|
|
||||||
|
|
||||||
return phpbb_create_dumped_container($extensions, $passes, $phpbb_root_path, $php_ext);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function phpbb_container_filename($phpbb_root_path, $php_ext)
|
function phpbb_container_filename($phpbb_root_path, $php_ext)
|
||||||
{
|
{
|
||||||
$filename = str_replace(array('/', '.'), array('slash', 'dot'), $phpbb_root_path);
|
$filename = str_replace(array('/', '.'), array('slash', 'dot'), $phpbb_root_path);
|
||||||
return $phpbb_root_path . 'cache/' . $filename . '_container.' . $php_ext;
|
return $phpbb_root_path . 'cache/container_' . $filename . '.' . $php_ext;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
|
|
||||||
<!-- IF S_VIEWTOPIC -->
|
<!-- IF S_VIEWTOPIC -->
|
||||||
<p></p><p><a href="{U_VIEW_FORUM}" class="left-box {S_CONTENT_FLOW_BEGIN}" accesskey="r">{L_RETURN_TO} {FORUM_NAME}</a></p>
|
<p></p><p><a href="{U_VIEW_FORUM}" class="left-box arrow-{S_CONTENT_FLOW_BEGIN}" accesskey="r">{L_RETURN_TO} {FORUM_NAME}</a></p>
|
||||||
<!-- ELSEIF S_VIEWFORUM -->
|
<!-- ELSEIF S_VIEWFORUM -->
|
||||||
<p></p><p><a href="{U_INDEX}" class="left-box {S_CONTENT_FLOW_BEGIN}" accesskey="r">{L_RETURN_TO} {L_INDEX}</a></p>
|
<p></p><p><a href="{U_INDEX}" class="left-box arrow-{S_CONTENT_FLOW_BEGIN}" accesskey="r">{L_RETURN_TO} {L_INDEX}</a></p>
|
||||||
<!-- ELSEIF SEARCH_TOPIC -->
|
<!-- ELSEIF SEARCH_TOPIC -->
|
||||||
<p></p><p><a class="left-box {S_CONTENT_FLOW_BEGIN}" href="{U_SEARCH_TOPIC}" accesskey="r">{L_RETURN_TO}{L_COLON} {SEARCH_TOPIC}</a></p>
|
<p></p><p><a class="left-box arrow-{S_CONTENT_FLOW_BEGIN}" href="{U_SEARCH_TOPIC}" accesskey="r">{L_RETURN_TO}{L_COLON} {SEARCH_TOPIC}</a></p>
|
||||||
<!-- ELSEIF S_SEARCH_ACTION -->
|
<!-- ELSEIF S_SEARCH_ACTION -->
|
||||||
<p></p><p><a class="left-box {S_CONTENT_FLOW_BEGIN}" href="{U_SEARCH}" title="{L_SEARCH_ADV}" accesskey="r">{L_RETURN_TO_SEARCH_ADV}</a></p>
|
<p></p><p><a class="left-box arrow-{S_CONTENT_FLOW_BEGIN}" href="{U_SEARCH}" title="{L_SEARCH_ADV}" accesskey="r">{L_RETURN_TO_SEARCH_ADV}</a></p>
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
|
|
||||||
<!-- IF S_DISPLAY_JUMPBOX -->
|
<!-- IF S_DISPLAY_JUMPBOX -->
|
||||||
|
|
|
@ -80,8 +80,8 @@
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
|
|
||||||
<fieldset class="display-options">
|
<fieldset class="display-options">
|
||||||
<!-- IF NEXT_PAGE --><a href="{NEXT_PAGE}" class="right-box {S_CONTENT_FLOW_END}">{L_NEXT}</a><!-- ENDIF -->
|
<!-- IF NEXT_PAGE --><a href="{NEXT_PAGE}" class="right-box arrow-{S_CONTENT_FLOW_END}">{L_NEXT}</a><!-- ENDIF -->
|
||||||
<!-- IF PREVIOUS_PAGE --><a href="{PREVIOUS_PAGE}" class="left-box {S_CONTENT_FLOW_BEGIN}">{L_PREVIOUS}</a><!-- ENDIF -->
|
<!-- IF PREVIOUS_PAGE --><a href="{PREVIOUS_PAGE}" class="left-box arrow-{S_CONTENT_FLOW_BEGIN}">{L_PREVIOUS}</a><!-- ENDIF -->
|
||||||
<label>{L_DISPLAY_TOPICS}{L_COLON} {S_SELECT_SORT_DAYS}</label>
|
<label>{L_DISPLAY_TOPICS}{L_COLON} {S_SELECT_SORT_DAYS}</label>
|
||||||
<label>{L_SORT_BY} {S_SELECT_SORT_KEY}</label>
|
<label>{L_SORT_BY} {S_SELECT_SORT_KEY}</label>
|
||||||
<label>{S_SELECT_SORT_DIR} <input type="submit" name="sort" value="{L_GO}" class="button2" /></label>
|
<label>{S_SELECT_SORT_DIR} <input type="submit" name="sort" value="{L_GO}" class="button2" /></label>
|
||||||
|
|
|
@ -54,8 +54,8 @@
|
||||||
|
|
||||||
<!-- IF .log -->
|
<!-- IF .log -->
|
||||||
<fieldset class="display-options">
|
<fieldset class="display-options">
|
||||||
<!-- IF NEXT_PAGE --><a href="{NEXT_PAGE}" class="right-box {S_CONTENT_FLOW_END}">{L_NEXT}</a><!-- ENDIF -->
|
<!-- IF NEXT_PAGE --><a href="{NEXT_PAGE}" class="right-box arrow-{S_CONTENT_FLOW_END}">{L_NEXT}</a><!-- ENDIF -->
|
||||||
<!-- IF PREVIOUS_PAGE --><a href="{PREVIOUS_PAGE}" class="left-box {S_CONTENT_FLOW_BEGIN}">{L_PREVIOUS}</a><!-- ENDIF -->
|
<!-- IF PREVIOUS_PAGE --><a href="{PREVIOUS_PAGE}" class="left-box arrow-{S_CONTENT_FLOW_BEGIN}">{L_PREVIOUS}</a><!-- ENDIF -->
|
||||||
<label>{L_DISPLAY_POSTS}{L_COLON} {S_SELECT_SORT_DAYS}</label>
|
<label>{L_DISPLAY_POSTS}{L_COLON} {S_SELECT_SORT_DAYS}</label>
|
||||||
<label>{L_SORT_BY} {S_SELECT_SORT_KEY}</label>
|
<label>{L_SORT_BY} {S_SELECT_SORT_KEY}</label>
|
||||||
<label>{S_SELECT_SORT_DIR}</label>
|
<label>{S_SELECT_SORT_DIR}</label>
|
||||||
|
|
|
@ -95,8 +95,8 @@
|
||||||
<hr />
|
<hr />
|
||||||
|
|
||||||
<fieldset class="display-options">
|
<fieldset class="display-options">
|
||||||
<!-- IF NEXT_PAGE --><a href="{NEXT_PAGE}" class="right-box {S_CONTENT_FLOW_END}">{L_NEXT}</a><!-- ENDIF -->
|
<!-- IF NEXT_PAGE --><a href="{NEXT_PAGE}" class="right-box arrow-{S_CONTENT_FLOW_END}">{L_NEXT}</a><!-- ENDIF -->
|
||||||
<!-- IF PREVIOUS_PAGE --><a href="{PREVIOUS_PAGE}" class="left-box {S_CONTENT_FLOW_BEGIN}">{L_PREVIOUS}</a><!-- ENDIF -->
|
<!-- IF PREVIOUS_PAGE --><a href="{PREVIOUS_PAGE}" class="left-box arrow-{S_CONTENT_FLOW_BEGIN}">{L_PREVIOUS}</a><!-- ENDIF -->
|
||||||
<label>{L_DISPLAY_LOG}{L_COLON} {S_SELECT_SORT_DAYS}</label>
|
<label>{L_DISPLAY_LOG}{L_COLON} {S_SELECT_SORT_DAYS}</label>
|
||||||
<label>{L_SORT_BY} {S_SELECT_SORT_KEY}</label><label>{S_SELECT_SORT_DIR}</label>
|
<label>{L_SORT_BY} {S_SELECT_SORT_KEY}</label><label>{S_SELECT_SORT_DIR}</label>
|
||||||
<input type="submit" name="sort" value="{L_GO}" class="button2" />
|
<input type="submit" name="sort" value="{L_GO}" class="button2" />
|
||||||
|
|
|
@ -65,8 +65,8 @@
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<fieldset class="display-options">
|
<fieldset class="display-options">
|
||||||
<!-- IF NEXT_PAGE --><a href="{NEXT_PAGE}" class="right-box {S_CONTENT_FLOW_END}">{L_NEXT}</a><!-- ENDIF -->
|
<!-- IF NEXT_PAGE --><a href="{NEXT_PAGE}" class="right-box arrow-{S_CONTENT_FLOW_END}">{L_NEXT}</a><!-- ENDIF -->
|
||||||
<!-- IF PREVIOUS_PAGE --><a href="{PREVIOUS_PAGE}" class="left-box {S_CONTENT_FLOW_BEGIN}">{L_PREVIOUS}</a><!-- ENDIF -->
|
<!-- IF PREVIOUS_PAGE --><a href="{PREVIOUS_PAGE}" class="left-box arrow-{S_CONTENT_FLOW_BEGIN}">{L_PREVIOUS}</a><!-- ENDIF -->
|
||||||
<label>{L_DISPLAY_POSTS}{L_COLON} {S_SELECT_SORT_DAYS}</label>
|
<label>{L_DISPLAY_POSTS}{L_COLON} {S_SELECT_SORT_DAYS}</label>
|
||||||
<label>{L_SORT_BY} {S_SELECT_SORT_KEY}</label><label>{S_SELECT_SORT_DIR}</label>
|
<label>{L_SORT_BY} {S_SELECT_SORT_KEY}</label><label>{S_SELECT_SORT_DIR}</label>
|
||||||
<!-- IF TOPIC_ID --><label><input type="checkbox" class="radio" name="t" value="{TOPIC_ID}" checked="checked" /> <strong>{L_ONLY_TOPIC}</strong></label><!-- ENDIF -->
|
<!-- IF TOPIC_ID --><label><input type="checkbox" class="radio" name="t" value="{TOPIC_ID}" checked="checked" /> <strong>{L_ONLY_TOPIC}</strong></label><!-- ENDIF -->
|
||||||
|
|
|
@ -68,8 +68,8 @@
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<fieldset class="display-options">
|
<fieldset class="display-options">
|
||||||
<!-- IF NEXT_PAGE --><a href="{NEXT_PAGE}" class="right-box {S_CONTENT_FLOW_END}">{L_NEXT}</a><!-- ENDIF -->
|
<!-- IF NEXT_PAGE --><a href="{NEXT_PAGE}" class="right-box arrow-{S_CONTENT_FLOW_END}">{L_NEXT}</a><!-- ENDIF -->
|
||||||
<!-- IF PREVIOUS_PAGE --><a href="{PREVIOUS_PAGE}" class="left-box {S_CONTENT_FLOW_BEGIN}">{L_PREVIOUS}</a><!-- ENDIF -->
|
<!-- IF PREVIOUS_PAGE --><a href="{PREVIOUS_PAGE}" class="left-box arrow-{S_CONTENT_FLOW_BEGIN}">{L_PREVIOUS}</a><!-- ENDIF -->
|
||||||
<label>{L_DISPLAY_POSTS}{L_COLON} {S_SELECT_SORT_DAYS}</label>
|
<label>{L_DISPLAY_POSTS}{L_COLON} {S_SELECT_SORT_DAYS}</label>
|
||||||
<label>{L_SORT_BY} {S_SELECT_SORT_KEY}</label><label>{S_SELECT_SORT_DIR}</label>
|
<label>{L_SORT_BY} {S_SELECT_SORT_KEY}</label><label>{S_SELECT_SORT_DIR}</label>
|
||||||
<!-- IF TOPIC_ID --><label><input type="checkbox" class="radio" name="t" value="{TOPIC_ID}" checked="checked" /> <strong>{L_ONLY_TOPIC}</strong></label><!-- ENDIF -->
|
<!-- IF TOPIC_ID --><label><input type="checkbox" class="radio" name="t" value="{TOPIC_ID}" checked="checked" /> <strong>{L_ONLY_TOPIC}</strong></label><!-- ENDIF -->
|
||||||
|
|
|
@ -4,11 +4,11 @@
|
||||||
<div class="panel">
|
<div class="panel">
|
||||||
<div class="inner">
|
<div class="inner">
|
||||||
|
|
||||||
<p><a class="{S_CONTENT_FLOW_BEGIN}" href="{U_RETURN_POST}">{L_RETURN_POST}</a></p>
|
<p><a class="arrow-{S_CONTENT_FLOW_BEGIN}" href="{U_RETURN_POST}">{L_RETURN_POST}</a></p>
|
||||||
<div class="postbody"><div class="content">
|
<div class="postbody"><div class="content">
|
||||||
<pre>{WHOIS}</pre>
|
<pre>{WHOIS}</pre>
|
||||||
</div></div>
|
</div></div>
|
||||||
<p><a class="{S_CONTENT_FLOW_BEGIN}" href="{U_RETURN_POST}">{L_RETURN_POST}</a></p>
|
<p><a class="arrow-{S_CONTENT_FLOW_BEGIN}" href="{U_RETURN_POST}">{L_RETURN_POST}</a></p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -143,8 +143,8 @@
|
||||||
|
|
||||||
<!-- IF S_IN_SEARCH_POPUP and not S_SEARCH_USER -->
|
<!-- IF S_IN_SEARCH_POPUP and not S_SEARCH_USER -->
|
||||||
<fieldset class="display-options">
|
<fieldset class="display-options">
|
||||||
<!-- IF PREVIOUS_PAGE --><a href="{PREVIOUS_PAGE}" class="left-box {S_CONTENT_FLOW_BEGIN}">{L_PREVIOUS}</a><!-- ENDIF -->
|
<!-- IF PREVIOUS_PAGE --><a href="{PREVIOUS_PAGE}" class="left-box arrow-{S_CONTENT_FLOW_BEGIN}">{L_PREVIOUS}</a><!-- ENDIF -->
|
||||||
<!-- IF NEXT_PAGE --><a href="{NEXT_PAGE}" class="right-box {S_CONTENT_FLOW_END}">{L_NEXT}</a><!-- ENDIF -->
|
<!-- IF NEXT_PAGE --><a href="{NEXT_PAGE}" class="right-box arrow-{S_CONTENT_FLOW_END}">{L_NEXT}</a><!-- ENDIF -->
|
||||||
<label for="sk">{L_SELECT_SORT_METHOD}{L_COLON} <select name="sk" id="sk">{S_MODE_SELECT}</select></label>
|
<label for="sk">{L_SELECT_SORT_METHOD}{L_COLON} <select name="sk" id="sk">{S_MODE_SELECT}</select></label>
|
||||||
<label for="sd">{L_ORDER} <select name="sd" id="sd">{S_ORDER_SELECT}</select> <input type="submit" name="sort" value="{L_SUBMIT}" class="button2" /></label>
|
<label for="sd">{L_ORDER} <select name="sd" id="sd">{S_ORDER_SELECT}</select> <input type="submit" name="sort" value="{L_SUBMIT}" class="button2" /></label>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<div class="inner">
|
<div class="inner">
|
||||||
<h2>{MESSAGE_TITLE}</h2>
|
<h2>{MESSAGE_TITLE}</h2>
|
||||||
<p>{MESSAGE_TEXT}</p>
|
<p>{MESSAGE_TEXT}</p>
|
||||||
<!-- IF SCRIPT_NAME == "search" and not S_BOARD_DISABLED and not S_NO_SEARCH and L_RETURN_TO_SEARCH_ADV --><p><a href="{U_SEARCH}" class="{S_CONTENT_FLOW_BEGIN}">{L_RETURN_TO_SEARCH_ADV}</a></p><!-- ENDIF -->
|
<!-- IF SCRIPT_NAME == "search" and not S_BOARD_DISABLED and not S_NO_SEARCH and L_RETURN_TO_SEARCH_ADV --><p><a href="{U_SEARCH}" class="arrow-{S_CONTENT_FLOW_BEGIN}">{L_RETURN_TO_SEARCH_ADV}</a></p><!-- ENDIF -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -165,7 +165,7 @@
|
||||||
|
|
||||||
<dt><label for="comment_list_{attach_row.ASSOC_INDEX}">{L_FILE_COMMENT}{L_COLON}</label></dt>
|
<dt><label for="comment_list_{attach_row.ASSOC_INDEX}">{L_FILE_COMMENT}{L_COLON}</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><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><a href="{attach_row.U_VIEW_ATTACHMENT}">{attach_row.FILENAME}</a></dd>
|
||||||
<dd style="margin-top: 5px;">
|
<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.A_FILENAME}');" class="button2" /> <!-- ENDIF -->
|
<!-- IF S_INLINE_ATTACHMENT_OPTIONS --><input type="button" value="{L_PLACE_INLINE}" onclick="attach_inline({attach_row.ASSOC_INDEX}, '{attach_row.A_FILENAME}');" class="button2" /> <!-- ENDIF -->
|
||||||
<input type="submit" name="delete_file[{attach_row.ASSOC_INDEX}]" value="{L_DELETE_FILE}" class="button2" />
|
<input type="submit" name="delete_file[{attach_row.ASSOC_INDEX}]" value="{L_DELETE_FILE}" class="button2" />
|
||||||
|
|
|
@ -6,9 +6,9 @@
|
||||||
<!-- IF PHRASE_SEARCH_DISABLED --> <p><strong>{L_PHRASE_SEARCH_DISABLED}</strong></p><!-- ENDIF -->
|
<!-- IF PHRASE_SEARCH_DISABLED --> <p><strong>{L_PHRASE_SEARCH_DISABLED}</strong></p><!-- ENDIF -->
|
||||||
|
|
||||||
<!-- IF SEARCH_TOPIC -->
|
<!-- IF SEARCH_TOPIC -->
|
||||||
<p><a class="{S_CONTENT_FLOW_BEGIN}" href="{U_SEARCH_TOPIC}">{L_RETURN_TO}{L_COLON} {SEARCH_TOPIC}</a></p>
|
<p><a class="arrow-{S_CONTENT_FLOW_BEGIN}" href="{U_SEARCH_TOPIC}">{L_RETURN_TO}{L_COLON} {SEARCH_TOPIC}</a></p>
|
||||||
<!-- ELSE -->
|
<!-- ELSE -->
|
||||||
<p><a class="{S_CONTENT_FLOW_BEGIN}" href="{U_SEARCH}" title="{L_SEARCH_ADV}">{L_RETURN_TO_SEARCH_ADV}</a></p>
|
<p><a class="arrow-{S_CONTENT_FLOW_BEGIN}" href="{U_SEARCH}" title="{L_SEARCH_ADV}">{L_RETURN_TO_SEARCH_ADV}</a></p>
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
|
|
||||||
<!-- IF .pagination or SEARCH_MATCHES or PAGE_NUMBER -->
|
<!-- IF .pagination or SEARCH_MATCHES or PAGE_NUMBER -->
|
||||||
|
@ -131,7 +131,7 @@
|
||||||
|
|
||||||
<!-- IF not searchresults.S_IGNORE_POST -->
|
<!-- IF not searchresults.S_IGNORE_POST -->
|
||||||
<ul class="searchresults">
|
<ul class="searchresults">
|
||||||
<li ><a href="{searchresults.U_VIEW_POST}" class="{S_CONTENT_FLOW_END}">{L_JUMP_TO_POST}</a></li>
|
<li ><a href="{searchresults.U_VIEW_POST}" class="arrow-{S_CONTENT_FLOW_END}">{L_JUMP_TO_POST}</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
|
|
||||||
|
@ -150,8 +150,8 @@
|
||||||
<form method="post" action="{S_SEARCH_ACTION}">
|
<form method="post" action="{S_SEARCH_ACTION}">
|
||||||
|
|
||||||
<fieldset class="display-options">
|
<fieldset class="display-options">
|
||||||
<!-- IF PREVIOUS_PAGE --><a href="{PREVIOUS_PAGE}" class="left-box {S_CONTENT_FLOW_BEGIN}">{L_PREVIOUS}</a><!-- ENDIF -->
|
<!-- IF PREVIOUS_PAGE --><a href="{PREVIOUS_PAGE}" class="left-box arrow-{S_CONTENT_FLOW_BEGIN}">{L_PREVIOUS}</a><!-- ENDIF -->
|
||||||
<!-- IF NEXT_PAGE --><a href="{NEXT_PAGE}" class="right-box {S_CONTENT_FLOW_END}">{L_NEXT}</a><!-- ENDIF -->
|
<!-- IF NEXT_PAGE --><a href="{NEXT_PAGE}" class="right-box arrow-{S_CONTENT_FLOW_END}">{L_NEXT}</a><!-- ENDIF -->
|
||||||
<!-- IF S_SELECT_SORT_DAYS or S_SELECT_SORT_KEY -->
|
<!-- IF S_SELECT_SORT_DAYS or S_SELECT_SORT_KEY -->
|
||||||
<label><!-- IF S_SHOW_TOPICS -->{L_DISPLAY_POSTS}<!-- ELSE -->{L_SORT_BY}</label><label><!-- ENDIF --> {S_SELECT_SORT_DAYS}<!-- IF S_SELECT_SORT_KEY --></label> <label>{S_SELECT_SORT_KEY}</label>
|
<label><!-- IF S_SHOW_TOPICS -->{L_DISPLAY_POSTS}<!-- ELSE -->{L_SORT_BY}</label><label><!-- ENDIF --> {S_SELECT_SORT_DAYS}<!-- IF S_SELECT_SORT_KEY --></label> <label>{S_SELECT_SORT_KEY}</label>
|
||||||
<label>{S_SELECT_SORT_DIR}<!-- ENDIF --> <input type="submit" name="sort" value="{L_GO}" class="button2" /></label>
|
<label>{S_SELECT_SORT_DIR}<!-- ENDIF --> <input type="submit" name="sort" value="{L_GO}" class="button2" /></label>
|
||||||
|
|
|
@ -47,8 +47,8 @@
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<fieldset class="display-options">
|
<fieldset class="display-options">
|
||||||
<!-- IF NEXT_PAGE --><a href="{NEXT_PAGE}" class="right-box {S_CONTENT_FLOW_END}">{L_NEXT}</a><!-- ENDIF -->
|
<!-- IF NEXT_PAGE --><a href="{NEXT_PAGE}" class="right-box arrow-{S_CONTENT_FLOW_END}">{L_NEXT}</a><!-- ENDIF -->
|
||||||
<!-- IF PREVIOUS_PAGE --><a href="{PREVIOUS_PAGE}" class="left-box {S_CONTENT_FLOW_BEGIN}">{L_PREVIOUS}</a><!-- ENDIF -->
|
<!-- IF PREVIOUS_PAGE --><a href="{PREVIOUS_PAGE}" class="left-box arrow-{S_CONTENT_FLOW_BEGIN}">{L_PREVIOUS}</a><!-- ENDIF -->
|
||||||
<label for="sk">{L_SORT_BY}{L_COLON} <select name="sk" id="sk">{S_SORT_OPTIONS}</select></label>
|
<label for="sk">{L_SORT_BY}{L_COLON} <select name="sk" id="sk">{S_SORT_OPTIONS}</select></label>
|
||||||
<label><select name="sd" id="sd">{S_ORDER_SELECT}</select></label>
|
<label><select name="sd" id="sd">{S_ORDER_SELECT}</select></label>
|
||||||
<input class="button2" type="submit" name="sort" value="{L_SORT}" />
|
<input class="button2" type="submit" name="sort" value="{L_SORT}" />
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
<!-- IF TOTAL_MESSAGES or S_VIEW_MESSAGE -->
|
<!-- IF TOTAL_MESSAGES or S_VIEW_MESSAGE -->
|
||||||
<ul class="linklist">
|
<ul class="linklist">
|
||||||
<li class="rightside pagination">
|
<li class="rightside pagination">
|
||||||
<!-- IF S_VIEW_MESSAGE --><a class="{S_CONTENT_FLOW_BEGIN}" href="{U_CURRENT_FOLDER}">{L_RETURN_TO} {CUR_FOLDER_NAME}</a><!-- ENDIF -->
|
<!-- IF S_VIEW_MESSAGE --><a class="arrow-{S_CONTENT_FLOW_BEGIN}" href="{U_CURRENT_FOLDER}">{L_RETURN_TO} {CUR_FOLDER_NAME}</a><!-- ENDIF -->
|
||||||
<!-- IF FOLDER_CUR_MESSAGES neq 0 -->
|
<!-- IF FOLDER_CUR_MESSAGES neq 0 -->
|
||||||
<!-- IF TOTAL_MESSAGES -->{TOTAL_MESSAGES} • <!-- ENDIF -->
|
<!-- IF TOTAL_MESSAGES -->{TOTAL_MESSAGES} • <!-- ENDIF -->
|
||||||
<!-- IF .pagination -->
|
<!-- IF .pagination -->
|
||||||
|
|
|
@ -119,8 +119,8 @@
|
||||||
|
|
||||||
<!-- IF FOLDER_CUR_MESSAGES neq 0 -->
|
<!-- IF FOLDER_CUR_MESSAGES neq 0 -->
|
||||||
<fieldset class="display-options">
|
<fieldset class="display-options">
|
||||||
<!-- IF PREVIOUS_PAGE --><a href="{PREVIOUS_PAGE}" class="left-box {S_CONTENT_FLOW_BEGIN}">{L_PREVIOUS}</a><!-- ENDIF -->
|
<!-- IF PREVIOUS_PAGE --><a href="{PREVIOUS_PAGE}" class="left-box arrow-{S_CONTENT_FLOW_BEGIN}">{L_PREVIOUS}</a><!-- ENDIF -->
|
||||||
<!-- IF NEXT_PAGE --><a href="{NEXT_PAGE}" class="right-box {S_CONTENT_FLOW_END}">{L_NEXT}</a><!-- ENDIF -->
|
<!-- IF NEXT_PAGE --><a href="{NEXT_PAGE}" class="right-box arrow-{S_CONTENT_FLOW_END}">{L_NEXT}</a><!-- ENDIF -->
|
||||||
<label>{L_DISPLAY}{L_COLON} {S_SELECT_SORT_DAYS}</label>
|
<label>{L_DISPLAY}{L_COLON} {S_SELECT_SORT_DAYS}</label>
|
||||||
<label>{L_SORT_BY} {S_SELECT_SORT_KEY}</label>
|
<label>{L_SORT_BY} {S_SELECT_SORT_KEY}</label>
|
||||||
<label>{S_SELECT_SORT_DIR} <input type="submit" name="sort" value="{L_GO}" class="button2" /></label>
|
<label>{S_SELECT_SORT_DIR} <input type="submit" name="sort" value="{L_GO}" class="button2" /></label>
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
|
|
||||||
<!-- IF S_DISPLAY_HISTORY and (U_VIEW_PREVIOUS_HISTORY or U_VIEW_NEXT_HISTORY) -->
|
<!-- IF S_DISPLAY_HISTORY and (U_VIEW_PREVIOUS_HISTORY or U_VIEW_NEXT_HISTORY) -->
|
||||||
<fieldset class="display-options clearfix">
|
<fieldset class="display-options clearfix">
|
||||||
<!-- IF U_VIEW_PREVIOUS_HISTORY --><a href="{U_VIEW_PREVIOUS_HISTORY}" class="left-box {S_CONTENT_FLOW_BEGIN}">{L_VIEW_PREVIOUS_HISTORY}</a><!-- ENDIF -->
|
<!-- IF U_VIEW_PREVIOUS_HISTORY --><a href="{U_VIEW_PREVIOUS_HISTORY}" class="left-box arrow-{S_CONTENT_FLOW_BEGIN}">{L_VIEW_PREVIOUS_HISTORY}</a><!-- ENDIF -->
|
||||||
<!-- IF U_VIEW_NEXT_HISTORY --><a href="{U_VIEW_NEXT_HISTORY}" class="right-box {S_CONTENT_FLOW_END}">{L_VIEW_NEXT_HISTORY}</a><!-- ENDIF -->
|
<!-- IF U_VIEW_NEXT_HISTORY --><a href="{U_VIEW_NEXT_HISTORY}" class="right-box arrow-{S_CONTENT_FLOW_END}">{L_VIEW_NEXT_HISTORY}</a><!-- ENDIF -->
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
|
|
||||||
|
@ -113,8 +113,8 @@
|
||||||
|
|
||||||
<!-- IF S_VIEW_MESSAGE -->
|
<!-- IF S_VIEW_MESSAGE -->
|
||||||
<fieldset class="display-options">
|
<fieldset class="display-options">
|
||||||
<!-- IF U_PREVIOUS_PM --><a href="{U_PREVIOUS_PM}" class="left-box {S_CONTENT_FLOW_BEGIN}">{L_VIEW_PREVIOUS_PM}</a><!-- ENDIF -->
|
<!-- IF U_PREVIOUS_PM --><a href="{U_PREVIOUS_PM}" class="left-box arrow-{S_CONTENT_FLOW_BEGIN}">{L_VIEW_PREVIOUS_PM}</a><!-- ENDIF -->
|
||||||
<!-- IF U_NEXT_PM --><a href="{U_NEXT_PM}" class="right-box {S_CONTENT_FLOW_END}">{L_VIEW_NEXT_PM}</a><!-- ENDIF -->
|
<!-- IF U_NEXT_PM --><a href="{U_NEXT_PM}" class="right-box arrow-{S_CONTENT_FLOW_END}">{L_VIEW_NEXT_PM}</a><!-- ENDIF -->
|
||||||
|
|
||||||
<!-- IF S_MARK_OPTIONS --><label for="mark_option"><select name="mark_option" id="mark_option">{S_MARK_OPTIONS}</select></label> <input class="button2" type="submit" name="submit_mark" value="{L_GO}" /><!-- ENDIF -->
|
<!-- IF S_MARK_OPTIONS --><label for="mark_option"><select name="mark_option" id="mark_option">{S_MARK_OPTIONS}</select></label> <input class="button2" type="submit" name="submit_mark" value="{L_GO}" /><!-- ENDIF -->
|
||||||
<!-- IF not S_UNREAD and not S_SPECIAL_FOLDER --><label for="dest_folder"><!-- IF S_VIEW_MESSAGE -->{L_MOVE_TO_FOLDER}{L_COLON} <!-- ELSE -->{L_MOVE_MARKED_TO_FOLDER}<!-- ENDIF --> <select name="dest_folder" id="dest_folder">{S_TO_FOLDER_OPTIONS}</select></label> <input class="button2" type="submit" name="move_pm" value="{L_GO}" /><!-- ENDIF -->
|
<!-- IF not S_UNREAD and not S_SPECIAL_FOLDER --><label for="dest_folder"><!-- IF S_VIEW_MESSAGE -->{L_MOVE_TO_FOLDER}{L_COLON} <!-- ELSE -->{L_MOVE_MARKED_TO_FOLDER}<!-- ENDIF --> <select name="dest_folder" id="dest_folder">{S_TO_FOLDER_OPTIONS}</select></label> <input class="button2" type="submit" name="move_pm" value="{L_GO}" /><!-- ENDIF -->
|
||||||
|
|
|
@ -189,8 +189,8 @@
|
||||||
<!-- IF S_SELECT_SORT_DAYS and not S_DISPLAY_ACTIVE -->
|
<!-- IF S_SELECT_SORT_DAYS and not S_DISPLAY_ACTIVE -->
|
||||||
<form method="post" action="{S_FORUM_ACTION}">
|
<form method="post" action="{S_FORUM_ACTION}">
|
||||||
<fieldset class="display-options">
|
<fieldset class="display-options">
|
||||||
<!-- IF PREVIOUS_PAGE --><a href="{PREVIOUS_PAGE}" class="left-box {S_CONTENT_FLOW_BEGIN}">{L_PREVIOUS}</a><!-- ENDIF -->
|
<!-- IF PREVIOUS_PAGE --><a href="{PREVIOUS_PAGE}" class="left-box arrow-{S_CONTENT_FLOW_BEGIN}">{L_PREVIOUS}</a><!-- ENDIF -->
|
||||||
<!-- IF NEXT_PAGE --><a href="{NEXT_PAGE}" class="right-box {S_CONTENT_FLOW_END}">{L_NEXT}</a><!-- ENDIF -->
|
<!-- IF NEXT_PAGE --><a href="{NEXT_PAGE}" class="right-box arrow-{S_CONTENT_FLOW_END}">{L_NEXT}</a><!-- ENDIF -->
|
||||||
<!-- IF not S_IS_BOT -->
|
<!-- IF not S_IS_BOT -->
|
||||||
<label>{L_DISPLAY_TOPICS}{L_COLON} {S_SELECT_SORT_DAYS}</label>
|
<label>{L_DISPLAY_TOPICS}{L_COLON} {S_SELECT_SORT_DAYS}</label>
|
||||||
<label>{L_SORT_BY} {S_SELECT_SORT_KEY}</label>
|
<label>{L_SORT_BY} {S_SELECT_SORT_KEY}</label>
|
||||||
|
|
|
@ -49,7 +49,7 @@
|
||||||
|
|
||||||
<!-- IF PREVIOUS_PAGE or NEXT_PAGE -->
|
<!-- IF PREVIOUS_PAGE or NEXT_PAGE -->
|
||||||
<fieldset class="display-options right-box">
|
<fieldset class="display-options right-box">
|
||||||
<!-- IF PREVIOUS_PAGE --><a href="{PREVIOUS_PAGE}" class="{S_CONTENT_FLOW_BEGIN}">{L_PREVIOUS}</a><!-- ELSE -->{L_PREVIOUS}<!-- ENDIF --> • <!-- IF NEXT_PAGE --><a href="{NEXT_PAGE}" class="{S_CONTENT_FLOW_END}">{L_NEXT}</a><!-- ELSE -->{L_NEXT}<!-- ENDIF -->
|
<!-- IF PREVIOUS_PAGE --><a href="{PREVIOUS_PAGE}" class="arrow-{S_CONTENT_FLOW_BEGIN}">{L_PREVIOUS}</a><!-- ELSE -->{L_PREVIOUS}<!-- ENDIF --> • <!-- IF NEXT_PAGE --><a href="{NEXT_PAGE}" class="arrow-{S_CONTENT_FLOW_END}">{L_NEXT}</a><!-- ELSE -->{L_NEXT}<!-- ENDIF -->
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
|
|
||||||
|
|
|
@ -249,8 +249,8 @@
|
||||||
<form id="viewtopic" method="post" action="{S_TOPIC_ACTION}">
|
<form id="viewtopic" method="post" action="{S_TOPIC_ACTION}">
|
||||||
|
|
||||||
<fieldset class="display-options" style="margin-top: 0; ">
|
<fieldset class="display-options" style="margin-top: 0; ">
|
||||||
<!-- IF PREVIOUS_PAGE --><a href="{PREVIOUS_PAGE}" class="left-box {S_CONTENT_FLOW_BEGIN}">{L_PREVIOUS}</a><!-- ENDIF -->
|
<!-- IF PREVIOUS_PAGE --><a href="{PREVIOUS_PAGE}" class="left-box arrow-{S_CONTENT_FLOW_BEGIN}">{L_PREVIOUS}</a><!-- ENDIF -->
|
||||||
<!-- IF NEXT_PAGE --><a href="{NEXT_PAGE}" class="right-box {S_CONTENT_FLOW_END}">{L_NEXT}</a><!-- ENDIF -->
|
<!-- IF NEXT_PAGE --><a href="{NEXT_PAGE}" class="right-box arrow-{S_CONTENT_FLOW_END}">{L_NEXT}</a><!-- ENDIF -->
|
||||||
<!-- IF not S_IS_BOT -->
|
<!-- IF not S_IS_BOT -->
|
||||||
<label>{L_DISPLAY_POSTS}{L_COLON} {S_SELECT_SORT_DAYS}</label>
|
<label>{L_DISPLAY_POSTS}{L_COLON} {S_SELECT_SORT_DAYS}</label>
|
||||||
<label>{L_SORT_BY} {S_SELECT_SORT_KEY}</label> <label>{S_SELECT_SORT_DIR} <input type="submit" name="sort" value="{L_GO}" class="button2" /></label>
|
<label>{L_SORT_BY} {S_SELECT_SORT_KEY}</label> <label>{S_SELECT_SORT_DIR} <input type="submit" name="sort" value="{L_GO}" class="button2" /></label>
|
||||||
|
|
|
@ -331,20 +331,20 @@ a.top2 {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Arrow links */
|
/* Arrow links */
|
||||||
a.up { background-image: url("./images/arrow_up.gif") }
|
a.arrow-up { background-image: url("./images/arrow_up.gif") }
|
||||||
a.down { background-image: url("./images/arrow_down.gif") }
|
a.arrow-down { background-image: url("./images/arrow_down.gif") }
|
||||||
a.left { background-image: url("./images/arrow_left.gif") }
|
a.arrow-left { background-image: url("./images/arrow_left.gif") }
|
||||||
a.right { background-image: url("./images/arrow_right.gif") }
|
a.arrow-right { background-image: url("./images/arrow_right.gif") }
|
||||||
|
|
||||||
a.up:hover {
|
a.arrow-up:hover {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
a.left:hover {
|
a.arrow-left:hover {
|
||||||
color: #368AD2;
|
color: #368AD2;
|
||||||
}
|
}
|
||||||
|
|
||||||
a.right:hover {
|
a.arrow-right:hover {
|
||||||
color: #368AD2;
|
color: #368AD2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -145,44 +145,44 @@ a.top2 {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Arrow links */
|
/* Arrow links */
|
||||||
a.up { background: none no-repeat left center; }
|
a.arrow-up { background: none no-repeat left center; }
|
||||||
a.down { background: none no-repeat right center; }
|
a.arrow-down { background: none no-repeat right center; }
|
||||||
a.left { background: none no-repeat 3px 60%; }
|
a.arrow-left { background: none no-repeat 3px 60%; }
|
||||||
a.right { background: none no-repeat 95% 60%; }
|
a.arrow-right { background: none no-repeat 95% 60%; }
|
||||||
|
|
||||||
a.up, a.up:link, a.up:active, a.up:visited {
|
a.arrow-up, a.arrow-up:link, a.arrow-up:active, a.arrow-up:visited {
|
||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
border-bottom-width: 0;
|
border-bottom-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
a.up:hover {
|
a.arrow-up:hover {
|
||||||
background-position: left top;
|
background-position: left top;
|
||||||
}
|
}
|
||||||
|
|
||||||
a.down, a.down:link, a.down:active, a.down:visited {
|
a.arrow-down, a.arrow-down:link, a.arrow-down:active, a.arrow-down:visited {
|
||||||
padding-right: 10px;
|
padding-right: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
a.down:hover {
|
a.arrow-down:hover {
|
||||||
background-position: right bottom;
|
background-position: right bottom;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
a.left, a.left:active, a.left:visited {
|
a.arrow-left, a.arrow-left:active, a.arrow-left:visited {
|
||||||
padding-left: 12px;
|
padding-left: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
a.left:hover {
|
a.arrow-left:hover {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
background-position: 0 60%;
|
background-position: 0 60%;
|
||||||
}
|
}
|
||||||
|
|
||||||
a.right, a.right:active, a.right:visited {
|
a.arrow-right, a.arrow-right:active, a.arrow-right:visited {
|
||||||
padding-right: 12px;
|
padding-right: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
a.right:hover {
|
a.arrow-right:hover {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
background-position: 100% 60%;
|
background-position: 100% 60%;
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,18 +15,21 @@ class phpbb_functional_browse_test extends phpbb_functional_test_case
|
||||||
public function test_index()
|
public function test_index()
|
||||||
{
|
{
|
||||||
$crawler = $this->request('GET', 'index.php');
|
$crawler = $this->request('GET', 'index.php');
|
||||||
|
$this->assert_response_success();
|
||||||
$this->assertGreaterThan(0, $crawler->filter('.topiclist')->count());
|
$this->assertGreaterThan(0, $crawler->filter('.topiclist')->count());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function test_viewforum()
|
public function test_viewforum()
|
||||||
{
|
{
|
||||||
$crawler = $this->request('GET', 'viewforum.php?f=2');
|
$crawler = $this->request('GET', 'viewforum.php?f=2');
|
||||||
|
$this->assert_response_success();
|
||||||
$this->assertGreaterThan(0, $crawler->filter('.topiclist')->count());
|
$this->assertGreaterThan(0, $crawler->filter('.topiclist')->count());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function test_viewtopic()
|
public function test_viewtopic()
|
||||||
{
|
{
|
||||||
$crawler = $this->request('GET', 'viewtopic.php?t=1');
|
$crawler = $this->request('GET', 'viewtopic.php?t=1');
|
||||||
|
$this->assert_response_success();
|
||||||
$this->assertGreaterThan(0, $crawler->filter('.postbody')->count());
|
$this->assertGreaterThan(0, $crawler->filter('.postbody')->count());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -82,6 +82,7 @@ class phpbb_functional_extension_controller_test extends phpbb_functional_test_c
|
||||||
{
|
{
|
||||||
$this->phpbb_extension_manager->enable('foobar');
|
$this->phpbb_extension_manager->enable('foobar');
|
||||||
$crawler = $this->request('GET', 'index.php?ext=foobar');
|
$crawler = $this->request('GET', 'index.php?ext=foobar');
|
||||||
|
$this->assert_response_success();
|
||||||
$this->assertContains("This is for testing purposes.", $crawler->filter('#page-body')->text());
|
$this->assertContains("This is for testing purposes.", $crawler->filter('#page-body')->text());
|
||||||
$this->phpbb_extension_manager->purge('foobar');
|
$this->phpbb_extension_manager->purge('foobar');
|
||||||
}
|
}
|
||||||
|
@ -94,6 +95,7 @@ class phpbb_functional_extension_controller_test extends phpbb_functional_test_c
|
||||||
{
|
{
|
||||||
$this->phpbb_extension_manager->enable('foo/bar');
|
$this->phpbb_extension_manager->enable('foo/bar');
|
||||||
$crawler = $this->request('GET', 'index.php?ext=foo/bar');
|
$crawler = $this->request('GET', 'index.php?ext=foo/bar');
|
||||||
|
$this->assert_response_success();
|
||||||
$this->assertContains("This is for testing purposes.", $crawler->filter('#page-body')->text());
|
$this->assertContains("This is for testing purposes.", $crawler->filter('#page-body')->text());
|
||||||
$this->phpbb_extension_manager->purge('foo/bar');
|
$this->phpbb_extension_manager->purge('foo/bar');
|
||||||
}
|
}
|
||||||
|
|
|
@ -166,12 +166,6 @@ class phpbb_database_test_connection_manager
|
||||||
switch ($this->config['dbms'])
|
switch ($this->config['dbms'])
|
||||||
{
|
{
|
||||||
case 'phpbb_db_driver_sqlite':
|
case 'phpbb_db_driver_sqlite':
|
||||||
if (file_exists($this->config['dbhost']))
|
|
||||||
{
|
|
||||||
unlink($this->config['dbhost']);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 'phpbb_db_driver_firebird':
|
case 'phpbb_db_driver_firebird':
|
||||||
$this->connect();
|
$this->connect();
|
||||||
// Drop all of the tables
|
// Drop all of the tables
|
||||||
|
|
|
@ -51,6 +51,7 @@ class phpbb_functional_test_case extends phpbb_test_case
|
||||||
// that were added in other tests are gone
|
// that were added in other tests are gone
|
||||||
$this->lang = array();
|
$this->lang = array();
|
||||||
$this->add_lang('common');
|
$this->add_lang('common');
|
||||||
|
$this->purge_cache();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function request($method, $path)
|
public function request($method, $path)
|
||||||
|
@ -327,15 +328,30 @@ class phpbb_functional_test_case extends phpbb_test_case
|
||||||
return call_user_func_array('sprintf', $args);
|
return call_user_func_array('sprintf', $args);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* assertContains for language strings
|
* assertContains for language strings
|
||||||
*
|
*
|
||||||
* @param string $needle Search string
|
* @param string $needle Search string
|
||||||
* @param string $haystack Search this
|
* @param string $haystack Search this
|
||||||
* @param string $message Optional failure message
|
* @param string $message Optional failure message
|
||||||
*/
|
*/
|
||||||
public function assertContainsLang($needle, $haystack, $message = null)
|
public function assertContainsLang($needle, $haystack, $message = null)
|
||||||
{
|
{
|
||||||
$this->assertContains(html_entity_decode($this->lang($needle), ENT_QUOTES), $haystack, $message);
|
$this->assertContains(html_entity_decode($this->lang($needle), ENT_QUOTES), $haystack, $message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Heuristic function to check that the response is success.
|
||||||
|
*
|
||||||
|
* When php decides to die with a fatal error, it still sends 200 OK
|
||||||
|
* status code. This assertion tries to catch that.
|
||||||
|
*
|
||||||
|
* @return null
|
||||||
|
*/
|
||||||
|
public function assert_response_success()
|
||||||
|
{
|
||||||
|
$this->assertEquals(200, $this->client->getResponse()->getStatus());
|
||||||
|
$content = $this->client->getResponse()->getContent();
|
||||||
|
$this->assertNotContains('Fatal error:', $content);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue