if ($pgDisplayPechoFatal) { $pgVerbose[] = 4; } $pgIRCTrigger = array('!', '.'); //Last version check $tmp = null; if (function_exists('mb_internal_encoding')) { mb_internal_encoding("UTF-8"); } // Suppress warnings if timezone not set on server date_default_timezone_set(@date_default_timezone_get()); //Check for updates before loading Peachy. if (!$pgDisableUpdates && !defined('PEACHY_PHPUNIT_TESTS')) { //the below MUST have its own Http object or else things will break $updater = new AutoUpdate(new HTTP()); $Uptodate = $updater->Checkforupdate(); if (!$Uptodate) { $updater->updatePeachy(); } } require_once $pgIP . 'Includes/Peachy.php'; /** * Simple version_compare() wrapper * @param string $check_version string * @throws DependencyError * @return void */ function peachyCheckPHPVersion($check_version) { if (version_compare(PHP_VERSION, $check_version, '<')) { throw new DependencyError("PHP " . $check_version, "http://php.net/downloads.php");