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; + } +} + +?>