PluginProbe
VdoCipher: Secure Video Player and Hosting / 1.26
VdoCipher: Secure Video Player and Hosting v1.26
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 | include/options.php +26 -12 1.231.26 View file →
@@ -26,9 +26,11 @@
26 26 <input type="password" name="vdo_client_key"
27 27 value="<?php echo esc_attr(get_option('vdo_client_key')); ?>"
28 28 max-length="64" style="width: 640px" id="vdo_client_key" />
29 29 <p style="margin-left:20px; position: relative">
30 - <span id="toggle_span"><button id="toggle_API_visibility" href="#" data-protected="On">Show API Secret Key</button></span>
30 + <span id="toggle_span">
31 + <button id="toggle_API_visibility" href="#" data-protected="On">Show API Secret Key</button>
32 + </span>
31 33 </p>
32 34 </div>
33 35 </td>
34 36 </tr>
@@ -49,9 +51,9 @@
49 51
50 52 <!-- Version Number -->
51 53 <?php
52 54 if ((get_option('vdo_embed_version')) == false) {
53 - update_option('vdo_embed_version', '1.6.4');
55 + update_option('vdo_embed_version', VDOCIPHER_PLAYER_VERSION);
54 56 }
55 57 ?>
56 58 <tr valign="top">
57 59 <th scope="row">Player Version</th>
@@ -59,13 +61,13 @@
59 61 <div style="display: inline-flex">
60 62 <select id="vdo_embed_version">
61 63 <?php
62 64 $vdo_embed_version_vars = array(
63 - '0.5', '1.0.0', '1.1.0', '1.1.3', '1.2.7', '1.3.3', '1.4.5','1.5.0','1.6.4'
65 + '0.5', '1.0.0', '1.1.0', '1.1.3', '1.2.7', '1.3.3', '1.4.5','1.5.0','1.6.4','1.6.10'
64 66 );
65 - $vdo_embed_version_str = get_option('vdo_embed_version');
67 + $vdo_embed_version_string = get_option('vdo_embed_version');
66 68 foreach ($vdo_embed_version_vars as $vdo_embed_version_var) {
67 - if ($vdo_embed_version_str == $vdo_embed_version_var) {
69 + if ($vdo_embed_version_string == $vdo_embed_version_var) {
68 70 $selected = 'selected';
69 71 } else {
70 72 $selected = '';
71 73 }
@@ -72,9 +74,9 @@
72 74 switch ($vdo_embed_version_var) {
73 75 case '0.5':
74 76 $version_old_new = ' (old player)';
75 77 break;
76 - case '1.6.4':
78 + case VDOCIPHER_PLAYER_VERSION:
77 79 $version_old_new = ' (newest player)' ;
78 80 break;
79 81 default:
80 82 $version_old_new = ' (new player)';
@@ -79,9 +81,9 @@
79 81 default:
80 82 $version_old_new = ' (new player)';
81 83 break;
82 84 }
83 - ?>
85 + ?>
84 86 <option value="<?php echo $vdo_embed_version_var; ?>" <?php echo $selected; ?> >
85 87 <?php echo $vdo_embed_version_var . $version_old_new ; ?>
86 88 </option>
87 89 <?php } ?>
@@ -98,9 +100,9 @@
98 100 </tr>
99 101
100 102 <!-- Player Theme Options -->
101 103 <?php
102 - if ((get_option('vdo_player_theme')) == false) {
104 + if (!(get_option('vdo_player_theme'))) {
103 105 update_option('vdo_player_theme', '9ae8bbe8dd964ddc9bdb932cca1cb59a');
104 106 }
105 107 ?>
106 108 <tr valign="top">
@@ -106,13 +108,18 @@
106 108 <tr valign="top">
107 109 <th scope="row">Player Theme</th>
108 110 <td>
109 111 <div style="display:inline-flex; margin-bottom:10px;">
110 - <input type="text" name="vdo_player_theme"
111 - value="<?php echo esc_attr(get_option('vdo_player_theme')); ?>" max-length = "32" style="width: 320px" disabled
112 + <input
113 + type="text"
114 + name="vdo_player_theme"
115 + value="<?php echo esc_attr(get_option('vdo_player_theme')); ?>"
116 + max-length = "32"
117 + style="width: 320px"
118 + readonly
112 119 />
113 120 <p style="margin-left:20px; position: relative">
114 - <span><a href="<?php menu_page_url( 'themesvdo', 1 ); ?> " >Select Custom Player Theme</a><br/>
121 + <span><a href="<?php menu_page_url('themesvdo', 1); ?> " >Select Custom Player Theme</a><br/>
115 122 </p>
116 123 </div>
117 124 <p class="description">
118 125 Player theme is not available for old player version(0.5). The default theme will be applied for old player.
@@ -175,8 +182,15 @@
175 182 </a>
176 183 </p>
177 184 </td>
178 185 </tr>
186 + <tr style="display:none;">
187 + <td>Plugin version no.: </td>
188 + <td><input
189 + id="vdo_plugin_version" name="vdo_plugin_version"
190 + value="<?php echo esc_attr(get_option('vdo_plugin_version')); ?>" readonly>
191 + </td>
192 + </tr>
179 193 </table>
180 194 <?php
181 195 wp_enqueue_script('vdo_validate_watermark', plugin_dir_url(__FILE__).'js/validatewatermark.js');
182 196 wp_localize_script('vdo_validate_watermark', 'vdoValidateWatermark', array(
@@ -185,9 +199,9 @@
185 199 wp_enqueue_script('vdo_html_flash_choice', plugin_dir_url(__FILE__).'js/flashhtml5choice.js');
186 200 wp_enqueue_script('vdo_hide_key', plugin_dir_url(__FILE__).'js/showkey.js');
187 201 wp_localize_script('vdo_html_flash_choice', 'vdoVD', array(
188 202 'vdoAV' => $vdo_embed_version_vars,
189 - 'vdoSV' => $vdo_embed_version_str
203 + 'vdoSV' => $vdo_embed_version_string
190 204 ));
191 205 ?>
192 206 <?php submit_button(); ?>
193 207 </form>