[ Index ]

PHP Cross Reference of MyBB 1.8.38

title

Body

[close]

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

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


2005 - 2021 © MyBB.de | Alle Rechte vorbehalten! | Sponsor: netcup Cross-referenced by PHPXref