2008-11-26 22:50:40 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* AgileBill - Open Billing Software
|
|
|
|
*
|
|
|
|
* This body of work is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the Open AgileBill License
|
|
|
|
* License as published at http://www.agileco.com/agilebill/license1-4.txt
|
2009-08-03 04:10:16 +00:00
|
|
|
*
|
|
|
|
* Originally authored by Tony Landis, AgileBill LLC
|
|
|
|
* Recent modifications by Deon George
|
|
|
|
*
|
|
|
|
* @author Deon George <deonATleenooksDOTnet>
|
|
|
|
* @copyright 2009 Deon George
|
|
|
|
* @link http://osb.leenooks.net
|
2008-11-26 22:50:40 +00:00
|
|
|
*
|
|
|
|
* @link http://www.agileco.com/
|
|
|
|
* @copyright 2004-2008 Agileco, LLC.
|
|
|
|
* @license http://www.agileco.com/agilebill/license1-4.txt
|
2009-08-03 04:10:16 +00:00
|
|
|
* @author Tony Landis <tony@agileco.com>
|
2008-11-26 22:50:40 +00:00
|
|
|
* @package AgileBill
|
2009-08-03 04:10:16 +00:00
|
|
|
* @subpackage Core
|
2008-11-26 22:50:40 +00:00
|
|
|
*/
|
|
|
|
|
2009-08-03 04:10:16 +00:00
|
|
|
/**
|
|
|
|
* The main AgileBill Test Page
|
|
|
|
*/
|
2008-11-26 22:50:40 +00:00
|
|
|
|
2009-08-03 04:10:16 +00:00
|
|
|
if (@$do == 'phpinfo' || @$_GET['do'] == 'phpinfo' || @$HTTP_GET_VARS['do'] == 'phpinfo') {
|
2008-11-26 22:50:40 +00:00
|
|
|
phpinfo();
|
|
|
|
exit;
|
2009-08-03 04:10:16 +00:00
|
|
|
}
|
2008-11-26 22:50:40 +00:00
|
|
|
|
|
|
|
error_reporting(0);
|
|
|
|
$disabled_functions = ini_get('disable_functions');
|
|
|
|
ob_start();
|
|
|
|
phpinfo();
|
|
|
|
$php_info .= ob_get_contents();
|
|
|
|
ob_end_clean();
|
|
|
|
|
|
|
|
###############################################################
|
2009-08-03 04:10:16 +00:00
|
|
|
# GD
|
|
|
|
if (extension_loaded('gd')) {
|
|
|
|
$gd['font'] = 'FFFFFF';
|
|
|
|
$gd['back'] = '009900';
|
|
|
|
$gd['text'] = 'OK';
|
2008-11-26 22:50:40 +00:00
|
|
|
} else {
|
2009-08-03 04:10:16 +00:00
|
|
|
$gd['font'] = 'FFFFFF';
|
|
|
|
$gd['back'] = '990000';
|
|
|
|
$gd['text'] = 'Failed.';
|
|
|
|
}
|
2008-11-26 22:50:40 +00:00
|
|
|
|
|
|
|
###############################################################
|
2009-08-03 04:10:16 +00:00
|
|
|
# SSL
|
|
|
|
|
|
|
|
$sslx = false;
|
|
|
|
if (function_exists('curl_init') && ! preg_match('/curl_init/',$disabled_functions) && $curl_version = curl_version()) {
|
|
|
|
if (preg_match('/openssl/',@$curl_version['ssl_version']))
|
|
|
|
$sslx = true;
|
|
|
|
|
2008-11-26 22:50:40 +00:00
|
|
|
} else {
|
2009-08-03 04:10:16 +00:00
|
|
|
if (phpversion() >= '4.3.0' && function_exists('fsockopen') &&
|
|
|
|
! preg_match('/fsockopen/',$disabled_functions) && function_exists('openssl_public_decrypt'))
|
|
|
|
$sslx = true;
|
2008-11-26 22:50:40 +00:00
|
|
|
}
|
|
|
|
|
2009-08-03 04:10:16 +00:00
|
|
|
if ($sslx == true) {
|
|
|
|
$ssl['font'] = 'FFFFFF';
|
|
|
|
$ssl['back'] = '009900';
|
|
|
|
$ssl['text'] = 'OK';
|
2008-11-26 22:50:40 +00:00
|
|
|
} else {
|
2009-08-03 04:10:16 +00:00
|
|
|
$ssl['font'] = 'FFFFFF';
|
|
|
|
$ssl['back'] = '990000';
|
|
|
|
$ssl['text'] = 'Failed!';
|
|
|
|
}
|
2008-11-26 22:50:40 +00:00
|
|
|
|
|
|
|
###############################################################
|
2009-08-03 04:10:16 +00:00
|
|
|
# PHP
|
|
|
|
if (phpversion() >= '5.0') {
|
|
|
|
$php['font'] = 'FFFFFF';
|
|
|
|
$php['back'] = '009900';
|
|
|
|
$php['text'] = 'OK';
|
2008-11-26 22:50:40 +00:00
|
|
|
} else {
|
2009-08-03 04:10:16 +00:00
|
|
|
$php['font'] = 'FFFFFF';
|
|
|
|
$php['back'] = '990000';
|
|
|
|
$php['text'] = 'Failed! (PHP 5.0 or later is required)';
|
|
|
|
}
|
2008-11-26 22:50:40 +00:00
|
|
|
|
|
|
|
###############################################################
|
2009-08-03 04:10:16 +00:00
|
|
|
# MYSQL
|
|
|
|
if (is_callable('mysql_connect') && is_callable('mysql_get_client_info') && mysql_get_client_info() >= 4) {
|
|
|
|
$mysql['font'] = 'FFFFFF';
|
|
|
|
$mysql['back'] = '009900';
|
|
|
|
$mysql['text'] = 'OK';
|
2008-11-26 22:50:40 +00:00
|
|
|
} else {
|
2009-08-03 04:10:16 +00:00
|
|
|
$mysql['font'] = 'FFFFFF';
|
|
|
|
$mysql['back'] = '990000';
|
|
|
|
$mysql['text'] = 'Failed! (MySQL 4.0 or later is required)';
|
|
|
|
}
|
2008-11-26 22:50:40 +00:00
|
|
|
|
|
|
|
###############################################################
|
2009-08-03 04:10:16 +00:00
|
|
|
# XML
|
|
|
|
if (is_callable('xml_parser_create')) {
|
|
|
|
$xml['font'] = 'FFFFFF';
|
|
|
|
$xml['back'] = '009900';
|
|
|
|
$xml['text'] = 'OK';
|
2008-11-26 22:50:40 +00:00
|
|
|
} else {
|
2009-08-03 04:10:16 +00:00
|
|
|
$xml['font'] = 'FFFFFF';
|
|
|
|
$xml['back'] = '990000';
|
|
|
|
$xml['text'] = 'Failed!';
|
2008-11-26 22:50:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
###############################################################
|
2009-08-03 04:10:16 +00:00
|
|
|
# IMAP
|
|
|
|
if (is_callable('imap_open')) {
|
|
|
|
$imap['font'] = 'FFFFFF';
|
|
|
|
$imap['back'] = '009900';
|
|
|
|
$imap['text'] = 'OK';
|
2008-11-26 22:50:40 +00:00
|
|
|
} else {
|
2009-08-03 04:10:16 +00:00
|
|
|
$imap['font'] = 'FFFFFF';
|
|
|
|
$imap['back'] = '990000';
|
|
|
|
$imap['text'] = 'Failed!';
|
2008-11-26 22:50:40 +00:00
|
|
|
}
|
2009-08-03 04:10:16 +00:00
|
|
|
?>
|
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
|
<head>
|
2008-11-26 22:50:40 +00:00
|
|
|
<title>AgileBill Compatibility Test</title>
|
|
|
|
|
2009-08-03 04:10:16 +00:00
|
|
|
<script type="text/javascript" language="javascript">
|
2008-11-26 22:50:40 +00:00
|
|
|
function help(location) {
|
2009-08-03 04:10:16 +00:00
|
|
|
document.getElementById("help").style.width = '650px';
|
|
|
|
document.getElementById("help").style.height = '300px';
|
|
|
|
document.getElementById("help").src = "http://agilebill.com/Requirements#"+location;
|
2008-11-26 22:50:40 +00:00
|
|
|
}
|
2009-08-03 04:10:16 +00:00
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
|
2008-11-26 22:50:40 +00:00
|
|
|
<body bgcolor="#FFFFFF">
|
2009-08-03 04:10:16 +00:00
|
|
|
<br/>
|
2008-11-26 22:50:40 +00:00
|
|
|
<table width="650" border="0" cellspacing="0" cellpadding="1" align="center" bgcolor="#333333">
|
2009-08-03 04:10:16 +00:00
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="2">
|
|
|
|
<tr>
|
|
|
|
<td bgcolor="#000000">
|
|
|
|
<div align="center"><b><font size="2" face="Verdana, Arial, Helvetica, sans-serif" color="#FFFFFF">Absolute Requirements</font></b></div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
2008-11-26 22:50:40 +00:00
|
|
|
</tr>
|
2009-08-03 04:10:16 +00:00
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="3" bgcolor="#FFFFFF">
|
|
|
|
<tr bgcolor="#<?php echo $mysql['back']; ?>">
|
|
|
|
<td width="223"><b><font size="2" face="Verdana, Arial, Helvetica, sans-serif" color="#FFFFFF">MySQL</font></b></td>
|
|
|
|
<td width="192">
|
|
|
|
<font size="2" face="Verdana, Arial, Helvetica, sans-serif" color="#<?php echo $mysql['font']; ?>"><?php echo $mysql['text']; ?></font>
|
|
|
|
</td>
|
|
|
|
<td width="15">
|
|
|
|
<div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><a href="javascript:help('mysql');"><b>?</b></a></font></div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr bgcolor="#<?php echo $php['back']; ?>">
|
|
|
|
<td width="223"><b><font size="2" face="Verdana, Arial, Helvetica, sans-serif" color="#FFFFFF">PHP</font></b></td>
|
|
|
|
<td width="192">
|
|
|
|
<font size="2" face="Verdana, Arial, Helvetica, sans-serif" color="#<?php echo $php['font']; ?>"><?php echo $php['text']; ?></font></td>
|
|
|
|
<td width="15">
|
|
|
|
<div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><a href="javascript:help('php');"><b>?</b></a></font></div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr bgcolor="#<?php echo $xml['back']; ?>">
|
|
|
|
<td width="223"><b><font size="2" face="Verdana, Arial, Helvetica, sans-serif" color="#FFFFFF">XML</font></b></td>
|
|
|
|
<td width="192"><font size="2" face="Verdana, Arial, Helvetica, sans-serif" color="#<?php echo $xml['font']; ?>"><?php echo $xml['text']; ?></font></td>
|
|
|
|
<td width="15">
|
|
|
|
<div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><a href="javascript:help('xml');"><b>?</b></a></font></div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
2008-11-26 22:50:40 +00:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
2009-08-03 04:10:16 +00:00
|
|
|
<br/>
|
|
|
|
<br/>
|
2008-11-26 22:50:40 +00:00
|
|
|
<table width="650" border="0" cellspacing="0" cellpadding="1" align="center" bgcolor="#333333">
|
2009-08-03 04:10:16 +00:00
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="2">
|
|
|
|
<tr>
|
|
|
|
<td bgcolor="#000000">
|
|
|
|
<div align="center"><b><font size="2" face="Verdana, Arial, Helvetica, sans-serif" color="#FFFFFF">Optional Requirements</font></b></div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
2008-11-26 22:50:40 +00:00
|
|
|
</tr>
|
2009-08-03 04:10:16 +00:00
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="3" bgcolor="#FFFFFF">
|
|
|
|
<tr bgcolor="#<?php echo $ssl['back']; ?>">
|
|
|
|
<td width="225"><b><font size="2" face="Verdana, Arial, Helvetica, sans-serif" color="#FFFFFF">SSL Connectivity</font></b></td>
|
|
|
|
<td width="190"><font size="2" face="Verdana, Arial, Helvetica, sans-serif" color="#<?php echo $ssl['font']; ?>"><?php echo $ssl['text']; ?></font></td>
|
|
|
|
<td width="15">
|
|
|
|
<div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><a href="javascript:help('ssl');"><b>?</b></a></font></div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr bgcolor="#<?php echo $gd['back']; ?>">
|
|
|
|
<td width="225"><b><font size="2" face="Verdana, Arial, Helvetica, sans-serif" color="#FFFFFF">GD</font></b></td>
|
|
|
|
<td width="190"><font size="2" face="Verdana, Arial, Helvetica, sans-serif" color="#<?php echo $gd['font']; ?>"><?php echo $gd['text']; ?></font></td>
|
|
|
|
<td width="15">
|
|
|
|
<div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><a href="javascript:help('gd');"><b>?</b></a></font></div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
2008-11-26 22:50:40 +00:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
2009-08-03 04:10:16 +00:00
|
|
|
<br/><br/>
|
|
|
|
<center><iframe id=help align=center frameborder=1 height=500 width=650 src="test.php?do=phpinfo"></iframe></center>
|