$label Video


"; global $wpdb; if($term_id==0) { if ($_POST[mlv_title] && $_GET[mode]!="pca") { $title = mlv::cleanQuery(($_POST[mlv_title])); $embedCode = mlv::cleanQuery(($_POST[mlv_embedCode])); if($title&&$title!=''&&$embedCode&&$embedCode!='') { //Script to insert into db $date = date("Y-m-d G:i:s"); $script = " INSERT INTO ". $wpdb->prefix . "posts ( `post_author`, `post_date`, `post_date_gmt`, `post_content`, `post_title`, `post_excerpt`, `post_status`, `comment_status`, `ping_status`, `post_password`, `post_name`, `to_ping`, `pinged`, `post_modified`, `post_modified_gmt`, `post_content_filtered`, `post_parent`, `guid`, `menu_order`, `post_type`, `post_mime_type`, `comment_count` ) VALUES ( 1 ,'".$date."' ,'".$date."' ,'$embedCode' ,'$title' ,'' ,'inherit' ,'open' ,'open' ,'' ,'".sanitize_title(iz-overtherainbow)."' ,'' ,'' ,'".$date."' ,'".$date."' ,'' ,0 ,'http://www.youtube.com/embed/$embedCode' ,0 ,'attachment' ,'video/x-flv' ,0 ); "; //'$mlv_base/youtube.jpg' //print $script; $wpdb->query($script); print "
Successful Addition
"; //header("location:$_SERVER[HTTP_REFERER]"); } else { print "
ALL FIELDS ARE REQUIRED!


"; } } else { print "
All fields are required.


"; } } $base=get_option('siteurl'); print "
Title*

Youtube Key*:


Cancel
"; ?>