Commit graph

416 commits

Author SHA1 Message Date
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
fba44a0be9 Updated class to support command line usage. 2010-12-04 14:29:15 -05:00
Josh Sherman
015902ca93 Updated Model to support an array being passed in and not have to be nested inside of a conditions key. 2010-12-04 13:41:55 -05:00
Josh Sherman
2e6a438e52 Added method to generate the hash used by Gravatar.com This may be the precursor to adding in some code to support interacting with some third-party web services. 2010-12-04 13:20:41 -05:00
Josh Sherman
a3b6753990 Added isEmpty() method to check the emptiness of a string. 2010-12-04 12:35:03 -05:00
Josh Sherman
7cf3e5dadf Fixed issue where Model was dying if only passed an integer (presumably the ID of a row) 2010-12-02 23:39:46 -05:00
Josh Sherman
bae3f9de63 array_diff was not catching values of 1. 2010-11-28 18:33:59 -05:00
Josh Sherman
1a863bac63 Added documentation for an argument. 2010-11-27 22:48:52 -05:00
Josh Sherman
42c3ec993b Removed commented code from the Model and added a note about how experimental and unusable the Mongo class is. 2010-11-27 21:42:50 -05:00
Josh Sherman
3e7ece8cce Fixed issues when generating SQL conditionals. 2010-11-27 18:00:13 -05:00
Josh Sherman
7e1a45e9cb Added support for index hinting. 2010-11-26 23:16:56 -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
e730d2181f Added in RSS display class. 2010-11-26 22:35:06 -05:00
Josh Sherman
3defe17bc5 Removed JSON references from when I duped the JSON class. 2010-11-26 21:17:05 -05:00
Josh Sherman
6205ad7809 Added support for dynamically setting the ID column in a Model. 2010-11-26 19:19:54 -05:00
Josh Sherman
43dd8f16ab Added JOIN support in the Model. 2010-11-26 15:31:58 -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
2b57cb6a5d Removed the salt argument as the salts are driven solely by the config in this use case scenario. 2010-11-26 02:32:01 -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
b694ff55c5 Built the securityInput() method for generating inputs to use while validating AJAX calls. 2010-11-26 02:06:44 -05:00
Josh Sherman
98e7f0fb34 Added optional request method checking. 2010-11-26 01:36:06 -05:00
Josh Sherman
9d8ff5e9b1 Made the format of the phone number a passable argument. 2010-11-26 00:10:42 -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
985deaf18a Made dateSelect() less dobSelect() specific. 2010-11-25 00:46:12 -05:00
Josh Sherman
2da19ace00 Cleaned up arrayToXML method. 2010-11-25 00:37:05 -05:00
Josh Sherman
aed0942654 Migrated conversion utilities to the Convert class. 2010-11-25 00:15:25 -05:00
Josh Sherman
072afaf936 Added another logged warning when unable to serve up a minified file. 2010-11-24 23:40:29 -05:00
Josh Sherman
4c6b5b6415 Removed "advanced" clean up logic (yes, those are air quotes) 2010-11-24 23:39:28 -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
075ec0b94b Cleaned up method by sanity checking some variables. 2010-11-24 23:17:03 -05:00
Josh Sherman
63d0eec491 Replaced array to XML converter with a more robust method. 2010-11-24 23:06:24 -05:00
Josh Sherman
1173636365 Logged warning when minified file is not present and cannot be generated. 2010-11-24 22:41:43 -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
03567d86d4 Convert defined security levels into defined constants prefixed with SECURITY_LEVEL_*. Also documented the flatten method. 2010-11-21 21:44:46 -05:00
Josh Sherman
5539259d50 Added String utility class. 2010-11-18 22:20:18 -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
62261420ff Added logic to strip empty parameters from the DSN, specifically the MySQL DSN. 2010-11-16 23:02:27 -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
d157b9ad52 Removed RSS display class as it is not usable. 2010-11-14 16:00:33 -05:00
Josh Sherman
d64251c098 Default parent template to "index" and added sanity check if template exists. 2010-11-12 23:03:18 -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
973c8307a7 Added some notes and some @todo items. 2010-11-06 18:50:49 -04:00
Josh Sherman
795594a391 Started adding support for Mongo in the Model class. Also removed fetchAll and fetchColumn methods, all data is returned as an associative array for consistency and to simplify the fetching logic. 2010-10-31 14:34:39 -04:00
Josh Sherman
fce848e9bb Added getDriver method. 2010-10-31 14:34:14 -04:00
Josh Sherman
2325e79f3c Updated @todo. 2010-10-31 11:23:28 -04:00
Josh Sherman
0729d46281 Updated Model updates to limit the number of columns being set to only the columns that have changed. 2010-10-30 22:05:51 -04:00