Exemple #1
0
         if (deleteEntry($db, $url)) {
             header("Location: /simple_blog/");
             exit;
         } else {
             exit("Error deleting Entry");
         }
     } else {
         header("Location: /simple_blog/blog/{$url}");
         exit;
     }
 }
 if (isset($_GET['url'])) {
     $url = htmlentities(strip_tags($_GET['url']));
     $legend = "Edit this Entry";
     if ($page == 'delete') {
         $confirm = confirmDelete($db, $url);
     }
     $e = retrieveEntries($db, $page, $url);
     $id = $e['id'];
     $entry = $e['entry'];
     $title = $e['title'];
 } else {
     if ($page == 'createUser') {
         $create = createUserForm();
     }
     $legend = "New Entry Submission";
     $id = NULL;
     $entry = NULL;
     $title = NULL;
 }
 ?>
Exemple #2
0
    if (!isset($_SESSION["path"]) || $_SESSION["path"] == "") {
        $_SESSION["path"] = "/";
    }
    if (isset($_REQUEST["path"])) {
        $_SESSION["path"] = @$_REQUEST["path"];
    }
    listCurrentPath();
} else {
    if ($command == "upload") {
        printUploadFile();
    } else {
        if ($command == "doupload") {
            doUpload();
        } else {
            if ($command == "delete") {
                confirmDelete();
            } else {
                if ($command == "dodelete") {
                    doDelete();
                } else {
                    if ($command == "open") {
                        openFile();
                    } else {
                        if ($command == "mkdir") {
                            printMkDir();
                        } else {
                            if ($command == "domkdir") {
                                doMkDir();
                            } else {
                                if ($command == "chacl") {
                                    $path = @$_POST["pathname"];