* @copyright 2017 MyAAC * @version 0.2.0 * @link http://my-aac.org */ defined('MYAAC') or die('Direct access not allowed!'); $title = 'Version check'; // fetch version //$file = @fopen('http://my-aac.org/VERSION', 'r') or die('Error while fetching version.'); //$myaac_version = fgets($file); $myaac_version = file_get_contents('http://my-aac.org/VERSION'); // compare them if(version_compare($myaac_version, MYAAC_VERSION) <= 0) echo '

MyAAC latest version is ' . $myaac_version . '. You\'re using the latest version.
View CHANGELOG ' . generateLink(ADMIN_URL . '?p=changelog', 'here') . '

'; else echo '

You\'re using outdated version.
Your version: ' . MYAAC_VERSION . '
Latest version: ' . $myaac_version . '
Download available at: www.my-aac.org

'; /* function version_revert($version) { $major = floor($version / 10000); $version -= $major * 10000; $minor = floor($version / 100); $version -= $minor * 100; $release = $version; return $major . '.' . $minor . '.' . $release; }*/ ?>