Пример #1
0
 /**
  * Checks if current AppDB instance is deployed in production server
  * It checks the deploy.instance value of the application configuration
  * 
  * @return bool
  */
 public static function isProductionInstance()
 {
     $instance = strtolower(trim(ApplicationConfiguration::deploy('instance')));
     if ($instance === 'production') {
         return true;
     } else {
         if ($instance === '' && strtolower($_SERVER["SERVER_NAME"]) === 'appdb.egi.eu') {
             return true;
         }
     }
     return false;
 }