Login   Register  
PHP Classes
elePHPant
Icontem

File: index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Valics Lehel  >  PHP or Java Class Code Generator  >  index.php  >  Download  
File: index.php
Role: Application script
Content type: text/plain
Description: index
Class: PHP or Java Class Code Generator
Generate PHP or Java database access classes
Author: By
Last change:
Date: 6 years ago
Size: 796 bytes
 

Contents

Class file image Download
<?php
include_once("./config.inc.php");
include_once(
INCLUDE_PATH."cls_fast_template.php");
include_once(
INCLUDE_PATH."cls_string.php");

$ft = new FastTemplate(TEMPLATE_PATH);

$stringutil = new String("");
$all_url_vars=array();
$all_url_vars=$stringutil->parse_all();
$all_url_vars["page"]=(empty($all_url_vars["page"])?"first":$all_url_vars["page"]);
if(
$all_url_vars["page"]=="first")
$ft->define(array("main"=>"template_body.html""content"=>"template_firstpage.html"));
elseif (
$all_url_vars["page"]=="sql")
          
$ft->define(array("main"=>"template_body.html""content"=>"template_sql.html"));
    else 
           
$ft->define(array("main"=>"template_body.html""content"=>"template_host.html"));
$ft->parse("BODY", array("content","main"));
$ft->FastPrint();
?>