Пример #1
0
    $r = $config->address . "?view=image_editor";
} elseif ($_POST["delete_image"]) {
    $_SESSION["image_id"] = $_POST["image_id"];
    $r = $config->address . "?view=image_delete";
} elseif ($_POST["delete_the_image"]) {
    $r = $manage->deleteOnId($_SESSION["image_id"]);
} elseif ($_POST["purchase"]) {
    if (!$_SESSION["login"]) {
        $_SESSION["message"] = "ERROR_NOTAUTH";
        $r = $config->address . "?view=message";
    } else {
        $r = $manage->purchase($_POST);
    }
} elseif ($_POST["delete_basket"]) {
    //print_r($_POST);
    $r = $manage->delete_from_basket($_POST);
} elseif ($_POST["image_new_values"]) {
    $r = $manage->image_new_values($_POST);
} elseif ($_POST["setCheckedMessages"]) {
    $r = $manage->setCheckedMessages($_POST);
} elseif ($_GET["logout"]) {
    unset($_SESSION["login"]);
    $r = $config->address;
} elseif ($_POST["GetComment"]) {
    $id = $_POST["picture_id"];
    $r = $manage->addComment($id);
} elseif ($_POST["upload_image"]) {
    $r = $manage->addimage($_FILES, $_POST);
} elseif ($_POST["upload_photo"]) {
    $r = $manage->addPhoto($_FILES);
} elseif ($_POST["deleteComment"]) {