Changeset 2088641
- Timestamp:
- 05/15/2019 09:27:03 PM (7 years ago)
- Location:
- bestbooks/trunk
- Files:
-
- 2 deleted
- 4 edited
-
README.md (modified) (1 diff)
-
admin.php.bak (deleted)
-
api.php (modified) (12 diffs)
-
api.php.bak (deleted)
-
bestbooks.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
bestbooks/trunk/README.md
r2082587 r2088641 161 161 162 162 # Changelog 163 = 2.3.2 = 164 * Fixed for operations on a single-site as well as multi-site installation of WordPress 165 * Added argument information to the REST API routes 166 163 167 = 2.3.1 = 164 168 * Change ownership references from PHK Corporation to PressPage Entertainment Inc -
bestbooks/trunk/api.php
r2082587 r2088641 19 19 array( 20 20 'methods' => array('GET','POST'), 21 'callback' => 'bestbooks_api_version' 21 'callback' => 'bestbooks_api_version', 22 'args' => array( 23 'user' => array('required' => true), 24 'pass' => array('required' => true) 25 ) 22 26 ) 23 27 ); … … 26 30 array( 27 31 'methods' => array('GET','POST'), 28 'callback' => 'bestbooks_api_settings' 32 'callback' => 'bestbooks_api_settings', 33 'args' => array( 34 'user' => array('required' => true), 35 'pass' => array('required' => true) 36 ) 29 37 ) 30 38 ); … … 33 41 array( 34 42 'methods' => array('GET','POST'), 35 'callback' => 'bestbooks_api_chartofaccounts' 43 'callback' => 'bestbooks_api_chartofaccounts', 44 'args' => array( 45 'user' => array('required' => true), 46 'pass' => array('required' => true), 47 'name' => array('required' => false), 48 'type' => array('required' => false) 49 ) 36 50 ) 37 51 ); … … 40 54 array( 41 55 'methods' => array('GET','POST'), 42 'callback' => 'bestbooks_api_get_acctypes' 56 'callback' => 'bestbooks_api_get_acctypes', 57 'args' => array( 58 'user' => array('required' => true), 59 'pass' => array('required' => true) 60 ) 43 61 ) 44 62 ); … … 47 65 array( 48 66 'methods' => array('GET','POST'), 49 'callback' => 'bestbooks_api_debit' 67 'callback' => 'bestbooks_api_debit', 68 'args' => array( 69 'user' => array('required' => true), 70 'pass' => array('required' => true), 71 'name' => array('required' => true), 72 'date' => array('required' => true), 73 'desc' => array('required' => true), 74 'amount' => array('required' => true) 75 ) 50 76 ) 51 77 ); … … 54 80 array( 55 81 'methods' => array('GET','POST'), 56 'callback' => 'bestbooks_api_credit' 82 'callback' => 'bestbooks_api_credit', 83 'args' => array( 84 'user' => array('required' => true), 85 'pass' => array('required' => true), 86 'name' => array('required' => true), 87 'date' => array('required' => true), 88 'desc' => array('required' => true), 89 'amount' => array('required' => true) 90 ) 57 91 ) 58 92 ); … … 61 95 array( 62 96 'methods' => array('GET','POST'), 63 'callback' => 'bestbooks_api_balance' 97 'callback' => 'bestbooks_api_balance', 98 'args' => array( 99 'user' => array('required' => true), 100 'pass' => array('required' => true), 101 'name' => array('required' => true), 102 'balance' => array('required' => false) 103 ) 64 104 ) 65 105 ); … … 68 108 array( 69 109 'methods' => array('GET','POST'), 70 'callback' => 'bestbooks_api_add' 110 'callback' => 'bestbooks_api_add', 111 'args' => array( 112 'user' => array('required' => true), 113 'pass' => array('required' => true), 114 'name' => array('required' => true), 115 'date' => array('required' => true), 116 'desc' => array('required' => true), 117 'amount' => array('required' => true) 118 ) 71 119 ) 72 120 ); … … 75 123 array( 76 124 'methods' => array('GET','POST'), 77 'callback' => 'bestbooks_api_subtract' 125 'callback' => 'bestbooks_api_subtract', 126 'args' => array( 127 'user' => array('required' => true), 128 'pass' => array('required' => true), 129 'name' => array('required' => true), 130 'date' => array('required' => true), 131 'desc' => array('required' => true), 132 'amount' => array('required' => true) 133 ) 78 134 ) 79 135 ); … … 82 138 array( 83 139 'methods' => array('GET','POST'), 84 'callback' => 'bestbooks_api_headers' 140 'callback' => 'bestbooks_api_headers', 141 'args' => array( 142 'user' => array('required' => true), 143 'pass' => array('required' => true) 144 ) 85 145 ) 86 146 ); … … 248 308 } else { 249 309 $results = $account->getBalance(); 310 if (is_null($result) || empty($result)) { 311 $result = 0.00; 312 } 250 313 } 251 314 } catch (Exception $ex) { … … 328 391 329 392 $results[] = apache_request_headers(); 330 $results[] = $request['user name'];393 $results[] = $request['user']; 331 394 332 395 $response = new WP_REST_Response( $results ); -
bestbooks/trunk/bestbooks.php
r2082587 r2088641 4 4 Plugin URI: http://wordpress.org/plugins/bestbooks/ 5 5 Description: The popular accounting framework 6 Version: 2.3. 16 Version: 2.3.2 7 7 Author: PressPage Entertainment Inc 8 8 Author URI: https://www.presspage.info … … 61 61 */ 62 62 63 define('BESTBOOKS_VERSION', '2.3. 1');63 define('BESTBOOKS_VERSION', '2.3.2'); 64 64 65 65 require_once dirname(__FILE__).'/vendor/autoload.php'; -
bestbooks/trunk/readme.txt
r2082587 r2088641 157 157 158 158 == Changelog == 159 = 2.3.2 = 160 * Fixed for operations on a single-site as well as multi-site installation of WordPress 161 * Added argument information to the REST API routes 162 159 163 = 2.3.1 = 160 164 * Change ownership references from PHK Corporation to PressPage Entertainment Inc
Note: See TracChangeset
for help on using the changeset viewer.