From 6b68c2efe6a2bdce5c277c77605fe3d5f7fda2f0 Mon Sep 17 00:00:00 2001 From: Josh Sherman Date: Fri, 19 Sep 2008 00:59:08 +0000 Subject: [PATCH] Made a change on the ribbon server and then had to revert it back. git-svn-id: http://svn.cleancode.org/svn/pickles@52 4d10bc64-7434-11dc-a737-d2d0f8310089 --- Pickles.php | 3 +-- models/store/category.php | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 models/store/category.php diff --git a/Pickles.php b/Pickles.php index 6738eb4..8d58c33 100755 --- a/Pickles.php +++ b/Pickles.php @@ -3,8 +3,7 @@ date_default_timezone_set('America/New_York'); define('PICKLES_PATH', getcwd() . '/../../pickles/'); -//define('TEMP_PATH', '/tmp/smarty/' . $_SERVER['SERVER_NAME'] . '/'); -define('TEMP_PATH', '/home/41938/data/tmp/smarty/' . $_SERVER['SERVER_NAME'] . '/'); +define('TEMP_PATH', '/tmp/smarty/' . $_SERVER['SERVER_NAME'] . '/'); function __autoload($class) { $file = PICKLES_PATH . 'classes/' . str_replace('_', '/', $class) . '.php'; diff --git a/models/store/category.php b/models/store/category.php new file mode 100644 index 0000000..04f1e3b --- /dev/null +++ b/models/store/category.php @@ -0,0 +1,16 @@ +db->getRow(' + SELECT id, name, permalink, description + FROM categories + WHERE permalink = "' . $_REQUEST['permalink'] . '"; + '); + + $this->data['category'] = $category; + } +} + +?>