Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Bogdan Lupandin  >  Installation Automation  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Exanple file
Class: Installation Automation
Automate multi-step application installations
Author: By
Last change:
Date: 2009-05-03 20:41
Size: 1,421 bytes
 

Contents

Class file image Download
<?php
// Starting the session
session_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    <head>
        <title>Installation Class Example</title>
    </head>
    <body>
        <p style="background-color: #cecece; margin: 0;">
            <small>(This content is not part of the form/stage... this content is part of the example main page)</small><br />
            Configuration used:<br />
            <ins><ul style="background-color: #cecece; margin: 0;">
                <li><a href="documentation.html#vcreate_global">$create_global</a> = true</li>
                <li><a href="documentation.html#use_sql">$use_sql</a> = false</li>
                <li><a href="documentation.html#force_errors">$force_errors</a> = false</li>
                <li><a href="documentation.html#vdebug">$debug</a> = false</li>
            </ul></ins>
            <ins><hr /></ins>
        </p>
<?php
// Requiring the installation class
require 'install.php';

// Setting the installation object to $inst
$inst = new install();

// Initiating the setup function (The one that includes the form).
$inst->setup();

// Checking if 'submit' is set
if(isset($_POST['submit']))
{
    
// Advancing on to the next stage
    
$inst->cont();
}
?>
    </body>
</html>