# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#######################################################################
-use DBI;
-use SL::Auth;
-use SL::User;
+use SL::DB::Default;
use SL::Form;
use SL::Git;
$form->{stylesheet} = $myconfig{stylesheet};
$form->{title} = $::locale->text('kivitendo');
$form->{interface} = $::dispatcher->interface_type;
+ $form->{client} = $::auth->client;
+ $form->{defaults} = SL::DB::Default->get;
my $git = SL::Git->new;
($form->{git_head}) = $git->get_log(since => 'HEAD~1', until => 'HEAD') if $git->is_git_installation;
'Database template' => 'Datenbankvorlage',
'Database update error:' => 'Fehler beim Datenbankupgrade:',
'Database user and password' => 'Datebankbenutzer und -passwort',
- 'Dataset' => 'Datenbank',
'Dataset missing!' => 'Datenbank fehlt!',
'Dataset name' => 'Datenbankname',
'Dataset upgrade' => 'Datenbankaktualisierung',
[%- USE T8 %]
[%- USE HTML %][%- USE LxERP %]
- [%- DEFAULT myconfig_dbhost = 'localhost' %]
<noscript>
[% INCLUDE 'generic/information.html'
title_information = LxERP.t8('Your browser does not currently support Javascript.'),
<p>[% 'companylogo_subtitle' | $T8 %]</p>
<p>
<b>
- [% HTML.escape(myconfig_company) %]
+ [% HTML.escape(defaults.company) %]
<br>
- [% HTML.escape(myconfig_address).replace('\\\\n', '<br>').replace('\n', '<br>') %]
+ [% HTML.escape(defaults.address).replace('\\\\n', '<br>').replace('\n', '<br>') %]
</b>
<br>
<td>[% HTML.escape(myconfig_name) %]</td>
</tr>
<tr>
- <th align="left"><a href="am.pl?action=config" title="[% 'Preferences' | $T8 %]">[% 'Language' | $T8 %]</a></th>
- <td>[% HTML.escape(myconfig_countrycode) %]</td>
- </tr>
- <tr>
- <th align="left"><a href="admin.pl" title="[% 'Administration' | $T8 %]">[% 'Templates' | $T8 %]</a></th>
- <td>[% HTML.escape(myconfig_templates) %]</td>
+ <th align="left">[% IF AUTH_RIGHTS_ADMIN %]<a href="controller.pl?action=ClientConfig/edit" title="[% 'Client Configuration' | $T8 %]">[% END %][% 'Client' | $T8 %][% IF AUTH_RIGHTS_ADMIN %]</a>[% END %]</th>
+ <td>[% HTML.escape(client.name) %]</td>
</tr>
<tr>
- <th align="left"><a href="admin.pl" title="[% 'Administration' | $T8 %]">[% 'Dataset' | $T8 %]</a></th>
- <td>[% HTML.escape(myconfig_dbname) %]</td>
- </tr>
- <tr>
- <th align="left">[% 'Database Host' | $T8 %]</th>
- <td>[% HTML.escape(myconfig_dbhost) %]</td>
+ <th align="left"><a href="am.pl?action=config" title="[% 'Preferences' | $T8 %]">[% 'Language' | $T8 %]</a></th>
+ <td>[% HTML.escape(myconfig_countrycode) %]</td>
</tr>
<tr>
<th align="left">[% 'Webserver interface' | $T8 %]</th>