* The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS IN THE SOFTWARE. * * @author Ryan Johnson <*****@*****.**> * @copyright 2007 LivePipe LLC * @license MIT */ $path = dirname(__FILE__); require_once $path . '/classes/PicoraSupport.php'; require_once $path . '/classes/PicoraEvent.php'; require_once $path . '/classes/PicoraAutoLoader.php'; require_once $path . '/classes/PicoraDispatcher.php'; require_once $path . '/classes/PicoraController.php'; require_once $path . '/classes/PicoraView.php'; require_once $path . '/config.php'; require_once $path . '/functions.php'; PicoraAutoLoader::addFolder($path . '/classes/'); PicoraAutoLoader::addFolder($path . '/controllers/'); PicoraAutoLoader::addFolder($path . '/models/'); if (defined('CONNECTION_STRING')) { PicoraActiveRecord::connect(CONNECTION_STRING); } print PicoraDispatcher::dispatch($path, BASE_URL, isset($_GET['__route__']) ? '/' . $_GET['__route__'] : '/');
/** * Defines the hook for the AutoLoader class to run. */ function __autoload($class_name) { return PicoraAutoLoader::load($class_name); }