PluginProbe
VdoCipher: Secure Video Player and Hosting / 1.6
VdoCipher: Secure Video Player and Hosting v1.6
trunk 1.10 1.11 1.12 1.13 1.14 1.15 1.17 1.18 1.19 1.20 1.21 1.22 1.23 1.24 1.25 1.26 1.27 1.28 1.29 1.3 1.30 1.4 1.5 1.6 All 28 releases
← All changes | vdocipher.php +5 -3 1.41.6 View file →
@@ -2,9 +2,9 @@
2 2 /**
3 3 * Plugin Name: VdoCipher
4 4 * Plugin URI: http://www.vdocipher.com
5 5 * Description: Secured video hosting for wordpress
6 - * Version: 1.4
6 + * Version: 1.6
7 7 * Author: VdoCipher
8 8 * Author URI: http://www.vdocipher.com
9 9 * License: GPL2
10 10 */
@@ -88,8 +88,9 @@
88 88 }
89 89 if (get_option('vdo_annotate_code') != "") {
90 90 $current_user = wp_get_current_user();
91 91 $vdo_annotate_code = get_option('vdo_annotate_code');
92 + $vdo_annotate_code = apply_filters('vdocipher_annotate_preprocess', $vdo_annotate_code);
92 93 if (is_user_logged_in()) {
93 94 $vdo_annotate_code = str_replace('{name}', $current_user->display_name , $vdo_annotate_code);
94 95 $vdo_annotate_code = str_replace('{email}', $current_user->user_email , $vdo_annotate_code);
95 96 $vdo_annotate_code = str_replace('{username}', $current_user->user_login , $vdo_annotate_code);
@@ -96,8 +97,9 @@
96 97 $vdo_annotate_code = str_replace('{id}', $current_user->ID , $vdo_annotate_code);
97 98 }
98 99 $vdo_annotate_code = str_replace('{ip}', $_SERVER['REMOTE_ADDR'] , $vdo_annotate_code);
99 100 $vdo_annotate_code = preg_replace_callback('/\{date\.([^\}]+)\}/', "eval_date" , $vdo_annotate_code);
101 + $vdo_annotate_code = apply_filters('vdocipher_annotate_postprocess', $vdo_annotate_code);
100 102 if(!$no_annotate)
101 103 $anno = "annotate=". urlencode($vdo_annotate_code);
102 104 }
103 105 $OTP = vdo_send("otp", $params, $anno);
@@ -138,11 +140,11 @@
138 140 add_options_page( 'VdoCipher Options', 'VdoCipher', 'manage_options', 'vdocipher', 'vdo_options' );
139 141 }
140 142 function vdo_options(){
141 143 if (!get_option('vdo_default_height'))
142 - update_option('vdo_default_height', '720');
144 + update_option('vdo_default_height', '360');
143 145 if (!get_option('vdo_default_width'))
144 - update_option('vdo_default_width', '1280');
146 + update_option('vdo_default_width', '640');
145 147 $vdo_client_key = get_option('vdo_client_key');
146 148 if (!$vdo_client_key && strlen($vdo_client_key) != 64) {
147 149 vdo_show_form_client_key();
148 150 return "";