public function system_reports()
 {
     // check php version compare
     if (!defined('MIN_PHP_VERSION_ID')) {
         define('MIN_PHP_VERSION_ID', 50301);
     }
     $min_version_display = "5.3.1";
     $settings = array('source' => 'Runway System', 'report_key' => 'runway_min_php_version_compare', 'success_message' => __('Your PHP version is good! You are running version', 'framework') . ' ' . $min_version_display, 'fail_message' => __('Your PHP version is', 'framework') . ': ' . PHP_VERSION . '. ' . __('Your PHP version id is', 'framework') . ': ' . PHP_VERSION_ID . '. ' . __('You must have PHP version', 'framework') . ' ' . $min_version_display . ' ' . __('or later', 'framework') . '.', 'type' => 'SYSTEM');
     if (MIN_PHP_VERSION_ID <= runway_php_version(true)) {
         $this->set_success($settings);
     } else {
         $this->set_fail($settings);
     }
 }
Ejemplo n.º 2
0
    $php_version_id = PHP_VERSION_ID;
    if ($php_version_id < $tmp_version_id) {
        $php_version_id = $tmp_version_id;
    }
    if ($version == true) {
        return $php_version_id;
    } else {
        if ($php_version_id >= MIN_PHP_VERSION_ID) {
            return true;
        } else {
            return false;
        }
    }
}
// Test the PHP version before we continue
if (runway_php_version(true) >= MIN_PHP_VERSION_ID) {
    // We're good! This at least v5.3.1
    //-----------------------------------------------------------------
    // Functions needing to run before config.php is loaded
    //-----------------------------------------------------------------
    include_once 'includes/load-functions.php';
    //-----------------------------------------------------------------
    // Framework configuration variables
    //-----------------------------------------------------------------
    include_once 'defaults.php';
    //-----------------------------------------------------------------
    // Load framework components
    //-----------------------------------------------------------------
    include_once 'core/common-object.php';
    //-----------------------------------------------------------------
    // Load translations for javascript