View Single Post
Old 01-30-2013, 11:03 PM   PM User | #3
flashawd
New to the CF scene

 
Join Date: Jan 2013
Posts: 3
Thanks: 2
Thanked 0 Times in 0 Posts
flashawd is an unknown quantity at this point
Thank you very much for your quick reply. Great explanation, that was kind of my understanding when I was on w3schools.com. In this case is it calling on another file - that I need to look at? (see below) I basically just need to change the copyright date and phone numbers on the front of the site. ;-) This is what is on the index.php that I am working with. Thanks again, pretty interesting stuff - will be fun to really get into it.

<?php
// SESSION START/CONTINUE
@ session_start();

// SECURITY/CONFIG
define('IN_MAIN',true);
$path_site = './';
$page = 'index';

// INCLUDES
require_once($path_site.'inc/database.php');
require_once($path_site.'inc/constants.php');
require_once($path_site.'inc/common.php');

// LOGIC \\
if(isset($_SESSION['user']['id'])) { redirect($path_site.'networks.php'); exit(); }

$CONTENT = replace_output( file_get_contents(PATH_CB.'home'.EXT_CB), array(
'path_site'=>$path_site
));

// OUTPUT \\
$OUTPUT = replace_output( file_get_contents(PATH_TPL.'main'.EXT_TPL), array(
'path_site'=>$path_site,
'sbu'=>SITE_BASEURL,
'meta_kw'=>SITE_KEYWORDS,
'meta_desc'=>SITE_DESC,
'meta_title'=>SITE_TITLE,
'nav_list'=>get_nav_list(),
'content'=>$CONTENT
));
print($OUTPUT);

?>
flashawd is offline   Reply With Quote