[3526] | 1 | <?php |
---|
| 2 | include("../inc/inc.Settings.php"); |
---|
| 3 | include("../inc/inc.AccessUtils.php"); |
---|
| 4 | include("../inc/inc.ClassAccess.php"); |
---|
| 5 | include("../inc/inc.ClassDocument.php"); |
---|
| 6 | include("../inc/inc.ClassFolder.php"); |
---|
| 7 | include("../inc/inc.ClassGroup.php"); |
---|
| 8 | include("../inc/inc.ClassUser.php"); |
---|
| 9 | include("../inc/inc.DBAccess.php"); |
---|
| 10 | include("../inc/inc.FileUtils.php"); |
---|
| 11 | include("../inc/inc.Language.php"); |
---|
| 12 | include("../inc/inc.OutUtils.php"); |
---|
| 13 | |
---|
| 14 | include("../inc/inc.Authentication.php"); |
---|
| 15 | |
---|
| 16 | $folderid = (isset($_GET['folderid'])) ? (int) $_GET['folderid'] : NULL; |
---|
| 17 | $folder = getFolder($folderid); |
---|
| 18 | |
---|
| 19 | if ($folder->getAccessMode($user) < M_ALL) |
---|
| 20 | die ("Access denied"); |
---|
| 21 | |
---|
| 22 | |
---|
| 23 | printHTMLHead( getMLText("folder_title", array("foldername" => $folder->getName()) ) ); |
---|
| 24 | |
---|
| 25 | printTitleBar($folder); |
---|
| 26 | printFolderPageStart($folder); |
---|
| 27 | printPageHeader(getMLText("rm_folder") . ": " . $folder->getName()); |
---|
| 28 | |
---|
| 29 | printStartBox(getMLText("rm_folder")); |
---|
| 30 | ?> |
---|
| 31 | |
---|
| 32 | <form action="../op/op.RemoveFolder.php" name="form1"> |
---|
| 33 | <input type="Hidden" name="folderid" value="<?php print $folderid;?>"> |
---|
| 34 | <div class="standardText"> |
---|
| 35 | <?php |
---|
| 36 | print lang('Do you really want to remove the folder "%1" and its content?<br>Be careful: This action cannot be undone.', $folder->getName()); |
---|
| 37 | ?> |
---|
| 38 | </div><br> |
---|
| 39 | <input type="Submit" value="<?php printMLText("rm_folder");?>"> |
---|
| 40 | </form> |
---|
| 41 | |
---|
| 42 | |
---|
| 43 | <?php |
---|
| 44 | |
---|
| 45 | printEndBox(); |
---|
| 46 | printFolderPageEnd($folder); |
---|
| 47 | printHTMLFoot(); |
---|
| 48 | |
---|
| 49 | ?> |
---|