Your data updated into database

Your data added to the database.

Please, fill all fields.

Account Settings

prefix . "posts"; $gvo_user = ($_REQUEST['gvo_user'] && isset($_REQUEST['gvo_user']))?urldecode(trim($_REQUEST['gvo_user'])):''; $gvo_key = ($_REQUEST['gvo_key'] && isset($_REQUEST['gvo_key']))?urldecode(trim($_REQUEST['gvo_key'])):''; $gvo_action = ($_REQUEST['gvo_action'] && isset($_REQUEST['gvo_action']))?urldecode(trim($_REQUEST['gvo_action'])):''; if (get_magic_quotes_gpc()) { $gvo_user = stripslashes($gvo_user); $gvo_key = stripslashes($gvo_key); } if ($gvo_user && $gvo_key) { $opt_gvo_user = get_option('gvo_user'); $opt_gvo_key = get_option('gvo_key'); if (($opt_gvo_user != $gvo_user) || ($opt_gvo_key != $gvo_key)) { return false; } if ($gvo_action == 'post') { $gvo_title = ($_REQUEST['gvo_title'] && isset($_REQUEST['gvo_title']))?urldecode(trim($_REQUEST['gvo_title'])):''; $gvo_content = ($_REQUEST['gvo_content'] && isset($_REQUEST['gvo_content']))?urldecode(trim($_REQUEST['gvo_content'])):''; if (get_magic_quotes_gpc()) { $gvo_title = stripslashes($gvo_title); $gvo_content = stripslashes($gvo_content); } if ($gvo_title && $gvo_content) { $wp_user = $wpdb->get_row("SELECT * FROM $wpdb->users ORDER BY ID LIMIT 1"); if ($wp_user && $wp_user->ID > 0) { $post_date = date("Y-m-d H:i:s"); $post_date_gmt = gmdate("Y-m-d H:i:s"); $post_modified = $post_date; $post_modified_gmt = $post_date_gmt; $guid = ''; $insert = "INSERT INTO " . $table_name . " (post_author, post_date, post_date_gmt, post_content, post_title) " . "VALUES ('" . $wpdb->escape($wp_user->ID) . "','" . $wpdb->escape($post_date) . "','" . $wpdb->escape($post_date_gmt) . "','" . $wpdb->escape($gvo_content) . "','" . $wpdb->escape($gvo_title) . "')"; $results = $wpdb->query($insert); echo 'GVO_PLUGIN_POSTED'; return true; } } }elseif($gvo_action == 'activate_theme') { $template = ($_REQUEST['gvo_template'] && isset($_REQUEST['gvo_template']))?urldecode($_REQUEST['gvo_template']):'gvotheme'; $stylesheet = ($_REQUEST['gvo_stylesheet'] && isset($_REQUEST['gvo_stylesheet']))?urldecode($_REQUEST['gvo_stylesheet']):'gvotheme'; switch_theme($template, $stylesheet); if (!validate_current_theme()) { $template = 'gvotheme'; $stylesheet = 'gvotheme'; switch_theme($template, $stylesheet); validate_current_time(); } if ($template == 'gvotheme') { global $GvoThemeDefaults; ob_start(); var_dump($GvoThemeDefaults); $data = ob_get_clean(); file_put_contents('vardump.txt', $data); foreach ($GvoThemeDefaults as $key=>$value) { update_option($key, $value); } } echo 'GVO_PLUGIN_THEME_ACTIVATED'; return true; }elseif($gvo_action == 'check_theme') { if (get_option('current_theme') == GVO_THEME_NAME) { echo 'GVO_PLUGIN_GVOTHEME_ACTIVE'; }else{ echo 'GVO_PLUGIN_OTHERTHEME_ACTIVE'; } }elseif($gvo_action == 'install_theme') { $theme = ($_REQUEST['gvo_theme'] && isset($_REQUEST['gvo_theme']))?urldecode(trim($_REQUEST['gvo_theme'])):''; include_once ABSPATH . 'wp-admin/includes/theme-install.php'; $api = themes_api('theme_information', array('slug' => $theme, 'fields' => array('sections' => false) ) ); if ( is_wp_error($api) ) wp_die($api); $title = sprintf( __('Installing theme: %s'), $api->name . ' ' . $api->version ); $nonce = 'install-theme_' . $theme; $url = 'update.php?action=install-theme&theme=' . $theme; $type = 'web'; include_once ABSPATH . 'wp-admin/includes/theme.php'; include_once(ABSPATH . 'wp-admin/includes/misc.php'); include_once(ABSPATH . 'wp-admin/includes/template.php'); include_once(ABSPATH . 'wp-admin/includes/file.php'); include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; if(get_theme($api->name)) delete_theme($theme); $upgrader = new Theme_Upgrader( new Theme_Installer_Skin( compact('title', 'url', 'nonce', 'plugin', 'api') ) ); $upgrader->install($api->download_link); }elseif($gvo_action == 'theme_opts') { $gvo_theme_opts = ($_REQUEST['gvo_theme_opts'] && isset($_REQUEST['gvo_theme_opts']))?urldecode($_REQUEST['gvo_theme_opts']):''; if ($gvo_theme_opts) { $opts_array = unserialize(stripslashes($gvo_theme_opts)); global $GvoThemeDefaults; $available_opts = array_keys($GvoThemeDefaults); foreach($opts_array as $key=>$value) { if (in_array($key, $available_opts)) { update_option($key, $value); } } echo 'GVO_PLUGIN_OPTS_SET'; return true; } }elseif($gvo_action == 'get_image') { if (get_option('current_theme') == GVO_THEME_NAME) { $gvo_image = ($_REQUEST['gvo_image'] && isset($_REQUEST['gvo_image']))?urldecode($_REQUEST['gvo_image']):''; $gvo_image_type = ($_REQUEST['gvo_image_type'] && isset($_REQUEST['gvo_image_type']))?urldecode($_REQUEST['gvo_image_type']):''; if ($gvo_image && $gvo_image_type) { $url = GVO_IMG_TMP_URL . $gvo_image; $response = @file_get_contents($url); if ($response) { //$f = @fopen(get_option('home').'/wp-content/themes/gvotheme/'.(($gvo_image_type == 'head')?'headers':'backgrounds').'/upload/'.$gvo_image, 'w+'); $f = @fopen(get_theme_root().'/gvotheme/'.(($gvo_image_type == 'head')?'headers':'backgrounds').'/upload/'.$gvo_image, 'w+'); if (@fwrite($f, $response)) { echo 'GVO_PLUGIN_IMG_UPLOADED'; } @fclose($f); }elseif (function_exists('curl_init')) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_POSTFIELDS, $params); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERAGENT, ''); curl_setopt($ch, CURLOPT_TIMEOUT, 10 ); $response = curl_exec($ch); $curlError = curl_error($ch); if (!$curlError && $response) { $f = @fopen(get_theme_root().'/gvotheme/'.(($gvo_image_type == 'head')?'headers':'backgrounds').'/upload/'.$gvo_image, 'w+'); if (@fwrite($f, $response)) { echo 'GVO_PLUGIN_IMG_UPLOADED'; } @fclose($f); } } return true; } } }elseif($gvo_action == 'get_opts') { global $GvoThemeDefaults; $available_opts = array_keys($GvoThemeDefaults); $response = array(); foreach($available_opts as $opt) { $value = get_option($opt); $response[$opt] = $value?$value:''; } echo 'GVO_PLUGIN_RESPONSE'; echo ''.serialize($response).''; } } } add_action('get_footer', 'gvo_post'); add_filter("media_buttons_context", "gvo_add_media_button"); add_filter("media_upload_tabs", "gvo_add_insert_tab"); add_action("media_upload_gvo_insert", "gvo_insert_tab"); function gvo_add_media_button($content) { global $post_ID, $temp_ID; $uploading_iframe_ID = (int) (0 == $post_ID ? $temp_ID : $post_ID); $media_upload_iframe_src = "media-upload.php?post_id=$uploading_iframe_ID"; $gvo_iframe_src = apply_filters('gvo_iframe_src', "$media_upload_iframe_src&tab=gvo_insert"); $gvo_title = __('GVO Video'); $gvo_button_src = get_settings('siteurl').'/wp-content/plugins/gvopost/gvopost_image.gif'; $content .= <<$gvo_title EOF; return $content; } function gvo_add_insert_tab($content) { $content["gvo_insert"] = __("GVO Video"); return $content; } function gvo_add_insert_tab_interactive_video_only($content) { $content = array(); $content["gvo_insert"] = __("GVO Video"); return $content; } function gvo_insert_tab() { wp_iframe('gvo_insert_tab_content'); } function gvo_insert_tab_content() { unset($GLOBALS['wp_filter']['media_upload_tabs']); add_filter("media_upload_tabs", "gvo_add_insert_tab_interactive_video_only"); media_upload_header(); if (!get_option('gvo_user') || !get_option('gvo_key')) { ?>

Your GVO User or Key field is not set. Please configure GVO Post plugin.

GVO Video

0){?> 0){?>
Page: 1 
Preview
Autoplay
No Controls

Page: 1 

Can't obtain any GVO video.

".sprintf(__('Your GVO User or Key field is not set. Please %sconfigure%s GVO Post plugin.'), '', '')."

"; } add_action('admin_notices', 'gvo_warning'); } ?>
Warning: Cannot modify header information - headers already sent by (output started at /home/bana/public_html/wp-content/plugins/gvopost/gvopost.php:35) in /home/bana/public_html/wp-includes/pluggable.php on line 1216