php-info.phtml #1

  • //
  • guest/
  • perforce_software/
  • chronicle/
  • main/
  • application/
  • system/
  • views/
  • scripts/
  • php-info.phtml
  • View
  • Commits
  • Open Download .zip Download (1 KB)
<div class="status-wrapper">
<?  if (is_array($this->content)) {
        foreach ($this->content as $title => $value) {
            if (is_array($value)) {
                if (array_key_exists('status', $value)) {
                    echo $this->partial('indicator.phtml',
                        array(
                            'label'     => $title,
                            'status'    => $value['status'],
                            'class'     => $value['displayClass']
                        )
                    );
                }
            } else if ($title == 'phpinfo') { ?>
 <div class="status phpinfo"><?
                // trim off page header/footer markup we don't need
                $value = preg_replace('/<!DOCTYPE html.+<body><div class="center">/s', '', $value);
                $value = preg_replace('!</div></body></html>!', '', $value);
                echo $value;
?></div>
<?          } else {
                echo $this->partial('indicator.phtml',
                    array(
                        'label'     => $title,
                        'status'    => '',
                        'class'     => 'good',
                        'message'   => $value
                    )
                );
            }
        }
    } else {
        echo $this->escape($this->content);
    }
?>
</div>
# Change User Description Committed
#1 16170 perforce_software Move Chronicle files to follow new path scheme for branching.
//guest/perforce_software/chronicle/application/system/views/scripts/php-info.phtml
#1 8972 Matt Attaway Initial add of the Chronicle source code