You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
106 lines
2.2 KiB
106 lines
2.2 KiB
<table border="0" style="font-family: Arial, Helvetica;font-size:12px;">
|
|
<tr><td colspan="2"><b>Configuration tests</b></td></tr>
|
|
<tr>
|
|
<td valign="top">PHP version:</td>
|
|
<td>
|
|
<?php
|
|
if(function_exists('version_compare') && version_compare( phpversion(), "4.1.0", ">="))
|
|
{
|
|
echo 'Ok ('.phpversion().')';
|
|
}else
|
|
{
|
|
$fatal_error = true;
|
|
echo '<span style="color: red;">Fatal error: Your PHP version is too old to run Group-Office. PHP 4.1.0 is required</span>';
|
|
}
|
|
?></td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">MySQL support:</td>
|
|
<td>
|
|
<?php
|
|
if(function_exists('mysql_connect'))
|
|
{
|
|
echo 'Ok';
|
|
}else
|
|
{
|
|
$fatal_error = true;
|
|
echo '<span style="color: red;">Fatal error: The MySQL extension is required. So is the MySQL server.</span>';
|
|
}
|
|
?>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">
|
|
IMAP support:
|
|
</td>
|
|
<td>
|
|
<?php
|
|
if(function_exists('imap_open'))
|
|
{
|
|
echo 'Ok';
|
|
}else
|
|
{
|
|
echo '<span style="color: red;">Warning: IMAP extension not installed, E-mail module will not work.</span>';
|
|
}
|
|
?>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">
|
|
Iconv support:
|
|
</td>
|
|
<td>
|
|
<?php
|
|
if(function_exists('iconv'))
|
|
{
|
|
echo 'Ok';
|
|
}else
|
|
{
|
|
echo '<span style="color: red;">Warning: iconv extension not installed, E-mail module will be unreliable with character encodings.</span>';
|
|
}
|
|
?>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">File upload support:</td>
|
|
<td>
|
|
<?php
|
|
if(ini_get('file_uploads') == '1')
|
|
{
|
|
echo 'Ok';
|
|
}else
|
|
{
|
|
$fatal_error = true;
|
|
echo '<span style="color: red;">Fatal error: File uploads are disabled. Please set file_uploads=On in php.ini.</span>';
|
|
}
|
|
?>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">Safe mode:</td>
|
|
<td>
|
|
<?php
|
|
if(ini_get('safe_mode') == '1')
|
|
{
|
|
echo '<span style="color: red;">Warning: Safe mode is enabled. This may cause trouble with the filesystem module. If you can please set safe_mode=Off in php.ini.</span>';
|
|
}else
|
|
{
|
|
echo 'Ok';
|
|
}
|
|
?>
|
|
</td>
|
|
</tr>
|
|
<tr><td colspan="2"><br /><b>Use this information to encode Group-Office Professional</b></td></tr>
|
|
<tr>
|
|
<td>Hostname:</td>
|
|
<td><?php echo $_SERVER['SERVER_NAME']; ?></td>
|
|
</tr>
|
|
<tr>
|
|
<td>IP address:</td>
|
|
<td><?php echo gethostbyname($_SERVER['SERVER_NAME']); ?></td>
|
|
</tr>
|
|
<tr>
|
|
<td>MAC:</td>
|
|
<td><?php system(str_replace('test.inc', 'macAddr',__FILE__)); ?></td>
|
|
</tr>
|
|
</table>
|
|
|