| 1 |
<?php |
| 2 |
if (__FILE__ == $_SERVER['SCRIPT_FILENAME']) { |
| 3 |
header($_SERVER['SERVER_PROTOCOL'] . ' 404 Not Found'); |
| 4 |
exit("<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\r\n<html><head>\r\n<title>404 Not Found</title>\r\n</head><body>\r\n<h1>Not Found</h1>\r\n<p>The requested URL " . $_SERVER['SCRIPT_NAME'] . " was not found on this server.</p>\r\n</body></html>"); |
| 5 |
} |
| 6 |
?> |
| 7 |
<div class="wrap"> |
| 8 |
<h2>VdoCipher Options</h2> |
| 9 |
|
| 10 |
<form method="post" action="options.php"> |
| 11 |
<?php |
| 12 |
settings_fields( 'vdo_option-group' ); |
| 13 |
do_settings_sections( 'vdo_option-group' ); |
| 14 |
?> |
| 15 |
<div class="updated"> |
| 16 |
<p><strong>Status : </strong> Ready to use. You can now embed your videos inside posts and pages.</p> |
| 17 |
</div> |
| 18 |
<table class="form-table"> |
| 19 |
<tr valign="top"> |
| 20 |
<th scope="row">Client Secret Key</th> |
| 21 |
<td><input type="text" name="vdo_client_key" value="<?php echo esc_attr( get_option('vdo_client_key') ); ?>" max-length="64" size="60" id="vdo_client_key" /></td> |
| 22 |
</tr> |
| 23 |
|
| 24 |
<tr valign="top"> |
| 25 |
<th scope="row">Default Width</th> |
| 26 |
<td><input type="text" name="vdo_default_width" value="<?php echo esc_attr( get_option('vdo_default_width') ); ?>" /></td> |
| 27 |
</tr> |
| 28 |
|
| 29 |
<tr valign="top"> |
| 30 |
<th scope="row">Default Height</th> |
| 31 |
<td><input type="text" name="vdo_default_height" value="<?php echo esc_attr( get_option('vdo_default_height') ); ?>" /></td> |
| 32 |
</tr> |
| 33 |
|
| 34 |
<tr valign="top"> |
| 35 |
<th scope="row">Annotation Statement</th> |
| 36 |
<td> |
| 37 |
<textarea name="vdo_annotate_code" type="textarea" rows="5" cols="60"><?php |
| 38 |
if (get_option(vdo_annotate_code) != "") { |
| 39 |
echo get_option(vdo_annotate_code); |
| 40 |
} |
| 41 |
?></textarea> |
| 42 |
<p class="description">Leave this text blank in case you do not need watermark over all Videos</p> |
| 43 |
</td> |
| 44 |
</tr> |
| 45 |
</table> |
| 46 |
<?php submit_button(); ?> |
| 47 |
</form> |
| 48 |
</div> |
| 49 |
|