Commit graph

638 commits

Author SHA1 Message Date
Josh Sherman
575a2f0914 Commented out cache usage in Model. 2011-11-01 19:05:25 -04:00
Josh Sherman
baa291d88b Removed hashing based on some new caching logic I'm still dreaming up. 2011-10-30 22:09:12 -04:00
Josh Sherman
e104250597 Caching of simple queries against primary key. 2011-10-30 20:49:23 -04:00
Josh Sherman
4b96d28bb7 Added cache object to Model and cleaned up some variable names. 2011-10-30 19:24:23 -04:00
Josh Sherman
02c0eef632 Added caching flag to database. 2011-10-30 17:30:05 -04:00
Josh Sherman
237cb22990 Added Cache class and made adjustments to Config to default the variables to false. 2011-10-30 17:14:56 -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
16d201bbc9 Moved CSS and JS from core to boilerplate 2011-08-28 17:45:29 -04:00
Josh Sherman
b7fd659b3c Apparently the Google Profanity class wasn't in the jar. 2011-08-28 17:44:30 -04:00
Josh Sherman
3f82161f40 Merge branch 'master' of github.com:joshtronic/pickles 2011-08-27 11:22:49 -04:00
Josh Sherman
ec9b3296ae Removed the boilerplate, added a note that it moved. 2011-08-27 11:20:48 -04:00
Josh Sherman
7064abf008 Added Google Profanity checker. 2011-08-17 18:00:16 -04:00
Josh Sherman
056c2d1212 Merge branch 'master' of github.com:joshtronic/pickles 2011-08-13 13:39:44 -04:00
Josh Sherman
ee08489521 Turned off the exception handling and forced errors on. 2011-08-13 13:39:23 -04:00
Josh Sherman
e5d3cb9988 Documented the Tinychat class (mostly). Still can't get the HTML portion to work, will try on a production server soon. 2011-08-13 13:38:34 -04:00
Josh Sherman
d6fc14e293 Started building a Tinychat API wrapper 2011-08-13 01:18:00 -04:00
Josh Sherman
cc778981f6 Jarring was not recursing into sub directories. 2011-08-12 22:32:36 -04:00
Josh Sherman
886026aa4c Added reference name to exception that is thrown. 2011-08-06 13:31:08 -04:00
Josh Sherman
dbcf6fdb80 Changed environment checking to use HTTP_HOST instead of SERVER_NAME to resolve an issue with nginx server_name variable. Updated jarring to skip any files prefixed with '.' so that I could edit core files and not generate munged jar files because of vi .swp files. 2011-08-06 12:57:59 -04:00
Josh Sherman
3ea9ec8f36 Added support for "REPLACE" SQL syntax. 2011-07-31 18:33:17 -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
bc78fd61e8 Expanded session handling to include memcached. 2011-07-23 23:47:46 -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
afac101ba5 Added "jar" file to alleviate overhead of __autoload() look ups and decrease the number of included files to load a page. 2011-06-01 22:55:52 -04:00
Josh Sherman
bf4b86116f Added closing ?> 2011-06-01 22:55:38 -04:00
Josh Sherman
07f495d789 Added date utility class. Similar to the string class but for dates. Contains a method to calculate an age from a date. 2011-05-25 21:51:42 -04:00
Josh Sherman
b2504f5a6b Updated $db property to be protected instead of private to allow for "in model" interfacing with the object. 2011-05-21 00:28:14 -04:00
Josh Sherman
aa8ea5849e Added submit() method for generating submit buttons. Flagged the shorthand methods to generate different types of inputs (password, hidden, et cetera) as deprecated and added shorter-hand methods. Example, you can use $__form->password() instead of $__form->passwordInput(). Methods will eventually be updated to throw deprecation warnings and subsequently removed. 2011-05-20 20:26: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
2ea8e1957d Fixed bug with commit() when no original record is set (in the case that you are running an update but did not pull the row beforehand). 2011-05-14 16:41:08 -04:00
Josh Sherman
ccf728605d Sessions in the database were not destroying correctly. 2011-05-14 09:54:00 -04:00
Josh Sherman
76fd05d509 Added checkbox and radio methods. 2011-05-12 00:21:29 -04:00
Josh Sherman
d5085ba6b9 Added vim fold markers to the methods. 2011-05-09 22:33:01 -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
c1e1ab3ea1 Added method to generate a password input. 2011-05-08 18:23:58 -04:00
Josh Sherman
7933bac647 State select method was not passing the correct arguments. 2011-05-08 17:55:08 -04:00
Josh Sherman
fb8a1f5894 Updated Model to allow ID value to be passed in either argument.
Existing functionality:
User(1); -- SELECT * FROM users WHERE id = 1;

New functionality:
OLD: User('count', 1) -- SELECT COUNT(*) AS count FROM users;
FIX: User('count', 1) -- SELECT COUNT(*) AS count FROM users WHERE id = 1;
2011-05-08 12:12:10 -04:00
Josh Sherman
fa1e1b290c Setting attribute "readonly" to "" doesn't seem to work anymore. Replaced with calling removeAttr() to get rid of it completely. 2011-05-07 16:13:47 -04:00
Josh Sherman
0d49ac0558 Updated profiler to only attempt to profile SELECT statements. Also optimized the sanity checks a bit so that we're not always running preg_match() when the profiler is disabled. 2011-05-05 23:14:59 -04:00
Josh Sherman
3ded1097ff Fixed issue with profiler when configuration is set to queries or explains and there are no queries on the page. 2011-05-05 12:42:18 -04:00
Josh Sherman
665b632868 Updated jQuery to 1.6, jQuery UI to 1.8.12 and jQuery Validator to 1.8 2011-05-04 22:41:45 -04:00
Josh Sherman
15ab2b7827 Forgot to commit some new doc files. 2011-05-04 21:12:38 -04:00
Josh Sherman
28cdd85a4a Updated documentation. 2011-05-03 23:30:53 -04:00
Josh Sherman
f3ca615986 Resolved error in Profiler resulting from fetchAll() being removed. 2011-05-03 23:30:07 -04:00
Josh Sherman
4e6098bc86 Added logic to traverse the filesystem in an attempt to locate the configuration. Errors if it gets to /. Comes into play when using command line scripts that may live in sub-directories of the ./scripts directory. 2011-05-03 23:14:37 -04:00
Josh Sherman
aa3427a25c Added CLI exception display and moved $is_cli to a constant. 2011-05-03 22:34:11 -04:00
Josh Sherman
b4ea95dde5 Added sample script. 2011-05-03 22:34:03 -04:00
Josh Sherman
180aa74486 Updated website URL. 2011-05-03 22:33:48 -04:00
Josh Sherman
f3f111fa22 Updated #3 to not display as a code block. 2011-04-17 13:43:49 -07:00