Hello Fonsi,
Here is a link to the site that I am developing now.. Http://www.planttel.com/newsite2/home.php
This whole site was build using a combination of things such as a generic
Fast Template,PHPAUTH system and CSS. Of course I have PHP and mysql
with PHPADMIN..
I want to be able to do a verity of things like what ever the user chooses in the
the initial sign up will customize the user page when they log in. For example we are an ISP we would like to have our customers register for an "MY PLANT" page.
In the registration there will be three important fields - Language, City and email address. On the language there will be two selections English(default) and spanish. If the customer chooses spanish then the new site will display spanish.
The city is the next very important part of the site because when they choose a city it will display specific information about that city, such as movies, news ect....... Email address I want there to be a way that people can not sign up for this unless they are a plant customer.. I know what I want but don't know how to get there. I need a solution. Here is the code for the home.php
!-- home.php -->
<?php require('prepend.php'); ?>
<?php pageStart('Home'); ?>
<br>
<center><h1>Hello World</h1>
<p>Welcome to my web site.</p>
<p>I hope you like it.</p></center>
<?php pageFinish(); ?>
Here is the prepend.php
<?php
/**
Provides functions for establishing site-wide common framework.
Synopsis
<?php require('prepend.php'); // or use auto_prepend feature ?>
<?php pageStart('Page Title'); // initialise framework ?>
<h1>Content</h1>
<p>This is the page content.
There is no need to escape
'special' "characters".</p>
<?php pageFinish(); // construct and output page ?>
*/
require('class.FastTemplate.php');
/**
Initialises global FastTemplate object. Turns output buffering on
to capture page content.
@ title page title string
*/
function pageStart($title = '') {
GLOBAL $tpl;
$tpl = new FastTemplate('.');
$tpl->define( array( 'main' => 'main.htm',
'header' => 'header.htm',
'leftnav' => 'leftnav.htm' ) );
$tpl->assign('TITLE', $title);
ob_start();
}
/**
Uses FastTemplate object to construct and output the page.
Page body content comes from previously buffered output.
*/
function pageFinish() {
GLOBAL $tpl;
/ get page contents /
$content = ob_get_contents();
ob_end_clean();
$tpl->assign('CONTENT', $content);
/ construct the page /
$tpl->parse('HEADER', 'header');
$tpl->parse('LEFTNAV', 'leftnav');
$tpl->parse('MAIN', 'main');
/ output the page /
$tpl->FastPrint('MAIN');
}
I hope this helps shed some light on what I want.. Thanks for all your help thus
far.. Your friend, DAN!