$entry=$types[$errno].': '.$message.' in '.$filename.' on line '.$line.'.';
if($errno&(E_ALL^E_NOTICE)){
watchdog('error',t('%error: %message in %file on line %line.',array('%error'=>$types[$errno],'%message'=>$message,'%file'=>$filename,'%line'=>$line)));
@@ -185,16 +185,19 @@ function system_view_general() {
$group.=form_textarea(t('Footer message'),'site_footer',variable_get('site_footer',''),70,5,t('This text will be displayed at the bottom of each page. Useful for adding a copyright notice to your pages.'));
$group.=form_textfield(t('Anonymous user'),'anonymous',variable_get('anonymous','Anonymous'),70,70,t('The name used to indicate anonymous users.'));
$group.=form_textfield(t('Default front page'),'site_frontpage',variable_get('site_frontpage','node'),70,70,t('The home page displays content from this relative URL. If you are not using clean URLs, specify the part after "?q=". If unsure, specify "node".'));
$group.=form_textfield(t('Default 403 (access denied) page'),'site_403',variable_get('site_403',''),70,70,t('This page is displayed when the requested document is denied to the current user. If you are not using clean URLs, specify the part after "?q=". If unsure, specify nothing.'));
$group.=form_textfield(t('Default 404 (not found) page'),'site_404',variable_get('site_404',''),70,70,t('This page is displayed when no other content matches the requested document. If you are not using clean URLs, specify the part after "?q=". If unsure, specify nothing.'));
$group.=form_radios(t('Clean URLs'),'clean_url',variable_get('clean_url',0),array(t('Disabled'),t('Enabled')),t('Enable or disable clean URLs. If enabled, you\'ll need <code>ModRewrite</code> support. See also the <code>.htaccess</code> file in Drupal\'s top-level directory.'));
$group.=form_select(t('Discard log entries older than'),'watchdog_clear',variable_get('watchdog_clear',604800),$period,t('The time watchdog entries should be kept. Older entries will be automatically discarded. Requires crontab.'));
$group=form_textfield(t('Default 403 (access denied) page'),'site_403',variable_get('site_403',''),70,70,t('This page is displayed when the requested document is denied to the current user. If you are not using clean URLs, specify the part after "?q=". If unsure, specify nothing.'));
$group.=form_textfield(t('Default 404 (not found) page'),'site_404',variable_get('site_404',''),70,70,t('This page is displayed when no other content matches the requested document. If you are not using clean URLs, specify the part after "?q=". If unsure, specify nothing.'));
$group.=form_select(t('Error reporting'),'error_level',variable_get('error_level',1),array('Write errors to the log','Write errors to the log and to the screen'),t('Where Drupal, PHP and SQL errors are logged. On a production server it is recommended that errors are only written to the error log. On a test server it can be helpful to write logs to the screen.'));
$group.=form_select(t('Discard log entries older than'),'watchdog_clear',variable_get('watchdog_clear',604800),$period,t('The time log entries should be kept. Older entries will be automatically discarded. Requires crontab.'));
$output=form_group(t('General settings'),$group);
$output.=form_group(t('Error handling'),$group);
// caching:
$group=form_radios(t('Cache support'),'cache',variable_get('cache',0),array(t('Disabled'),t('Enabled')),t('Enable or disable the caching of rendered pages. When caching is enabled, Drupal will flush the cache when required to make sure updates take effect immediately. Check the <a href="%documentation">cache documentation</a> for information on Drupal\'s cache system.',array('%documentation'=>url('admin/help',NULL,NULL,'cache'))));
@@ -185,16 +185,19 @@ function system_view_general() {
$group.=form_textarea(t('Footer message'),'site_footer',variable_get('site_footer',''),70,5,t('This text will be displayed at the bottom of each page. Useful for adding a copyright notice to your pages.'));
$group.=form_textfield(t('Anonymous user'),'anonymous',variable_get('anonymous','Anonymous'),70,70,t('The name used to indicate anonymous users.'));
$group.=form_textfield(t('Default front page'),'site_frontpage',variable_get('site_frontpage','node'),70,70,t('The home page displays content from this relative URL. If you are not using clean URLs, specify the part after "?q=". If unsure, specify "node".'));
$group.=form_textfield(t('Default 403 (access denied) page'),'site_403',variable_get('site_403',''),70,70,t('This page is displayed when the requested document is denied to the current user. If you are not using clean URLs, specify the part after "?q=". If unsure, specify nothing.'));
$group.=form_textfield(t('Default 404 (not found) page'),'site_404',variable_get('site_404',''),70,70,t('This page is displayed when no other content matches the requested document. If you are not using clean URLs, specify the part after "?q=". If unsure, specify nothing.'));
$group.=form_radios(t('Clean URLs'),'clean_url',variable_get('clean_url',0),array(t('Disabled'),t('Enabled')),t('Enable or disable clean URLs. If enabled, you\'ll need <code>ModRewrite</code> support. See also the <code>.htaccess</code> file in Drupal\'s top-level directory.'));
$group.=form_select(t('Discard log entries older than'),'watchdog_clear',variable_get('watchdog_clear',604800),$period,t('The time watchdog entries should be kept. Older entries will be automatically discarded. Requires crontab.'));
$group=form_textfield(t('Default 403 (access denied) page'),'site_403',variable_get('site_403',''),70,70,t('This page is displayed when the requested document is denied to the current user. If you are not using clean URLs, specify the part after "?q=". If unsure, specify nothing.'));
$group.=form_textfield(t('Default 404 (not found) page'),'site_404',variable_get('site_404',''),70,70,t('This page is displayed when no other content matches the requested document. If you are not using clean URLs, specify the part after "?q=". If unsure, specify nothing.'));
$group.=form_select(t('Error reporting'),'error_level',variable_get('error_level',1),array('Write errors to the log','Write errors to the log and to the screen'),t('Where Drupal, PHP and SQL errors are logged. On a production server it is recommended that errors are only written to the error log. On a test server it can be helpful to write logs to the screen.'));
$group.=form_select(t('Discard log entries older than'),'watchdog_clear',variable_get('watchdog_clear',604800),$period,t('The time log entries should be kept. Older entries will be automatically discarded. Requires crontab.'));
$output=form_group(t('General settings'),$group);
$output.=form_group(t('Error handling'),$group);
// caching:
$group=form_radios(t('Cache support'),'cache',variable_get('cache',0),array(t('Disabled'),t('Enabled')),t('Enable or disable the caching of rendered pages. When caching is enabled, Drupal will flush the cache when required to make sure updates take effect immediately. Check the <a href="%documentation">cache documentation</a> for information on Drupal\'s cache system.',array('%documentation'=>url('admin/help',NULL,NULL,'cache'))));