nttoanbrvt

Untitled

Aug 28th, 2014
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.45 KB | None | 0 0
  1.                     if( !$video_url ){
  2.                         echo json_encode(array(
  3.                             'resp'  =>  'error',
  4.                             'message'   =>  __('Video Link is required','mars'),
  5.                             'element_id'    =>  'video_url'
  6.                         ));exit;               
  7.                     }
  8.                    
  9.                     if( strpos( $video_url , 'list=') === true ){
  10.                         echo json_encode(array(
  11.                             'resp'  =>  'error',
  12.                             'message'   =>  __('Please enter a single video, not a playlist','mars'),
  13.                             'element_id'    =>  'video_url'
  14.                         ));exit;                       
  15.                     }
Advertisement
Add Comment
Please, Sign In to add comment