function initKeys()
{
- $d = $this->storedir;
+ $d = HTML_FlexyFramework::get()->Pman['storedir'].'/key';
if(
file_exists("{$d}/pub.key") ||
return;
}
- function initSetting($a, $dir)
+ function initSetting($a)
{
- if(empty($a) || empty($dir)) {
+ if(empty($a)) {
return;
}
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;
- }
}