Example #1
0
 public function db_in($post = null)
 {
     global $current_user;
     if (!$post) {
         $post = $this->data;
     }
     if ($post) {
         $db = $this->dbprepere;
         $data = array("tour_name" => $db->str_in($post["tour_name"]), "tour_description" => $db->html_in($post["tour_description"]), "tour_order" => $db->int_in($post["tour_order"]), "tour_publish_date" => current_time("mysql", 0), "tour_tour_status" => $db->int_in($post["tour_tour_status"]), "tour_gallery_status" => $db->int_in($post["tour_gallery_status"]), "tour_video_status" => $db->int_in($post["tour_video_status"]), "tour_flickr_status" => $db->int_in($post["tour_flickr_status"]), "tour_post_status" => $db->int_in($post["tour_post_status"]), "tour_author" => $current_user->ID);
     }
     return parent::db_in($data);
 }
Example #2
0
 public function db_in($post = null)
 {
     global $_wt_options, $current_user;
     $data = array();
     if ($post) {
         $db = $this->dbprepere;
         if (empty($post["event_end_date"])) {
             $post["event_end_date"] = $post["event_start_date"];
         }
         if ($post["event_status"] != "onsale") {
             $post["event_on_sale"] = "";
         }
         $data = array_merge($data, array("event_id" => $db->int_in($post["event_id"]), "meta_id" => $db->int_in($post["event_meta_id"]), "artists" => $post["event_more_artists"], "common" => array('event_title' => $db->str_in($post["event_title"]), 'event_opening_act' => $db->str_in($post["event_opening_act"]), 'event_type' => $db->str_in(strtolower($post["event_type"])), 'event_start_date' => $db->date_in($post["event_start_date"]), 'event_start_time' => $db->time_in($post["event_start_time"]), 'event_end_date' => $db->date_in($post["event_end_date"]), 'event_end_time' => $db->time_in($post["event_end_time"]), 'event_opening_act' => $db->str_in($post["event_opening_act"]), 'event_venue_id' => $db->int_in($post["event_venue_id"]), 'event_artist_id' => $db->int_in($post["event_artist_id"]), 'event_is_headline' => 1, 'event_tour_id' => $db->int_in($post["event_tour_id"]), 'event_status' => $db->str_in($post["event_status"]), 'event_on_sale' => $db->date_in($post["event_on_sale"]), 'event_notes' => $db->html_in($post["event_notes"]), 'comment_status' => $db->int_in($post["comment_status"]), 'rsvp_status' => $db->int_in($post["rsvp_status"]), 'gallery_status' => $db->int_in($post["gallery_status"]), 'flickr_status' => $db->int_in($post["flickr_status"]), 'post_status' => $db->int_in($post["post_status"]), 'video_status' => $db->int_in($post["video_status"]), "event_publish_date" => current_time("mysql", 0), "event_author" => $current_user->ID), "meta" => array("tkts_url" => $db->link_in($post["tkts_url"]), "tkts_price" => $db->str_in($post["tkts_price"]), "tkts_phone" => $db->str_in($post["tkts_phone"]))));
     }
     return parent::db_in($data);
 }
Example #3
0
 public function db_in($post = null)
 {
     global $current_user;
     if (!$post) {
         $post = $this->data;
     }
     if ($post) {
         $db = $this->dbprepere;
         $data = array("artist_name" => $db->str_in($post["artist_name"]), "artist_order" => $db->int_in($post["artist_order"]), "artist_record_company" => $db->str_in($post["artist_record_company"]), "artist_bio" => $db->html_in($post["artist_bio"]), "artist_website_url" => $db->link_in($post["artist_website_url"]), "artist_email" => $db->str_in($post["artist_email"]), "artist_publish_date" => current_time("mysql", 0), "artist_tour_status" => $db->int_in($post["artist_tour_status"]), "artist_gallery_status" => $db->int_in($post["artist_gallery_status"]), "artist_video_status" => $db->int_in($post["artist_video_status"]), "artist_flickr_status" => $db->int_in($post["artist_flickr_status"]), "artist_post_status" => $db->int_in($post["artist_post_status"]), "artist_social_links" => serialize(array("artist_flickr" => $db->link_in($post["artist_flickr"]), "artist_youtube" => $db->link_in($post["artist_youtube"]), "artist_vimeo" => $db->link_in($post["artist_vimeo"]), "artist_facebook" => $db->link_in($post["artist_facebook"]), "artist_twitter" => $db->link_in($post["artist_twitter"]), "artist_lastfm" => $db->link_in($post["artist_lastfm"]), "artist_myspace" => $db->link_in($post["artist_myspace"]), "artist_bandcamp" => $db->link_in($post["artist_bandcamp"]), "artist_tumblr" => $db->link_in($post["artist_tumblr"]), "artist_reverbnation" => $db->link_in($post["artist_reverbnation"]))), "artist_author" => $current_user->ID);
     }
     return parent::db_in($data);
 }
