/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php /************************************** seesaw associates | http://seesaw.net client: file: index.php description: main handler Copyright (C) 2008 Matt Kenefick(.com) **************************************/ ################### ## BASIC CONFIGS ## ################### //start session // turn of pages cache // main configuration require_once("includes/functions.php"); // load mysql etc libraries require_once("includes/classes/class.mysql.php"); require_once("smarty/Smarty.class.php"); ################################### ## CREATE MYSQL CONN / VALIDATOR ## ################################### $db = new DB; $db->init('localhost', 'user', 'pass', 'database'); $db->settings('fixSlashes',true); # CHECK SESSIONS / SETTINGS require_once("includes/settings.php"); ######################## ## CHECK CURRENT PAGE ## ######################## $smarty = new Smarty; $smarty->template_dir = "./includes/skin/"; $smarty->compile_dir = "./includes/skincache/"; $smarty->debugging = false; $smarty->use_sub_dirs = false; // get page // get support require_once('includes/public/page.'.$p.'.php'); $smarty->display('index.html'); $db->done(); ?>