After that is finished we will create the index.php page.
<?PHP
// Index.php automaticly obtained from database information unless you
// Absoultly know what you are doing!
// ############################################
// ###### FREE-WARE! NOT TO BE SOLD! ######
// ############################################
include 'functions.php';
connect;
$cms = 'Liveman Productions CMS ©Copyright 2005';
$check = mysql_query("SELECT `title`, `logo_url`, `template` FROM `config`");
$r = mysql_fetch_row($check);
// Start html and head section!
echo '
<html>
<head>
<title>' . $r[0] . '</title>
<link rel="stylesheet" type="text/css" href="templates/' . $r[2] . '/style.css" />
</head>
';
include 'templates/' . $r[2] . '/index.php';
echo '
</html>
';
?>
Ok, well this is a very basic page all it really creates is the Title and the style.css page, I need to go now but later I will add the admin section and the includes section. ©Copyright 2005 Liveman Productions
Edited by liveman, 27 August 2005 - 08:06 AM.
