/**
  * Exactly the same as the above, except this one decrypts the mail settings!
  *
  * @return array|null
  */
 public static function DecryptMailerSettings()
 {
     if (FileMethods::FileExists(PathFinder::RealPath('Json/encrypted/mailer_settings.json'))) {
         $return = array();
         /**
          * Reads our settings
          */
         $read_settings = JsonReader::Read('Json/encrypted/mailer_settings.json');
         /**
          * Loop
          */
         foreach ($read_settings['mailer_settings'] as $key => $value) {
             /**
              * Lets first get the vector
              */
             $vector = $value['vector'];
             /**
              * Then, lets decrypt!
              */
             $return[$key] = Encryption::DecryptString($value['encrypted_string'], $read_settings['decryption_key'], $vector);
         }
         /**
          * Return this array
          */
         return $return;
     }
     /**
      * If no files could be found
      */
     return null;
 }
Example #2
0
 /**
  * Reads our access points
  *
  * @return mixed|null
  */
 private function ReadAccessPoints()
 {
     if (FileMethods::FileExists(PathFinder::RealPath('Json/api/api_access_points.json')) == false) {
         return null;
     }
     return JsonReader::Read('Json/api/api_access_points.json');
 }
Example #3
0
 /**
  * Gets our log
  *
  * @return mixed|null
  */
 public function GetLog()
 {
     return JsonReader::Read('Json/resource/install_log.json');
 }