[ Index ]

PHP Cross Reference of MyBB

title

Body

[close]

/admin/modules/tools/ -> php_info.php (source)

   1  <?php
   2  /**
   3   * MyBB 1.6
   4   * Copyright 2010 MyBB Group, All Rights Reserved
   5   *
   6   * Website: http://mybb.com
   7   * License: http://mybb.com/about/license
   8   *
   9   * $Id: php_info.php 5297 2010-12-28 22:01:14Z Tomm $
  10   */
  11  
  12  // Disallow direct access to this file for security reasons
  13  if(!defined("IN_MYBB"))
  14  {
  15      die("Direct initialization of this file is not allowed.<br /><br />Please make sure IN_MYBB is defined.");
  16  }
  17  
  18  if($mybb->input['action'] == 'phpinfo')
  19  {
  20      $plugins->run_hooks("admin_tools_php_info_phpinfo");
  21      
  22      // Log admin action
  23      log_admin_action();
  24  
  25      phpinfo();
  26      exit;
  27  }
  28  
  29  $page->add_breadcrumb_item($lang->php_info, "index.php?module=tools-php_info");
  30  
  31  $plugins->run_hooks("admin_tools_php_info_begin");
  32  
  33  if(!$mybb->input['action'])
  34  {
  35      $plugins->run_hooks("admin_tools_php_info_start");
  36      
  37      $page->output_header($lang->php_info);
  38      
  39      echo "<iframe src=\"index.php?module=tools-php_info&amp;action=phpinfo\" width=\"100%\" height=\"500\" frameborder=\"0\">{$lang->browser_no_iframe_support}</iframe>";
  40      
  41      $page->output_footer();
  42  }
  43  
  44  ?>


Generated: Tue Oct 8 19:19:50 2013 Cross-referenced by PHPXref 0.7.1