Location: PHPKode > projects > Free Simple Shop > index.php
<?php

// =======================================================================
// Module name: Index
// File name: index.php
// Version: 1.0
// Description: This script contains php code for the website index page.
// 
// Comments are included within this script to document changes made to
// the code with each new version of the script. Each comment also lists
// the author's initials to document who made the changes to the code.
//
// Copyright (C) 2006-2010 Dustin Cowell Enterprises
//
// License: GNU General Public License, Version 2
//
// Link: http://www.gnu.org/licenses/gpl-2.0.txt
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
// 
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
// 
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to:
//
// Free Software Foundation, Inc.
// 51 Franklin Street, Fifth Floor
// Boston, MA  02110-1301 USA
// =======================================================================

$phpincdir = "./includes/"; include($phpincdir . "themes.inc");

$db_lookup_themes = @mysql_query("SELECT index_name, index_path FROM themes WHERE on_off='on'");
$db_themes = @mysql_fetch_array($db_lookup_themes);

$db_themes_index_name = $db_themes['index_name'];
$db_themes_index_path = $db_themes['index_path'];

include($db_themes_index_path . $db_themes_index_name);

if (!$install_type and !$admin_id and !$members_id) {
	echo($font_body . "<p><center><font size='1'><a href='" . $_SERVER['PHP_SELF'] . "?login=admin'>" . $link_color . "Admin Login</font></a></font></font></center>");
}

?>
Return current item: Free Simple Shop