function handleChacl($path, $subcmd) { $cmd = $subcmd; if ("" == $cmd) { $cmd = "list"; } if ("list" == $cmd) { return listACLsByPath($path); } else { if ("del" == $cmd) { $aclids = @$_POST["aclid"]; if (!is_array($aclids) || !isset($aclids[0]) || $aclids[0] == "") { echo "Bitte wählen Sie eine ACL zum Löschen aus."; return listACLsByPath($path); } else { deleteACL($aclids[0]); } } } return true; }
<?php ob_start(); require_once "inc/functions.inc.php"; if (!loggedIn()) { setupSession(); } require_once "inc/config.inc.php"; require_once "inc/mysql_class.inc.php"; require_once "inc/fehlerausgabe.inc.php"; $PageName = "ACL-Editor"; require "inc/header.inc.php"; require "inc/leftnav.inc.php"; $command = @$_POST["cmd"]; if ($command == "") { $command = "list"; } if ($command == "list") { $path = @$_POST["path"]; if ($path == "") { fehlerausgabe("Kein Pfad angegeben"); die; } listACLsByPath($path); } /* else if ($command == "change") { if (!doChange()) printProfileForm(); else redirectTo($_SERVER["PHP_SELF"]); }*/ require "inc/footer.inc.php"; ob_end_flush();