//VidiScript - All Coding And Design �VidiScript.com 2008 // //File: index.php //Description: Main index page - all site content is displayed through this page //Version 0.33 BETA //Release Date: 08/16/08 // session_start(); ini_set("magic_quotes_gpc", "0"); include_once 'includes/bootstrap.inc'; include_once 'includes/common.inc'; include_once 'includes/content.inc'; global $sitepath,$hidethumbnails,$hidemedia; $site_template = getSetting("sitetemplate",$db); if(!file_exists("templates/".$site_template."/style.css")) { $site_template = "main"; echo $site_template." not found using default"; } //Get page title if it exists if(isset($c_header)) { $s_header = str_replace("","",$c_header); $s_header = str_replace("","",$s_header); $s_header .= " - "; } else { $s_header = ""; } //Get installation folder from db $sitefolder = getSetting("sitefolder",$db); //Path to the script $path = "http://" . $_SERVER['SERVER_NAME'].$sitefolder; ?>