//were the install files are located define('INSTALLROOT', DOCROOT . 'install/'); //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>'); } //prevents from new install to be done if (!file_exists(INSTALLROOT . 'install.lock')) { die('Installation seems to be done, please remove /install/ folder'); } error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE); ini_set('display_errors', 1); include 'class.install.php'; //start the install setup install::initialize(); $is_compatible = install::is_compatible(); //choosing what to display //execute installation since they are posting data if (($_POST or isset($_GET['SITE_NAME'])) and $is_compatible === TRUE) { if (install::execute() === TRUE) { $data = array('site_url' => core::request('SITE_URL'), 'admin_email' => core::request('ADMIN_EMAIL'), 'admin_pwd' => core::request('ADMIN_PWD')); header('Content-Type: application/json'); die(json_encode($data)); } else { $view = 'form'; } } elseif ($is_compatible === TRUE) { $view = 'form'; } else { $view = 'hosting'; }
<button type="button" class="close" data-dismiss="alert" aria-label="Close"> <span aria-hidden="true">×</span> </button> <?php echo install::$error_msg; ?> </div> <?php } ?> <?php if (!empty(install::$msg)) { ?> <?php if (install::is_compatible()) { ?> <div class="alert alert-info animated fadeInDown"> <button type="button" class="close" data-dismiss="alert" aria-label="Close"> <span aria-hidden="true">×</span> </button> <?php echo __("We have detected some incompatibilities, installation may not work as expected but you can try."); ?> </div> <?php } ?> <?php foreach (install::$msg as $msg) { ?>
/** * displayed in case not compatible * @return [type] [description] */ function hosting_view() { ?> <div class="col-md-8 col-md-offset-2"> <div class="row alerts"> <div class="col-md-12"> <?php if (!empty(install::$error_msg)) { ?> <div class="alert alert-danger animated fadeInDown"> <button type="button" class="close" data-dismiss="alert" aria-label="Close"> <span aria-hidden="true">×</span> </button> <?php echo install::$error_msg; ?> </div> <?php } ?> <?php if (!empty(install::$msg)) { ?> <?php if (install::is_compatible()) { ?> <div class="alert alert-info animated fadeInDown"> <button type="button" class="close" data-dismiss="alert" aria-label="Close"> <span aria-hidden="true">×</span> </button> <?php echo __("We have detected some incompatibilities, installation may not work as expected but you can try."); ?> </div> <?php } ?> <?php foreach (install::$msg as $msg) { ?> <div class="alert alert-warning animated fadeInDown"> <button type="button" class="close" data-dismiss="alert" aria-label="Close"> <span aria-hidden="true">×</span> </button> <?php echo $msg; ?> </div> <?php } ?> <?php } ?> <div class="alert animated fadeInDown"> <p class="text-danger"><strong>Your hosting seems to be not compatible. Check your settings.</strong></p> <p>We have partnership with hosting companies to assure compatibility. And we include:</p> <br> <ul> <li>100% Compatible High Speed Hosting</li> <li>1 Premium Theme, of your choice worth $185</li> <li>Professional Installation and Support for 3 months</li> </ul> <br> <p> <a class="btn btn-default btn-large" href="http://open-classifieds.com/hosting/"> <i class=" icon-shopping-cart icon-white"></i> Get Hosting! Less than $4 Month </a> </p> </div> </div> </div> </div> <?php }