Ejemplo n.º 1
0
function system_info()
{
    $version = $GLOBALS['ext_version'];
    //$tab = extGetParam( $_REQUEST, 'tab', 'tab1' );
    $width = 400;
    // width of 100%
    ?>
	<br />
	<div id="sysinfo">
	<div id="system-page" class="x-tab" title="<?php 
    echo ext_Lang::msg('sisysteminfo');
    ?>
">
	
	<table class="adminform">
	<tr>
		<td valign="top" width="250" style="font-weight:bold;">
		Logged in as:
		</td>
		<td><?php 
    echo $_SESSION['s_user'];
    ?>
</td>
	<tr>
		<td valign="top" width="250" style="font-weight:bold;">
			<?php 
    echo ext_lang::msg('sibuilton');
    ?>
:
		</td>
		<td>
		<?php 
    echo php_uname();
    ?>
		</td>
	</tr>
	<tr>
		<td valign="top" style="font-weight:bold;">
			<?php 
    echo ext_lang::msg('siphpversion');
    ?>
:
		</td>
		<td>
		<?php 
    echo phpversion();
    ?>
		&nbsp;
		<?php 
    echo phpversion() >= '4.3' ? '' : $GLOBALS['messages']['siphpupdate'];
    ?>
		</td>
	</tr>
	<tr>
		<td style="font-weight:bold;">
			<?php 
    echo ext_lang::msg('siwebserver');
    ?>
:
		</td>
		<td>
		<?php 
    echo get_server_software();
    ?>
		</td>
	</tr>
	<tr>
		<td style="font-weight:bold;">
			<?php 
    echo ext_lang::msg('siwebsphpif');
    ?>
:
		</td>
		<td>
		<?php 
    echo php_sapi_name();
    ?>
		</td>
	</tr>
	<tr>
		<td style="font-weight:bold;">
			<?php 
    echo ext_lang::msg('simamboversion');
    ?>
:
		</td>
		<td>
		<?php 
    echo $version;
    ?>
		</td>
	</tr>
	<tr>
		<td style="font-weight:bold;">
			<?php 
    echo ext_lang::msg('siuseragent');
    ?>
:
		</td>
		<td>
		<?php 
    echo phpversion() <= "4.2.1" ? getenv("HTTP_USER_AGENT") : $_SERVER['HTTP_USER_AGENT'];
    ?>
		</td>
	</tr>
	<tr>
		<td valign="top" style="font-weight:bold;">
			<?php 
    echo ext_lang::msg('sirelevantsettings');
    ?>
:
		</td>
		<td>
			<table cellspacing="1" cellpadding="1" border="0">
			<tr>
				<td valign="top">
					<?php 
    echo ext_lang::msg('sisafemode');
    ?>
:
				</td>
				<td>
				<?php 
    echo get_php_setting('safe_mode', 0);
    ?>
				</td>
			</tr>
			<tr>
				<td>
					<?php 
    echo ext_lang::msg('sibasedir');
    ?>
:
				</td>
				<td>
				<?php 
    echo ($ob = ini_get('open_basedir')) ? $ob : 'none';
    ?>
				</td>
			</tr>
			<tr>
				<td>
					<?php 
    echo ext_lang::msg('sidisplayerrors');
    ?>
:
				</td>
				<td>
				<?php 
    echo get_php_setting('display_errors');
    ?>
				</td>
			</tr>
			<tr>
				<td>
					<?php 
    echo ext_lang::msg('sishortopentags');
    ?>
:
				</td>
				<td>
				<?php 
    echo get_php_setting('short_open_tag');
    ?>
				</td>
			</tr>
			<tr>
				<td>
					<?php 
    echo ext_lang::msg('sifileuploads');
    ?>
:
				</td>
				<td>
				<?php 
    echo get_php_setting('file_uploads');
    ?>
				</td>
			</tr>
			<tr>
				<td>
					<?php 
    echo ext_lang::msg('simagicquotes');
    ?>
:
				</td>
				<td>
				<?php 
    echo get_php_setting('magic_quotes_gpc');
    ?>
				</td>
			</tr>
			<tr>
				<td>
					<?php 
    echo ext_lang::msg('siregglobals');
    ?>
:
				</td>
				<td>
				<?php 
    echo get_php_setting('register_globals', 0);
    ?>
				</td>
			</tr>
			<tr>
				<td>
					<?php 
    echo ext_lang::msg('sioutputbuf');
    ?>
:
				</td>
				<td>
				<?php 
    echo get_php_setting('output_buffering', 0);
    ?>
				</td>
			</tr>
			<tr>
				<td>
					<?php 
    echo ext_lang::msg('sisesssavepath');
    ?>
:
				</td>
				<td>
				<?php 
    echo ($sp = ini_get('session.save_path')) ? $sp : 'none';
    ?>
				</td>
			</tr>
			<tr>
				<td>
					<?php 
    echo ext_lang::msg('sisessautostart');
    ?>
:
				</td>
				<td>
				<?php 
    echo intval(ini_get('session.auto_start'));
    ?>
				</td>
			</tr>
			<tr>
				<td>
					<?php 
    echo ext_lang::msg('sixmlenabled');
    ?>
:
				</td>
				<td>
					<?php 
    echo extension_loaded('xml') ? '<font style="color: green;">' . $GLOBALS['messages']['miscyesno'][0] . '</font>' : '<font style="color: red;">' . $GLOBALS['messages']['miscyesno'][1] . '</font>';
    ?>
				</td>
			</tr>
			<tr>
				<td>
					<?php 
    echo ext_lang::msg('sizlibenabled');
    ?>
:
				</td>
				<td>
				<?php 
    echo extension_loaded('zlib') ? '<font style="color: green;">' . $GLOBALS['messages']['miscyesno'][0] . '</font>' : '<font style="color: red;">' . $GLOBALS['messages']['miscyesno'][1] . '</font>';
    ?>
				</td>
			</tr>
			<tr>
				<td>
					<?php 
    echo ext_lang::msg('sidisabledfuncs');
    ?>
:
				</td>
				<td>
				<?php 
    echo ($df = ini_get('disable_functions')) ? $df : 'none';
    ?>
				</td>
			</tr>
			</table>
		</td>
	</tr>
	</table>
	</div>
	<div id="php-page" class="x-tab" title="<?php 
    echo ext_Lang::msg('siphpinfo');
    ?>
">
	<table class="adminform">
	<tr>
		<th colspan="2">
			<?php 
    echo ext_lang::msg('siphpinformation');
    ?>
:
		</th>
	</tr>
	<tr>
		<td>
		<?php 
    ob_start();
    phpinfo(INFO_GENERAL | INFO_CONFIGURATION | INFO_MODULES);
    $phpinfo = ob_get_contents();
    ob_end_clean();
    preg_match_all('#<body[^>]*>(.*)</body>#siU', $phpinfo, $output);
    $output = preg_replace('#<table#', '<table class="adminlist" align="center"', $output[1][0]);
    $output = preg_replace('#(\\w),(\\w)#', '\\1, \\2', $output);
    $output = preg_replace('#border="0" cellpadding="3" width="600"#', 'border="0" cellspacing="1" cellpadding="4" width="95%"', $output);
    $output = preg_replace('#<hr />#', '', $output);
    echo $output;
    ?>
		</td>
	</tr>
	</table>
	</div>
	</div>
	<script type="text/javascript">
<!--
var tabs = new Ext.TabPanel( "sysinfo" );
tabs.addTab( "system-page","<?php 
    echo ext_Lang::msg('sisysteminfo');
    ?>
" ); 
tabs.addTab( "php-page","<?php 
    echo ext_Lang::msg('siphpinfo');
    ?>
" ); 
tabs.activate( "system-page" );
//-->
</script>
	<?php 
}
Ejemplo n.º 2
0
function system_info()
{
    $version = $GLOBALS['ext_version'];
    //$tab = extGetParam( $_REQUEST, 'tab', 'tab1' );
    $width = 400;
    // width of 100%
    switch (extGetParam($GLOBALS['__POST'], 'action2', 'panel')) {
        case 'systeminfo':
            ?>
		<div class="body-wrap">
		  <table class="member-table">
			<tr>
				<td valign="top" width="250" style="font-weight:bold;">
				Logged in as:
				</td>
				<td><?php 
            echo $_SESSION['credentials_extplorer']['username'];
            ?>
</td>
			<tr>
				<td valign="top" width="250" style="font-weight:bold;">
					<?php 
            echo ext_lang::msg('sibuilton');
            ?>
:
				</td>
				<td>
				<?php 
            echo php_uname();
            ?>
				</td>
			</tr>
			<tr>
				<td valign="top" style="font-weight:bold;">
					<?php 
            echo ext_lang::msg('siphpversion');
            ?>
:
				</td>
				<td>
				<?php 
            echo phpversion();
            ?>
				&nbsp;
				<?php 
            echo phpversion() >= '4.3' ? '' : $GLOBALS['messages']['siphpupdate'];
            ?>
				</td>
			</tr>
			<tr>
				<td style="font-weight:bold;">
					<?php 
            echo ext_lang::msg('siwebserver');
            ?>
:
				</td>
				<td>
				<?php 
            echo get_server_software();
            ?>
				</td>
			</tr>
			<tr>
				<td style="font-weight:bold;">
					<?php 
            echo ext_lang::msg('siwebsphpif');
            ?>
:
				</td>
				<td>
				<?php 
            echo php_sapi_name();
            ?>
				</td>
			</tr>
			<tr>
				<td style="font-weight:bold;">
					<?php 
            echo ext_lang::msg('simamboversion');
            ?>
:
				</td>
				<td>
				<?php 
            echo $version;
            ?>
				</td>
			</tr>
			<tr>
				<td style="font-weight:bold;">
					<?php 
            echo ext_lang::msg('siuseragent');
            ?>
:
				</td>
				<td>
				<?php 
            echo phpversion() <= "4.2.1" ? getenv("HTTP_USER_AGENT") : $_SERVER['HTTP_USER_AGENT'];
            ?>
				</td>
			</tr>
			<tr>
				<td valign="top" style="font-weight:bold;">
					<?php 
            echo ext_lang::msg('sirelevantsettings');
            ?>
:
				</td>
				<td>
					<table cellspacing="1" cellpadding="1" border="0">
					<tr>
						<td valign="top">
							<?php 
            echo ext_lang::msg('sisafemode');
            ?>
:
						</td>
						<td>
						<?php 
            echo get_php_setting('safe_mode', 0);
            ?>
						</td>
					</tr>
					<tr>
						<td>
							<?php 
            echo ext_lang::msg('sibasedir');
            ?>
:
						</td>
						<td>
						<?php 
            echo ($ob = ini_get('open_basedir')) ? $ob : 'none';
            ?>
						</td>
					</tr>
					<tr>
						<td>
							<?php 
            echo ext_lang::msg('sidisplayerrors');
            ?>
:
						</td>
						<td>
						<?php 
            echo get_php_setting('display_errors', 0);
            ?>
						</td>
					</tr>
					<tr>
						<td>
							<?php 
            echo ext_lang::msg('sishortopentags');
            ?>
:
						</td>
						<td>
						<?php 
            echo get_php_setting('short_open_tag', 0);
            ?>
						</td>
					</tr>
					<tr>
						<td>
							<?php 
            echo ext_lang::msg('sifileuploads');
            ?>
:
						</td>
						<td>
						<?php 
            echo get_php_setting('file_uploads');
            ?>
						</td>
					</tr>
					<tr>
						<td>
							<?php 
            echo ext_lang::msg('simagicquotes');
            ?>
:
						</td>
						<td>
						<?php 
            echo get_php_setting('magic_quotes_gpc');
            ?>
						</td>
					</tr>
					<tr>
						<td>
							<?php 
            echo ext_lang::msg('siregglobals');
            ?>
:
						</td>
						<td>
						<?php 
            echo get_php_setting('register_globals', 0);
            ?>
						</td>
					</tr>
					<tr>
						<td>
							<?php 
            echo ext_lang::msg('sioutputbuf');
            ?>
:
						</td>
						<td>
						<?php 
            echo get_php_setting('output_buffering', 0);
            ?>
						</td>
					</tr>
					<tr>
						<td>
							<?php 
            echo ext_lang::msg('sisesssavepath');
            ?>
:
						</td>
						<td>
						<?php 
            echo ($sp = ini_get('session.save_path')) ? $sp : 'none';
            ?>
						</td>
					</tr>
					<tr>
						<td>
							<?php 
            echo ext_lang::msg('sisessautostart');
            ?>
:
						</td>
						<td>
						<?php 
            echo intval(ini_get('session.auto_start'));
            ?>
						</td>
					</tr>
					<tr>
						<td>
							<?php 
            echo ext_lang::msg('sixmlenabled');
            ?>
:
						</td>
						<td>
							<?php 
            echo extension_loaded('xml') ? '<font style="color: green;">' . $GLOBALS['messages']['miscyesno'][0] . '</font>' : '<font style="color: red;">' . $GLOBALS['messages']['miscyesno'][1] . '</font>';
            ?>
						</td>
					</tr>
					<tr>
						<td>
							<?php 
            echo ext_lang::msg('sizlibenabled');
            ?>
:
						</td>
						<td>
						<?php 
            echo extension_loaded('zlib') ? '<font style="color: green;">' . $GLOBALS['messages']['miscyesno'][0] . '</font>' : '<font style="color: red;">' . $GLOBALS['messages']['miscyesno'][1] . '</font>';
            ?>
						</td>
					</tr>
					<tr>
						<td>
							<?php 
            echo ext_lang::msg('sidisabledfuncs');
            ?>
:
						</td>
						<td>
						<?php 
            echo ($df = ini_get('disable_functions')) ? $df : 'none';
            ?>
						</td>
					</tr>
					</table>
				</td>
			</tr>
			</table>
		</div>
			<?php 
            break;
        case 'phpinfo':
            ob_start();
            phpinfo(INFO_GENERAL | INFO_CONFIGURATION | INFO_MODULES);
            $phpinfo = ob_get_contents();
            ob_end_clean();
            preg_match_all('#<body[^>]*>(.*)</body>#siU', $phpinfo, $output);
            $output = preg_replace('#<table#', '<table class="member-table" align="center"', $output[1][0]);
            $output = '<div class="body-wrap">' . $output . '</div>';
            $output = preg_replace('#(\\w),(\\w)#', '\\1, \\2', $output);
            $output = preg_replace('#border="0" cellpadding="3" width="600"#', 'border="0" cellspacing="1" cellpadding="4" width="95%"', $output);
            $output = preg_replace('#<hr />#', '', $output);
            echo $output;
            break;
        case 'about':
            show_about();
            break;
        default:
            ?>
			{
				"xtype": "tabpanel",
				
				"height": 350,
				"activeTab": 0,
				"items": [{
					"title": "<?php 
            echo ext_Lang::msg('aboutlink');
            ?>
",
					"autoScroll": true,
					"autoLoad": { 
						"url": "<?php 
            echo $GLOBALS['script_name'];
            ?>
",
						"params": {
							"option": "com_extplorer",
							"action": "get_about",
							"action2": "about"
						}
					}
				},{
					"title": "<?php 
            echo ext_Lang::msg('sisysteminfo');
            ?>
",
					"autoScroll": true,
					"autoLoad": { 
						"url": "<?php 
            echo $GLOBALS['script_name'];
            ?>
",
						"params": {
							"option": "com_extplorer",
							"action": "get_about",
							"action2": "systeminfo"
						}
					}
				},{
					"title": "<?php 
            echo ext_Lang::msg('siphpinfo');
            ?>
",
					"autoScroll": true,
					"autoLoad": { 
						"url": "<?php 
            echo $GLOBALS['script_name'];
            ?>
",
						"params": {
							"option": "com_extplorer",
							"action": "get_about",
							"action2": "phpinfo"
						}
					}
				}]
			}
			<?php 
    }
}
Ejemplo n.º 3
0
	<td><?php 
echo q_singleval('SELECT VERSION()');
?>
</td>
</tr>
<tr>
	<td><b>PHP Version:</b></td>
	<td><?php 
echo PHP_VERSION;
?>
</td>
</tr>
<tr>
	<td><b>Web Server:</b></td>
	<td><?php 
echo get_server_software();
?>
</td>
</tr>
<tr>
	<td><b>WebServer to PHP interface:</b></td>
	<td><?php 
echo php_sapi_name();
?>
</td>
</tr>
<tr>
	<td><b>Forum Version:</b></td>
	<td><?php 
echo $FORUM_VERSION;
?>
Ejemplo n.º 4
0
function show_system_info()
{
    global $txt, $smcFunc, $context, $smfInfo, $modSettings, $forum_version;
    global $db_persist, $maintenance, $cookiename, $db_last_error, $db_show_debug;
    get_database_version();
    echo '




			<div class="tab-page" id="main"><h2 class="tab">', $txt['maininfo'], '</h2>
				<script type="text/javascript">addSection("main", "', $txt['maininfo'], '" );</script>
				<table border="0" width="100%" cellpadding="2" cellspacing="2">
					<tr>
						<td width="25%"><strong>', $txt['smf_version'], '</strong></td>
						<td>', $forum_version, '</td>
					</tr>
					<tr>
						<td width="25%"><strong>', $txt['lang_char_set'], '</strong></td>
						<td>', $txt['lang_character_set'], '</td>
					</tr>
					<tr>
						<td width="25%"><strong>', $txt['db_char_set'], '</strong></td>
						<td>', $context['character_set'], '</td>
					</tr>
					<tr>
						<td valign="top"><strong>', $txt['smf_relevant'], '</strong></td>
						<td>
							<table width="100%" cellpadding="2" cellspacing="2">';
    foreach ($context['smfinfo'] as $item => $value) {
        echo '
								<tr>
									<td width="25%">', $txt[$item], ':</td>
									<td>', $value, '</td>
								</tr>';
    }
    echo '
							</table>
						</td>
					</tr>
					<tr>
						<td><strong>', $txt['php_version'], '</strong></td>
						<td>', phpversion(), '</td>
					</tr>
					<tr>
						<td><strong>', $txt['database_version'], '</strong></td>
						<td>', $context['database_version'], '</td>
					</tr>
					<tr>
						<td><strong>', $txt['webserver_version'], '</strong></td>
						<td>', get_server_software(), '</td>
					</tr>
					<tr>
						<td><strong>', $txt['php_api'], '</strong></td>
						<td>', php_sapi_name(), '</td>
					</tr>
					<tr>
						<td valign="top"><strong>', $txt['relevant_info'], '</strong></td>
						<td>
							<table width="100%" cellpadding="2" cellspacing="2">';
    foreach ($context['phpinfo'] as $item => $value) {
        echo '
								<tr>
									<td width="25%">', $txt[$item], ':</td>
									<td>', $value, '</td>
								</tr>';
    }
    echo '
							</table>
						</td>
					</tr>';
    $server_checks = array('gd', 'mmcache', 'eaccelerator', 'phpa', 'apc', 'memcache');
    foreach (get_server_versions($server_checks) as $values) {
        echo '
					<tr>
						<td><strong>', $values['title'], '</strong></td>
						<td>', $values['version'], '</td>
					</tr>';
    }
    echo '
				</table>
			</div>';
}
Ejemplo n.º 5
0
function show_system_info()
{
    global $txt, $context, $forum_version;
    get_database_version();
    echo '
			<div class="tab-page" id="main">
				<h2 class="tab">', $txt['maininfo'], '</h2>
				<script>addSection("main", "', $txt['maininfo'], '" );</script>
				<table class="generic">
					<tr>
						<td style="width:30%"><strong>', $txt['elk_version'], '</strong></td>
						<td>', $forum_version, '</td>
					</tr>
					<tr>
						<td style="width:30%"><strong>', $txt['lang_char_set'], '</strong></td>
						<td>', $txt['lang_character_set'], '</td>
					</tr>
					<tr>
						<td style="width:30%"><strong>', $txt['db_char_set'], '</strong></td>
						<td>', $context['character_set'], '</td>
					</tr>
					<tr>
						<td valign="top"><strong>', $txt['site_relevant'], '</strong></td>
						<td>
							<table class="generic">';
    foreach ($context['elkinfo'] as $item => $value) {
        echo '
								<tr>
									<td style="width:30%">', $txt[$item], ':</td>
									<td>', $value, '</td>
								</tr>';
    }
    echo '
							</table>
						</td>
					</tr>
					<tr>
						<td><strong>', $txt['php_version'], '</strong></td>
						<td>', phpversion(), '</td>
					</tr>
					<tr>
						<td><strong>', $txt['database_version'], '</strong></td>
						<td>', $context['database_version'], '</td>
					</tr>
					<tr>
						<td><strong>', $txt['webserver_version'], '</strong></td>
						<td>', get_server_software(), '</td>
					</tr>
					<tr>
						<td><strong>', $txt['php_api'], '</strong></td>
						<td>', php_sapi_name(), '</td>
					</tr>
					<tr>
						<td valign="top"><strong>', $txt['relevant_info'], '</strong></td>
						<td>
							<table class="generic">';
    foreach ($context['phpinfo'] as $item => $value) {
        echo '
								<tr>
									<td style="width:30%">', $txt[$item], ':</td>
									<td>', $value, '</td>
								</tr>';
    }
    echo '
							</table>
						</td>
					</tr>';
    $server_checks = array('gd', 'mmcache', 'eaccelerator', 'phpa', 'apc', 'memcache');
    foreach (get_server_versions($server_checks) as $values) {
        echo '
					<tr>
						<td><strong>', $values['title'], '</strong></td>
						<td>', $values['version'], '</td>
					</tr>';
    }
    echo '
				</table>
			</div>';
}
Ejemplo n.º 6
0
function system_info($version, $option)
{
    global $mosConfig_absolute_path, $database, $_VERSION;
    $version = $_VERSION->PRODUCT . ' <strong style="color: red;">' . $_VERSION->RELEASE . '.' . $_VERSION->DEV_LEVEL . '</strong> ' . $_VERSION->DEV_STATUS . ' [ ' . $_VERSION->CODENAME . ' ] ' . $_VERSION->RELDATE . ' ' . $_VERSION->RELTIME . ' ' . $_VERSION->RELTZ;
    //$tab = mosGetParam( $_REQUEST, 'tab', 'tab1' );
    $width = 400;
    // width of 100%
    $tabs = new mosTabs(0);
    ?>
	<br />
	<?php 
    $tabs->startPane('sysinfo');
    $tabs->startTab($GLOBALS['messages']['sisysteminfo'], 'system-page');
    ?>
	<table class="adminform">
	<tr>
		<td valign="top" width="250" style="font-weight:bold;">
			<?php 
    echo $GLOBALS['messages']['sibuilton'];
    ?>
:
		</td>
		<td>
		<?php 
    echo php_uname();
    ?>
		</td>
	</tr>
	<tr>
		<td style="font-weight:bold;">
			<?php 
    echo $GLOBALS['messages']['sidbversion'];
    ?>
:
		</td>
		<td>
		<?php 
    echo mysql_get_server_info();
    ?>
		</td>
	</tr>
	<tr>
		<td valign="top" style="font-weight:bold;">
			<?php 
    echo $GLOBALS['messages']['siphpversion'];
    ?>
:
		</td>
		<td>
		<?php 
    echo phpversion();
    ?>
		&nbsp;
		<?php 
    echo phpversion() >= '4.3' ? '' : $GLOBALS['messages']['siphpupdate'];
    ?>
		</td>
	</tr>
	<tr>
		<td style="font-weight:bold;">
			<?php 
    echo $GLOBALS['messages']['siwebserver'];
    ?>
:
		</td>
		<td>
		<?php 
    echo get_server_software();
    ?>
		</td>
	</tr>
	<tr>
		<td style="font-weight:bold;">
			<?php 
    echo $GLOBALS['messages']['siwebsphpif'];
    ?>
:
		</td>
		<td>
		<?php 
    echo php_sapi_name();
    ?>
		</td>
	</tr>
	<tr>
		<td style="font-weight:bold;">
			<?php 
    echo $GLOBALS['messages']['simamboversion'];
    ?>
:
		</td>
		<td>
		<?php 
    echo $version;
    ?>
		</td>
	</tr>
	<tr>
		<td style="font-weight:bold;">
			<?php 
    echo $GLOBALS['messages']['siuseragent'];
    ?>
:
		</td>
		<td>
		<?php 
    echo phpversion() <= "4.2.1" ? getenv("HTTP_USER_AGENT") : $_SERVER['HTTP_USER_AGENT'];
    ?>
		</td>
	</tr>
	<tr>
		<td valign="top" style="font-weight:bold;">
			<?php 
    echo $GLOBALS['messages']['sirelevantsettings'];
    ?>
:
		</td>
		<td>
			<table cellspacing="1" cellpadding="1" border="0">
			<tr>
				<td valign="top">
					<?php 
    echo $GLOBALS['messages']['sisafemode'];
    ?>
:
				</td>
				<td>
				<?php 
    echo get_php_setting('safe_mode', 0);
    ?>
				</td>
			</tr>
			<tr>
				<td>
					<?php 
    echo $GLOBALS['messages']['sibasedir'];
    ?>
:
				</td>
				<td>
				<?php 
    echo ($ob = ini_get('open_basedir')) ? $ob : 'none';
    ?>
				</td>
			</tr>
			<tr>
				<td>
					<?php 
    echo $GLOBALS['messages']['sidisplayerrors'];
    ?>
:
				</td>
				<td>
				<?php 
    echo get_php_setting('display_errors');
    ?>
				</td>
			</tr>
			<tr>
				<td>
					<?php 
    echo $GLOBALS['messages']['sishortopentags'];
    ?>
:
				</td>
				<td>
				<?php 
    echo get_php_setting('short_open_tag');
    ?>
				</td>
			</tr>
			<tr>
				<td>
					<?php 
    echo $GLOBALS['messages']['sifileuploads'];
    ?>
:
				</td>
				<td>
				<?php 
    echo get_php_setting('file_uploads');
    ?>
				</td>
			</tr>
			<tr>
				<td>
					<?php 
    echo $GLOBALS['messages']['simagicquotes'];
    ?>
:
				</td>
				<td>
				<?php 
    echo get_php_setting('magic_quotes_gpc');
    ?>
				</td>
			</tr>
			<tr>
				<td>
					<?php 
    echo $GLOBALS['messages']['siregglobals'];
    ?>
:
				</td>
				<td>
				<?php 
    echo get_php_setting('register_globals', 0);
    ?>
				</td>
			</tr>
			<tr>
				<td>
					<?php 
    echo $GLOBALS['messages']['sioutputbuf'];
    ?>
:
				</td>
				<td>
				<?php 
    echo get_php_setting('output_buffering', 0);
    ?>
				</td>
			</tr>
			<tr>
				<td>
					<?php 
    echo $GLOBALS['messages']['sisesssavepath'];
    ?>
:
				</td>
				<td>
				<?php 
    echo ($sp = ini_get('session.save_path')) ? $sp : 'none';
    ?>
				</td>
			</tr>
			<tr>
				<td>
					<?php 
    echo $GLOBALS['messages']['sisessautostart'];
    ?>
:
				</td>
				<td>
				<?php 
    echo intval(ini_get('session.auto_start'));
    ?>
				</td>
			</tr>
			<tr>
				<td>
					<?php 
    echo $GLOBALS['messages']['sixmlenabled'];
    ?>
:
				</td>
				<td>
					<?php 
    echo extension_loaded('xml') ? '<font style="color: green;">' . $GLOBALS['messages']['miscyesno'][0] . '</font>' : '<font style="color: red;">' . $GLOBALS['messages']['miscyesno'][1] . '</font>';
    ?>
				</td>
			</tr>
			<tr>
				<td>
					<?php 
    echo $GLOBALS['messages']['sizlibenabled'];
    ?>
:
				</td>
				<td>
				<?php 
    echo extension_loaded('zlib') ? '<font style="color: green;">' . $GLOBALS['messages']['miscyesno'][0] . '</font>' : '<font style="color: red;">' . $GLOBALS['messages']['miscyesno'][1] . '</font>';
    ?>
				</td>
			</tr>
			<tr>
				<td>
					<?php 
    echo $GLOBALS['messages']['sidisabledfuncs'];
    ?>
:
				</td>
				<td>
				<?php 
    echo ($df = ini_get('disable_functions')) ? $df : 'none';
    ?>
				</td>
			</tr>
			<?php 
    $query = "SELECT name FROM #__mambots" . "\nWHERE folder='editors' AND published='1'" . "\nLIMIT 1";
    $database->setQuery($query);
    $editor = $database->loadResult();
    ?>
			<tr>
				<td>
					<?php 
    echo $GLOBALS['messages']['sieditor'];
    ?>
:
				</td>
				<td>
					<?php 
    echo $editor;
    ?>
				</td>
			</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td valign="top" style="font-weight:bold;">
			<?php 
    echo $GLOBALS['messages']['siconfigfile'];
    ?>
:
		</td>
		<td>
		<?php 
    $cf = file($mosConfig_absolute_path . '/configuration.php');
    foreach ($cf as $k => $v) {
        if (eregi('mosConfig_host', $v)) {
            $cf[$k] = '$mosConfig_host = \'xxxxxx\'';
        } else {
            if (eregi('mosConfig_user', $v)) {
                $cf[$k] = '$mosConfig_user = \'xxxxxx\'';
            } else {
                if (eregi('mosConfig_password', $v)) {
                    $cf[$k] = '$mosConfig_password = \'xxxxxx\'';
                } else {
                    if (eregi('mosConfig_db ', $v)) {
                        $cf[$k] = '$mosConfig_db = \'xxxxxx\'';
                    } else {
                        if (eregi('<?php', $v)) {
                            $cf[$k] = '&lt;?php';
                        }
                    }
                }
            }
        }
    }
    echo implode('<br>', $cf);
    ?>
		</td>
	</tr>
	</table>
	<?php 
    $tabs->endTab();
    $tabs->startTab($GLOBALS['messages']['siphpinfo'], 'php-page');
    ?>
	<table class="adminform">
	<tr>
		<th colspan="2">
			<?php 
    echo $GLOBALS['messages']['siphpinformation'];
    ?>
:
		</th>
	</tr>
	<tr>
		<td>
		<?php 
    ob_start();
    phpinfo(INFO_GENERAL | INFO_CONFIGURATION | INFO_MODULES);
    $phpinfo = ob_get_contents();
    ob_end_clean();
    preg_match_all('#<body[^>]*>(.*)</body>#siU', $phpinfo, $output);
    $output = preg_replace('#<table#', '<table class="adminlist" align="center"', $output[1][0]);
    $output = preg_replace('#(\\w),(\\w)#', '\\1, \\2', $output);
    $output = preg_replace('#border="0" cellpadding="3" width="600"#', 'border="0" cellspacing="1" cellpadding="4" width="95%"', $output);
    $output = preg_replace('#<hr />#', '', $output);
    echo $output;
    ?>
		</td>
	</tr>
	</table>
	<?php 
    $tabs->endTab();
    $tabs->startTab($GLOBALS['messages']['sipermissions'], 'perms');
    ?>
	<table class="adminform">
	  <tr>
		<th colspan="2">&nbsp;<?php 
    echo $GLOBALS['messages']['sidirperms'];
    ?>
:</th>
	  </tr>
	  <tr>
		<td colspan="2">
			<span style="font-weight:bold;"><?php 
    echo $GLOBALS['messages']['sidirpermsmess'];
    ?>
:</span>
		</td>
	  </tr>
	  <tr>
	  	<td width="50%">
		<?php 
    mosHTML::writableCell('administrator/backups');
    mosHTML::writableCell('administrator/components');
    mosHTML::writableCell('administrator/modules');
    mosHTML::writableCell('administrator/templates');
    mosHTML::writableCell('cache');
    mosHTML::writableCell('components');
    mosHTML::writableCell('images');
    mosHTML::writableCell('images/banners');
    mosHTML::writableCell('images/stories');
    mosHTML::writableCell('language');
    mosHTML::writableCell('mambots');
    mosHTML::writableCell('mambots/content');
    mosHTML::writableCell('mambots/search');
    mosHTML::writableCell('media');
    mosHTML::writableCell('modules');
    mosHTML::writableCell('templates');
    ?>

		</td>
	  </tr>
	</table>
	<?php 
    $tabs->endTab();
    $tabs->endPane();
    ?>
	<?php 
}