[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/administrator/components/com_admin/tmpl/ -> sysinfo_phpinfo.php (source)

   1  <?php
   2  /**
   3   * @version        $Id: sysinfo_phpinfo.php 10381 2008-06-01 03:35:53Z pasamio $
   4   */
   5  // No direct access
   6  defined('_JEXEC') or die('Restricted access');
   7  
   8  ?>
   9  <fieldset class="adminform">
  10      <legend><?php echo JText::_( 'PHP Information' ); ?></legend>
  11          <table class="adminform">
  12          <thead>
  13          <tr>
  14              <th colspan="2">
  15                  &nbsp;
  16              </th>
  17          </tr>
  18          </thead>
  19          <tfoot>
  20          <tr>
  21              <th colspan="2">
  22                  &nbsp;
  23              </th>
  24          </tr>
  25          </tfoot>
  26          <tbody>
  27          <tr>
  28              <td>
  29                  <?php
  30                  ob_start();
  31                  phpinfo(INFO_GENERAL | INFO_CONFIGURATION | INFO_MODULES);
  32                  $phpinfo = ob_get_contents();
  33                  ob_end_clean();
  34  
  35                  preg_match_all('#<body[^>]*>(.*)</body>#siU', $phpinfo, $output);
  36                  $output = preg_replace('#<table#', '<table class="adminlist" align="center"', $output[1][0]);
  37                  $output = preg_replace('#(\w),(\w)#', '\1, \2', $output);
  38                  $output = preg_replace('#border="0" cellpadding="3" width="600"#', 'border="0" cellspacing="1" cellpadding="4" width="95%"', $output);
  39                  $output = preg_replace('#<hr />#', '', $output);
  40                  $output = str_replace('<div class="center">', '', $output);
  41                  $output = str_replace('</div>', '', $output);
  42  
  43                  echo $output;
  44                  ?>
  45              </td>
  46          </tr>
  47          </tbody>
  48          </table>
  49  </fieldset>


Generated: Wed Mar 28 15:54:07 2012 Cross-referenced by PHPXref 0.7.1