示例#1
0
文件: www.php 项目: nyan-cat/easyweb
 function wrap($mixed, $domain, $lifetime = 0)
 {
     isset($this->domains[$domain]) or backend_error('bad_method', 'Unknown domain: ' . $domain);
     $expire_at = $lifetime ? @time() + $lifetime : 0;
     return security::wrap($mixed, $this->domains[$domain], $expire_at);
 }