aboutsummaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorgweltas <gweltas@piwigo.org>2004-07-28 17:21:58 +0000
committergweltas <gweltas@piwigo.org>2004-07-28 17:21:58 +0000
commit52a3531e7e140077c7fd4ce82acfc085091fffb0 (patch)
treefd9673b2c25ef12bf28bff8bd2909027ec24d774 /install
parent4cec52cc3cd9a5031de6ee8fc2c56cd151eec3c9 (diff)
Installation procedure update
git-svn-id: http://piwigo.org/svn/trunk@463 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--install.php7
-rw-r--r--install/config.sql2
2 files changed, 5 insertions, 4 deletions
diff --git a/install.php b/install.php
index 924ce8ffa..4fc7b4d02 100644
--- a/install.php
+++ b/install.php
@@ -31,6 +31,7 @@ define('PHPWG_ROOT_PATH','./');
// Guess an initial language ...
function guess_lang()
{
+ return 'en_UK.iso-8859-1';
global $_SERVER;
$languages = array();
$i = 0;
@@ -255,11 +256,11 @@ if ( isset( $_POST['install'] ))
@fclose($fp);
// tables creation, based on phpwebgallery_structure.sql
- execute_sqlfile( './install/phpwebgallery_structure.sql'
+ execute_sqlfile( PHPWG_ROOT_PATH.'install/phpwebgallery_structure.sql'
, 'phpwebgallery_'
, $table_prefix );
// We fill the tables with basic informations
- execute_sqlfile( './install/config.sql'
+ execute_sqlfile( PHPWG_ROOT_PATH.'install/config.sql'
, 'phpwebgallery_'
, $table_prefix );
@@ -282,7 +283,7 @@ if ( isset( $_POST['install'] ))
mysql_query( $query );
$query = 'INSERT INTO '.SITES_TABLE;
- $query.= " (id,galleries_url) VALUES (1, './galleries/');";
+ $query.= " (id,galleries_url) VALUES (1, ".PHPWG_ROOT_PATH."'galleries/');";
mysql_query( $query );
// webmaster admin user
diff --git a/install/config.sql b/install/config.sql
index 9cf500ab4..f23f29ff6 100644
--- a/install/config.sql
+++ b/install/config.sql
@@ -3,7 +3,7 @@
INSERT INTO phpwebgallery_config (param,value,comment) VALUES ('prefix_thumbnail','TN-','thumbnails filename prefix');
INSERT INTO phpwebgallery_config (param,value,comment) VALUES ('webmaster','','webmaster login');
INSERT INTO phpwebgallery_config (param,value,comment) VALUES ('mail_webmaster','','webmaster mail');
-INSERT INTO phpwebgallery_config (param,value,comment) VALUES ('default_lang','en_EN','Default gallery language');
+INSERT INTO phpwebgallery_config (param,value,comment) VALUES ('default_lang','en_UK.iso-8859-1','Default gallery language');
INSERT INTO phpwebgallery_config (param,value,comment) VALUES ('default_style','default','Default gallery style');
INSERT INTO phpwebgallery_config (param,value,comment) VALUES ('access','free','access type to your gallery (free|restricted)');
INSERT INTO phpwebgallery_config (param,value,comment) VALUES ('session_id_size','4','length of session identifiers');