You are here

function systeminfo_admin_overview_php in System Information 7.2

1 call to systeminfo_admin_overview_php()
systeminfo_admin_overview in ./systeminfo.admin.inc
Menu callback; retrieves overview page.

File

./systeminfo.admin.inc, line 85
Admin page callbacks for the systeminfo module.

Code

function systeminfo_admin_overview_php() {
  $rows = array();
  $rows[] = array(
    t('Version'),
    phpversion(),
  );
  $rows[] = array(
    t('Magic quotes GPC'),
    ini_get('magic_quotes_gpc') ? t('On') : t('Off'),
  );
  $rows[] = array(
    t('Magic quotes runtime'),
    ini_get('magic_quotes_runtime') ? t('On') : t('Off'),
  );
  $rows[] = array(
    t('Max execution time'),
    ini_get('max_execution_time'),
  );
  $rows[] = array(
    t('Max input time'),
    ini_get('max_input_time'),
  );
  $rows[] = array(
    t('Memory limit'),
    ini_get('memory_limit'),
  );
  $rows[] = array(
    t('Post max size'),
    ini_get('post_max_size'),
  );
  $rows[] = array(
    t('Register globals'),
    ini_get('register_globals') ? t('On') : t('Off'),
  );
  $rows[] = array(
    t('Safe mode'),
    ini_get('safe_mode') ? t('On') : t('Off'),
  );
  $rows[] = array(
    t('Session cache limiter'),
    ini_get('session.cache_limiter'),
  );
  $cookie_params = session_get_cookie_params();
  $rows[] = array(
    t('Session cookie domain'),
    !empty($cookie_params['domain']) ? $cookie_params['domain'] : theme('placeholder', t('no value')),
  );
  $rows[] = array(
    t('Session name'),
    session_name(),
  );
  $rows[] = array(
    t('Session save handler'),
    ini_get('session.save_handler'),
  );
  $rows[] = array(
    t('Upload max filesize'),
    ini_get('upload_max_filesize'),
  );
  $output = '<h3>' . t('PHP') . '</h3>';
  $output .= '<p>' . t('More information about the current state of PHP can be found <a href="@php" title="Display current state of PHP.">here</a>.', array(
    '@php' => url('admin/reports/systeminfo/php'),
  )) . '</p>';
  $output .= theme('table', array(
    'header' => array(),
    'rows' => $rows,
    'attributes' => array(
      'class' => array(
        'systeminfo',
        'systeminfo_width50',
      ),
    ),
  ));
  return $output;
}