Example #4
0
 public function db_in($post = null)
 {
     global $current_user;
     if (!$post) {
         $post = $this->data;
     }
     if ($post) {
         $db = $this->dbprepere;
         $data = array("track_title" => $db->str_in($post["track_title"]), "track_play_count" => $db->int_in($post["track_play_count"]), "track_artist_id" => $db->int_in($post["track_artist_id"]), "track_label" => $db->str_in($post["track_label"]), "track_credits" => $db->str_in($post["track_credits"]), "track_about" => $db->html_in($post["track_about"]), "track_lyrics" => $db->html_in($post["track_lyrics"]), "track_lyrics_author" => $db->str_in($post["track_lyrics_author"]), 'track_release_date' => $db->date_in($post["track_release_date"]), "track_publish_date" => current_time("mysql", 0), "track_author" => $current_user->ID);
     }
     return parent::db_in($data);
 }
Example #5
0
 public function db_in($post = null)
 {
     global $current_user;
     if (!$post) {
         $post = $this->data;
     }
     if ($post) {
         $db = $this->dbprepere;
         $state_code = $post["venue_state"];
         $country_code = get_country_by_name($post["venue_country"]);
         if (!empty($post["venue_state"]) && $country_code == "US") {
             $state_code = get_state_by_name($post["venue_state"]);
             if (!$state_code) {
                 $state_code = strtoupper($post["venue_state"]);
             }
         }
         $data = array("venue_name" => $db->str_in($post["venue_name"]), "venue_order" => $db->int_in($post["venue_order"]), "venue_phone" => $db->str_in($post["venue_phone"]), "venue_zip" => $db->str_in($post["venue_zip"]), "venue_address" => $db->str_in($post["venue_address"]), "venue_city" => $db->str_in($post["venue_city"]), "venue_state" => $state_code, "venue_country" => $country_code, "venue_info" => $db->html_in($post["venue_info"]), "venue_url" => $db->link_in($post["venue_url"]), "venue_publish_date" => current_time("mysql", 0), "venue_tour_status" => $db->int_in($post["venue_tour_status"]), "venue_gallery_status" => $db->int_in($post["venue_gallery_status"]), "venue_video_status" => $db->int_in($post["venue_video_status"]), "venue_flickr_status" => $db->int_in($post["venue_flickr_status"]), "venue_post_status" => $db->int_in($post["venue_post_status"]), "venue_author" => $current_user->ID);
     }
     return parent::db_in($data);
 }
Example #6
0
 public function db_in($post = null)
 {
     global $current_user;
     if (!$post) {
         $post = $this->data;
     }
     if ($post) {
         $db = $this->dbprepere;
         $data = array("album_title" => $db->str_in($post["album_title"]), "album_artist_id" => $db->int_in($post["album_artist_id"]), "album_order" => $db->int_in($post["album_order"]), "album_label" => $db->str_in($post["album_label"]), "album_type" => $db->str_in($post["album_type"]), "album_credits" => $db->str_in($post["album_credits"]), "album_about" => $db->html_in($post["album_about"]), 'album_release_date' => $db->date_in($post["album_release_date"]), "album_publish_date" => current_time("mysql", 0), "album_tracks_status" => $db->int_in($post["album_tracks_status"]), "album_similar_status" => $db->int_in($post["album_similar_status"]), "album_buy_links" => serialize(array("album_buy_amazon" => $db->link_in($post["album_buy_amazon"]), "album_buy_amazon_mp3" => $db->link_in($post["album_buy_amazon_mp3"]), "album_buy_itunes" => $db->link_in($post["album_buy_itunes"]), "album_buy_link_1" => $db->link_in($post["album_buy_link_1"]), "album_buy_link_2" => $db->link_in($post["album_buy_link_2"]), "album_buy_link_3" => $db->link_in($post["album_buy_link_3"]), "album_buy_pay_pal" => $db->html_form_in($post["album_buy_pay_pal"]))), "album_author" => $current_user->ID);
     }
     return parent::db_in($data);
 }