summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/system/system.install19
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());