diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-08-28 11:42:56 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-08-28 11:42:56 +0000 |
commit | 137270097792a030114e0e92765fda9b3329ac1d (patch) | |
tree | 49c4d282cce5a843ba49d401e8ef799595219895 /modules/system/system.install | |
parent | 43d73f81c93ceda3b3380058135169dc340a7146 (diff) | |
download | brdo-137270097792a030114e0e92765fda9b3329ac1d.tar.gz brdo-137270097792a030114e0e92765fda9b3329ac1d.tar.bz2 |
#170638 by JirkaRybka and chx: move update access variable to settings.php, so we can check whether it is wide open, and we have one place for settings
Diffstat (limited to 'modules/system/system.install')
-rw-r--r-- | modules/system/system.install | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/modules/system/system.install b/modules/system/system.install index 6bd3d970f..79f732b85 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -105,7 +105,7 @@ function system_requirements($phase) { } $requirements['cron'] += array('description' => ''); - $requirements['cron']['description'] .= ' '. t('You can <a href="@cron">run cron manually</a>.', array('@cron' => url('admin/logs/status/run-cron'))); + $requirements['cron']['description'] .= ' '. $t('You can <a href="@cron">run cron manually</a>.', array('@cron' => url('admin/logs/status/run-cron'))); $requirements['cron']['title'] = $t('Cron maintenance tasks'); } @@ -166,6 +166,23 @@ function system_requirements($phase) { } } + // Verify the update.php access setting + if ($phase == 'runtime') { + if (!empty($GLOBALS['update_free_access'])) { + $requirements['update access'] = array( + 'value' => $t('Not protected'), + 'severity' => REQUIREMENT_ERROR, + 'description' => $t('The update.php script is accessible to everyone without authentication check, which is a security risk. You must change the $update_free_access value in your settings.php back to FALSE.'), + ); + } + else { + $requirements['update access'] = array( + 'value' => $t('Protected'), + ); + } + $requirements['update access']['title'] = $t('Access to update.php'); + } + // Test Unicode library include_once './includes/unicode.inc'; $requirements = array_merge($requirements, unicode_requirements()); |