Add a warning for users of old PHP versions about ending support.

git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10458 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Josh Woody 2010-01-26 15:26:07 +00:00
parent 62d7e3c634
commit 8fa06090c4
4 changed files with 17 additions and 1 deletions

View file

@ -40,6 +40,12 @@
</div> </div>
<!-- ENDIF --> <!-- ENDIF -->
<!-- IF S_PHP_VERSION_OLD -->
<div class="errorbox notice">
<p>{L_PHP_VERSION_OLD}</p>
</div>
<!-- ENDIF -->
<table cellspacing="1"> <table cellspacing="1">
<caption>{L_FORUM_STATS}</caption> <caption>{L_FORUM_STATS}</caption>
<col class="col1" /><col class="col2" /><col class="col1" /><col class="col2" /> <col class="col1" /><col class="col2" /><col class="col1" /><col class="col2" />

View file

@ -164,10 +164,10 @@
<li>[Change] SQLite is no longer autoloaded by the installer. (Bug #56105)</li> <li>[Change] SQLite is no longer autoloaded by the installer. (Bug #56105)</li>
<li>[Change] Friends and foes will not show up as private message rule options if their respective UCP modules are disabled. (Bug #51155)</li> <li>[Change] Friends and foes will not show up as private message rule options if their respective UCP modules are disabled. (Bug #51155)</li>
<li>[Change] Offer for guests to log in for egosearch and unreadposts search before the search permissions check. (Bug #51585)</li> <li>[Change] Offer for guests to log in for egosearch and unreadposts search before the search permissions check. (Bug #51585)</li>
<li>[Change] Show warning box for users of PHP &lt; 5.2.0 about phpBB ending support.</li>
<li>[Change] Disallow deleting the last question of the Q&amp;A CAPTCHA.</li> <li>[Change] Disallow deleting the last question of the Q&amp;A CAPTCHA.</li>
<li>[Change] Tweak Q&amp;A CAPTCHA garbage collection.</li> <li>[Change] Tweak Q&amp;A CAPTCHA garbage collection.</li>
<li>[Change] Show a proper preview for the Q&amp;A CAPTCHA. (Bug #56365)</li> <li>[Change] Show a proper preview for the Q&amp;A CAPTCHA. (Bug #56365)</li>
<li>[Feature] Ability to use HTTP authentication in ATOM feeds by passing the GET parameter &quot;auth=http&quot;.</li> <li>[Feature] Ability to use HTTP authentication in ATOM feeds by passing the GET parameter &quot;auth=http&quot;.</li>
</ul> </ul>

View file

@ -398,6 +398,14 @@ class acp_main
// Version check // Version check
$user->add_lang('install'); $user->add_lang('install');
if ($auth->acl_get('a_server') && version_compare(PHP_VERSION, '5.2.0', '<'))
{
$template->assign_vars(array(
'S_PHP_VERSION_OLD' => true,
'L_PHP_VERSION_OLD' => sprintf($user->lang['PHP_VERSION_OLD'], '<a href="http://www.phpbb.com/community/viewtopic.php?f=14&amp;t=1958605">', '</a>'),
));
}
$latest_version_info = false; $latest_version_info = false;
if (($latest_version_info = obtain_latest_version_info(request_var('versioncheck_force', false))) === false) if (($latest_version_info = obtain_latest_version_info(request_var('versioncheck_force', false))) === false)
{ {

View file

@ -339,6 +339,8 @@ $lang = array_merge($lang, array(
'NUMBER_USERS' => 'Number of users', 'NUMBER_USERS' => 'Number of users',
'NUMBER_ORPHAN' => 'Orphan attachments', 'NUMBER_ORPHAN' => 'Orphan attachments',
'PHP_VERSION_OLD' => 'The version of PHP on this server will no longer be supported by future versions of phpBB. %sDetails%s',
'POSTS_PER_DAY' => 'Posts per day', 'POSTS_PER_DAY' => 'Posts per day',
'PURGE_CACHE' => 'Purge the cache', 'PURGE_CACHE' => 'Purge the cache',