Permalink
Browse files

fix bug for admin save not work on https

  • Loading branch information...
chen420 committed Oct 27, 2016
1 parent 3f60e99 commit 7223dec4fba0ee5261eed2decb18fd0a7bdec3c6
Showing with 10 additions and 13 deletions.
  1. +10 −13 menus.php
View
@@ -24,7 +24,7 @@ function wp_tinywebdb_api_optionsmenu() {
$setting_tagtype = get_option("wp_tinywebdb_api_tag_type") or $setting_tagtype = 'id';
$setting_apikey = get_option("wp_tinywebdb_api_key");
echo '<form method="post" action="http://' . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] . '">';
echo '<form method="post" action="">';
echo '<table class="form-table">';
?>
@@ -80,23 +80,23 @@ function wp_tinywebdb_api_optionsmenu() {
<p><code><a href="<?php echo get_option('home') . "/" . $setting_url_trigger ?>/storeavalue/">storeavalue</a></code></p>
</td>
</tbody>
</table>
<div class="clear"></div>
</div>
</table>
<div class="clear"></div>
</div>
<h3>Address</h3>
<table class="form-table">
<tr valign="top">
<th scope="row">API base</th>
<table class="form-table">
<tr valign="top">
<th scope="row">API base</th>
<td><input name="urltrigger" type="text" id="urltrigger" value="<?php echo $setting_url_trigger; ?>" size="50" /><br/>Specify a base URL for TinyWebDB API. For example, using api as your API base URL would enable the following <?php echo get_option('home'); ?>/api/. You can change the <em>api</em> part of your TinyWebDB APIs to something else. Enter without slashes.</td>
</tr>
<tr valign="top">
<th scope="row">API Key</th>
<tr valign="top">
<th scope="row">API Key</th>
<td><input name="apikey" type="text" id="apikey" value="<?php echo $setting_apikey; ?>" size="50" /><br/>Set api key to protect your TinyWebDB API. Client mast set same api key to Store A Value to your site</td>
</tr>
<tr valign="top">
<th scope="row">Tag type</th>
<td>
@@ -131,8 +131,5 @@ function wp_tinywebdb_api_admin_style() {
add_action('wp_head', 'wp_tinywebdb_api_admin_style');
function wp_tinywebdb_api_footer() {
echo '<div style="margin-top:45px; font-size:0.87em;">';
echo '<div><a href="' . wp_tinywebdb_api_get_plugin_dir('url') . '/readme.txt">Documentation</a> | <a href="http://appinventor.in/side/tinywebdb-api/">TinyWebDB Homepage</a></div>';
echo '</div>';
}
?>

0 comments on commit 7223dec

Please sign in to comment.