diff --git a/data/notice b/data/notice old mode 100644 new mode 100755 diff --git a/db_backups/README b/db_backups/README old mode 100644 new mode 100755 diff --git a/inc/functions.php b/inc/functions.php index 804d35b..dde3b77 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -1,7 +1,10 @@ data/ folder (to write the data/config.php configuration file). You should give write access during install and disable them after (chmod 777 -R data/ to install and chmod 755 -R data/ after installation for example). You'll need right access on this folder each time you will want to edit settings."; $block_form = true; } + if(!is_writable('tmp/')) { + $error = "The script seems to be unable to write to tmp/ folder (to store the cached files for templates). You should give write (chmod 777 -R tmp/."; + $block_form = true; + } if(!is_writable('db_backups/')) { $error = "The script seems to be unable to write to db_backups/ folder (to write the database backups). You should give write access."; $block_form = true; @@ -53,7 +57,7 @@ if(!filter_var($_POST['email_webmaster'], FILTER_VALIDATE_EMAIL)) { $email = 'Webmaster\'s e-mail address is invalid.'; } - + if(empty($error)) { if(function_exists('mcrypt_create_iv')) { $salt = strtr(base64_encode(mcrypt_create_iv(16, MCRYPT_DEV_URANDOM)), '+', '.'); @@ -78,7 +82,7 @@ define('EMAIL_WEBMASTER', '".$_POST['email_webmaster']."'); define('TEMPLATE_DIR', 'tpl/default_".$_POST['lang']."/'); define('LANG', '".$_POST['lang']."'); - + date_default_timezone_set('".$_POST['timezone']."'); "; @@ -106,6 +110,8 @@ $error = 'Unable to write configuration to config file data/config.php.'; } } + + $token = generate_token('install'); ?> @@ -134,7 +140,7 @@

Toggle visible

-
+
Note : You must create this database first.


@@ -161,7 +167,7 @@

/>

Toggle visible

-

type="submit" value="Install">

+

type="submit" value="Install">

diff --git a/tmp/index.html b/tmp/index.html new file mode 100644 index 0000000..e69de29