PHP Classes
elePHPant
Icontem

File: makeclass_before.php

Recommend this page to a friend!
  Classes of Helio Barbosa  >  PHP FrameWork Class  >  makeclass_before.php  >  Download  
File: makeclass_before.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP FrameWork Class
Generate a Web interface to edit database records
Author: By
Last change:
Date: 2 months ago
Size: 1,261 bytes
 

 

Contents

Class file image Download
<?php

  $hostIP
= $_GET['ip'];
 
$user = $_GET['user'];
 
$password = $_GET['pass'];
 
$database = $_GET['db'];
 
$folder = $_GET['fold'];


 
/* Make the back-end classes */
 
include_once("makeclass.php") ;
 
$NewWork = New WorkClass() ;
 
$NewWork->setHostNameIP($hostIP);
 
$NewWork->setUserName($user);
 
$NewWork->setPassWord($password);
 
$NewWork->setDbName($database);
 
$NewWork->setFolder($folder);
  foreach(
$_GET as $key => $value){
    if(
substr($value,0,3)=='db_')
    {
     
$NewWork->settableName( $value ) ;
     
$NewWork->makeDoIt();
    }
  }


 
/* Make the front-end classes */
 
include_once("makeFrontEnd.php") ;
 
$NewFront = New makeFrontEnd() ;
 
$NewFront->setHostNameIP($hostIP);
 
$NewFront->setUserName($user);
 
$NewFront->setPassWord($password);
 
$NewFront->setDbName($database);
 
$NewFront->setFolder($folder);

  foreach(
$_GET as $key => $value){
    if(
substr($value,0,3)=='db_')
    {
     
$NewFront->settableName( $value ) ;
     
$NewFront->makeDoIt();
    }
  }

 
/* Create a default.php with itens liked */
 
include_once("makeDefault.php");
 
$NewDefaullt = New makeDefault();
 
$NewDefaullt->setfolder($folder);
 
$NewDefaullt->makeClass($_GET);

?>