* @copyright (c) 2009-2014 Open Classifieds Team
* @license GPL v3
*/
ob_start();
error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);
ini_set('display_errors', 1);
@set_time_limit(0);
// Set the full path to the docroot
define('DOCROOT', realpath(dirname(__FILE__)).DIRECTORY_SEPARATOR);
//we check first short tags if not we can not even load the installer
if (! ((bool) ini_get('short_open_tag')) )
die('OE Installation requirement: Before you proceed with your OE installation: Keep in mind OE uses the short tag "short cut" syntax.
Thus the short_open_tag directive must be enabled in your php.ini.
Easy Solution:
$_SERVER[\'REQUEST_URI\']
, $_SERVER[\'PHP_SELF\']
, or $_SERVER[\'PATH_INFO\']
is available.',
'mandatory' => TRUE,
'result' => (isset($_SERVER['REQUEST_URI']) OR isset($_SERVER['PHP_SELF']) OR isset($_SERVER['PATH_INFO']))
),
'cUrl' =>array('message' => 'Install requires the cURL extension for the Request_Client_External class.',
'mandatory' => TRUE,
'result' => (extension_loaded('curl'))
),
'mcrypt' =>array('message' => 'Install requires the mcrypt for the Encrypt class.',
'mandatory' => TRUE,
'result' => (extension_loaded('mcrypt'))
),
'GD' =>array('message' => 'Install requires the GD v2 for the Image class',
'mandatory' => TRUE,
'result' => (function_exists('gd_info'))
),
'MySQL' =>array('message' => 'Install requires the MySQL extension to support MySQL databases.',
'mandatory' => TRUE,
'result' => (function_exists('mysqli_connect'))
),
'ZipArchive' =>array('message' => 'PHP module zip not installed. You will need this to auto update the software.',
'mandatory' => FALSE,
'result' => class_exists('ZipArchive')
),
'SoapClient' =>array('message' => 'Install requires the SoapClient class.',
'mandatory' => FALSE,
'result' => class_exists('SoapClient')
),
);
}
/**
* checks from requirements if its compatible or not. Also fills the msg variable
* @return boolean
*/
public static function is_compatible()
{
self::$msg = '';
$compatible = TRUE;
foreach (install::requirements() as $values)
{
if ($values['mandatory'] == TRUE AND $values['result'] == FALSE)
$compatible = FALSE;
if ($values['result'] == FALSE)
self::$msg .= $values['message'].'We will download last stable version of Open eShop and redirect you to the installation form.
Once you click in the install button can take few seconds until downloaded, please do not close this window.
=__('Requirements checks we do before we install.')?> phpinfo()
$values): $color = ($values['result'])?'success':'danger';?>