diff --git a/install/htconfig.sample.php b/install/htconfig.sample.php index df39bc9ad..50ce9658b 100755 --- a/install/htconfig.sample.php +++ b/install/htconfig.sample.php @@ -19,6 +19,8 @@ $db_pass = 'mysqlpassword'; $db_data = 'mysqldatabasename'; $db_type = 0; // use 1 for postgres, 0 for mysql +define( 'UNO', 0 ); + /* * Notice: Many of the following settings will be available in the admin panel * after a successful site install. Once they are set in the admin panel, they diff --git a/mod/setup.php b/mod/setup.php index 5c9e988d9..886213b9d 100755 --- a/mod/setup.php +++ b/mod/setup.php @@ -138,16 +138,17 @@ function setup_post(&$a) { $tpl = get_intltext_template('htconfig.tpl'); $txt = replace_macros($tpl,array( - '$dbhost' => $dbhost, - '$dbport' => $dbport, - '$dbuser' => $dbuser, - '$dbpass' => $dbpass, - '$dbdata' => $dbdata, - '$dbtype' => $dbtype, - '$timezone' => $timezone, - '$siteurl' => $siteurl, - '$site_id' => random_string(), - '$phpath' => $phpath, + '$dbhost' => $dbhost, + '$dbport' => $dbport, + '$dbuser' => $dbuser, + '$dbpass' => $dbpass, + '$dbdata' => $dbdata, + '$dbtype' => $dbtype, + '$uno' => 0, + '$timezone' => $timezone, + '$siteurl' => $siteurl, + '$site_id' => random_string(), + '$phpath' => $phpath, '$adminmail' => $adminmail )); diff --git a/view/cs/htconfig.tpl b/view/cs/htconfig.tpl index 773125154..8f26ec7b0 100644 --- a/view/cs/htconfig.tpl +++ b/view/cs/htconfig.tpl @@ -10,6 +10,8 @@ $db_pass = '{{$dbpass}}'; $db_data = '{{$dbdata}}'; $db_type = '{{$dbtype}}'; // an integer. 0 or unset for mysql, 1 for postgres +define( 'UNO', {{$uno}} ); + /* * Notice: Many of the following settings will be available in the admin panel * after a successful site install. Once they are set in the admin panel, they diff --git a/view/de/htconfig.tpl b/view/de/htconfig.tpl index 205da73a3..a81c34741 100644 --- a/view/de/htconfig.tpl +++ b/view/de/htconfig.tpl @@ -10,6 +10,8 @@ $db_pass = '{{$dbpass}}'; $db_data = '{{$dbdata}}'; $db_type = '{{$dbtype}}'; // an integer. 0 or unset for mysql, 1 for postgres +define( 'UNO', {{$uno}} ); + /* * Notice: Many of the following settings will be available in the admin panel * after a successful site install. Once they are set in the admin panel, they diff --git a/view/en-au/htconfig.tpl b/view/en-au/htconfig.tpl index 9dd0a1ab2..9611decf9 100644 --- a/view/en-au/htconfig.tpl +++ b/view/en-au/htconfig.tpl @@ -10,6 +10,8 @@ $db_pass = '{{$dbpass}}'; $db_data = '{{$dbdata}}'; $db_type = '{{$dbtype}}'; // an integer. 0 or unset for mysql, 1 for postgres +define( 'UNO', {{$uno}} ); + /* * Notice: Many of the following settings will be available in the admin panel * after a successful site install. Once they are set in the admin panel, they diff --git a/view/en-gb/htconfig.tpl b/view/en-gb/htconfig.tpl index 9dd0a1ab2..9611decf9 100644 --- a/view/en-gb/htconfig.tpl +++ b/view/en-gb/htconfig.tpl @@ -10,6 +10,8 @@ $db_pass = '{{$dbpass}}'; $db_data = '{{$dbdata}}'; $db_type = '{{$dbtype}}'; // an integer. 0 or unset for mysql, 1 for postgres +define( 'UNO', {{$uno}} ); + /* * Notice: Many of the following settings will be available in the admin panel * after a successful site install. Once they are set in the admin panel, they diff --git a/view/en/htconfig.tpl b/view/en/htconfig.tpl index 17f19702f..50e05fc3e 100644 --- a/view/en/htconfig.tpl +++ b/view/en/htconfig.tpl @@ -10,6 +10,8 @@ $db_pass = '{{$dbpass}}'; $db_data = '{{$dbdata}}'; $db_type = '{{$dbtype}}'; // an integer. 0 or unset for mysql, 1 for postgres +define( 'UNO', {{$uno}} ); + /* * Notice: Many of the following settings will be available in the admin panel * after a successful site install. Once they are set in the admin panel, they diff --git a/view/eo/htconfig.tpl b/view/eo/htconfig.tpl index 773125154..8f26ec7b0 100644 --- a/view/eo/htconfig.tpl +++ b/view/eo/htconfig.tpl @@ -10,6 +10,8 @@ $db_pass = '{{$dbpass}}'; $db_data = '{{$dbdata}}'; $db_type = '{{$dbtype}}'; // an integer. 0 or unset for mysql, 1 for postgres +define( 'UNO', {{$uno}} ); + /* * Notice: Many of the following settings will be available in the admin panel * after a successful site install. Once they are set in the admin panel, they diff --git a/view/fr/htconfig.tpl b/view/fr/htconfig.tpl index 1e7e14fb4..5171fd327 100644 --- a/view/fr/htconfig.tpl +++ b/view/fr/htconfig.tpl @@ -12,6 +12,8 @@ $db_pass = '{{$dbpass}}'; $db_data = '{{$dbdata}}'; $db_type = '{{$dbtype}}'; // an integer. 0 or unset for mysql, 1 for postgres +define( 'UNO', {{$uno}} ); + /* * Note: Plusieurs de ces réglages seront disponibles via le panneau d'administration * après l'installation. Lorsque des modifications sont apportés à travers le panneau d'administration diff --git a/view/it/htconfig.tpl b/view/it/htconfig.tpl index 773125154..8f26ec7b0 100644 --- a/view/it/htconfig.tpl +++ b/view/it/htconfig.tpl @@ -10,6 +10,8 @@ $db_pass = '{{$dbpass}}'; $db_data = '{{$dbdata}}'; $db_type = '{{$dbtype}}'; // an integer. 0 or unset for mysql, 1 for postgres +define( 'UNO', {{$uno}} ); + /* * Notice: Many of the following settings will be available in the admin panel * after a successful site install. Once they are set in the admin panel, they diff --git a/view/nb-no/htconfig.tpl b/view/nb-no/htconfig.tpl index 773125154..8f26ec7b0 100644 --- a/view/nb-no/htconfig.tpl +++ b/view/nb-no/htconfig.tpl @@ -10,6 +10,8 @@ $db_pass = '{{$dbpass}}'; $db_data = '{{$dbdata}}'; $db_type = '{{$dbtype}}'; // an integer. 0 or unset for mysql, 1 for postgres +define( 'UNO', {{$uno}} ); + /* * Notice: Many of the following settings will be available in the admin panel * after a successful site install. Once they are set in the admin panel, they diff --git a/view/pt-br/htconfig.tpl b/view/pt-br/htconfig.tpl index 773125154..8f26ec7b0 100644 --- a/view/pt-br/htconfig.tpl +++ b/view/pt-br/htconfig.tpl @@ -10,6 +10,8 @@ $db_pass = '{{$dbpass}}'; $db_data = '{{$dbdata}}'; $db_type = '{{$dbtype}}'; // an integer. 0 or unset for mysql, 1 for postgres +define( 'UNO', {{$uno}} ); + /* * Notice: Many of the following settings will be available in the admin panel * after a successful site install. Once they are set in the admin panel, they diff --git a/view/ru/htconfig.tpl b/view/ru/htconfig.tpl index 773125154..8f26ec7b0 100644 --- a/view/ru/htconfig.tpl +++ b/view/ru/htconfig.tpl @@ -10,6 +10,8 @@ $db_pass = '{{$dbpass}}'; $db_data = '{{$dbdata}}'; $db_type = '{{$dbtype}}'; // an integer. 0 or unset for mysql, 1 for postgres +define( 'UNO', {{$uno}} ); + /* * Notice: Many of the following settings will be available in the admin panel * after a successful site install. Once they are set in the admin panel, they diff --git a/view/sv/htconfig.tpl b/view/sv/htconfig.tpl index 773125154..8f26ec7b0 100644 --- a/view/sv/htconfig.tpl +++ b/view/sv/htconfig.tpl @@ -10,6 +10,8 @@ $db_pass = '{{$dbpass}}'; $db_data = '{{$dbdata}}'; $db_type = '{{$dbtype}}'; // an integer. 0 or unset for mysql, 1 for postgres +define( 'UNO', {{$uno}} ); + /* * Notice: Many of the following settings will be available in the admin panel * after a successful site install. Once they are set in the admin panel, they