} /** * Process: Update Action Selected */ if (isset($_POST['tntBtnAct'])) { $tntVid = new TNT_Video(); $tntAction = $_POST["tntActions"]; $arrVideoID = $_POST["tntChkVideos"]; $tntResult = true; switch ($tntAction) { case 1: foreach ($arrVideoID as $vID) { if ($vID) { $tntVid->tntGetVideo($vID); $tntVid->videoStatus = 1; $tntVid->tntUpdateVideo(); } else { $tntResult = false; break; } } break; case 2: foreach ($arrVideoID as $vID) { if ($vID) { $tntVid->tntGetVideo($vID); $tntVid->videoStatus = 0; $tntVid->tntUpdateVideo(); } else { $tntResult = false; break;