dataset/seed/piwigo/templates/database.inc.php

33 lines
848 B
PHP
Raw Normal View History

2022-04-28 21:48:16 +02:00
<?php
$conf['dblayer'] = 'mysqli';
2023-06-23 08:12:05 +02:00
$conf['db_base'] = '{{ general.mariadb.mariadb_client_database }}';
$conf['db_user'] = '{{ general.mariadb.mariadb_client_username }}';
$conf['db_password'] = '{{ general.mariadb.mariadb_client_password }}';
$conf['db_host'] = '{{ general.mariadb.mariadb_client_server_domainname }}';
2022-04-28 21:48:16 +02:00
if(!isset($_SERVER) && isset($_ENV) && isset($_ENV['REQUEST_URI']))
{
$_SERVER = Array('REQUEST_URI' => $_ENV['REQUEST_URI']);
}
2023-06-23 08:12:05 +02:00
{% for user in piwigo_users %}
{%if loop.index != 1 %}
2022-04-28 21:48:16 +02:00
}
2023-06-23 08:12:05 +02:00
else {% if True -%}{% endif -%}
{%- endif -%}
if(str_starts_with($_SERVER['REQUEST_URI'], '/{{ user }}/')) {
$prefixeTable = 'piwigo_{{ user }}_';
{% endfor %}
2022-04-28 21:48:16 +02:00
}
else
{
die('unknown album');
}
define('PHPWG_INSTALLED', true);
define('PWG_CHARSET', 'utf-8');
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');
?>