public function db_in($data = null) { if (!$data) { $data = $this->data; } if ($data) { $db = $db = $this->dbprepere; $post = array("gallery_name" => $db->str_in($data["gallery_name"]), "gallery_publish_time" => current_time("mysql", 0), "gallery_attachment" => empty($data["gallery_attachment"]) ? serialize(array()) : serialize($db->json_in($data["gallery_attachment"]))); } return parent::db_in($post); }
public function db_in($post) { if ($post) { $db = $this->dbprepere; $data = array("comment_content" => $db->html_in($post["comment_content"]), "comment_author" => $db->str_in($post["comment_author"]), "comment_author_email" => $db->str_in($post["comment_author_email"]), "comment_user_id" => $db->int_in($post["comment_user_id"]), "comment_event_id" => $db->int_in($post["comment_event_id"]), "comment_approved" => $db->int_in($post["comment_approved"])); } return parent::db_in($data); }