[ Index ]

PHP Cross Reference of MantisBT

title

Body

[close]

/ -> manage_overview_page.php (source)

   1  <?php
   2  # MantisBT - A PHP based bugtracking system
   3  
   4  # MantisBT is free software: you can redistribute it and/or modify
   5  # it under the terms of the GNU General Public License as published by
   6  # the Free Software Foundation, either version 2 of the License, or
   7  # (at your option) any later version.
   8  #
   9  # MantisBT is distributed in the hope that it will be useful,
  10  # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12  # GNU General Public License for more details.
  13  #
  14  # You should have received a copy of the GNU General Public License
  15  # along with MantisBT.  If not, see <http://www.gnu.org/licenses/>.
  16  
  17  /**
  18   * @package MantisBT
  19   * @copyright Copyright (C) 2002 - 2011  MantisBT Team - mantisbt-dev@lists.sourceforge.net
  20   * @link http://www.mantisbt.org
  21   *
  22   * @uses core.php
  23   * @uses access_api.php
  24   * @uses authentication_api.php
  25   * @uses config_api.php
  26   * @uses constant_inc.php
  27   * @uses current_user_api.php
  28   * @uses event_api.php
  29   * @uses helper_api.php
  30   * @uses html_api.php
  31   * @uses lang_api.php
  32   */
  33  
  34  /**
  35   * MantisBT Core API's
  36   */
  37  require_once ( 'core.php' );
  38  require_api( 'access_api.php' );
  39  require_api( 'authentication_api.php' );
  40  require_api( 'config_api.php' );
  41  require_api( 'constant_inc.php' );
  42  require_api( 'current_user_api.php' );
  43  require_api( 'event_api.php' );
  44  require_api( 'helper_api.php' );
  45  require_api( 'html_api.php' );
  46  require_api( 'lang_api.php' );
  47  
  48  auth_reauthenticate();
  49  access_ensure_global_level( config_get( 'manage_site_threshold' ) );
  50  
  51  $t_version_suffix = config_get_global( 'version_suffix' );
  52  
  53  html_page_top( lang_get( 'manage_link' ) );
  54  
  55  print_manage_menu();
  56  ?>
  57  <div id="manage-overview-div" class="table-container">
  58      <h2><?php echo lang_get( 'site_information' ) ?></h2>
  59      <table id="manage-overview-table" cellspacing="1" cellpadding="5" border="1">
  60          <tr <?php echo helper_alternate_class() ?>>
  61              <th class="category"><?php echo lang_get( 'mantis_version' ) ?></th>
  62              <td><?php echo MANTIS_VERSION, ( $t_version_suffix ? " $t_version_suffix" : '' ) ?></td>
  63          </tr>
  64          <tr <?php echo helper_alternate_class() ?>>
  65              <th class="category"><?php echo lang_get( 'schema_version' ) ?></th>
  66              <td><?php echo config_get( 'database_version' ) ?></td>
  67          </tr>
  68          <tr class="spacer">
  69              <td colspan="2"></td>
  70          </tr>
  71      <?php
  72      $t_is_admin = current_user_is_administrator();
  73      if ( $t_is_admin ) {
  74      ?>
  75          <tr <?php echo helper_alternate_class() ?>>
  76              <th class="category"><?php echo lang_get( 'site_path' ) ?></th>
  77              <td><?php echo config_get( 'absolute_path' ) ?></td>
  78          </tr>
  79          <tr <?php echo helper_alternate_class() ?>>
  80              <th class="category"><?php echo lang_get( 'core_path' ) ?></th>
  81              <td><?php echo config_get( 'core_path' ) ?></td>
  82          </tr>
  83          <tr <?php echo helper_alternate_class() ?>>
  84              <th class="category"><?php echo lang_get( 'plugin_path' ) ?></th>
  85              <td><?php echo config_get( 'plugin_path' ) ?></td>
  86          </tr>
  87          <tr class="spacer">
  88              <td colspan="2"></td>
  89          </tr>
  90      <?php
  91      }
  92  
  93      event_signal( 'EVENT_MANAGE_OVERVIEW_INFO', array( $t_is_admin ) )
  94      ?>
  95      </table>
  96  </div>
  97  <?php
  98  html_page_bottom();
  99  


Generated: Thu Jul 28 15:48:31 2011 Cross-referenced by PHPXref 0.7