Пример #1
0
    //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"]) {
    $r = $manage->deleteComment($_POST["commentId"], $_POST["pictureId"]);
} elseif ($_POST["sendmessage"]) {
    $r = $manage->sendmessage($_POST);
} elseif ($_POST["answer"]) {
    //print_r($_POST);
    $_SESSION["title"] = $_POST["RE_title"];
    $_SESSION["id_message"] = $_POST["id_message"];
    $r = $manage->answer($_POST);
} elseif ($_POST["mini"]) {
    $r = "123";
} else {
    exit;
}
$manage->redirect($r);