sysinfo_system.php

来自「国外免费开源的内容管理系统」· PHP 代码 · 共 98 行

PHP
98
字号
<?php
/**
 * @version		$Id: sysinfo_system.php 9233 2007-10-15 21:14:45Z jinx $
 */
// No direct access
defined('_JEXEC') or die('Restricted access');

?>
<fieldset class="adminform">
	<legend><?php echo JText::_( 'System Information' ); ?></legend>
		<table class="adminlist">
		<thead>
			<tr>
				<th width="250">
					<?php echo JText::_( 'Setting' ); ?>
				</th>
				<th>
					<?php echo JText::_( 'Value' ); ?>
				</th>
			</tr>
		</thead>
		<tfoot>
		<tr>
			<th colspan="2">&nbsp;
			</th>
		</tr>
		</tfoot>
		<tbody>
		<tr>
			<td valign="top">
				<strong><?php echo JText::_( 'PHP Built On' ); ?>:</strong>
			</td>
			<td>
				<?php echo php_uname(); ?>
			</td>
		</tr>
		<tr>
			<td>
				<strong><?php echo JText::_( 'Database Version' ); ?>:</strong>
			</td>
			<td>
				<?php echo $db->getVersion(); ?>
			</td>
		</tr>
		<tr>
			<td>
				<strong><?php echo JText::_( 'Database Collation' ); ?>:</strong>
			</td>
			<td>
				<?php echo $db->getCollation(); ?>
			</td>
		</tr>
		<tr>
			<td>
				<strong><?php echo JText::_( 'PHP Version' ); ?>:</strong>
			</td>
			<td>
				<?php echo phpversion(); ?>
			</td>
		</tr>
		<tr>
			<td>
				<strong><?php echo JText::_( 'Web Server' ); ?>:</strong>
			</td>
			<td>
				<?php echo HTML_admin_misc::get_server_software(); ?>
			</td>
		</tr>
		<tr>
			<td>
				<strong><?php echo JText::_( 'WebServer to PHP Interface' ); ?>:</strong>
			</td>
			<td>
				<?php echo php_sapi_name(); ?>
			</td>
		</tr>
		<tr>
			<td>
				<strong><?php echo JText::_( 'Joomla! Version' ); ?>:</strong>
			</td>
			<td>
				<?php
					$version = new JVersion();
					echo $version->getLongVersion();
				?>
			</td>
		</tr>
		<tr>
			<td>
				<strong><?php echo JText::_( 'User Agent' ); ?>:</strong>
			</td>
			<td>
				<?php echo phpversion() <= "4.2.1" ? getenv( "HTTP_USER_AGENT" ) : $_SERVER['HTTP_USER_AGENT'];?>
			</td>
		</tr>
		</tbody>
		</table>
</fieldset>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?