function initKeys()
{
+ $d = HTML_FlexyFramework::get()->Pman['storedir'].'/key';
+
if(
file_exists("{$d}/pub.key") ||
file_exists("{$d}/pri.key")
return;
}
- //$ff->pman['storedir']/key generic for all projects?
+ $d = HTML_FlexyFramework::get()->Pman['storedir'].'/key';
$this->setStoreDir($dir);
openssl_public_encrypt($v, $cipher, $pub_key);
return $cipher;
}
-
- function setStoreDir($dir)
- {
- if(!file_exists($dir)) {
- $oldumask = umask(0);
- mkdir($dir, 0775, true);
- umask($oldumask);
- }
- $this->storedir = $dir;
- }
}