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