Freeder
 All Classes Files Functions Variables Pages
Functions | Variables
install.php File Reference

Functions to install the script. More...

Functions

 install_dir ($dir)
 
 install_config ()
 
 install_db ()
 
 install ()
 

Variables

 $default_timezone = @date_default_timezone_get()
 
 $install_template
 
 $config_template
 

Detailed Description

Functions to install the script.

Freeder

Function Documentation

install ( )

Proceed to Freeder installation.

install_config ( )

Create configuration file in data directory.

install_db ( )

Initialize database.

install_dir (   $dir)

Create a directory, checking writeable and the rights.

Variable Documentation

$config_template
Initial value:
=
"
<?php
define('DB_FILE', 'db.sqlite3');
?>
"
$install_template
Initial value:
=
'
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr">
<head>
<meta charset="utf-8"/>
</head>
<body>
<h1>Installation</h1>
<form method="post" action="">
<p><label for="login">Login: </label><input type="text" name="login" id="login"/></p>
<p><label for="password">Password: </label><input type="password" name="password" id="password"/></p>
<p><label for="timezone">Timezone : </label><input type="text" name="timezone" id="timezone" value="'.$default_timezone.'"/></p>
<p><input type="submit" value="Install !"/></p>
</form>
</body>
</html>
'