| 
<?php
 include('includes/STControl.php');
 
 $STC = new STControl;
 
 $STC->tdir      = 'style/template/';
 $STC->mainpath  = 'test.php?action=index';
 $STC->defualtex = '.tpl';
 
 if (empty($_GET['action'])) { $action = 'index'; }
 
 if ($action == 'index')
 {
 $STC->editpath = 'test.php?action=show';
 $STC->GetTemplate();
 }
 
 if ($_GET['action'] == 'show')
 {
 $STC->starteditpath = 'test.php?action=startedit';
 $STC->EditTemplate($D1);
 }
 
 if ($_GET['action'] == 'startedit')
 {
 $STC->StartEdit($S1);
 }
 
 if ($_GET['action'] == 'add')
 {
 $STC->addpath = 'test.php?action=startadd';
 $STC->AddTemplate();
 }
 
 if ($_GET['action'] == 'startadd')
 {
 $STC->StartAdd();
 }
 
 ?>
 |