private function newKeys() { set_time_limit(30000); $path = get_include_path(); $rsa = new Crypt_RSA(); $keys = $rsa->createKey($this->bits); set_include_path($path); if ($this->type == "filegallery") { FileGallery\File::filename($this->certName)->setParam("description", $this->certName)->replace(json_encode($keys)); } if ($this->type == "file") { file_put_contents("temp/" . $this->certName, json_encode($keys)); } return $keys; }
public function listArchives() { $archives = array(); if ($this->isFileGal == true) { $file = FileGallery\File::filename($this->name); foreach ($file->listArchives() as $archive) { $archive = $this->open(); $archives[$archive->feed->date] = $archive->feed->entry; } } return $archives; }