public static function checkInstallMode()
 {
     if (!is_readable(THEBUGGENIE_PATH . 'installed')) {
         self::$_installmode = true;
     } elseif (is_readable(THEBUGGENIE_PATH . 'upgrade')) {
         self::$_installmode = true;
         self::$_upgrademode = true;
         \b2db\Core::setCachingEnabled(false);
         TBGCache::disable();
     } else {
         $version_info = explode(',', file_get_contents(THEBUGGENIE_PATH . 'installed'));
         $current_version = $version_info[0];
         if ($current_version != TBGSettings::getVersion(false, false)) {
             throw new TBGConfigurationException("It seems you are trying to use a newer version of The Bug Genie than the one you installed. Please upgrade before continuing.\n\nIf you are trying to upgrade, make sure that the 'upgrade' file is present and readable. Please see the upgrade instructions here: <a href='http://issues.thebuggenie.com/wiki/TheBugGenie%3AFAQ'>thebuggenie.com &raquo; wiki &raquo; FAQ</a> for more information.");
         }
     }
 }