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('<strong><u>OC Installation requirement</u></strong>: Before you proceed with your OC installation: Keep in mind OC uses the short tag "short cut" syntax.<br><br> Thus the <a href="http://php.net/manual/ini.core.php#ini.short-open-tag" target="_blank">short_open_tag</a> directive must be enabled in your php.ini.<br><br><u>Easy Solution</u>:<ol><li>Open php.ini file and look for line short_open_tag = Off</li><li>Replace it with short_open_tag = On</li><li>Restart then your PHP server</li><li>Refresh this page to resume your OC installation</li><li>Enjoy OC ;)</li></ol>'); } //prevent from new install to be done over current existing one if (file_exists(DOCROOT . 'oc/config/database.php')) { die('It seems Open Classifieds is already installed'); } //read from oc/versions.json on CDN $versions = install::versions(); $last_version = key($versions); $is_compatible = install::is_compatible(); /** * Helper installation classes * * @package Install * @category Helper * @author Chema <*****@*****.**> * @copyright (c) 2009-2014 Open Classifieds Team * @license GPL v3 */ /** * Class with install functions helper */ class install