feature 1522: Move config_local.inc.php to local/config/config.inc.php
git-svn-id: http://piwigo.org/svn/trunk@5215 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
545b10474c
commit
8db5b549d1
23 changed files with 22 additions and 22 deletions
|
|
@ -83,7 +83,7 @@ class c13y_internal
|
|||
sprintf(l10n('%s value is not correct file because exif are not supported'), '$conf[\''.$value.'\']'),
|
||||
null,
|
||||
null,
|
||||
sprintf(l10n('%s must be to set to false in your config_local.inc.php file'), '$conf[\''.$value.'\']')
|
||||
sprintf(l10n('%s must be to set to false in your local/config/config.inc.php file'), '$conf[\''.$value.'\']')
|
||||
.'<br>'.
|
||||
$c13y->get_htlm_links_more_info());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ foreach( array(
|
|||
}
|
||||
|
||||
include(PHPWG_ROOT_PATH . 'include/config_default.inc.php');
|
||||
@include(PHPWG_ROOT_PATH. 'include/config_local.inc.php');
|
||||
@include(PHPWG_ROOT_PATH. 'local/config/config.inc.php');
|
||||
include(PHPWG_ROOT_PATH .'include/dblayer/functions_'.$conf['dblayer'].'.inc.php');
|
||||
|
||||
if(isset($conf['show_php_errors']) && !empty($conf['show_php_errors']))
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@
|
|||
*
|
||||
* It is recommended to let config_default.inc.php as provided and to
|
||||
* overwrite configuration in your local configuration file
|
||||
* config_local.inc.php. See tools/config_local.inc.php as an example.
|
||||
* local/config/config.inc.php. See tools/config.inc.php as an example.
|
||||
*
|
||||
* Why having some parameters in config table and others in
|
||||
* config_*.inc.php? Modifying config_*.inc.php is a "hard" task for low
|
||||
|
|
|
|||
|
|
@ -158,7 +158,7 @@ elseif (@file_exists($config_file))
|
|||
|
||||
$prefixeTable = $table_prefix;
|
||||
include(PHPWG_ROOT_PATH . 'include/config_default.inc.php');
|
||||
@include(PHPWG_ROOT_PATH. 'include/config_local.inc.php');
|
||||
@include(PHPWG_ROOT_PATH. 'local/config/config.inc.php');
|
||||
include(PHPWG_ROOT_PATH .'include/dblayer/functions_'.$dblayer.'.inc.php');
|
||||
include(PHPWG_ROOT_PATH . 'include/constants.php');
|
||||
include(PHPWG_ROOT_PATH . 'include/functions.inc.php');
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ $upgrade_description = 'Field "Status" Table #user_infos changed';
|
|||
|
||||
include_once(PHPWG_ROOT_PATH.'include/constants.php');
|
||||
include(PHPWG_ROOT_PATH . 'include/config_default.inc.php');
|
||||
@include(PHPWG_ROOT_PATH. 'include/config_local.inc.php');
|
||||
@include(PHPWG_ROOT_PATH. 'local/config/config.inc.php');
|
||||
|
||||
// +-----------------------------------------------------------------------+
|
||||
// | Upgrade content |
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ $upgrade_description = 'Update database to new pwg_high structure';
|
|||
|
||||
include_once(PHPWG_ROOT_PATH.'include/constants.php');
|
||||
include(PHPWG_ROOT_PATH . 'include/config_default.inc.php');
|
||||
@include(PHPWG_ROOT_PATH. 'include/config_local.inc.php');
|
||||
@include(PHPWG_ROOT_PATH. 'local/config/config.inc.php');
|
||||
|
||||
// +-----------------------------------------------------------------------+
|
||||
// | Upgrade content |
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ $upgrade_description = 'Change default value on #user_infos for guest';
|
|||
|
||||
include_once(PHPWG_ROOT_PATH.'include/constants.php');
|
||||
include(PHPWG_ROOT_PATH . 'include/config_default.inc.php');
|
||||
@include(PHPWG_ROOT_PATH. 'include/config_local.inc.php');
|
||||
@include(PHPWG_ROOT_PATH. 'local/config/config.inc.php');
|
||||
|
||||
// +-----------------------------------------------------------------------+
|
||||
// | Upgrade content |
|
||||
|
|
|
|||
|
|
@ -135,7 +135,7 @@ SELECT language, COUNT(user_id) AS count FROM '.USER_INFOS_TABLE.'
|
|||
// +-----------------------------------------------------------------------+
|
||||
// get admin charset
|
||||
include(PHPWG_ROOT_PATH . 'include/config_default.inc.php');
|
||||
@include(PHPWG_ROOT_PATH. 'include/config_local.inc.php');
|
||||
@include(PHPWG_ROOT_PATH. 'local/config/config.inc.php');
|
||||
$admin_charset='iso-8859-1';
|
||||
$query='
|
||||
SELECT language FROM '.USER_INFOS_TABLE.'
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ $params = array(
|
|||
|
||||
$conf_save = $conf;
|
||||
unset($conf);
|
||||
@include(PHPWG_ROOT_PATH. 'include/config_local.inc.php');
|
||||
@include(PHPWG_ROOT_PATH. 'local/config/config.inc.php');
|
||||
if ( isset($conf['gallery_url']) )
|
||||
{
|
||||
$params['gallery_url'][0] = $conf['gallery_url'];
|
||||
|
|
|
|||
|
|
@ -282,7 +282,7 @@ if ($prefix_thumbnail != 'TN-')
|
|||
array_push(
|
||||
$page['infos'],
|
||||
'the thumbnail prefix configuration parameter was moved to configuration
|
||||
file, copy config_local.inc.php from "tools" directory to "include" directory
|
||||
file, copy config.inc.php from "tools" directory to "local/config" directory
|
||||
and edit $conf[\'prefix_thumbnail\'] = '.$prefix_thumbnail
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -333,7 +333,7 @@ $params = array(
|
|||
// Get real values from config file
|
||||
$conf_save = $conf;
|
||||
unset($conf);
|
||||
@include(PHPWG_ROOT_PATH. 'include/config_local.inc.php');
|
||||
@include(PHPWG_ROOT_PATH. 'local/config/config.inc.php');
|
||||
if ( isset($conf['gallery_url']) )
|
||||
{
|
||||
$params['gallery_url'][0] = $conf['gallery_url'];
|
||||
|
|
|
|||
|
|
@ -535,7 +535,7 @@ $lang['Go to %s or %s for more informations'] = "Gehen Sie %s oder %s für weite
|
|||
$lang['the forum'] = "das Forum";
|
||||
$lang['the wiki'] = "das wiki";
|
||||
$lang['%s value is not correct file because exif are not supported'] = "Der Wert %s ist nicht korrekt weil EXIF nicht unterstützt wird";
|
||||
$lang['%s must be to set to false in your config_local.inc.php file'] = "%s muss auf \"false\" in Ihrer Datei config_local.inc.php";
|
||||
$lang['%s must be to set to false in your local/config/config.inc.php file'] = "%s muss auf \"false\" in Ihrer Datei local/config/config.inc.php";
|
||||
$lang['Main "guest" user does not exist'] = "Der Benutzer \"Gast\" Haupt nicht mehr";
|
||||
$lang['Main "guest" user status is incorrect'] = "Der Status der Benutzer \"Gast\" ist falsch";
|
||||
$lang['Default user does not exist'] = "Der Benutzer standardmäßig nicht mehr";
|
||||
|
|
|
|||
|
|
@ -535,7 +535,7 @@ $lang['Go to %s or %s for more informations'] = "Go to %s or %s for more informa
|
|||
$lang['the forum'] = "the forum";
|
||||
$lang['the wiki'] = "the wiki";
|
||||
$lang['%s value is not correct file because exif are not supported'] = "%s value is not correct file because exif are not supported";
|
||||
$lang['%s must be to set to false in your config_local.inc.php file'] = "%s must be to set to false in your config_local.inc.php file";
|
||||
$lang['%s must be to set to false in your local/config/config.inc.php file'] = "%s must be to set to false in your local/config/config.inc.php file";
|
||||
$lang['Main "guest" user does not exist'] = "Main \"guest\" user does not exist";
|
||||
$lang['Main "guest" user status is incorrect'] = "Main \"guest\" user status is incorrect";
|
||||
$lang['Default user does not exist'] = "Default user does not exist";
|
||||
|
|
|
|||
|
|
@ -534,7 +534,7 @@ $lang['Go to %s or %s for more informations'] = "Vaya sobre %s o %s para más in
|
|||
$lang['the forum'] = "El foro";
|
||||
$lang['the wiki'] = "El wiki";
|
||||
$lang['%s value is not correct file because exif are not supported'] = "El valor de %s no es correcto porque datos Exif no son soportados";
|
||||
$lang['%s must be to set to false in your config_local.inc.php file'] = "%s debe ser puesto a \"false\" en su fichero config_local.inc.php";
|
||||
$lang['%s must be to set to false in your local/config/config.inc.php file'] = "%s debe ser puesto a \"false\" en su fichero local/config/config.inc.php";
|
||||
$lang['Main "guest" user does not exist'] = "El usuario \"invitado\" principal no existe más";
|
||||
$lang['Main "guest" user status is incorrect'] = "El estatuto del usuario \"invitado\" principal es incorrecto";
|
||||
$lang['Default user does not exist'] = "El usuario por defecto no existe más";
|
||||
|
|
|
|||
|
|
@ -534,7 +534,7 @@ $lang['Go to %s or %s for more informations'] = "Allez sur %s ou %s pour plus d'
|
|||
$lang['the forum'] = "le forum";
|
||||
$lang['the wiki'] = "le wiki";
|
||||
$lang['%s value is not correct file because exif are not supported'] = "La valeur de %s n'est pas correcte parce que l'exif n'est pas supporté";
|
||||
$lang['%s must be to set to false in your config_local.inc.php file'] = "%s doit être mis à \"false\" dans votre fichier config_local.inc.php";
|
||||
$lang['%s must be to set to false in your local/config/config.inc.php file'] = "%s doit être mis à \"false\" dans votre fichier local/config/config.inc.php";
|
||||
$lang['Main "guest" user does not exist'] = "L'utilisateur \"invité\" principal n'existe plus";
|
||||
$lang['Main "guest" user status is incorrect'] = "Le statut de l'utilisateur \"invité\" principal est incorrect";
|
||||
$lang['Default user does not exist'] = "L'utilisateur par défaut n'existe plus";
|
||||
|
|
|
|||
|
|
@ -534,7 +534,7 @@ $lang['Go to %s or %s for more informations'] = "Recarsi su : %s o %s per avere
|
|||
$lang['the forum'] = "il forum";
|
||||
$lang['the wiki'] = "il wiki";
|
||||
$lang['%s value is not correct file because exif are not supported'] = "Il valore di %s non è corretto per causa del exif che non è sopportato";
|
||||
$lang['%s must be to set to false in your config_local.inc.php file'] = "%s deve essere impostato a \"false\" nel vostro file config_local.inc.php";
|
||||
$lang['%s must be to set to false in your local/config/config.inc.php file'] = "%s deve essere impostato a \"false\" nel vostro file local/config/config.inc.php";
|
||||
$lang['Main "guest" user does not exist'] = "L'utente \"ospite\" principale non esiste più";
|
||||
$lang['Main "guest" user status is incorrect'] = "Lo statuto del'utente \"ospite\" principale non è corretto";
|
||||
$lang['Default user does not exist'] = "L'utente di default non esiste più";
|
||||
|
|
|
|||
|
|
@ -535,7 +535,7 @@ $lang['Go to %s or %s for more informations'] = "Gaa naar %s of %s voor meer inf
|
|||
$lang['the forum'] = "het forum";
|
||||
$lang['the wiki'] = "de wiki";
|
||||
$lang['%s value is not correct file because exif are not supported'] = "%s waarde is niet een correct bestand omdat exif niet ondersteund word";
|
||||
$lang['%s must be to set to false in your config_local.inc.php file'] = "%s moet aangepast worden naar false in je config_local.inc.php bestand";
|
||||
$lang['%s must be to set to false in your local/config/config.inc.php file'] = "%s moet aangepast worden naar false in je local/config/config.inc.php bestand";
|
||||
$lang['Main "guest" user does not exist'] = "Hooft \"gast\" gebruiker bestaat niet meer";
|
||||
$lang['Main "guest" user status is incorrect'] = "Hooft \"gast\" gebruikers status is niet correct";
|
||||
$lang['Default user does not exist'] = "Standaard gebruiker bestaat niet meer";
|
||||
|
|
|
|||
|
|
@ -535,7 +535,7 @@ $lang['Go to %s or %s for more informations'] = "Aby uzyskać więcej informacji
|
|||
$lang['the forum'] = "forum";
|
||||
$lang['the wiki'] = "wiki";
|
||||
$lang['%s value is not correct file because exif are not supported'] = "Wartość %s nie jest poprawna, ponieważ exif nie jest wspierany";
|
||||
$lang['%s must be to set to false in your config_local.inc.php file'] = "Wartość %s musi być ustawiona na false w pliku konfiguracyjnym config_local.inc.php";
|
||||
$lang['%s must be to set to false in your local/config/config.inc.php file'] = "Wartość %s musi być ustawiona na false w pliku konfiguracyjnym local/config/config.inc.php";
|
||||
$lang['Main "guest" user does not exist'] = "Główny użytkownik \"gość\" nie istnieje";
|
||||
$lang['Main "guest" user status is incorrect'] = "Status głównego użytkownika \"gość\" jest niepoprawny";
|
||||
$lang['Default user does not exist'] = "Domyślny użytkownik nie istnieje";
|
||||
|
|
|
|||
|
|
@ -531,7 +531,7 @@ $lang['c13y_more_info'] = 'Go to %s or %s for more informations';
|
|||
$lang['c13y_more_info_forum'] = 'the forum';
|
||||
$lang['c13y_more_info_wiki'] = 'the wiki';
|
||||
$lang['c13y_exif_anomaly'] = '%s value is not correct file because exif are not supported';
|
||||
$lang['c13y_exif_correction'] = '%s must be to set to false in your config_local.inc.php file';
|
||||
$lang['c13y_exif_correction'] = '%s must be to set to false in your local/config/config.inc.php file';
|
||||
$lang['c13y_guest_non_existent'] = 'Main "guest" user does not exist';
|
||||
$lang['c13y_bad_guest_status'] = 'Main "guest" user status is incorrect';
|
||||
$lang['c13y_default_non_existent'] = 'Default user does not exist';
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@ if (isset($_POST['create_tpl']))
|
|||
switch ($page['tab'])
|
||||
{
|
||||
case 'localconf':
|
||||
$edited_file = PHPWG_ROOT_PATH . "include/config_local.inc.php";
|
||||
$edited_file = PHPWG_ROOT_PATH . "local/config/config.inc.php";
|
||||
$content_file = file_exists($edited_file) ?
|
||||
file_get_contents($edited_file) : $new_file['localconf'];
|
||||
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ include_once(PHPWG_ROOT_PATH.'admin/include/functions_upgrade.php');
|
|||
|
||||
include(PHPWG_ROOT_PATH.'local/config/database.inc.php');
|
||||
include(PHPWG_ROOT_PATH . 'include/config_default.inc.php');
|
||||
@include(PHPWG_ROOT_PATH. 'include/config_local.inc.php');
|
||||
@include(PHPWG_ROOT_PATH. 'local/config/config.inc.php');
|
||||
include(PHPWG_ROOT_PATH .'include/dblayer/functions_'.$conf['dblayer'].'.inc.php');
|
||||
|
||||
prepare_conf_upgrade();
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
|
|||
include_once(PHPWG_ROOT_PATH.'admin/include/functions_upgrade.php');
|
||||
include(PHPWG_ROOT_PATH.'local/config/database.inc.php');
|
||||
include(PHPWG_ROOT_PATH . 'include/config_default.inc.php');
|
||||
@include(PHPWG_ROOT_PATH. 'include/config_local.inc.php');
|
||||
@include(PHPWG_ROOT_PATH. 'local/config/config.inc.php');
|
||||
include(PHPWG_ROOT_PATH .'include/dblayer/functions_'.$conf['dblayer'].'.inc.php');
|
||||
|
||||
// +-----------------------------------------------------------------------+
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue