Plugin Directory

Changeset 2282302


Ignore:
Timestamp:
04/13/2020 09:44:03 AM (6 years ago)
Author:
chen420
Message:

tagging version 0.2.10

Location:
tinywebdb-api
Files:
2 added
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • tinywebdb-api/tags/0.2.10/menus.php

    r1818322 r2282302  
    9595    $setting_apikey = get_option("wp_tinywebdb_api_key");
    9696
    97     echo '<form method="post" action="">';
    9897    echo '<table class="form-table">';
    9998    ?>
     
    107106          <th class="manage-column" scope="col">Controller</th>
    108107          <th class="manage-column" scope="col">Description</th>
    109         </tr>
    110       </thead>
    111       <tfoot>
    112         <tr>
    113           <th class="manage-column check-column" scope="col"></th>
    114           <th class="manage-column" scope="col">Controller</th>
    115           <th class="manage-column" scope="col">Description</th>
     108          <th class="manage-column" scope="col">API</th>
    116109        </tr>
    117110      </tfoot>
     
    125118            <td class="desc">
    126119              <p>Basic introspection methods</p>
     120            </td>
     121            <td class="desc">
    127122          <p><code><a href="<?php echo get_option('home') . "/" . $setting_url_trigger ?>/info/">info</a></code></p>
    128123            </td>
     
    136131            <td class="desc">
    137132              <p>Get dara from your post by Post ID or  Slug </p>
    138           <p><code><a href="<?php echo get_option('home') . "/" . $setting_url_trigger ?>/getvalue/">getvalue</a></code></p>
     133            </td>
     134            <td class="desc">
     135    <form action="<?php echo get_option('home') . "/" . $setting_url_trigger ?>/getvalue" method="post" enctype=application/x-www-form-urlencoded>
     136       Tag:<input type="text" name="tag" />
     137       <input type="hidden" name="fmt" value="html">
     138       <input type="submit" value="Get value">
     139    </form>
    139140            </td>
    140141          </tr>
     
    148149            <td class="desc">
    149150              <p>Store data on a your post by Post ID or  Slug </p>
    150           <p><code><a href="<?php echo get_option('home') . "/" . $setting_url_trigger ?>/storeavalue/">storeavalue</a></code></p>
     151            </td>
     152            <td class="desc">
     153    <form action="<?php echo get_option('home') . "/" . $setting_url_trigger ?>/storeavalue" method="post" enctype=application/x-www-form-urlencoded>
     154       Tag:<input type="text" name="tag"/>
     155       Value:<input type="text" name="value" size="30"/>
     156       <input type="hidden" name="fmt" value="html">
     157       <input type="submit" value="Store a value">
     158    </form>
    151159            </td>
    152160     </tbody>
     
    157165    <h3>Address</h3>
    158166
     167    <form method="post" action="">
    159168    <table class="form-table">
    160169        <tr valign="top">
    161170            <th scope="row">API base</th>
    162         <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>
     171        <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/'. <br>You can change the <em>api</em> part of your TinyWebDB APIs to something else. Enter without slashes.</td>
    163172    </tr>
    164173
    165174        <tr valign="top">
    166175            <th scope="row">API Key</th>
    167         <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>
     176        <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. (This function no ready)</td>
    168177    </tr>
    169178
     
    176185    </tr>
    177186
     187    </table>
     188    <input name="issubmitted" type="hidden" value="yes" />
     189    <p class="submit"><input type="submit" name="Submit" value="Save settings" /></p>
     190    </form>
     191
    178192    <?php
    179     echo '</table>';
    180     echo '<input name="issubmitted" type="hidden" value="yes" />';
    181     echo '<p class="submit"><input type="submit" name="Submit" value="Save settings" /></p>';
    182     echo '</form>';
    183193    wp_tinywebdb_api_footer();
    184194    echo '</div>';
  • tinywebdb-api/tags/0.2.10/readme.txt

    r1818322 r2282302  
    22
    33Contributors: chen420 
    4 Plugin URI: https://github.com/edu2web/tinywebdb-api 
     4Plugin URI: https://github.com/TinyWebDB/tinywebdb-api
    55Author URI: https://github.com/chen420 
    6 Document URI: http://edu2web.com/tinywebdb-api/ 
    7 Donate link: http://edu2web.com/tinywebdb-api/donate/ 
     6Document URI: http://api.edu2web.com/tinywebdb-api/ 
     7Donate link:  http://api.edu2web.com/tinywebdb-api/donate/ 
    88Tags: appinventor, tinywebdb, api 
    99Requires at least: 4.0 
    1010Requires PHP: 5.2.4 
    11 Tested up to: 4.9 
    12 Stable tag: 0.2.9
     11Tested up to: 5.4 
     12Stable tag: 0.2.11
    1313License: GPLv2 or later 
    1414License URI: http://www.gnu.org/licenses/gpl-2.0.html 
    1515
    1616a AppInventor TinyWebDB API plugin, use you WordPress as a TinyWebDB web service.
     17We also have lso have a TinyWebDB implementation based on PHP and textfile. No database is required.
     18https://github.com/TinyWebDB/tinywebdb-php
    1719
    1820
     
    9496Active "Store A Value" and some enhancement.
    9597
     98= 0.2.9 =
     99Active log viewer and some enhancement.
     100
     101= 0.2.11 = 
     102App PHP7 support.
     103App test form on admin page.
     104
    96105= 1.0.0 = 
  • tinywebdb-api/tags/0.2.10/tinywebdb-api.php

    r1818322 r2282302  
    99Author: Hong Chen
    1010Author URI: http://edu2web.com/tinywebdb-api/
    11 Version: 0.2.9
     11Version: 0.2.11
    1212*/
    1313
    14 
    1514define("TINYWEBDB", "tools.php?page=tinywebdb-api/tinywebdb-api.php");
    16 define("TINYWEBDB_VER", "0.2.9");
     15define("TINYWEBDB_VER", "0.2.11");
    1716
    1817//***** Hooks *****
     
    2221//***** End Hooks *****
    2322
    24 
    2523//***** Installer *****
    2624if (is_admin()) {
    2725    include "installer.php";
    2826}
    29 
    3027
    3128//***** get $request and get_post , then json_encode it *****
     
    4037
    4138function wp_tinywebdb_api_query() {
    42 
    43 
    4439    require_once dirname(__FILE__) . '/tinywebdb.php';
    45     $tinywebdb = TinyWebDB;
     40    $tinywebdb = new TinyWebDB();
    4641    header("HTTP/1.1 200 OK");
    4742
     
    8984
    9085
    91 
    9286//Just a boring function to insert the menus
    9387function wp_tinywebdb_api_add_pages() {
     
    9791
    9892
    99 
    10093//***** Menu *****
    10194if (is_admin()) {
    10295    include "menus.php";
    10396}
    104 
    10597
    10698
     
    116108
    117109
    118 
    119110//***** Get Plugin Location *****
    120111function wp_tinywebdb_api_get_plugin_dir($type) {
     
    128119
    129120
    130 
    131121//***** Add Item to Favorites Menu *****
    132122function wp_tinywebdb_api_add_menu_favorite($actions) {
     
    136126add_filter('favorite_actions', 'wp_tinywebdb_api_add_menu_favorite'); //Favorites Menu
    137127
    138 
    139 
    140128?>
  • tinywebdb-api/tags/0.2.10/tinywebdb.php

    r1769473 r2282302  
    5151
    5252        if ( strpos('/'.$request, '/'.$url_trigger.'/') ) {
    53 
    54         $tinywebdb_key = explode($url_trigger.'/', $request);
    55         $tinywebdb_key = $tinywebdb_key[1];
    56         $tinywebdb_key = explode('/', $tinywebdb_key);
    57         $action = $tinywebdb_key[0];
    58         $action = $wpdb->escape($action);
    59 
    60         return $action;
    61         }
    62       return "No match!";
     53        $tinywebdb_key = explode($url_trigger.'/', $request);
     54        $tinywebdb_key = $tinywebdb_key[1];
     55        $tinywebdb_key = explode('/', $tinywebdb_key);
     56        $action = $tinywebdb_key[0];
     57        $action = $wpdb->escape($action);
     58            return $action;
     59    }
     60    return "No match!";
    6361    }
    6462
  • tinywebdb-api/trunk/menus.php

    r1818322 r2282302  
    9595    $setting_apikey = get_option("wp_tinywebdb_api_key");
    9696
    97     echo '<form method="post" action="">';
    9897    echo '<table class="form-table">';
    9998    ?>
     
    107106          <th class="manage-column" scope="col">Controller</th>
    108107          <th class="manage-column" scope="col">Description</th>
    109         </tr>
    110       </thead>
    111       <tfoot>
    112         <tr>
    113           <th class="manage-column check-column" scope="col"></th>
    114           <th class="manage-column" scope="col">Controller</th>
    115           <th class="manage-column" scope="col">Description</th>
     108          <th class="manage-column" scope="col">API</th>
    116109        </tr>
    117110      </tfoot>
     
    125118            <td class="desc">
    126119              <p>Basic introspection methods</p>
     120            </td>
     121            <td class="desc">
    127122          <p><code><a href="<?php echo get_option('home') . "/" . $setting_url_trigger ?>/info/">info</a></code></p>
    128123            </td>
     
    136131            <td class="desc">
    137132              <p>Get dara from your post by Post ID or  Slug </p>
    138           <p><code><a href="<?php echo get_option('home') . "/" . $setting_url_trigger ?>/getvalue/">getvalue</a></code></p>
     133            </td>
     134            <td class="desc">
     135    <form action="<?php echo get_option('home') . "/" . $setting_url_trigger ?>/getvalue" method="post" enctype=application/x-www-form-urlencoded>
     136       Tag:<input type="text" name="tag" />
     137       <input type="hidden" name="fmt" value="html">
     138       <input type="submit" value="Get value">
     139    </form>
    139140            </td>
    140141          </tr>
     
    148149            <td class="desc">
    149150              <p>Store data on a your post by Post ID or  Slug </p>
    150           <p><code><a href="<?php echo get_option('home') . "/" . $setting_url_trigger ?>/storeavalue/">storeavalue</a></code></p>
     151            </td>
     152            <td class="desc">
     153    <form action="<?php echo get_option('home') . "/" . $setting_url_trigger ?>/storeavalue" method="post" enctype=application/x-www-form-urlencoded>
     154       Tag:<input type="text" name="tag"/>
     155       Value:<input type="text" name="value" size="30"/>
     156       <input type="hidden" name="fmt" value="html">
     157       <input type="submit" value="Store a value">
     158    </form>
    151159            </td>
    152160     </tbody>
     
    157165    <h3>Address</h3>
    158166
     167    <form method="post" action="">
    159168    <table class="form-table">
    160169        <tr valign="top">
    161170            <th scope="row">API base</th>
    162         <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>
     171        <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/'. <br>You can change the <em>api</em> part of your TinyWebDB APIs to something else. Enter without slashes.</td>
    163172    </tr>
    164173
    165174        <tr valign="top">
    166175            <th scope="row">API Key</th>
    167         <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>
     176        <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. (This function no ready)</td>
    168177    </tr>
    169178
     
    176185    </tr>
    177186
     187    </table>
     188    <input name="issubmitted" type="hidden" value="yes" />
     189    <p class="submit"><input type="submit" name="Submit" value="Save settings" /></p>
     190    </form>
     191
    178192    <?php
    179     echo '</table>';
    180     echo '<input name="issubmitted" type="hidden" value="yes" />';
    181     echo '<p class="submit"><input type="submit" name="Submit" value="Save settings" /></p>';
    182     echo '</form>';
    183193    wp_tinywebdb_api_footer();
    184194    echo '</div>';
  • tinywebdb-api/trunk/readme.txt

    r1818322 r2282302  
    22
    33Contributors: chen420 
    4 Plugin URI: https://github.com/edu2web/tinywebdb-api 
     4Plugin URI: https://github.com/TinyWebDB/tinywebdb-api
    55Author URI: https://github.com/chen420 
    6 Document URI: http://edu2web.com/tinywebdb-api/ 
    7 Donate link: http://edu2web.com/tinywebdb-api/donate/ 
     6Document URI: http://api.edu2web.com/tinywebdb-api/ 
     7Donate link:  http://api.edu2web.com/tinywebdb-api/donate/ 
    88Tags: appinventor, tinywebdb, api 
    99Requires at least: 4.0 
    1010Requires PHP: 5.2.4 
    11 Tested up to: 4.9 
    12 Stable tag: 0.2.9
     11Tested up to: 5.4 
     12Stable tag: 0.2.11
    1313License: GPLv2 or later 
    1414License URI: http://www.gnu.org/licenses/gpl-2.0.html 
    1515
    1616a AppInventor TinyWebDB API plugin, use you WordPress as a TinyWebDB web service.
     17We also have lso have a TinyWebDB implementation based on PHP and textfile. No database is required.
     18https://github.com/TinyWebDB/tinywebdb-php
    1719
    1820
     
    9496Active "Store A Value" and some enhancement.
    9597
     98= 0.2.9 =
     99Active log viewer and some enhancement.
     100
     101= 0.2.11 = 
     102App PHP7 support.
     103App test form on admin page.
     104
    96105= 1.0.0 = 
  • tinywebdb-api/trunk/tinywebdb-api.php

    r1818322 r2282302  
    99Author: Hong Chen
    1010Author URI: http://edu2web.com/tinywebdb-api/
    11 Version: 0.2.9
     11Version: 0.2.11
    1212*/
    1313
    14 
    1514define("TINYWEBDB", "tools.php?page=tinywebdb-api/tinywebdb-api.php");
    16 define("TINYWEBDB_VER", "0.2.9");
     15define("TINYWEBDB_VER", "0.2.11");
    1716
    1817//***** Hooks *****
     
    2221//***** End Hooks *****
    2322
    24 
    2523//***** Installer *****
    2624if (is_admin()) {
    2725    include "installer.php";
    2826}
    29 
    3027
    3128//***** get $request and get_post , then json_encode it *****
     
    4037
    4138function wp_tinywebdb_api_query() {
    42 
    43 
    4439    require_once dirname(__FILE__) . '/tinywebdb.php';
    45     $tinywebdb = TinyWebDB;
     40    $tinywebdb = new TinyWebDB();
    4641    header("HTTP/1.1 200 OK");
    4742
     
    8984
    9085
    91 
    9286//Just a boring function to insert the menus
    9387function wp_tinywebdb_api_add_pages() {
     
    9791
    9892
    99 
    10093//***** Menu *****
    10194if (is_admin()) {
    10295    include "menus.php";
    10396}
    104 
    10597
    10698
     
    116108
    117109
    118 
    119110//***** Get Plugin Location *****
    120111function wp_tinywebdb_api_get_plugin_dir($type) {
     
    128119
    129120
    130 
    131121//***** Add Item to Favorites Menu *****
    132122function wp_tinywebdb_api_add_menu_favorite($actions) {
     
    136126add_filter('favorite_actions', 'wp_tinywebdb_api_add_menu_favorite'); //Favorites Menu
    137127
    138 
    139 
    140128?>
  • tinywebdb-api/trunk/tinywebdb.php

    r1769473 r2282302  
    5151
    5252        if ( strpos('/'.$request, '/'.$url_trigger.'/') ) {
    53 
    54         $tinywebdb_key = explode($url_trigger.'/', $request);
    55         $tinywebdb_key = $tinywebdb_key[1];
    56         $tinywebdb_key = explode('/', $tinywebdb_key);
    57         $action = $tinywebdb_key[0];
    58         $action = $wpdb->escape($action);
    59 
    60         return $action;
    61         }
    62       return "No match!";
     53        $tinywebdb_key = explode($url_trigger.'/', $request);
     54        $tinywebdb_key = $tinywebdb_key[1];
     55        $tinywebdb_key = explode('/', $tinywebdb_key);
     56        $action = $tinywebdb_key[0];
     57        $action = $wpdb->escape($action);
     58            return $action;
     59    }
     60    return "No match!";
    6361    }
    6462
Note: See TracChangeset for help on using the changeset viewer.