Josh Sherman
b82b04b121
Disabled token logic
...
Causing a bunch of shit in scenarios where you want to unauth / reauth a user as the cookie isn't immediately available. Should resolve all of the "You are not properly authenticated" errors we see.
2015-09-12 11:47:08 -04:00
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
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
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
a843589855
Added new hashing functions and updated random string generator to only use lowercase letters.
2012-10-07 10:00:09 -04:00
Josh Sherman
6f114361bd
Updated copyright, website and contact email
2012-09-30 12:40:29 -04:00
Josh Sherman
3e58cd89bf
Emptied the JAR and cleaned up some whitespace
2012-09-30 12:26:32 -04:00
Josh Sherman
c6bda10e3f
Updated Security class to allow for a less paranoid user access check. Previously, at Security::login() the user ID would be set, and said user ID would be used to hit the database and verify the user's access on every page new. Now, if you pass the optional level value to Security::login() the class will store the value in the session and will continue to use the session for all subsequent verifications. This could easily be supplemented with short TTL on sessions and/or logic in index.php to periodically refresh said data to ensure someone's access wasn't downgraded.
2011-07-26 09:50:07 -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
89e2c3db19
Cleaned up stray whitespace.
2010-12-09 20:12:05 -05:00
Josh Sherman
e120150bca
Moved hash generation into the Security class so it can be accessed outside of the input generation.
2010-11-26 02:28:07 -05:00
Josh Sherman
075ec0b94b
Cleaned up method by sanity checking some variables.
2010-11-24 23:17:03 -05:00
Josh Sherman
ad6155572e
Updated security layer to lookup the user's access from the database each time instead of just relying on the session data being accurate. Alleviates the scenario where a user's permissions are changed, but the level is not reset until their next login.
2010-11-22 00:15:34 -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
cf4a1307e8
Refactored public security functions to take a variable number of parameters and added a new function to check if a set security level is between two others (range checking). Removed the logic to allow a level to be passed in to validate against, a new function will be added to accomodate if it ever comes up.
2010-11-17 22:59:07 -05:00
Josh Sherman
1cd61dda42
Updated licensing to use the [better suited] MIT License.
2010-10-14 20:12:40 -04:00
Josh Sherman
9fe5ce72d4
Building in security capabilities.
2010-10-06 00:01:49 -04:00
Josh Sherman
c2445d3a62
Removed Cache class.
...
* File was little more than just a stub file for the Cache class.
Removed Mailer class.
* Attempting to remove non-critical classes from the system.
* Class will be re-added / re-factored at a later date once the core of PICKLES is done.
Removed Security class.
* Removing non-critcal classes from the system.
* Security class was not very generic and will be replaced down the road once the security scheme is full realized.
Removed Form class.
* Removing non-critcal classes from PICKLES to help the rewrite efforts.
* Form class would take a database table and convert it into a webform. Nice script, but really had no place in PICKLES.
* Eventually will replace with a generic HTML form element generation class.
Added INSTALL file.
Updated derivation of the hostname.
* Hostname is now defaulted in the class variable definition.
Refactoring Controller and Module
2010-03-11 23:19:33 -05:00
Josh Sherman
87f3376c76
Removed some whitespace.
2009-12-20 11:27:29 -05:00
Josh Sherman
c471a7aa3f
Updates.
...
git-svn-id: http://svn.cleancode.org/svn/pickles@144 4d10bc64-7434-11dc-a737-d2d0f8310089
2009-07-29 01:16:49 +00:00
Josh Sherman
efb5b6a677
Ugh, tired.
...
git-svn-id: http://svn.cleancode.org/svn/pickles@135 4d10bc64-7434-11dc-a737-d2d0f8310089
2009-06-15 02:24:48 +00:00
Josh Sherman
4444455d68
Added flat file login capabilities and dynamic loading of local module class files.
...
git-svn-id: http://svn.cleancode.org/svn/pickles@127 4d10bc64-7434-11dc-a737-d2d0f8310089
2009-06-07 04:53:18 +00:00
Josh Sherman
d2d6c47682
Changed the core Object to not require any params in the constructor, and now we rely on polymorphism in the classes themselves to override that.
...
git-svn-id: http://svn.cleancode.org/svn/pickles@74 4d10bc64-7434-11dc-a737-d2d0f8310089
2008-10-14 13:27:26 +00:00
Josh Sherman
9bdd0b3045
Cleaned up white space, also updated the RSS viewer to not use Config::getInstance()
...
git-svn-id: http://svn.cleancode.org/svn/pickles@71 4d10bc64-7434-11dc-a737-d2d0f8310089
2008-10-11 21:59:42 +00:00
Josh Sherman
20fd236cb0
Updated the Error class from a static class to an instantiatable one.
...
git-svn-id: http://svn.cleancode.org/svn/pickles@68 4d10bc64-7434-11dc-a737-d2d0f8310089
2008-10-11 20:16:47 +00:00
Josh Sherman
e9f8b555d3
Quite possibly the largest commit in PICKLES history, shy of perhaps the initial revision. Bunches of restructuring and refactoring and all that.
...
git-svn-id: http://svn.cleancode.org/svn/pickles@61 4d10bc64-7434-11dc-a737-d2d0f8310089
2008-10-09 05:12:31 +00:00
Josh Sherman
e02ded351d
Updates all over. Redid some of the doc blocks cause they weren't to scale of a vim session with lline numbers on (still may not be... ugh). Also changed around some of the model level variables and stuff.
...
git-svn-id: http://svn.cleancode.org/svn/pickles@58 4d10bc64-7434-11dc-a737-d2d0f8310089
2008-09-24 03:37:09 +00:00
Josh Sherman
1784514696
Massive amounts of documentation has been added.
...
git-svn-id: http://svn.cleancode.org/svn/pickles@55 4d10bc64-7434-11dc-a737-d2d0f8310089
2008-09-22 01:43:18 +00:00
Josh Sherman
8c14ec379d
Bunch of updates to migrate from jLib to Pickles.
...
git-svn-id: http://svn.cleancode.org/svn/pickles@31 4d10bc64-7434-11dc-a737-d2d0f8310089
2008-08-12 01:09:07 +00:00
Josh Sherman
046d265347
Added the new classes and stuff.
...
git-svn-id: http://svn.cleancode.org/svn/pickles@30 4d10bc64-7434-11dc-a737-d2d0f8310089
2008-07-12 23:28:44 +00:00