Пример #1
0
<?php

include "./dataManager.php";
try {
    $data = new DataManager();
    $mode = htmlspecialchars($_GET["mode"]);
    switch ($mode) {
        case "color":
            $color = htmlspecialchars($_GET["color"]);
            $result = $data->setFilmColor($color);
            break;
        case "sound":
            $sound = htmlspecialchars($_GET["sound"]);
            $result = $data->setFilmSound($sound);
            break;
        case "measurement":
            $measurement = htmlspecialchars($_GET["measurement"]);
            $result = $data->setFilmMeasurement($measurement);
            break;
        case "color_process":
            $color_process = htmlspecialchars($_GET["color_process"]);
            $result = $data->setFilmColorProcess($color_process);
            break;
        case "sound_system":
            $sound_system = htmlspecialchars($_GET["sound_system"]);
            $result = $data->setFilmSoundSystem($sound_system);
            break;
        case "technical_process":
            $technical_process = htmlspecialchars($_GET["technical_process"]);
            $result = $data->setFilmTechnicalProcess($technical_process);
            break;