Ejemplo n.º 1
0
function lxshell_unzip_with_throw($dir, $file, $list = null)
{
    lxuser_unzip_with_throw('__system__', $dir, $file, $list);
}
Ejemplo n.º 2
0
 function do_restore($docd)
 {
     global $gbl, $sgbl, $login, $ghtml;
     $name = $this->main->getPathFromName('nname');
     $fullpath = "{$sgbl->__path_customer_root}/{$name}/";
     lxuser_mkdir($this->main->username, $fullpath);
     lxfile_generic_chown($docd, $this->main->username);
     lxuser_unzip_with_throw($this->main->username, $fullpath, $docd);
     lxfile_generic_chown($fullpath, "{$this->main->username}:apache");
     lxfile_generic_chmod($fullpath, "0750");
 }