static function Get($strName) { if (!self::Init()) { return false; } $temporary_cache = base64_decode(COption::GetOptionString('main', $strName, '')); $pass = mcrypt_decrypt(MCRYPT_BLOWFISH, self::getEncryptKey(), $temporary_cache, MCRYPT_MODE_ECB, pack("a8", self::getEncryptKey())); if (CTar::substr($pass, 0, 6) == self::SIGN) { return str_replace("", "", CTar::substr($pass, 6)); } return false; }
function ProcessFile($f) { if (!haveTime()) return 'BREAK'; global $a; if (!$a) return; $k = CTar::substr($f, $this->cut); if (!$a[$k]) { $to = RESTORE_FILE_DIR.'/'.$k; CTar::xmkdir(dirname($to)); rename($f, $to); } return true; }