aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2009-07-29 09:26:50 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2009-07-29 09:26:50 +0000
commit01fe852ad8eb19e0700e6dd87ec518493adae897 (patch)
tree97ec33e1bb2dc69c8d636602d934f11289604fae
parenta1807c8ddd87d604eaef8fc3f249e13b957d4730 (diff)
downloadforums-01fe852ad8eb19e0700e6dd87ec518493adae897.tar
forums-01fe852ad8eb19e0700e6dd87ec518493adae897.tar.gz
forums-01fe852ad8eb19e0700e6dd87ec518493adae897.tar.bz2
forums-01fe852ad8eb19e0700e6dd87ec518493adae897.tar.xz
forums-01fe852ad8eb19e0700e6dd87ec518493adae897.zip
Slightly adjust version check on index page to be a bit more descriptive
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9889 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r--phpBB/adm/style/acp_main.html13
-rw-r--r--phpBB/includes/acp/acp_main.php25
-rw-r--r--phpBB/language/en/acp/common.php5
-rw-r--r--phpBB/language/en/install.php1
4 files changed, 24 insertions, 20 deletions
diff --git a/phpBB/adm/style/acp_main.html b/phpBB/adm/style/acp_main.html
index 192d2e50f5..bdb045e326 100644
--- a/phpBB/adm/style/acp_main.html
+++ b/phpBB/adm/style/acp_main.html
@@ -14,21 +14,22 @@
<p>{L_ADMIN_INTRO}</p>
+ <!-- version check -->
+
<!-- IF S_VERSIONCHECK_FAIL -->
<div class="errorbox notice">
- <p>{L_VERSIONCHECK_FAIL} - <a href="{U_VERSIONCHECK_FORCE}">{L_VERSIONCHECK_FORCE_UPDATE}</a> - <a href="{U_VERSIONCHECK}">{L_MORE}</a></p>
- </div>
+ <p>{L_VERSIONCHECK_FAIL}</p>
<!-- ELSE -->
<!-- IF S_VERSION_UP_TO_DATE -->
<div class="successbox">
- <p>{L_VERSION_UP_TO_DATE_ACP} - <a href="{U_VERSIONCHECK_FORCE}">{L_VERSIONCHECK_FORCE_UPDATE}</a> - <a href="{U_VERSIONCHECK}">{L_MORE}</a></p>
- </div>
+ <p>{L_VERSION_UP_TO_DATE_ACP}</p>
<!-- ELSE -->
<div class="errorbox">
- <p>{L_VERSION_NOT_UP_TO_DATE_ACP} - <a href="{U_VERSIONCHECK_FORCE}">{L_VERSIONCHECK_FORCE_UPDATE}</a> - <a href="{U_VERSIONCHECK}">{L_MORE}</a></p>
- </div>
+ <p>{L_VERSION_NOT_UP_TO_DATE_TITLE}</p>
<!-- ENDIF -->
<!-- ENDIF -->
+ <p><a href="{U_VERSIONCHECK_FORCE}">{L_VERSIONCHECK_FORCE_UPDATE}</a> &middot; <a href="{U_VERSIONCHECK}">{L_MORE_INFORMATION}</a></p>
+ </div>
<!-- IF S_REMOVE_INSTALL -->
<div class="errorbox">
diff --git a/phpBB/includes/acp/acp_main.php b/phpBB/includes/acp/acp_main.php
index 8a5918b558..815a55b5a9 100644
--- a/phpBB/includes/acp/acp_main.php
+++ b/phpBB/includes/acp/acp_main.php
@@ -345,15 +345,15 @@ class acp_main
add_log('admin', 'LOG_PURGE_CACHE');
break;
-
+
case 'purge_sessions':
if ((int) $user->data['user_type'] !== USER_FOUNDER)
{
trigger_error($user->lang['NO_AUTH_OPERATION'] . adm_back_link($this->u_action), E_USER_WARNING);
}
-
+
$tables = array(CONFIRM_TABLE, SESSIONS_TABLE);
-
+
foreach ($tables as $table)
{
switch ($db->sql_layer)
@@ -368,7 +368,7 @@ class acp_main
break;
}
}
-
+
// let's restore the admin session
$reinsert_ary = array(
'session_id' => (string) $user->session_id,
@@ -385,10 +385,10 @@ class acp_main
'session_admin' => 1,
'session_viewonline' => (int) $user->data['session_viewonline'],
);
-
+
$sql = 'INSERT INTO ' . SESSIONS_TABLE . ' ' . $db->sql_build_array('INSERT', $reinsert_ary);
$db->sql_query($sql);
-
+
add_log('admin', 'LOG_PURGE_SESSIONS');
break;
}
@@ -406,12 +406,13 @@ class acp_main
else
{
$latest_version_info = explode("\n", $latest_version_info);
- $latest_version = trim($latest_version_info[0]);
- $template->assign_var('S_VERSION_UP_TO_DATE',
- version_compare(
- str_replace('rc', 'RC', strtolower($config['version'])),
- str_replace('rc', 'RC', strtolower($latest_version)),
- '<') ? false : true);
+
+ $latest_version = str_replace('rc', 'RC', strtolower(trim($latest_version_info[0])));
+ $current_version = str_replace('rc', 'RC', strtolower($config['version']));
+
+ $template->assign_vars(array(
+ 'S_VERSION_UP_TO_DATE' => version_compare($current_version, $latest_version, '<') ? false : true,
+ ));
}
// Get forum statistics
diff --git a/phpBB/language/en/acp/common.php b/phpBB/language/en/acp/common.php
index 7dd5e5f0f9..0538880667 100644
--- a/phpBB/language/en/acp/common.php
+++ b/phpBB/language/en/acp/common.php
@@ -250,7 +250,8 @@ $lang = array_merge($lang, array(
'MANAGE' => 'Manage',
'MENU_TOGGLE' => 'Hide or display the side menu',
- 'MORE' => 'More&nbsp;&raquo;',
+ 'MORE' => 'More', // Not used at the moment
+ 'MORE_INFORMATION' => 'More information &raquo;',
'MOVE_DOWN' => 'Move down',
'MOVE_UP' => 'Move up',
@@ -377,7 +378,7 @@ $lang = array_merge($lang, array(
'USERS_PER_DAY' => 'Users per day',
'VALUE' => 'Value',
- 'VERSIONCHECK_FAIL' => 'Failed to obtain latest version',
+ 'VERSIONCHECK_FAIL' => 'Failed to obtain latest version information.',
'VERSIONCHECK_FORCE_UPDATE' => 'Re-Check version',
'VIEW_ADMIN_LOG' => 'View administrator log',
'VIEW_INACTIVE_USERS' => 'View inactive users',
diff --git a/phpBB/language/en/install.php b/phpBB/language/en/install.php
index bc2dfd6e16..ed8e4f3c20 100644
--- a/phpBB/language/en/install.php
+++ b/phpBB/language/en/install.php
@@ -564,6 +564,7 @@ $lang = array_merge($lang, array(
'VERSION_CHECK_EXPLAIN' => 'Checks to see if the version of phpBB you are currently running is up to date.',
'VERSION_NOT_UP_TO_DATE' => 'Your version of phpBB is not up to date. Please continue the update process.',
'VERSION_NOT_UP_TO_DATE_ACP'=> 'Your version of phpBB is not up to date.<br />Below you will find a link to the release announcement for the latest version as well as instructions on how to perform the update.',
+ 'VERSION_NOT_UP_TO_DATE_TITLE' => 'Your version of phpBB is not up to date.',
'VERSION_UP_TO_DATE' => 'Your installation is up to date, no updates are available for your version of phpBB. You may want to continue anyway to perform a file validity check.',
'VERSION_UP_TO_DATE_ACP' => 'Your installation is up to date, no updates are available for your version of phpBB. You do not need to update your installation.',
'VIEWING_FILE_CONTENTS' => 'Viewing file contents',