Ejemplo n.º 1
0
         foreach ($arrVideoID as $vID) {
             if ($vID) {
                 $tntVid->tntGetVideo($vID);
                 $tntVid->videoStatus = 0;
                 $tntVid->tntUpdateVideo();
             } else {
                 $tntResult = false;
                 break;
             }
         }
         break;
     case 3:
         foreach ($arrVideoID as $vID) {
             if ($vID) {
                 $tntVid->tntGetVideo($vID);
                 $tntVid->tntDeleteVideo();
             } else {
                 $tntResult = false;
                 break;
             }
         }
         break;
     default:
         break;
 }
 if ($tntResult == true) {
     $location = add_query_arg(array('m' => 1));
 } else {
     $location = add_query_arg(array('m' => 0));
 }
 Header("Location: {$location}");