install.php File Reference


Detailed Description

Installation script for Embient.

Version:
1.0
Author:
BoogieBug

Definition in file install.php.

Go to the source code of this file.

Enumerations

enum  XMLINST
enum  INSTMAINSEC

Functions

 embient_search ($dir, $name, $sig)
 scan the directory for an index.php with signature inside
 embient_append ($filename, $content)
 Append the installation string to the target file.
 embient_create ($filename, $content)
 Create a new file with content.
 embient_load_install ()
 Load installation script from XML installation file.

Variables

 $docroot = $_SERVER['DOCUMENT_ROOT']
 $embient_dir = dirname(__FILE__)
 $script = embient_load_install()


Enumeration Type Documentation

enum INSTMAINSEC
 

For internal use only.

Root node in the configuration file

Definition at line 41 of file install.php.

enum XMLINST
 

For internal use only.

Embient configuration file name

Definition at line 38 of file install.php.


Function Documentation

embient_append filename,
content
 

Append the installation string to the target file.

Append the installation string to the end of target file, but before the PHP end tag. If file is not existing, it will be created using "embient_create($filename, $str)" function.

Parameters:
$filename string - target file name
$content array of strings - strings to be appened. New line will be appended at the end of each element.

Definition at line 157 of file install.php.

Here is the call graph for this function:

embient_create filename,
content
 

Create a new file with content.

Create a new file with content in $str. The PHP's open and and close tags are automatically applied to the begin and end of the file.

If the file is already existing, it will be overwritten.

Parameters:
$filename string - file name
$content array of strings - strings to be inserted. New line will be appended at the end of each element.

Definition at line 214 of file install.php.

embient_load_install  ) 
 

Load installation script from XML installation file.

Returns:
associative array of the scripts

Definition at line 229 of file install.php.

Here is the call graph for this function:

embient_search dir,
name,
sig
 

scan the directory for an index.php with signature inside

Parameters:
$dir string - directory name
$name string - name of target file to check the signature
$sig string - signature
Returns:
directory of an index.php with signature inside

Definition at line 99 of file install.php.


Variable Documentation

$docroot = $_SERVER['DOCUMENT_ROOT']
 

Definition at line 48 of file install.php.

$embient_dir = dirname(__FILE__)
 

Definition at line 51 of file install.php.

$script = embient_load_install()
 

Definition at line 54 of file install.php.


Generated on Fri Feb 10 15:05:55 2006 for Embient by  doxygen 1.4.6-NO