mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
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
This commit is contained in:
parent
a1807c8ddd
commit
01fe852ad8
4 changed files with 24 additions and 20 deletions
|
@ -14,21 +14,22 @@
|
||||||
|
|
||||||
<p>{L_ADMIN_INTRO}</p>
|
<p>{L_ADMIN_INTRO}</p>
|
||||||
|
|
||||||
|
<!-- version check -->
|
||||||
|
|
||||||
<!-- IF S_VERSIONCHECK_FAIL -->
|
<!-- IF S_VERSIONCHECK_FAIL -->
|
||||||
<div class="errorbox notice">
|
<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>
|
<p>{L_VERSIONCHECK_FAIL}</p>
|
||||||
</div>
|
|
||||||
<!-- ELSE -->
|
<!-- ELSE -->
|
||||||
<!-- IF S_VERSION_UP_TO_DATE -->
|
<!-- IF S_VERSION_UP_TO_DATE -->
|
||||||
<div class="successbox">
|
<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>
|
<p>{L_VERSION_UP_TO_DATE_ACP}</p>
|
||||||
</div>
|
|
||||||
<!-- ELSE -->
|
<!-- ELSE -->
|
||||||
<div class="errorbox">
|
<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>
|
<p>{L_VERSION_NOT_UP_TO_DATE_TITLE}</p>
|
||||||
</div>
|
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
|
<p><a href="{U_VERSIONCHECK_FORCE}">{L_VERSIONCHECK_FORCE_UPDATE}</a> · <a href="{U_VERSIONCHECK}">{L_MORE_INFORMATION}</a></p>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- IF S_REMOVE_INSTALL -->
|
<!-- IF S_REMOVE_INSTALL -->
|
||||||
<div class="errorbox">
|
<div class="errorbox">
|
||||||
|
|
|
@ -345,15 +345,15 @@ class acp_main
|
||||||
|
|
||||||
add_log('admin', 'LOG_PURGE_CACHE');
|
add_log('admin', 'LOG_PURGE_CACHE');
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'purge_sessions':
|
case 'purge_sessions':
|
||||||
if ((int) $user->data['user_type'] !== USER_FOUNDER)
|
if ((int) $user->data['user_type'] !== USER_FOUNDER)
|
||||||
{
|
{
|
||||||
trigger_error($user->lang['NO_AUTH_OPERATION'] . adm_back_link($this->u_action), E_USER_WARNING);
|
trigger_error($user->lang['NO_AUTH_OPERATION'] . adm_back_link($this->u_action), E_USER_WARNING);
|
||||||
}
|
}
|
||||||
|
|
||||||
$tables = array(CONFIRM_TABLE, SESSIONS_TABLE);
|
$tables = array(CONFIRM_TABLE, SESSIONS_TABLE);
|
||||||
|
|
||||||
foreach ($tables as $table)
|
foreach ($tables as $table)
|
||||||
{
|
{
|
||||||
switch ($db->sql_layer)
|
switch ($db->sql_layer)
|
||||||
|
@ -368,7 +368,7 @@ class acp_main
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// let's restore the admin session
|
// let's restore the admin session
|
||||||
$reinsert_ary = array(
|
$reinsert_ary = array(
|
||||||
'session_id' => (string) $user->session_id,
|
'session_id' => (string) $user->session_id,
|
||||||
|
@ -385,10 +385,10 @@ class acp_main
|
||||||
'session_admin' => 1,
|
'session_admin' => 1,
|
||||||
'session_viewonline' => (int) $user->data['session_viewonline'],
|
'session_viewonline' => (int) $user->data['session_viewonline'],
|
||||||
);
|
);
|
||||||
|
|
||||||
$sql = 'INSERT INTO ' . SESSIONS_TABLE . ' ' . $db->sql_build_array('INSERT', $reinsert_ary);
|
$sql = 'INSERT INTO ' . SESSIONS_TABLE . ' ' . $db->sql_build_array('INSERT', $reinsert_ary);
|
||||||
$db->sql_query($sql);
|
$db->sql_query($sql);
|
||||||
|
|
||||||
add_log('admin', 'LOG_PURGE_SESSIONS');
|
add_log('admin', 'LOG_PURGE_SESSIONS');
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -406,12 +406,13 @@ class acp_main
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$latest_version_info = explode("\n", $latest_version_info);
|
$latest_version_info = explode("\n", $latest_version_info);
|
||||||
$latest_version = trim($latest_version_info[0]);
|
|
||||||
$template->assign_var('S_VERSION_UP_TO_DATE',
|
$latest_version = str_replace('rc', 'RC', strtolower(trim($latest_version_info[0])));
|
||||||
version_compare(
|
$current_version = str_replace('rc', 'RC', strtolower($config['version']));
|
||||||
str_replace('rc', 'RC', strtolower($config['version'])),
|
|
||||||
str_replace('rc', 'RC', strtolower($latest_version)),
|
$template->assign_vars(array(
|
||||||
'<') ? false : true);
|
'S_VERSION_UP_TO_DATE' => version_compare($current_version, $latest_version, '<') ? false : true,
|
||||||
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get forum statistics
|
// Get forum statistics
|
||||||
|
|
|
@ -250,7 +250,8 @@ $lang = array_merge($lang, array(
|
||||||
|
|
||||||
'MANAGE' => 'Manage',
|
'MANAGE' => 'Manage',
|
||||||
'MENU_TOGGLE' => 'Hide or display the side menu',
|
'MENU_TOGGLE' => 'Hide or display the side menu',
|
||||||
'MORE' => 'More »',
|
'MORE' => 'More', // Not used at the moment
|
||||||
|
'MORE_INFORMATION' => 'More information »',
|
||||||
'MOVE_DOWN' => 'Move down',
|
'MOVE_DOWN' => 'Move down',
|
||||||
'MOVE_UP' => 'Move up',
|
'MOVE_UP' => 'Move up',
|
||||||
|
|
||||||
|
@ -377,7 +378,7 @@ $lang = array_merge($lang, array(
|
||||||
'USERS_PER_DAY' => 'Users per day',
|
'USERS_PER_DAY' => 'Users per day',
|
||||||
|
|
||||||
'VALUE' => 'Value',
|
'VALUE' => 'Value',
|
||||||
'VERSIONCHECK_FAIL' => 'Failed to obtain latest version',
|
'VERSIONCHECK_FAIL' => 'Failed to obtain latest version information.',
|
||||||
'VERSIONCHECK_FORCE_UPDATE' => 'Re-Check version',
|
'VERSIONCHECK_FORCE_UPDATE' => 'Re-Check version',
|
||||||
'VIEW_ADMIN_LOG' => 'View administrator log',
|
'VIEW_ADMIN_LOG' => 'View administrator log',
|
||||||
'VIEW_INACTIVE_USERS' => 'View inactive users',
|
'VIEW_INACTIVE_USERS' => 'View inactive users',
|
||||||
|
|
|
@ -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_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' => '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_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' => '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.',
|
'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',
|
'VIEWING_FILE_CONTENTS' => 'Viewing file contents',
|
||||||
|
|
Loading…
Add table
Reference in a new issue