From a6fc8a7a21a0063db905737365e9daa149554665 Mon Sep 17 00:00:00 2001 From: Dylan Lloyd Date: Wed, 23 Feb 2011 20:02:10 -0500 Subject: [PATCH] MySQL q's are now prepared. Added includes/cms.php All MySQL queries from $_GET are now prepared. This logic has been placed in `$this->query($sql, $data_types, $dirty_data, $dirty_data...)`. Projects are now also handled by includes/cms.php. I still don't feel as though the code is entirely DRY, and the object schema still feels somewhat procedural. The publish_* scripts need to be updated or gotten rid of for a nice interface. The date_posted storage needs to be switched to datetime, that was a silly decision to start with. --- index.php | 36 ++-------------------------------- notes/index.php | 2 +- publish.py => publish_notes.py | 10 ++++++---- 3 files changed, 9 insertions(+), 39 deletions(-) rename publish.py => publish_notes.py (79%) diff --git a/index.php b/index.php index dbff9a5..b519847 100644 --- a/index.php +++ b/index.php @@ -25,26 +25,7 @@
- +