/**
  * getting hash from server
  * @return array Array of hashsum files new version
  */
 public function getHashSum()
 {
     if (time() >= $this->getSettings('checkTime') + 60 * 10) {
         $domen = $_SERVER['SERVER_NAME'];
         $key = $this->getSettings('careKey');
         $result = $this->client->getHashSum($domen, IMAGECMS_NUMBER, BUILD_ID, $key);
         write_file(BACKUPFOLDER . 'md5.txt', $result);
         $result = (array) json_decode($result);
         $this->setSettings(array("checkTime" => time()));
     } else {
         $result = (array) json_decode(read_file(BACKUPFOLDER . 'md5.txt'));
     }
     return $result;
 }