Location: PHPKode > projects > MyBB - Bullitin Board > Upload/admin/modules/tools/php_info.php
<?php
/**
 * MyBB 1.6
 * Copyright 2010 MyBB Group, All Rights Reserved
 *
 * Website: http://mybb.com
 * License: http://mybb.com/about/license
 *
 * $Id: php_info.php 5297 2010-12-28 22:01:14Z Tomm $
 */

// Disallow direct access to this file for security reasons
if(!defined("IN_MYBB"))
{
	die("Direct initialization of this file is not allowed.<br /><br />Please make sure IN_MYBB is defined.");
}

if($mybb->input['action'] == 'phpinfo')
{
	$plugins->run_hooks("admin_tools_php_info_phpinfo");
	
	// Log admin action
	log_admin_action();

	phpinfo();
	exit;
}

$page->add_breadcrumb_item($lang->php_info, "index.php?module=tools-php_info");

$plugins->run_hooks("admin_tools_php_info_begin");

if(!$mybb->input['action'])
{
	$plugins->run_hooks("admin_tools_php_info_start");
	
	$page->output_header($lang->php_info);
	
	echo "<iframe src=\"index.php?module=tools-php_info&amp;action=phpinfo\" width=\"100%\" height=\"500\" frameborder=\"0\">{$lang->browser_no_iframe_support}</iframe>";
	
	$page->output_footer();
}

?>
Return current item: MyBB - Bullitin Board