Josh Sherman
d96181c60f
Q4 2013, seemed like a good time to update the copyright notices
2013-11-04 17:36:04 -05:00
Josh Sherman
dca62b82d1
Removed unnecessary sanity checks when calling Log
2013-09-15 12:02:07 -04:00
Josh Sherman
4d9eb54b13
Dropped dot syntax
...
Too much juggling to make sure the proper assets were loaded. Opened up a security issue that allowed some pages to be accessed even if data was missing, just a headache, best to move away from it and allow users to defining custom routing in inde.php. Perhaps down the road allowing a Route class that the user can define everything in.
2013-09-12 17:59:29 -04:00
Josh Sherman
2ac7790385
Cleaned up some old code.
...
Still had some <br />'s in there and updated some of the redirects to use the Browser class.
2013-09-09 16:08:10 -04:00
Josh Sherman
1a0f66cc9c
Dot syntax URIs weren't erroring correctly
...
Instead of routing to a 404 or home, was just returning [] (empty JSON array). Updated to redirect home for the time being. 404 handling needs to be addressed soon anyway, it's kinda junk right now
2013-09-09 16:05:52 -04:00
Josh Sherman
ae188a82a6
Added third option to determine if regex needs to match or not match.
...
Also fixed a bug where errors were overwriting eachother
2013-09-08 14:31:55 -04:00
Josh Sherman
94a9e08661
In module input validation logic
2013-09-08 13:56:07 -04:00
Josh Sherman
650c16efae
Removed session_start in controller, removed exception from Security class
...
Security class doesn't need to bark so much, just fail and move on
2013-02-20 11:38:16 -05:00
Josh Sherman
cbb75e7064
Added @geoffoliver attributes.
...
Geoff likes to exploit the URI and inject key/value pairs into it. It's not something I do, but I was intrigued enough to implement it. Basic usage is /path/to/page/id:123/spam:eggs. The variables are removed from the request variable as to not bork module loading and are made available via Browser::get('variable');
2013-02-04 23:34:09 -05:00
Josh Sherman
340b336a49
Controller bug and Distance class
...
Fixed a bug in the Controller that was throwing some notices when a module didn't return any data. Also finished up the calculateDistance() method in the Distance class. Seems I left it in somewhat of a bug filled incomplete state last week.
2012-12-18 13:24:19 -05:00
Josh Sherman
33bbcc014b
Updated to allow for both object variables and explicit module returns to be merged into $__module
2012-12-08 15:38:05 -05:00
Josh Sherman
f75862fabd
Added dot notation magic for URIs
...
Used to be very rigid in that each URI had to map to a single module. Now the inclusion of dots in the URI allow you to have multiple end points in a single file. /user/edit and /user/edit.save both resolve to /modules/user/edit.php
2012-11-30 17:33:53 -05:00
Josh Sherman
b31746b1c2
Added role based default methods
...
One of @geoffoliver's suggestions, default methods that are exclusive to the user's permission level. Named __default_ROLE(). No more conditionals in the code since you can now isolate the logic
2012-10-14 18:46:29 -04:00
Josh Sherman
8fb7622061
If the module doesn't return anything, pass the return array instead
...
Now you can set variables in the module itself and have them returned to the template instead of needing to explicitly return the data. Will come in handy in scenarios where you've extended another module and want to retain it's return data. Previously you had to set a variable and then add to that and return it from the child class.
2012-10-14 18:08:27 -04:00
Josh Sherman
3c2c936cee
Added fluid variable to the Module class
...
As a developer you still need to code for it (it's shown at work in the bootstrap) but you can use the variable to toggle fluid and fixed right from the module itself
2012-10-14 17:53:23 -04:00
Josh Sherman
482f77c10b
Set _REQUEST['request'] by default
...
Should alleviate some redundant isset()s throughout a site's code
2012-10-11 22:50:32 -04:00
Josh Sherman
c27fbf8694
Fixed issue with _SERVER['HTTPS'] being set on nginx
2012-10-01 22:49:49 -04:00
Josh Sherman
6f114361bd
Updated copyright, website and contact email
2012-09-30 12:40:29 -04:00
Josh Sherman
9cd9304cf8
Moved meta data to be after the module execution
...
Modules were unable to override the meta data because the values were pulled before the module was being executed.
2012-05-18 21:10:01 -04:00
Josh Sherman
df5a2e2aaa
Removed logic to load /__pickles/(js|css)/*.(js|css) files. It didn't work in nginx without trickery and it was a fundamentally ignorant approach since it caused PHP overload just to load a static file. The inclusion of the boilerplate will allow users to fork said project and have all files readily available.
2011-08-28 18:00:30 -04:00
Josh Sherman
3a89586eb1
Added configuration variable to disable logging. Currently it is a boolean value, but eventually it will probably be broken out into an array with key/value pairs to correspond with the different logging options within the PICKLES core.
2011-06-15 21:13:28 -04:00
Josh Sherman
7fba0d231d
Added File class.
2011-06-12 18:08:59 -04:00
Josh Sherman
5d63e032f5
Added sanity check to _REQUEST['request'] when redirecting to the login page. Alleviates an issue when securing the default module.
2011-05-14 21:38:06 -04:00
Josh Sherman
996241debb
Updated headers to have 2011 in the copyright date. Also updated copyright to my name as the LLC is currently defunct.
2011-05-09 22:14:55 -04:00
Josh Sherman
d9436919bd
Fixed missing Content-Type headers when loading internal static assets (e.g. /__pickles/css/reset.css)
2011-04-09 16:34:49 -04:00
Josh Sherman
b2047bd0cb
Fixed issue with request method and security hash validation.
2011-01-28 23:21:44 -05:00
Josh Sherman
95e75226d3
Return authentication error as JSON when script was POSTed to instead of performing a redirect to the login page.
2011-01-26 23:42:16 -05:00
Josh Sherman
04471d607a
Added database session handling.
2011-01-16 15:40:59 -05:00
Josh Sherman
bef224d5ec
Removed logic that interacted with passed IDs. This logic belongs in the .htaccess file (assuming it's even necessary for the site).
2010-12-26 14:27:45 -05:00
Josh Sherman
261b2546e7
Added better support for hyphens in a URI.
2010-12-17 23:55:28 -05:00
Josh Sherman
346c93e393
Added some comments.
2010-12-17 22:38:40 -05:00
Josh Sherman
25e78fc569
Updated replacement logic to be strict, just in case there is a scenario where the string could be replaced more than once.
2010-12-17 22:30:55 -05:00
Josh Sherman
e008ffcf2b
Added redirect to force URI to be lowercase.
2010-12-17 22:18:25 -05:00
Josh Sherman
8fa5471aa7
Added private module functionality.
2010-12-09 22:52:26 -05:00
Josh Sherman
89e2c3db19
Cleaned up stray whitespace.
2010-12-09 20:12:05 -05:00
Josh Sherman
4c366d72a8
Auto start session from main file (before Controller is loaded) if session is enabled in the config.
2010-12-05 17:07:55 -05:00
Josh Sherman
c32ee1a12e
Added support for passing in a .rss extension to force the rendering engine RSS.
2010-11-26 23:16:30 -05:00
Josh Sherman
4c0baeb00a
Removed internal() method to generate references to PICKLES files. Should use existing methods, but make sure to include the PICKLES path (e.g. /__pickles/js/core.js).
2010-11-26 13:50:48 -05:00
Josh Sherman
2add111b9b
Removed debug code.
2010-11-26 02:46:18 -05:00
Josh Sherman
212843386d
Added optional security hash check.
2010-11-26 02:43:41 -05:00
Josh Sherman
98e7f0fb34
Added optional request method checking.
2010-11-26 01:36:06 -05:00
Josh Sherman
14f0efbea0
Implemented secure variable in the module, removed request variable and will potentially add it back in at a later time.
2010-11-25 01:52:00 -05:00
Josh Sherman
9adc9d868d
Added redirect to the login page when user is not properly authorized.
2010-11-24 23:27:31 -05:00
Josh Sherman
4dd9249ba0
Implemented automatic security checks in the Controller. Opened up the security class to accept an array as an argument and will great that array as if it's the array coming from func_get_args().
2010-11-17 23:39:45 -05:00
Josh Sherman
7c7fe769a8
Added sanity checking on return type overloading.
2010-11-14 17:20:26 -05:00
Josh Sherman
eccb07e786
Default to JSON if there are no PHP templates
2010-11-14 16:47:06 -05:00
Josh Sherman
6639fae6ed
Updated Controller to handle fatal errors directly instead of throwing an exception.
2010-11-07 00:09:33 -04:00
Josh Sherman
9a4fe84b9b
Added timer capabilities to the profiler, refactored a bunch of the sanity checks associated with the profiler.
2010-10-22 22:26:45 -04:00
Josh Sherman
92e4b0391a
Added profiler options.
2010-10-22 00:31:26 -04:00
Josh Sherman
5ea7756803
Added private templates via the __shared directory.
2010-10-20 01:06:11 -04:00