Changeset 3496110
- Timestamp:
- 04/01/2026 02:52:11 AM (4 days ago)
- Location:
- pageapp
- Files:
-
- 18 added
- 3 edited
-
tags/1.5.5 (added)
-
tags/1.5.5/css (added)
-
tags/1.5.5/css/admin.css (added)
-
tags/1.5.5/images (added)
-
tags/1.5.5/images/pageapp20.png (added)
-
tags/1.5.5/inc (added)
-
tags/1.5.5/inc/cachelib.php (added)
-
tags/1.5.5/inc/httplib.php (added)
-
tags/1.5.5/inc/jsonlib.php (added)
-
tags/1.5.5/inc/pluginlib.php (added)
-
tags/1.5.5/inc/restlib.php (added)
-
tags/1.5.5/inc/settingslib.php (added)
-
tags/1.5.5/inc/utilslib.php (added)
-
tags/1.5.5/js (added)
-
tags/1.5.5/js/admin.js (added)
-
tags/1.5.5/pageapp-json.php (added)
-
tags/1.5.5/pageapp.php (added)
-
tags/1.5.5/readme.txt (added)
-
trunk/inc/restlib.php (modified) (5 diffs)
-
trunk/pageapp.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pageapp/trunk/inc/restlib.php
r3495148 r3496110 2 2 /* 3 3 * File: restlib.php 4 * Date: 20260 3314 * Date: 20260401 5 5 * Author: James D. Low 6 6 * URL: http://jameslow.com … … 15 15 public $is_wordpress = false; 16 16 public $cookie = false; 17 public $debug = false; 17 public $private_nokey = true; 18 public $debug = false; 18 19 19 20 /* Constructor */ 20 function __construct($apikeys = null, $cache = 60, $prefix = null, $route = 'wordpress', $cookie = false, $ debug = false) {21 function __construct($apikeys = null, $cache = 60, $prefix = null, $route = 'wordpress', $cookie = false, $private_nokey = true, $debug = false) { 21 22 $this->apikeys = $apikeys ? (is_array($apikeys) ? $apikeys : array($apikeys)) : array(); 22 23 $this->cache = $cache !== null ? $cache : $this->cache; … … 24 25 $this->route = $route !== null ? $route : $this->route; 25 26 $this->cookie = $cookie; 27 $this->private_nokey = $private_nokey; 26 28 $this->debug = $debug; 27 29 $this->add_hooks(); … … 244 246 if ($function) { 245 247 if ($function->isPrivate()) { 246 $apikey = $this->assert_login(); 248 if (!$this->private_nokey) { 249 $apikey = $this->assert_apikey(); 250 } 251 $this->assert_login(); 247 252 //https://stackoverflow.com/questions/3475601/accessing-a-protected-member-variable-outside-a-class 248 253 //$prop = ReflectionProperty::setAccessible($this, $method); … … 253 258 return $reflectionMethod->invoke($this); 254 259 } elseif ($function->isProtected()) { 255 $apikey = $this->assert_apikey(); 260 try { 261 $apikey = $this->assert_apikey(); 262 } catch (Exception $e) { 263 if ($this->private_nokey) { 264 $this->assert_login(); 265 } 266 } 256 267 return $this->$method(); 257 268 } elseif ($function->isPublic()) { -
pageapp/trunk/pageapp.php
r3495148 r3496110 4 4 Plugin URI: https://wordpress.org/plugins/pageapp/ 5 5 Description: Extensions to Wordpress wp-json for the PageApp API and mobile framework 6 Version: 1.5. 46 Version: 1.5.5 7 7 Author: PageApp 8 8 Author URI: https://www.thirteen.com/ -
pageapp/trunk/readme.txt
r3495148 r3496110 4 4 Requires at least: 4.0 5 5 Tested up to: 6.9 6 Stable tag: 1.5. 46 Stable tag: 1.5.5 7 7 License: MIT 8 8 Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=K6VKWB3HZB2T2&item_name=Donation%20to%20jameslow%2ecom¤cy_code=USD&bn=PP%2dDonationsBF&charset=UTF%2d8 … … 28 28 29 29 == Changelog == 30 31 = 1.5.5 = 32 * Latest version of restlib library 20260401 30 33 31 34 = 1.5.4 =
Note: See TracChangeset
for help on using the changeset viewer.