ShellBanner
System:Linux MiraNet 3.0.0-14-generic-pae #23-Ubuntu SMP Mon Nov 21 22:07:10 UTC 2011 i686
Software:Apache. PHP/5.3.6-13ubuntu3.10
ID:uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
Safe Mode:OFF
Open_Basedir:OFF
Freespace:27.26 GB of 70.42 GB (38.72%)
MySQL: ON MSSQL: OFF Oracle: OFF PostgreSQL: OFF Curl: OFF Sockets: ON Fetch: OFF Wget: ON Perl: ON
Disabled Functions: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,

/ http/ guitar/ modules/ update/ - dr-xr-xr-x

Directory:
Viewing file:     update.settings.inc (4.68 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/**
 * @file
 * Code required only for the update status settings form.
 */

/**
 * Form constructor for the update settings form.
 *
 * @see update_settings_validate()
 * @see update_settings_submit()
 * @ingroup forms
 */
function update_settings($form) {
  
$form['update_check_frequency'] = array(
    
'#type' => 'radios',
    
'#title' => t('Check for updates'),
    
'#default_value' => variable_get('update_check_frequency'1),
    
'#options' => array(
      
'1' => t('Daily'),
      
'7' => t('Weekly'),
    ),
    
'#description' => t('Select how frequently you want to automatically check for new releases of your currently installed modules and themes.'),
  );

  
$form['update_check_disabled'] = array(
    
'#type' => 'checkbox',
    
'#title' => t('Check for updates of disabled modules and themes'),
    
'#default_value' => variable_get('update_check_disabled'FALSE),
  );

  
$notify_emails variable_get('update_notify_emails', array());
  
$form['update_notify_emails'] = array(
    
'#type' => 'textarea',
    
'#title' => t('E-mail addresses to notify when updates are available'),
    
'#rows' => 4,
    
'#default_value' => implode("\n"$notify_emails),
    
'#description' => t('Whenever your site checks for available updates and finds new releases, it can notify a list of users via e-mail. Put each address on a separate line. If blank, no e-mails will be sent.'),
  );

  
$form['update_notification_threshold'] = array(
    
'#type' => 'radios',
    
'#title' => t('E-mail notification threshold'),
    
'#default_value' => variable_get('update_notification_threshold''all'),
    
'#options' => array(
      
'all' => t('All newer versions'),
      
'security' => t('Only security updates'),
    ),
    
'#description' => t('You can choose to send e-mail only if a security update is available, or to be notified about all newer versions. If there are updates available of Drupal core or any of your installed modules and themes, your site will always print a message on the <a href="@status_report">status report</a> page, and will also display an error message on administration pages if there is a security update.', array('@status_report' => url('admin/reports/status')))
  );

  
$form system_settings_form($form);
  
// Custom validation callback for the email notification setting.
  
$form['#validate'][] = 'update_settings_validate';
  
// We need to call our own submit callback first, not the one from
  // system_settings_form(), so that we can process and save the emails.
  
unset($form['#submit']);

  return 
$form;
}

/**
 * Form validation handler for update_settings().
 *
 * Validates the e-mail addresses and ensures the field is formatted correctly.
 *
 * @see update_settings_submit()
 */
function update_settings_validate($form, &$form_state) {
  if (!empty(
$form_state['values']['update_notify_emails'])) {
    
$valid = array();
    
$invalid = array();
    foreach (
explode("\n"trim($form_state['values']['update_notify_emails'])) as $email) {
      
$email trim($email);
      if (!empty(
$email)) {
        if (
valid_email_address($email)) {
          
$valid[] = $email;
        }
        else {
          
$invalid[] = $email;
        }
      }
    }
    if (empty(
$invalid)) {
      
$form_state['notify_emails'] = $valid;
    }
    elseif (
count($invalid) == 1) {
      
form_set_error('update_notify_emails't('%email is not a valid e-mail address.', array('%email' => reset($invalid))));
    }
    else {
      
form_set_error('update_notify_emails't('%emails are not valid e-mail addresses.', array('%emails' => implode(', '$invalid))));
    }
  }
}

/**
 * Form submission handler for update_settings().
 *
 * Also invalidates the cache of available updates if the "Check for updates of
 * disabled modules and themes" setting is being changed. The available updates
 * report needs to refetch available update data after this setting changes or
 * it would show misleading things (e.g., listing the disabled projects on the
 * site with the "No available releases found" warning).
 *
 * @see update_settings_validate()
 */
function update_settings_submit($form$form_state) {
  
$op $form_state['values']['op'];

  if (empty(
$form_state['notify_emails'])) {
    
variable_del('update_notify_emails');
  }
  else {
    
variable_set('update_notify_emails'$form_state['notify_emails']);
  }
  unset(
$form_state['notify_emails']);
  unset(
$form_state['values']['update_notify_emails']);

  
// See if the update_check_disabled setting is being changed, and if so,
  // invalidate all cached update status data.
  
$check_disabled variable_get('update_check_disabled'FALSE);
  if (
$form_state['values']['update_check_disabled'] != $check_disabled) {
    
_update_cache_clear();
  }

  
system_settings_form_submit($form$form_state);
}
Command:
Quick Commands:
Upload:
[Read-Only] Max size: 100MB
PHP Filesystem: <@ Ú
Search File:
regexp
Create File:
Overwrite [Read-Only]
View File:
Mass Defacement:
[+] Main Directory: [+] Defacement Url:
LmfaoX Shell - Private Build [BETA] - v0.1 -; Generated: 0.299 seconds