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