pickles/Pickles.php
Josh Sherman ebe214d8e4 Made some changes to accomodate a new server.
git-svn-id: http://svn.cleancode.org/svn/pickles@49 4d10bc64-7434-11dc-a737-d2d0f8310089
2008-09-18 04:38:02 +00:00

24 lines
583 B
PHP
Executable file

<?php
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'] . '/');
function __autoload($class) {
$file = PICKLES_PATH . 'classes/' . str_replace('_', '/', $class) . '.php';
if (file_exists($file)) {
require_once $file;
}
else {
$file = PICKLES_PATH . 'models/' . str_replace('_', '/', $class) . '.php';
if (file_exists($file)) {
require_once $file;
}
}
}
?>