Exemplo n.º 1
0
    Header("Location: {$location}");
}
/**
 * Process: Delete Video (Click No)
 */
if (isset($_POST['tntDelVideo_No'])) {
    $location = admin_url() . "/admin.php?page=tnt_video_manage_page";
    Header("Location: {$location}");
}
/**
 * Process: Insert Video Type
 */
if (isset($_POST['tntAddVideoType'])) {
    $t = new TNT_VideoType();
    $t->videoTypeTitle = $_POST["typeTitle"];
    if ($t->tntInsertVideoType()) {
        $location = add_query_arg(array('m' => 1));
    } else {
        $location = add_query_arg(array('m' => 0));
    }
    Header("Location: {$location}");
}
/**
 * Process: Edit Video Type
 */
if (isset($_POST['tntEditVideoType'])) {
    $typeID = $_POST["typeID"];
    $t = new TNT_VideoType();
    $t->tntGetType($typeID);
    $t->videoTypeTitle = $_POST["typeTitle"];
    if ($t->tntUpdateVideoType() >= 0) {