Revision dbda14c2
Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt
SL/AM.pm | ||
---|---|---|
close(TEMPLATE);
|
||
}
|
||
|
||
$content = Encode::decode('utf-8-strict', $content) if $::locale->is_utf8;
|
||
$content = Encode::decode('utf-8-strict', $content);
|
||
|
||
$main::lxdebug->leave_sub();
|
||
|
||
... | ... | |
my $error = "";
|
||
|
||
if (open(TEMPLATE, ">", $filename)) {
|
||
$content = Encode::encode('utf-8-strict', $content) if $::locale->is_utf8;
|
||
$content = Encode::encode('utf-8-strict', $content);
|
||
$content =~ s/\r\n/\n/g;
|
||
print(TEMPLATE $content);
|
||
close(TEMPLATE);
|
SL/Auth.pm | ||
---|---|---|
|
||
$main::lxdebug->message(LXDebug->DEBUG1, "Auth::dbconnect DSN: $dsn");
|
||
|
||
$self->{dbh} = SL::DBConnect->connect($dsn, $cfg->{user}, $cfg->{password}, { pg_enable_utf8 => $::locale->is_utf8, AutoCommit => 1 });
|
||
$self->{dbh} = SL::DBConnect->connect($dsn, $cfg->{user}, $cfg->{password}, { pg_enable_utf8 => 1, AutoCommit => 1 });
|
||
|
||
if (!$may_fail && !$self->{dbh}) {
|
||
$main::form->error($main::locale->text('The connection to the authentication database failed:') . "\n" . $DBI::errstr);
|
||
... | ... | |
|
||
$main::lxdebug->message(LXDebug->DEBUG1(), "Auth::create_database DSN: $dsn");
|
||
|
||
my $charset = $::lx_office_conf{system}->{dbcharset};
|
||
$charset ||= Common::DEFAULT_CHARSET;
|
||
my $encoding = $Common::charset_to_db_encoding{$charset};
|
||
$encoding ||= 'UNICODE';
|
||
|
||
my $dbh = SL::DBConnect->connect($dsn, $params{superuser}, $params{superuser_password}, { pg_enable_utf8 => scalar($charset =~ m/^utf-?8$/i) });
|
||
my $dbh = SL::DBConnect->connect($dsn, $params{superuser}, $params{superuser_password}, { pg_enable_utf8 => 1 });
|
||
|
||
if (!$dbh) {
|
||
$main::form->error($main::locale->text('The connection to the template database failed:') . "\n" . $DBI::errstr);
|
||
}
|
||
|
||
my $query = qq|CREATE DATABASE "$cfg->{db}" OWNER "$cfg->{user}" TEMPLATE "$params{template}" ENCODING '$encoding'|;
|
||
my $query = qq|CREATE DATABASE "$cfg->{db}" OWNER "$cfg->{user}" TEMPLATE "$params{template}" ENCODING 'UNICODE'|;
|
||
|
||
$main::lxdebug->message(LXDebug->DEBUG1(), "Auth::create_database query: $query");
|
||
|
||
... | ... | |
$query = qq|SELECT pg_encoding_to_char(encoding) FROM pg_database WHERE datname = 'template0'|;
|
||
my ($cluster_encoding) = $dbh->selectrow_array($query);
|
||
|
||
if ($cluster_encoding && ($cluster_encoding =~ m/^(?:UTF-?8|UNICODE)$/i) && ($encoding !~ m/^(?:UTF-?8|UNICODE)$/i)) {
|
||
$error = $main::locale->text('Your PostgreSQL installationen uses UTF-8 as its encoding. Therefore you have to configure kivitendo to use UTF-8 as well.');
|
||
if ($cluster_encoding && ($cluster_encoding !~ m/^(?:UTF-?8|UNICODE)$/i)) {
|
||
$error = $::locale->text('Your PostgreSQL installationen does not use Unicode as its encoding. This is not supported anymore.');
|
||
}
|
||
|
||
$dbh->disconnect();
|
||
... | ... | |
my $self = shift;
|
||
my $dbh = $self->dbconnect();
|
||
|
||
my $charset = $::lx_office_conf{system}->{dbcharset};
|
||
$charset ||= Common::DEFAULT_CHARSET;
|
||
|
||
$dbh->rollback();
|
||
SL::DBUpgrade2->new(form => $::form)->process_query($dbh, 'sql/auth_db.sql', undef, $charset);
|
||
SL::DBUpgrade2->new(form => $::form)->process_query($dbh, 'sql/auth_db.sql');
|
||
|
||
$main::lxdebug->leave_sub();
|
||
}
|
SL/BackgroundJob/SelfTest.pm | ||
---|---|---|
|
||
my ($output, $content_type) = $self->_prepare_report;
|
||
|
||
my $mail = Mailer->new(charset => $::locale->is_utf8 ? 'UTF-8' : Common->DEFAULT_CHARSET );
|
||
my $mail = Mailer->new;
|
||
$mail->{from} = $self->config->{email_from};
|
||
$mail->{to} = $email;
|
||
$mail->{subject} = $self->config->{email_subject};
|
SL/Common.pm | ||
---|---|---|
|
||
use SL::DBUtils;
|
||
|
||
use vars qw(@db_encodings %db_encoding_to_charset %charset_to_db_encoding);
|
||
|
||
@db_encodings = (
|
||
{ "label" => "ASCII", "dbencoding" => "SQL_ASCII", "charset" => "ASCII" },
|
||
{ "label" => "UTF-8 Unicode", "dbencoding" => "UNICODE", "charset" => "UTF-8" },
|
||
{ "label" => "ISO 8859-1", "dbencoding" => "LATIN1", "charset" => "ISO-8859-1" },
|
||
{ "label" => "ISO 8859-2", "dbencoding" => "LATIN2", "charset" => "ISO-8859-2" },
|
||
{ "label" => "ISO 8859-3", "dbencoding" => "LATIN3", "charset" => "ISO-8859-3" },
|
||
{ "label" => "ISO 8859-4", "dbencoding" => "LATIN4", "charset" => "ISO-8859-4" },
|
||
{ "label" => "ISO 8859-5", "dbencoding" => "LATIN5", "charset" => "ISO-8859-5" },
|
||
{ "label" => "ISO 8859-15", "dbencoding" => "LATIN9", "charset" => "ISO-8859-15" },
|
||
{ "label" => "KOI8-R", "dbencoding" => "KOI8", "charset" => "KOI8-R" },
|
||
{ "label" => "Windows CP1251", "dbencoding" => "WIN", "charset" => "CP1251" },
|
||
{ "label" => "Windows CP866", "dbencoding" => "ALT", "charset" => "CP866" },
|
||
);
|
||
|
||
%db_encoding_to_charset = map { $_->{dbencoding}, $_->{charset} } @db_encodings;
|
||
%charset_to_db_encoding = map { $_->{charset}, $_->{dbencoding} } @db_encodings;
|
||
|
||
use constant DEFAULT_CHARSET => 'ISO-8859-15';
|
||
|
||
sub unique_id {
|
||
my ($a, $b) = gettimeofday();
|
||
return "${a}-${b}-${$}";
|
SL/Controller/Base.pm | ||
---|---|---|
: 'application/json';
|
||
|
||
print $::form->create_http_response(content_type => $content_type,
|
||
charset => $::lx_office_conf{system}->{dbcharset} || Common::DEFAULT_CHARSET());
|
||
charset => 'UTF-8');
|
||
}
|
||
}
|
||
|
SL/DB.pm | ||
---|---|---|
driver => 'Pg',
|
||
european_dates => ((SL::DBConnect->get_datestyle || '') =~ m/european/i) ? 1 : 0,
|
||
connect_options => {
|
||
pg_enable_utf8 => $::locale && $::locale->is_utf8,
|
||
pg_enable_utf8 => 1,
|
||
},
|
||
);
|
||
|
SL/DBConnect.pm | ||
---|---|---|
sub get_options {
|
||
my $self = shift;
|
||
my $options = {
|
||
pg_enable_utf8 => $::locale->is_utf8,
|
||
pg_enable_utf8 => 1,
|
||
@_
|
||
};
|
||
|
SL/DBUpgrade2.pm | ||
---|---|---|
next if ($control->{ignore});
|
||
|
||
$control->{charset} = 'UTF-8' if $file =~ m/\.pl$/;
|
||
$control->{charset} = $control->{charset} || $control->{encoding} || Common::DEFAULT_CHARSET;
|
||
$control->{charset} = $control->{charset} || $control->{encoding} || 'UTF-8';
|
||
|
||
if (!$control->{"tag"}) {
|
||
_control_error($form, $file_name, $locale->text("Missing 'tag' field.")) ;
|
||
... | ... | |
sub process_query {
|
||
$::lxdebug->enter_sub();
|
||
|
||
my ($self, $dbh, $filename, $version_or_control, $db_charset) = @_;
|
||
my ($self, $dbh, $filename, $version_or_control) = @_;
|
||
|
||
my $form = $self->{form};
|
||
my $fh = IO::File->new($filename, "r") or $form->error("$filename : $!\n");
|
||
... | ... | |
my $sth;
|
||
my @quote_chars;
|
||
|
||
my $file_charset = Common::DEFAULT_CHARSET;
|
||
my $file_charset = 'UTF-8';
|
||
while (<$fh>) {
|
||
last if !/^--/;
|
||
next if !/^--\s*\@(?:charset|encoding):\s*(.+)/;
|
||
... | ... | |
}
|
||
$fh->seek(0, SEEK_SET);
|
||
|
||
$db_charset ||= Common::DEFAULT_CHARSET;
|
||
|
||
$dbh->begin_work();
|
||
|
||
while (<$fh>) {
|
||
$_ = SL::Iconv::convert($file_charset, $db_charset, $_);
|
||
$_ = SL::Iconv::convert($file_charset, 'UTF-8', $_);
|
||
|
||
# Remove DOS and Unix style line endings.
|
||
chomp;
|
||
... | ... | |
sub process_perl_script {
|
||
$::lxdebug->enter_sub();
|
||
|
||
my ($self, $dbh, $filename, $version_or_control, $db_charset) = @_;
|
||
my ($self, $dbh, $filename, $version_or_control) = @_;
|
||
|
||
my %form_values = map { $_ => $::form->{$_} } qw(dbconnect dbdefault dbhost dbmbkiviunstable dbname dboptions dbpasswd dbport dbupdate dbuser login template_object version);
|
||
|
||
... | ... | |
}
|
||
|
||
sub process_file {
|
||
my ($self, $dbh, $filename, $version_or_control, $db_charset) = @_;
|
||
my ($self, $dbh, $filename, $version_or_control) = @_;
|
||
|
||
if ($filename =~ m/sql$/) {
|
||
$self->process_query($dbh, $filename, $version_or_control, $db_charset);
|
||
$self->process_query($dbh, $filename, $version_or_control);
|
||
} else {
|
||
$self->process_perl_script($dbh, $filename, $version_or_control, $db_charset);
|
||
$self->process_perl_script($dbh, $filename, $version_or_control);
|
||
}
|
||
}
|
||
|
||
... | ... | |
|
||
return 0 if !@unapplied_scripts;
|
||
|
||
my $db_charset = $::lx_office_conf{system}->{dbcharset} || Common::DEFAULT_CHARSET;
|
||
$self->{form}->{login} ||= 'admin';
|
||
|
||
map { $_->{description} = SL::Iconv::convert($_->{charset}, $db_charset, $_->{description}) } values %{ $self->{all_controls} };
|
||
map { $_->{description} = SL::Iconv::convert($_->{charset}, 'UTF-8', $_->{description}) } values %{ $self->{all_controls} };
|
||
|
||
if ($called_from_admin) {
|
||
$self->{form}->{title} = $::locale->text('Dataset upgrade');
|
||
... | ... | |
$::lxdebug->message(LXDebug->DEBUG2(), "Applying Update $control->{file}");
|
||
print $self->{form}->parse_html_template("dbupgrade/upgrade_message2", $control);
|
||
|
||
$self->process_file($dbh, "sql/Pg-upgrade2-auth/$control->{file}", $control, $db_charset);
|
||
$self->process_file($dbh, "sql/Pg-upgrade2-auth/$control->{file}", $control);
|
||
}
|
||
|
||
print $self->{form}->parse_html_template("dbupgrade/footer", { is_admin => 1 }) if $called_from_admin;
|
||
... | ... | |
found). Sets C<$Self->{all_controls}> to the list of database
|
||
scripts.
|
||
|
||
=item C<process_file $dbh, $filename, $version_or_control, $db_charset>
|
||
=item C<process_file $dbh, $filename, $version_or_control>
|
||
|
||
Applies a single database upgrade file. Calls L<process_perl_script>
|
||
for Perl update files and C<process_query> for SQL update
|
||
files. Requires an open database handle(C<$dbh>), the file name
|
||
(C<$filename>), a hash structure of the file's control fields as
|
||
produced by L<parse_dbupdate_controls> (C<$version_or_control>) and
|
||
the database charset (for on-the-fly charset recoding of the script if
|
||
required, C<$db_charset>).
|
||
(C<$filename>) and a hash structure of the file's control fields as
|
||
produced by L<parse_dbupdate_controls> (C<$version_or_control>).
|
||
|
||
Returns the result of the actual function called.
|
||
|
||
=item C<process_perl_script $dbh, $filename, $version_or_control, $db_charset>
|
||
=item C<process_perl_script $dbh, $filename, $version_or_control>
|
||
|
||
Applies a single Perl database upgrade file. Requires an open database
|
||
handle(C<$dbh>), the file name (C<$filename>), a hash structure of the
|
||
file's control fields as produced by L<parse_dbupdate_controls>
|
||
(C<$version_or_control>) and the database charset (for on-the-fly
|
||
charset recoding of the script if required, C<$db_charset>).
|
||
handle(C<$dbh>), the file name (C<$filename>) and a hash structure of
|
||
the file's control fields as produced by L<parse_dbupdate_controls>
|
||
(C<$version_or_control>).
|
||
|
||
Perl scripts are executed via L<eval>. If L<eval> returns falsish then
|
||
an error is expected. There are two special return values: If the
|
||
... | ... | |
}
|
||
}
|
||
|
||
=item C<process_query $dbh, $filename, $version_or_control, $db_charset>
|
||
=item C<process_query $dbh, $filename, $version_or_control>
|
||
|
||
Applies a single SQL database upgrade file. Requires an open database
|
||
handle(C<$dbh>), the file name (C<$filename>), a hash structure of the
|
||
ofile's control fields as produced by L<parse_dbupdate_controls>
|
||
(C<$version_or_control>) and the database charset (for on-the-fly
|
||
charset recoding of the script if required, C<$db_charset>).
|
||
handle(C<$dbh>), the file name (C<$filename>), and a hash structure of
|
||
the file's control fields as produced by L<parse_dbupdate_controls>
|
||
(C<$version_or_control>).
|
||
|
||
=item C<sort_dbupdate_controls>
|
||
|
SL/DBUpgrade2/Base.pm | ||
---|---|---|
|
||
my $error = $handle ? $handle->errstr : $self->dbh->errstr;
|
||
|
||
return $::locale->is_utf8 ? Encode::decode('utf-8', $error) : $error;
|
||
return Encode::decode('utf-8', $error);
|
||
}
|
||
|
||
sub check_coa {
|
SL/DN.pm | ||
---|---|---|
|
||
my $template = SL::Template::create(type => 'PlainText', form => $form, myconfig => $myconfig);
|
||
my $mail = Mailer->new();
|
||
$mail->{charset} = $::lx_office_conf{system}->{dbcharset} || Common::DEFAULT_CHARSET;
|
||
$mail->{from} = $myconfig->{email};
|
||
$mail->{to} = $ref->{recipient};
|
||
$mail->{subject} = $template->parse_block($ref->{email_subject});
|
SL/FCGIFixes.pm | ||
---|---|---|
|
||
sub fix_print_and_internal_encoding_after_0_68 {
|
||
return if version->new("$FCGI::VERSION")->numify <= version->new("0.68")->numify;
|
||
return if lc($::lx_office_conf{system}->{dbcharset}) !~ m/^(?:utf-?8|unicode)$/;
|
||
|
||
my $encoder = Encode::find_encoding('UTF-8');
|
||
my $original_fcgi_print = \&FCGI::Stream::PRINT;
|
SL/Form.pm | ||
---|---|---|
$::lxdebug->enter_sub;
|
||
|
||
my ($self, %params) = @_;
|
||
my $db_charset = $::lx_office_conf{system}->{dbcharset} || Common::DEFAULT_CHARSET;
|
||
my @header;
|
||
|
||
$::lxdebug->leave_sub and return if !$ENV{HTTP_USER_AGENT} || $self->{header}++;
|
||
... | ... | |
);
|
||
|
||
# output
|
||
print $self->create_http_response(content_type => 'text/html', charset => $db_charset);
|
||
print $self->create_http_response(content_type => 'text/html', charset => 'UTF-8');
|
||
print $doctypes{$params{doctype} || 'transitional'}, $/;
|
||
print <<EOT;
|
||
<html>
|
||
<head>
|
||
<meta http-equiv="Content-Type" content="text/html; charset=$db_charset">
|
||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||
<title>$self->{titlebar}</title>
|
||
EOT
|
||
print " $_\n" for @header;
|
||
... | ... | |
|
||
my ($self) = @_;
|
||
|
||
my $db_charset = $::lx_office_conf{system}->{dbcharset} || Common::DEFAULT_CHARSET;
|
||
my $output = $::request->{cgi}->header('-charset' => $db_charset);
|
||
my $output = $::request->{cgi}->header('-charset' => 'UTF-8');
|
||
|
||
$main::lxdebug->leave_sub();
|
||
|
||
... | ... | |
map { $additional_params->{"myconfig_${_}"} = $main::myconfig{$_}; } keys %::myconfig;
|
||
}
|
||
|
||
$additional_params->{"conf_dbcharset"} = $::lx_office_conf{system}->{dbcharset};
|
||
$additional_params->{"conf_webdav"} = $::lx_office_conf{features}->{webdav};
|
||
$additional_params->{"conf_latex_templates"} = $::lx_office_conf{print_templates}->{latex};
|
||
$additional_params->{"conf_opendocument_templates"} = $::lx_office_conf{print_templates}->{opendocument};
|
||
... | ... | |
|
||
map { $mail->{$_} = $self->{$_} }
|
||
qw(cc bcc subject message version format);
|
||
$mail->{charset} = $::lx_office_conf{system}->{dbcharset} || Common::DEFAULT_CHARSET;
|
||
$mail->{to} = $self->{EMAIL_RECIPIENT} ? $self->{EMAIL_RECIPIENT} : $self->{email};
|
||
$mail->{from} = qq|"$myconfig->{name}" <$myconfig->{email}>|;
|
||
$mail->{fileid} = time() . '.' . $$ . '.';
|
SL/Iconv.pm | ||
---|---|---|
|
||
my ($from_charset, $to_charset, $text) = @_;
|
||
|
||
$from_charset ||= Common::DEFAULT_CHARSET;
|
||
$to_charset ||= Common::DEFAULT_CHARSET;
|
||
$from_charset ||= 'UTF-8';
|
||
$to_charset ||= 'UTF-8';
|
||
|
||
my $converter = _get_converter($from_charset, $to_charset);
|
||
$text = $converter->convert($text);
|
SL/Locale.pm | ||
---|---|---|
my $self = shift;
|
||
my $country = shift;
|
||
|
||
$self->{charset} = Common::DEFAULT_CHARSET;
|
||
$self->{countrycode} = $country;
|
||
|
||
if ($country && -d "locale/$country") {
|
||
... | ... | |
eval($code);
|
||
close(IN);
|
||
}
|
||
|
||
if (open IN, "<", "locale/$country/charset") {
|
||
$self->{charset} = <IN>;
|
||
close IN;
|
||
|
||
chomp $self->{charset};
|
||
}
|
||
}
|
||
|
||
my $db_charset = $::lx_office_conf{system}->{dbcharset} || Common::DEFAULT_CHARSET;
|
||
$self->{is_utf8} = (any { lc($::lx_office_conf{system}->{dbcharset} || '') eq $_ } qw(utf8 utf-8 unicode)) ? 1 : 0;
|
||
|
||
if ($self->{is_utf8}) {
|
||
binmode STDOUT, ":utf8";
|
||
binmode STDERR, ":utf8";
|
||
}
|
||
binmode STDOUT, ":utf8";
|
||
binmode STDERR, ":utf8";
|
||
|
||
$self->{iconv} = SL::Iconv->new($self->{charset}, $db_charset);
|
||
$self->{iconv_reverse} = SL::Iconv->new($db_charset, $self->{charset});
|
||
$self->{iconv_english} = SL::Iconv->new('ASCII', $db_charset);
|
||
$self->{iconv_iso8859} = SL::Iconv->new('ISO-8859-15', $db_charset);
|
||
$self->{iconv_to_iso8859} = SL::Iconv->new($db_charset, 'ISO-8859-15');
|
||
$self->{iconv_utf8} = SL::Iconv->new('UTF-8', $db_charset);
|
||
$self->{iconv} = SL::Iconv->new('UTF-8', 'UTF-8');
|
||
$self->{iconv_reverse} = SL::Iconv->new('UTF-8', 'UTF-8');
|
||
$self->{iconv_english} = SL::Iconv->new('ASCII', 'UTF-8');
|
||
$self->{iconv_iso8859} = SL::Iconv->new('ISO-8859-15', 'UTF-8');
|
||
$self->{iconv_to_iso8859} = SL::Iconv->new('UTF-8', 'ISO-8859-15');
|
||
$self->{iconv_utf8} = SL::Iconv->new('UTF-8', 'UTF-8');
|
||
|
||
$self->_read_special_chars_file($country);
|
||
|
||
... | ... | |
(qw(Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec));
|
||
}
|
||
|
||
sub is_utf8 {
|
||
my $self = shift;
|
||
my $handle = shift;
|
||
return $self->{is_utf8} && (!$handle || $handle->is_utf8);
|
||
}
|
||
|
||
sub _handle_markup {
|
||
my $self = shift;
|
||
my $str = shift;
|
||
... | ... | |
$self->{raw_io_active} = 1;
|
||
binmode $fh, ":raw";
|
||
$code->();
|
||
binmode $fh, ":utf8" if $self->is_utf8;
|
||
binmode $fh, ":utf8";
|
||
$self->{raw_io_active} = 0;
|
||
}
|
||
|
||
... | ... | |
|
||
TODO: Describe get_local_time_zone
|
||
|
||
=item C<is_utf8>
|
||
|
||
TODO: Describe is_utf8
|
||
|
||
=item C<lang_to_locale>
|
||
|
||
TODO: Describe lang_to_locale
|
SL/Mailer.pm | ||
---|---|---|
}
|
||
|
||
# Set defaults & headers
|
||
$self->{charset} ||= Common::DEFAULT_CHARSET;
|
||
$self->{charset} = 'UTF-8';
|
||
$self->{contenttype} ||= "text/plain";
|
||
$self->{headers} = [
|
||
Subject => $self->{subject},
|
SL/Mailer/Sendmail.pm | ||
---|---|---|
|
||
Rose::Object::init(@_);
|
||
|
||
my $email = $::locale->is_utf8 ? Encode::encode('utf-8', $self->myconfig->{email}) : $self->myconfig->{email};
|
||
my $email = Encode::encode('utf-8', $self->myconfig->{email});
|
||
$email =~ s/[^\w\.\-\+=@]//ig;
|
||
|
||
my %temp_form = ( %{ $self->form }, myconfig_email => $email );
|
||
... | ... | |
$sendmail = $template->parse_block($sendmail);
|
||
|
||
$self->{sendmail} = IO::File->new("|$sendmail") || die "sendmail($sendmail): $!";
|
||
$self->{sendmail}->binmode(':utf8') if $::locale->is_utf8;
|
||
$self->{sendmail}->binmode(':utf8');
|
||
}
|
||
|
||
sub start_mail {
|
SL/MoreCommon.pm | ||
---|---|---|
sub uri_encode {
|
||
my ($str) = @_;
|
||
|
||
$str = Encode::encode('utf-8-strict', $str) if $::locale->is_utf8;
|
||
$str = Encode::encode('utf-8-strict', $str);
|
||
$str =~ s/([^a-zA-Z0-9_.:-])/sprintf("%%%02x", ord($1))/ge;
|
||
|
||
return $str;
|
||
... | ... | |
$str =~ s/\\$//;
|
||
|
||
$str =~ s/%([0-9a-fA-Z]{2})/pack("C",hex($1))/eg;
|
||
$str = Encode::decode('utf-8-strict', $str) if $::locale->is_utf8;
|
||
$str = Encode::decode('utf-8-strict', $str);
|
||
|
||
return $str;
|
||
}
|
SL/Presenter.pm | ||
---|---|---|
|
||
=item * C<LXCONFIG> -- all parameters from C<config/kivitendo.conf>
|
||
with the same name they appear in the file (first level is the
|
||
section, second the actual variable, e.g. C<system.dbcharset>,
|
||
section, second the actual variable, e.g. C<system.language>,
|
||
C<features.webdav> etc)
|
||
|
||
=item * C<LXDEBUG> -- C<$::lxdebug>
|
SL/ReportGenerator.pm | ||
---|---|---|
my $num_columns = scalar @visible_columns;
|
||
my $num_header_rows = 1;
|
||
|
||
my $font_encoding = $::lx_office_conf{system}->{dbcharset} || 'ISO-8859-15';
|
||
my $font_encoding = 'UTF-8';
|
||
|
||
foreach my $name (@visible_columns) {
|
||
push @column_props, { 'justify' => $self->{columns}->{$name}->{align} eq 'right' ? 'right' : 'left' };
|
||
... | ... | |
my ($self, $text, $do_unquote) = @_;
|
||
|
||
$text = $main::locale->unquote_special_chars('HTML', $text) if $do_unquote;
|
||
$text = Encode::encode('UTF-8', $text) if $::locale->is_utf8;
|
||
$text = Encode::encode('UTF-8', $text);
|
||
|
||
return $text;
|
||
}
|
SL/Request.pm | ||
---|---|---|
$content_type = "text/plain";
|
||
$boundary_found = 1;
|
||
$need_cr = 0;
|
||
$encoding = $::lx_office_conf{system}->{dbcharset} || Common::DEFAULT_CHARSET;
|
||
$encoding = 'UTF-8';
|
||
$transfer_encoding = undef;
|
||
last if $last_boundary;
|
||
next;
|
||
... | ... | |
$::lxdebug->enter_sub;
|
||
|
||
my ($target) = @_;
|
||
my $db_charset = $::lx_office_conf{system}->{dbcharset} || Common::DEFAULT_CHARSET;
|
||
|
||
# yes i know, copying all those values around isn't terribly efficient, but
|
||
# the old version of dumping everything into form and then launching a
|
||
... | ... | |
}
|
||
}
|
||
|
||
my $encoding = delete $temp_target->{INPUT_ENCODING} || $db_charset;
|
||
my $encoding = delete $temp_target->{INPUT_ENCODING} || 'UTF-8';
|
||
|
||
_recode_recursively(SL::Iconv->new($encoding, $db_charset), $temp_target => $target) if keys %$target;
|
||
_recode_recursively(SL::Iconv->new($encoding, 'UTF-8'), $temp_target => $target) if keys %$target;
|
||
|
||
if ($target->{RESTORE_FORM_FROM_SESSION_ID}) {
|
||
my %temp_form;
|
SL/Template/LaTeX.pm | ||
---|---|---|
$self->{"error"} = "$form->{templates}/$form->{IN}: $!";
|
||
return 0;
|
||
}
|
||
binmode IN, ":utf8" if $::locale->is_utf8;
|
||
binmode IN, ":utf8";
|
||
my @lines = <IN>;
|
||
close(IN);
|
||
|
||
... | ... | |
return 0;
|
||
}
|
||
|
||
if ($::locale->is_utf8) {
|
||
binmode OUT, ":utf8";
|
||
print OUT Unicode::Normalize::normalize('C', $new_contents);
|
||
|
||
} else {
|
||
print OUT $new_contents;
|
||
}
|
||
binmode OUT, ":utf8";
|
||
print OUT Unicode::Normalize::normalize('C', $new_contents);
|
||
|
||
if ($form->{"format"} =~ /postscript/i) {
|
||
return $self->convert_to_postscript();
|
SL/Template/OpenDocument.pm | ||
---|---|---|
my $self = $type->SUPER::new(@_);
|
||
|
||
$self->{"rnd"} = int(rand(1000000));
|
||
$self->{"iconv"} = SL::Iconv->new($::lx_office_conf{system}->{dbcharset}, "UTF-8");
|
||
|
||
$self->set_tag_style('<%', '%>');
|
||
$self->{quot_re} = '"';
|
||
... | ... | |
sub format_string {
|
||
my ($self, $variable) = @_;
|
||
my $form = $self->{"form"};
|
||
my $iconv = $self->{"iconv"};
|
||
|
||
$variable = $main::locale->quote_special_chars('Template/OpenDocument', $variable);
|
||
|
||
... | ... | |
$variable =~ s|\</${key}\>|</text:span>|gi;
|
||
}
|
||
|
||
return $iconv->convert($variable);
|
||
return $variable;
|
||
}
|
||
|
||
sub get_mime_type() {
|
SL/Template/Plugin/HTMLFixes.pm | ||
---|---|---|
sub url {
|
||
my ($self, $text) = @_;
|
||
return undef unless defined $text;
|
||
$text = Encode::encode('utf-8-strict', $text) if $::locale && $::locale->is_utf8;
|
||
$text = Encode::encode('utf-8-strict', $text);
|
||
$text =~ s/([^a-zA-Z0-9_.-])/uc sprintf("%%%02x",ord($1))/eg;
|
||
return $text;
|
||
}
|
SL/User.pm | ||
---|---|---|
$dbh = SL::DBConnect->connect($form->{dbconnect}, $form->{dbuser}, $form->{dbpasswd}, SL::DBConnect->get_options)
|
||
or $form->dberror;
|
||
|
||
my $db_charset = $Common::db_encoding_to_charset{$form->{encoding}};
|
||
$db_charset ||= Common::DEFAULT_CHARSET;
|
||
|
||
my $dbupdater = SL::DBUpgrade2->new(form => $form);
|
||
# create the tables
|
||
$dbupdater->process_query($dbh, "sql/lx-office.sql", undef, $db_charset);
|
||
$dbupdater->process_query($dbh, "sql/lx-office.sql");
|
||
|
||
# load chart of accounts
|
||
$dbupdater->process_query($dbh, "sql/$form->{chart}-chart.sql", undef, $db_charset);
|
||
$dbupdater->process_query($dbh, "sql/$form->{chart}-chart.sql");
|
||
|
||
my $query = qq|UPDATE defaults SET coa = ?, accounting_method = ?, profit_determination = ?, inventory_system = ?, curr = ?|;
|
||
do_query($form, $dbh, $query, map { $form->{$_} } qw(chart accounting_method profit_determination inventory_system defaultcurrency));
|
||
... | ... | |
closedir(SQLDIR);
|
||
}
|
||
|
||
my $db_charset = $::lx_office_conf{system}->{dbcharset};
|
||
$db_charset ||= Common::DEFAULT_CHARSET;
|
||
|
||
my $dbupdater = SL::DBUpgrade2->new(form => $form);
|
||
|
||
foreach my $db (split(/ /, $form->{dbupdate})) {
|
||
... | ... | |
|
||
# apply upgrade
|
||
$main::lxdebug->message(LXDebug->DEBUG2(), "Applying Update $upgradescript");
|
||
$dbupdater->process_file($dbh, "sql/Pg-upgrade/$upgradescript", $str_maxdb, $db_charset);
|
||
$dbupdater->process_file($dbh, "sql/Pg-upgrade/$upgradescript", $str_maxdb);
|
||
|
||
$version = $maxdb;
|
||
|
||
... | ... | |
my $dbupdater = $params{updater};
|
||
my $db = $params{database};
|
||
my $rc = -2;
|
||
my $db_charset = $::lx_office_conf{system}->{dbcharset} || Common::DEFAULT_CHARSET;
|
||
|
||
map { $_->{description} = SL::Iconv::convert($_->{charset}, $db_charset, $_->{description}) } values %{ $dbupdater->{all_controls} };
|
||
map { $_->{description} = SL::Iconv::convert($_->{charset}, 'UTF-8', $_->{description}) } values %{ $dbupdater->{all_controls} };
|
||
|
||
&dbconnect_vars($form, $db);
|
||
|
||
... | ... | |
$main::lxdebug->message(LXDebug->DEBUG2(), "Applying Update $control->{file}");
|
||
print $form->parse_html_template("dbupgrade/upgrade_message2", $control);
|
||
|
||
$dbupdater->process_file($dbh, "sql/Pg-upgrade2/$control->{file}", $control, $db_charset);
|
||
$dbupdater->process_file($dbh, "sql/Pg-upgrade2/$control->{file}", $control);
|
||
}
|
||
|
||
$rc = 0;
|
bin/mozilla/sepa.pl | ||
---|---|---|
|
||
my $sepa_xml = SL::SEPA::XML->new('company' => $defaults->company,
|
||
'creditor_id' => $defaults->sepa_creditor_id,
|
||
'src_charset' => $::lx_office_conf{system}->{dbcharset} || 'ISO-8859-15',
|
||
'src_charset' => 'UTF-8',
|
||
'message_id' => $message_id,
|
||
'grouped' => 1,
|
||
'collection' => $vc eq 'customer',
|
bin/mozilla/ustva.pl | ||
---|---|---|
|
||
$form->{attachment_filename} =~ s|.*/||;
|
||
|
||
# TODO: set Output to UTF-8 or system Preference
|
||
#$form->{"iconv"} = Text::Iconv->new($myconfig{dbcharset}, "UTF-8");
|
||
#my $iconv = $self->{"iconv"};
|
||
#$iconv->convert($variable);
|
||
if ($form->{period} =~ /^[4]\d$/ ){
|
||
my %periods = ( # Lx => taxbird
|
||
'41' => '12',
|
config/kivitendo.conf.default | ||
---|---|---|
# and "en" (English, not perfect) are available.
|
||
language = de
|
||
|
||
# The database charset. Must match the encoding of the database cluster you want to
|
||
# connect to. (Used on the shell command to create a database "pg_createcluster". Option "-e <encoding>".)
|
||
dbcharset = UTF-8
|
||
|
||
[features]
|
||
# Activate certain optional features and modules.
|
||
webdav = 0
|
doc/UPGRADE | ||
---|---|---|
|
||
* Perl v5.10.1 oder neuer wird zwingend vorausgesetzt.
|
||
|
||
* Die Datenbank muss zwingend Unicode als Encoding nutzen. Daher wird
|
||
auch die Konfigurationsvariable "system.dbcharset" nicht mehr
|
||
unterstützt.
|
||
|
||
* Einführung von Mandanten. Früher war die Konfiguration der
|
||
Datenbanken für jeden Benutzer getrennt vorzunehmen. Mit diesem
|
||
Release wurden Mandanten eingeführt: ein Mandant bekommt einen Namen
|
doc/changelog | ||
---|---|---|
Die alte URL wird weiterhin funktionieren und lediglich auf die neue
|
||
URL umleiten.
|
||
|
||
- Datenbanken, die nicht Unicode als Encoding nutzen, werden nicht
|
||
mehr unterstützt. Die Konfigurationsvariable "system.dbcharset"
|
||
wurde entfernt.
|
||
|
||
- Upgrades von alten SQL-Ledger-Versionen im Allgemeinen sowie
|
||
Upgrades von alten kivitendo-Versionen, die Benutzer noch über die
|
||
Datei "users/members" verwaltet haben, werden nicht mehr
|
doc/dokumentation.xml | ||
---|---|---|
port = 5432
|
||
db = kivitendo_auth
|
||
user = postgres
|
||
password =
|
||
|
||
[system]
|
||
dbcharset = UTF-8</programlisting>
|
||
password =</programlisting>
|
||
|
||
<para>Nutzt man wiederkehrende Rechnungen, kann man unter
|
||
<varname>[periodic_invoices]</varname> den Login eines Benutzers
|
||
... | ... | |
<para>PostgreSQL muss auf verschiedene Weisen angepasst werden.</para>
|
||
|
||
<sect2 id="Zeichensätze-die-Verwendung-von-UTF-8">
|
||
<title>Zeichensätze/die Verwendung von UTF-8</title>
|
||
<title>Zeichensätze/die Verwendung von Unicode/UTF-8</title>
|
||
|
||
<para>Bei aktuellen Serverinstallationen braucht man hier meist nicht
|
||
eingreifen</para>
|
||
<para>kivitendo setzt zwingend voraus, dass die Datenbank Unicode/UTF-8 als Encoding einsetzt. Bei aktuellen Serverinstallationen
|
||
braucht man hier meist nicht einzugreifen.</para>
|
||
|
||
<para>Dieses kann überprüft werden: ist das Encoding der Datenbank
|
||
“template1” “UTF8”, so braucht man nichts weiteres diesbezüglich
|
||
unternehmen. Zum Testen:
|
||
<para>Das Encoding des Datenbankservers kann überprüft werden. Ist das Encoding der Datenbank "template1" "Unicode" bzw. "UTF-8", so
|
||
braucht man nichts weiteres diesbezüglich unternehmen. Zum Testen:</para>
|
||
|
||
<programlisting>su postgres
|
||
echo '\l' | psql
|
||
exit </programlisting>
|
||
|
||
Andernfalls ist es notwendig, einen neuen Datenbankcluster mit
|
||
UTF-8-Encoding anzulegen und diesen zu verwenden. Unter Debian und
|
||
<para>Andernfalls ist es notwendig, einen neuen Datenbankcluster mit
|
||
Unicode-Encoding anzulegen und diesen zu verwenden. Unter Debian und
|
||
Ubuntu kann dies z.B. für PostgreSQL 8.2 mit dem folgenden Befehl
|
||
getan werden:</para>
|
||
|
||
... | ... | |
|
||
<para>Unter anderen Distributionen gibt es ähnliche Methoden.</para>
|
||
|
||
<para>Wurde PostgreSQL nicht mit UTF-8 als Encoding initialisiert und
|
||
ist ein Neuanlegen eines weiteren Clusters nicht möglich, so kann
|
||
kivitendo mit ISO-8859-15 als Encoding betrieben werden.</para>
|
||
|
||
<para>Das Encoding einer Datenbank kann in <command>psql</command> mit
|
||
<literal>\l</literal> geprüft werden.</para>
|
||
</sect2>
|
||
... | ... | |
<para>Zuerst muss eine Datenbank angelegt werden. Verwenden Sie für
|
||
den Datenbankzugriff den vorhin angelegten Benutzer (in unseren
|
||
Beispielen ist dies ‘<literal>kivitendo</literal>’).</para>
|
||
|
||
<para>Wenn Sie für die kivitendo-Installation nicht Unicode (UTF-8) sondern den europäischen Schriftsatz ISO-8859-15 benutzen
|
||
wollen, so müssen Sie vor dem Anlegen der Datenbank in der Datei <filename>config/kivitendo.conf</filename> die Variable
|
||
<literal>dbcharset</literal> im Abschnitt <literal>system</literal> auf den Wert ‘<literal>ISO-8859-15</literal>’ setzen.</para>
|
||
|
||
<para>Bitte beachten Sie, dass alle Datenbanken den selben Zeichensatz
|
||
verwenden müssen, da diese Einstellungen momentan global in kivitendo
|
||
vorgenommen wird und nicht nach Datenbank unterschieden werden kann.
|
||
Auch die Authentifizierungsdatenbank muss mit diesem Zeichensatz
|
||
angelegt worden sein.</para>
|
||
</sect2>
|
||
|
||
<sect2 id="Gruppen-anlegen">
|
||
... | ... | |
<literal>print_templates</literal> auf ‘<literal>1</literal>’ stehen.
|
||
Dieses ist die Standardeinstellung.</para>
|
||
|
||
<para>Weiterhin muss in der Datei
|
||
<filename>config/kivitendo.conf</filename> die Variable
|
||
<literal>dbcharset</literal> im Abschnitt <literal>system</literal> auf
|
||
die Zeichenkodierung gesetzt werden, die auch bei der Speicherung der
|
||
Daten in der Datenbank verwendet wird. Diese ist in den meisten Fällen
|
||
"UTF-8".</para>
|
||
|
||
<para>Während die Erzeugung von reinen OpenDocument-Dateien keinerlei
|
||
weitere Software benötigt, wird zur Umwandlung dieser Dateien in PDF
|
||
OpenOffice.org benötigt. Soll dieses Feature genutzt werden, so muss
|
||
... | ... | |
<para>Mit FastCGI ist die neuste Version auf 0,26 Sekunden selbst in
|
||
den kritischen Pfaden, unter 0,15 sonst.</para>
|
||
</sect2>
|
||
|
||
<sect2 id="devel.fcgi.known-issues">
|
||
<title>Bekannte Probleme</title>
|
||
|
||
<sect3 id="devel.fcgi.known-issues.encoding">
|
||
<title>Encoding Awareness</title>
|
||
|
||
<para>UTF-8 kodierte Installationen sind sehr anfällig gegen
|
||
fehlerhfate Encodings unter FCGI. latin9 Installationen behandeln
|
||
falsch kodierte Zeichen eher unwissend, und geben sie einfach
|
||
weiter. UTF-8 verweigert bei fehlerhaften Programmpfaden kurzerhand
|
||
das Ausliefern. Es wird noch daran gearbeitet, alle Fehler da zu
|
||
beseitigen.</para>
|
||
</sect3>
|
||
</sect2>
|
||
</sect1>
|
||
|
||
<sect1 id="db-upgrade-files" xreflabel="Datenbank-Upgradedateien">
|
||
... | ... | |
point.</para>
|
||
</sect2>
|
||
|
||
<sect2 id="translations-languages.character-set"
|
||
xreflabel="Character set">
|
||
<title>Character set</title>
|
||
|
||
<para>All files included in a language pack must use UTF-8 as their encoding.</para>
|
||
</sect2>
|
||
|
||
<sect2 id="translations-languages.file-structure"
|
||
xreflabel="File structure">
|
||
<title>File structure</title>
|
||
... | ... | |
</listitem>
|
||
</varlistentry>
|
||
|
||
<varlistentry>
|
||
<term>charset</term>
|
||
|
||
<listitem>
|
||
<para>This file should be present.</para>
|
||
|
||
<para>The <filename>charset</filename> file describes which
|
||
charset a language package is written in and applies to all
|
||
other language files in the package. It is possible to write
|
||
some language packages without an explicit charset, but it is
|
||
still strongly recommended. You'll never know in what
|
||
environment your language package will be used, and neither
|
||
UTF-8 nor Latin1 are guaranteed.</para>
|
||
|
||
<para>The whole content of this file is a string that can be
|
||
recognized as a valid charset encoding. Example:</para>
|
||
|
||
<programlisting>UTF-8</programlisting>
|
||
</listitem>
|
||
</varlistentry>
|
||
|
||
<varlistentry>
|
||
<term>all</term>
|
||
|
doc/html/ch02s04.html | ||
---|---|---|
port = 5432
|
||
db = kivitendo_auth
|
||
user = postgres
|
||
password =
|
||
|
||
[system]
|
||
dbcharset = UTF-8</pre><p>Nutzt man wiederkehrende Rechnungen, kann man unter
|
||
password =</pre><p>Nutzt man wiederkehrende Rechnungen, kann man unter
|
||
<code class="varname">[periodic_invoices]</code> den Login eines Benutzers
|
||
angeben, der nach Erstellung der Rechnungen eine entsprechende E-Mail
|
||
mit Informationen über die erstellten Rechnungen bekommt.</p><p>kivitendo bringt eine eigene Komponente zur zeitgesteuerten Ausführung bestimmter Aufgaben mit, den <a class="link" href="ch02s07.html" title="2.7. Der Task-Server">Taskserver</a>. Er wird u.a. für Features wie die <a class="link" href="ch03.html#features.periodic-invoices" title="3.1. Wiederkehrende Rechnungen">wiederkehrenden Rechnungen</a> benötigt, erledigt aber auch andere erforderliche Aufgaben
|
doc/html/ch02s05.html | ||
---|---|---|
<html><head>
|
||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||
<title>2.5. Anpassung der PostgreSQL-Konfiguration</title><link rel="stylesheet" type="text/css" href="style.css"><meta name="generator" content="DocBook XSL Stylesheets V1.76.1-RC2"><link rel="home" href="index.html" title="kivitendo 3.0.0: Installation, Konfiguration, Entwicklung"><link rel="up" href="ch02.html" title="Kapitel 2. Installation und Grundkonfiguration"><link rel="prev" href="ch02s04.html" title="2.4. kivitendo-Konfigurationsdatei"><link rel="next" href="ch02s06.html" title="2.6. Webserver-Konfiguration"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">2.5. Anpassung der PostgreSQL-Konfiguration</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch02s04.html">Zurück</a> </td><th width="60%" align="center">Kapitel 2. Installation und Grundkonfiguration</th><td width="20%" align="right"> <a accesskey="n" href="ch02s06.html">Weiter</a></td></tr></table><hr></div><div class="sect1" title="2.5. Anpassung der PostgreSQL-Konfiguration"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="Anpassung-der-PostgreSQL-Konfiguration"></a>2.5. Anpassung der PostgreSQL-Konfiguration</h2></div></div></div><p>PostgreSQL muss auf verschiedene Weisen angepasst werden.</p><div class="sect2" title="2.5.1. Zeichensätze/die Verwendung von UTF-8"><div class="titlepage"><div><div><h3 class="title"><a name="Zeichens%C3%A4tze-die-Verwendung-von-UTF-8"></a>2.5.1. Zeichensätze/die Verwendung von UTF-8</h3></div></div></div><p>Bei aktuellen Serverinstallationen braucht man hier meist nicht
|
||
eingreifen</p><p>Dieses kann überprüft werden: ist das Encoding der Datenbank
|
||
“template1” “UTF8”, so braucht man nichts weiteres diesbezüglich
|
||
unternehmen. Zum Testen:
|
||
|
||
</p><pre class="programlisting">su postgres
|
||
<title>2.5. Anpassung der PostgreSQL-Konfiguration</title><link rel="stylesheet" type="text/css" href="style.css"><meta name="generator" content="DocBook XSL Stylesheets V1.76.1-RC2"><link rel="home" href="index.html" title="kivitendo 3.0.0: Installation, Konfiguration, Entwicklung"><link rel="up" href="ch02.html" title="Kapitel 2. Installation und Grundkonfiguration"><link rel="prev" href="ch02s04.html" title="2.4. kivitendo-Konfigurationsdatei"><link rel="next" href="ch02s06.html" title="2.6. Webserver-Konfiguration"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">2.5. Anpassung der PostgreSQL-Konfiguration</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch02s04.html">Zurück</a> </td><th width="60%" align="center">Kapitel 2. Installation und Grundkonfiguration</th><td width="20%" align="right"> <a accesskey="n" href="ch02s06.html">Weiter</a></td></tr></table><hr></div><div class="sect1" title="2.5. Anpassung der PostgreSQL-Konfiguration"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="Anpassung-der-PostgreSQL-Konfiguration"></a>2.5. Anpassung der PostgreSQL-Konfiguration</h2></div></div></div><p>PostgreSQL muss auf verschiedene Weisen angepasst werden.</p><div class="sect2" title="2.5.1. Zeichensätze/die Verwendung von Unicode/UTF-8"><div class="titlepage"><div><div><h3 class="title"><a name="Zeichens%C3%A4tze-die-Verwendung-von-UTF-8"></a>2.5.1. Zeichensätze/die Verwendung von Unicode/UTF-8</h3></div></div></div><p>kivitendo setzt zwingend voraus, dass die Datenbank Unicode/UTF-8 als Encoding einsetzt. Bei aktuellen Serverinstallationen
|
||
braucht man hier meist nicht einzugreifen.</p><p>Das Encoding des Datenbankservers kann überprüft werden. Ist das Encoding der Datenbank "template1" "Unicode" bzw. "UTF-8", so
|
||
braucht man nichts weiteres diesbezüglich unternehmen. Zum Testen:</p><pre class="programlisting">su postgres
|
||
echo '\l' | psql
|
||
exit </pre><p>
|
||
|
||
Andernfalls ist es notwendig, einen neuen Datenbankcluster mit
|
||
UTF-8-Encoding anzulegen und diesen zu verwenden. Unter Debian und
|
||
exit </pre><p>Andernfalls ist es notwendig, einen neuen Datenbankcluster mit
|
||
Unicode-Encoding anzulegen und diesen zu verwenden. Unter Debian und
|
||
Ubuntu kann dies z.B. für PostgreSQL 8.2 mit dem folgenden Befehl
|
||
getan werden:</p><pre class="programlisting">pg_createcluster --locale=de_DE.UTF-8 --encoding=UTF-8 8.2 clustername</pre><p>Die Datenbankversionsnummer muss an die tatsächlich verwendete
|
||
Versionsnummer angepasst werden.</p><p>Unter anderen Distributionen gibt es ähnliche Methoden.</p><p>Wurde PostgreSQL nicht mit UTF-8 als Encoding initialisiert und
|
||
ist ein Neuanlegen eines weiteren Clusters nicht möglich, so kann
|
||
kivitendo mit ISO-8859-15 als Encoding betrieben werden.</p><p>Das Encoding einer Datenbank kann in <span class="command"><strong>psql</strong></span> mit
|
||
Versionsnummer angepasst werden.</p><p>Unter anderen Distributionen gibt es ähnliche Methoden.</p><p>Das Encoding einer Datenbank kann in <span class="command"><strong>psql</strong></span> mit
|
||
<code class="literal">\l</code> geprüft werden.</p></div><div class="sect2" title="2.5.2. Änderungen an Konfigurationsdateien"><div class="titlepage"><div><div><h3 class="title"><a name="%C3%84nderungen-an-Konfigurationsdateien"></a>2.5.2. Änderungen an Konfigurationsdateien</h3></div></div></div><p>In der Datei <code class="filename">postgresql.conf</code>, die je nach
|
||
Distribution in verschiedenen Verzeichnissen liegen kann (z.B.
|
||
<code class="filename">/var/lib/pgsql/data/</code> oder
|
doc/html/ch02s06.html | ||
---|---|---|
<html><head>
|
||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||
<title>2.6. Webserver-Konfiguration</title><link rel="stylesheet" type="text/css" href="style.css"><meta name="generator" content="DocBook XSL Stylesheets V1.76.1-RC2"><link rel="home" href="index.html" title="kivitendo 3.0.0: Installation, Konfiguration, Entwicklung"><link rel="up" href="ch02.html" title="Kapitel 2. Installation und Grundkonfiguration"><link rel="prev" href="ch02s05.html" title="2.5. Anpassung der PostgreSQL-Konfiguration"><link rel="next" href="ch02s07.html" title="2.7. Der Task-Server"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">2.6. Webserver-Konfiguration</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch02s05.html">Zurück</a> </td><th width="60%" align="center">Kapitel 2. Installation und Grundkonfiguration</th><td width="20%" align="right"> <a accesskey="n" href="ch02s07.html">Weiter</a></td></tr></table><hr></div><div class="sect1" title="2.6. Webserver-Konfiguration"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="Apache-Konfiguration"></a>2.6. Webserver-Konfiguration</h2></div></div></div><div class="sect2" title="2.6.1. Grundkonfiguration mittels CGI"><div class="titlepage"><div><div><h3 class="title"><a name="d0e690"></a>2.6.1. Grundkonfiguration mittels CGI</h3></div></div></div><div class="note" title="Anmerkung" style="margin-left: 0.5in; margin-right: 0.5in;"><table border="0" summary="Note"><tr><td rowspan="2" align="center" valign="top" width="25"><img alt="[Anmerkung]" src="system/docbook-xsl/images/note.png"></td><th align="left">Anmerkung</th></tr><tr><td align="left" valign="top"><p>Für einen deutlichen Performanceschub sorgt die Ausführung
|
||
<title>2.6. Webserver-Konfiguration</title><link rel="stylesheet" type="text/css" href="style.css"><meta name="generator" content="DocBook XSL Stylesheets V1.76.1-RC2"><link rel="home" href="index.html" title="kivitendo 3.0.0: Installation, Konfiguration, Entwicklung"><link rel="up" href="ch02.html" title="Kapitel 2. Installation und Grundkonfiguration"><link rel="prev" href="ch02s05.html" title="2.5. Anpassung der PostgreSQL-Konfiguration"><link rel="next" href="ch02s07.html" title="2.7. Der Task-Server"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">2.6. Webserver-Konfiguration</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch02s05.html">Zurück</a> </td><th width="60%" align="center">Kapitel 2. Installation und Grundkonfiguration</th><td width="20%" align="right"> <a accesskey="n" href="ch02s07.html">Weiter</a></td></tr></table><hr></div><div class="sect1" title="2.6. Webserver-Konfiguration"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="Apache-Konfiguration"></a>2.6. Webserver-Konfiguration</h2></div></div></div><div class="sect2" title="2.6.1. Grundkonfiguration mittels CGI"><div class="titlepage"><div><div><h3 class="title"><a name="d0e689"></a>2.6.1. Grundkonfiguration mittels CGI</h3></div></div></div><div class="note" title="Anmerkung" style="margin-left: 0.5in; margin-right: 0.5in;"><table border="0" summary="Note"><tr><td rowspan="2" align="center" valign="top" width="25"><img alt="[Anmerkung]" src="system/docbook-xsl/images/note.png"></td><th align="left">Anmerkung</th></tr><tr><td align="left" valign="top"><p>Für einen deutlichen Performanceschub sorgt die Ausführung
|
||
mittels FastCGI/FCGI. Die Einrichtung wird ausführlich im Abschnitt
|
||
<a class="xref" href="ch02s06.html#Apache-Konfiguration.FCGI" title="2.6.2. Konfiguration für FastCGI/FCGI">Konfiguration für FastCGI/FCGI</a> beschrieben.</p></td></tr></table></div><p>Der Zugriff auf das Programmverzeichnis muss in der Apache
|
||
Webserverkonfigurationsdatei <code class="literal">httpd.conf</code> eingestellt
|
doc/html/ch02s07.html | ||
---|---|---|
Links aus einem der Runlevel-Verzeichnisse heraus in den Boot-Prozess
|
||
einzubinden. Da das bei neueren Linux-Distributionen aber nicht
|
||
zwangsläufig funktioniert, werden auch Start-Scripte mitgeliefert, die
|
||
anstelle eines symbolischen Links verwendet werden können.</p><div class="sect3" title="2.7.2.1. SystemV-basierende Systeme (z.B. Debian, ältere OpenSUSE, ältere Fedora Core)"><div class="titlepage"><div><div><h4 class="title"><a name="d0e888"></a>2.7.2.1. SystemV-basierende Systeme (z.B. Debian, ältere OpenSUSE, ältere Fedora Core)</h4></div></div></div><p>Kopieren Sie die Datei
|
||
anstelle eines symbolischen Links verwendet werden können.</p><div class="sect3" title="2.7.2.1. SystemV-basierende Systeme (z.B. Debian, ältere OpenSUSE, ältere Fedora Core)"><div class="titlepage"><div><div><h4 class="title"><a name="d0e887"></a>2.7.2.1. SystemV-basierende Systeme (z.B. Debian, ältere OpenSUSE, ältere Fedora Core)</h4></div></div></div><p>Kopieren Sie die Datei
|
||
<code class="filename">scripts/boot/system-v/kivitendo-server</code>
|
||
nach <code class="filename">/etc/init.d/kivitendo-server</code>. Passen
|
||
Sie in der kopierten Datei den Pfad zum Task-Server an (Zeile
|
||
... | ... | |
Boot-Prozess ein. Dies ist distributionsabhängig:</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>Debian-basierende Systeme:</p><pre class="programlisting">update-rc.d kivitendo-task-server defaults
|
||
# Nur bei Debian Squeeze und neuer:
|
||
insserv kivitendo-task-server</pre></li><li class="listitem"><p>Ältere OpenSUSE und ältere Fedora Core:</p><pre class="programlisting">chkconfig --add kivitendo-task-server</pre></li></ul></div><p>Danach kann der Task-Server mit dem folgenden Befehl gestartet
|
||
werden:</p><pre class="programlisting">/etc/init.d/kivitendo-task-server start</pre></div><div class="sect3" title="2.7.2.2. Upstart-basierende Systeme (z.B. Ubuntu)"><div class="titlepage"><div><div><h4 class="title"><a name="d0e917"></a>2.7.2.2. Upstart-basierende Systeme (z.B. Ubuntu)</h4></div></div></div><p>Kopieren Sie die Datei
|
||
werden:</p><pre class="programlisting">/etc/init.d/kivitendo-task-server start</pre></div><div class="sect3" title="2.7.2.2. Upstart-basierende Systeme (z.B. Ubuntu)"><div class="titlepage"><div><div><h4 class="title"><a name="d0e916"></a>2.7.2.2. Upstart-basierende Systeme (z.B. Ubuntu)</h4></div></div></div><p>Kopieren Sie die Datei
|
||
<code class="filename">scripts/boot/upstart/kivitendo-task-server.conf</code>
|
||
nach <code class="filename">/etc/init/kivitendo-task-server.conf</code>.
|
||
Passen Sie in der kopierten Datei den Pfad zum Task-Server an (Zeile
|
||
<code class="literal">exec ....</code>).</p><p>Danach kann der Task-Server mit dem folgenden Befehl gestartet
|
||
werden:</p><pre class="programlisting">service kivitendo-task-server start</pre></div><div class="sect3" title="2.7.2.3. systemd-basierende Systeme (z.B. neure OpenSUSE, neuere Fedora Core)"><div class="titlepage"><div><div><h4 class="title"><a name="d0e935"></a>2.7.2.3. systemd-basierende Systeme (z.B. neure OpenSUSE, neuere Fedora Core)</h4></div></div></div><p>Verlinken Sie die Datei <code class="filename">scripts/boot/systemd/kivitendo-task-server.service</code> nach
|
||
werden:</p><pre class="programlisting">service kivitendo-task-server start</pre></div><div class="sect3" title="2.7.2.3. systemd-basierende Systeme (z.B. neure OpenSUSE, neuere Fedora Core)"><div class="titlepage"><div><div><h4 class="title"><a name="d0e934"></a>2.7.2.3. systemd-basierende Systeme (z.B. neure OpenSUSE, neuere Fedora Core)</h4></div></div></div><p>Verlinken Sie die Datei <code class="filename">scripts/boot/systemd/kivitendo-task-server.service</code> nach
|
||
<code class="filename">/etc/systemd/system/</code>. Passen Sie in der kopierten Datei den Pfad zum Task-Server an (Zeile
|
||
<code class="literal">ExecStart=....</code> und <code class="literal">ExecStop=...</code>). Binden Sie das Script in den Boot-Prozess ein.
|
||
</p><p>Alle hierzu benötigten Befehle sehen so aus:</p><pre class="programlisting">cd /var/www/kivitendo-erp/scripts/boot/systemd
|
doc/html/ch02s09.html | ||
---|---|---|
allen denjenigen Gruppen, die zum Einen dem Mandanten zugeordnet sind und in denen der Benutzer zum Anderen Mitglied ist, </p><p>Die Reihenfolge, in der Datenbanken, Mandanten, Gruppen und Benutzer angelegt werden, kann im Prinzip beliebig gewählt
|
||
werden. Die folgende Reihenfolge beinhaltet die wenigsten Arbeitsschritte:</p><div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><p>Datenbank anlegen</p></li><li class="listitem"><p>Gruppen anlegen</p></li><li class="listitem"><p>Benutzer anlegen und Gruppen als Mitglied zuordnen</p></li><li class="listitem"><p>Mandanten anlegen und Gruppen sowie Benutzer zuweisen</p></li></ol></div></div><div class="sect2" title="2.9.3. Datenbanken anlegen"><div class="titlepage"><div><div><h3 class="title"><a name="Datenbanken-anlegen"></a>2.9.3. Datenbanken anlegen</h3></div></div></div><p>Zuerst muss eine Datenbank angelegt werden. Verwenden Sie für
|
||
den Datenbankzugriff den vorhin angelegten Benutzer (in unseren
|
||
Beispielen ist dies ‘<code class="literal">kivitendo</code>’).</p><p>Wenn Sie für die kivitendo-Installation nicht Unicode (UTF-8) sondern den europäischen Schriftsatz ISO-8859-15 benutzen
|
||
wollen, so müssen Sie vor dem Anlegen der Datenbank in der Datei <code class="filename">config/kivitendo.conf</code> die Variable
|
||
<code class="literal">dbcharset</code> im Abschnitt <code class="literal">system</code> auf den Wert ‘<code class="literal">ISO-8859-15</code>’ setzen.</p><p>Bitte beachten Sie, dass alle Datenbanken den selben Zeichensatz
|
||
verwenden müssen, da diese Einstellungen momentan global in kivitendo
|
||
vorgenommen wird und nicht nach Datenbank unterschieden werden kann.
|
||
Auch die Authentifizierungsdatenbank muss mit diesem Zeichensatz
|
||
angelegt worden sein.</p></div><div class="sect2" title="2.9.4. Gruppen anlegen"><div class="titlepage"><div><div><h3 class="title"><a name="Gruppen-anlegen"></a>2.9.4. Gruppen anlegen</h3></div></div></div><p>Eine Gruppe wird in der Gruppenverwaltung angelegt. Ihr muss ein
|
||
Beispielen ist dies ‘<code class="literal">kivitendo</code>’).</p></div><div class="sect2" title="2.9.4. Gruppen anlegen"><div class="titlepage"><div><div><h3 class="title"><a name="Gruppen-anlegen"></a>2.9.4. Gruppen anlegen</h3></div></div></div><p>Eine Gruppe wird in der Gruppenverwaltung angelegt. Ihr muss ein
|
||
Name gegeben werden, eine Beschreibung ist hingegen optional. Nach dem
|
||
Anlegen können Sie die verschiedenen Bereiche wählen, auf die
|
||
Mitglieder dieser Gruppe Zugriff haben sollen.</p><p>Benutzergruppen werden zwar in der Authentifizierungsdatenbank gespeichert, gelten aber nicht automatisch für alle
|
doc/html/ch02s12.html | ||
---|---|---|
<code class="filename">config/kivitendo.conf</code> die Variable
|
||
<code class="literal">opendocument</code> im Abschnitt
|
||
<code class="literal">print_templates</code> auf ‘<code class="literal">1</code>’ stehen.
|
||
Dieses ist die Standardeinstellung.</p><p>Weiterhin muss in der Datei
|
||
<code class="filename">config/kivitendo.conf</code> die Variable
|
||
<code class="literal">dbcharset</code> im Abschnitt <code class="literal">system</code> auf
|
||
die Zeichenkodierung gesetzt werden, die auch bei der Speicherung der
|
||
Daten in der Datenbank verwendet wird. Diese ist in den meisten Fällen
|
||
"UTF-8".</p><p>Während die Erzeugung von reinen OpenDocument-Dateien keinerlei
|
||
Dieses ist die Standardeinstellung.</p><p>Während die Erzeugung von reinen OpenDocument-Dateien keinerlei
|
||
weitere Software benötigt, wird zur Umwandlung dieser Dateien in PDF
|
||
OpenOffice.org benötigt. Soll dieses Feature genutzt werden, so muss
|
||
neben OpenOffice.org ab Version 2 auch der “X virtual frame buffer”
|
doc/html/ch03s02.html | ||
---|---|---|
<code class="varname">invdate</code>
|
||
</span></dt><dd><p>Rechnungsdatum</p></dd><dt><span class="term">
|
||
<code class="varname">invnumber</code>
|
||
</span></dt><dd><p>Rechnungsnummer</p></dd></dl></div></div></div><div class="sect2" title="3.2.10. Variablen in anderen Vorlagen"><div class="titlepage"><div><div><h3 class="title"><a name="dokumentenvorlagen-und-variablen.andere-vorlagen"></a>3.2.10. Variablen in anderen Vorlagen</h3></div></div></div><div class="sect3" title="3.2.10.1. Einführung"><div class="titlepage"><div><div><h4 class="title"><a name="d0e4674"></a>3.2.10.1. Einführung</h4></div></div></div><p>Die Variablen in anderen Vorlagen sind ähnlich wie in der
|
||
</span></dt><dd><p>Rechnungsnummer</p></dd></dl></div></div></div><div class="sect2" title="3.2.10. Variablen in anderen Vorlagen"><div class="titlepage"><div><div><h3 class="title"><a name="dokumentenvorlagen-und-variablen.andere-vorlagen"></a>3.2.10. Variablen in anderen Vorlagen</h3></div></div></div><div class="sect3" title="3.2.10.1. Einführung"><div class="titlepage"><div><div><h4 class="title"><a name="d0e4646"></a>3.2.10.1. Einführung</h4></div></div></div><p>Die Variablen in anderen Vorlagen sind ähnlich wie in der
|
||
Rechnung. Allerdings heißen die Variablen, die mit
|
||
<code class="varname">inv</code> beginnen, jetzt anders. Bei den Angeboten
|
||
fangen sie mit <code class="varname">quo</code> für "quotation" an:
|
doc/html/ch04.html | ||
---|---|---|
<html><head>
|
||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||
<title>Kapitel 4. Entwicklerdokumentation</title><link rel="stylesheet" type="text/css" href="style.css"><meta name="generator" content="DocBook XSL Stylesheets V1.76.1-RC2"><link rel="home" href="index.html" title="kivitendo 3.0.0: Installation, Konfiguration, Entwicklung"><link rel="up" href="index.html" title="kivitendo 3.0.0: Installation, Konfiguration, Entwicklung"><link rel="prev" href="ch03s03.html" title="3.3. Excel-Vorlagen"><link rel="next" href="ch04s02.html" title="4.2. Entwicklung unter FastCGI"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Kapitel 4. Entwicklerdokumentation</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch03s03.html">Zurück</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="ch04s02.html">Weiter</a></td></tr></table><hr></div><div class="chapter" title="Kapitel 4. Entwicklerdokumentation"><div class="titlepage"><div><div><h2 class="title"><a name="d0e5281"></a>Kapitel 4. Entwicklerdokumentation</h2></div></div></div><div class="sect1" title="4.1. Globale Variablen"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="devel.globals"></a>4.1. Globale Variablen</h2></div></div></div><div class="sect2" title="4.1.1. Wie sehen globale Variablen in Perl aus?"><div class="titlepage"><div><div><h3 class="title"><a name="d0e5287"></a>4.1.1. Wie sehen globale Variablen in Perl aus?</h3></div></div></div><p>Globale Variablen liegen in einem speziellen namespace namens
|
||
<title>Kapitel 4. Entwicklerdokumentation</title><link rel="stylesheet" type="text/css" href="style.css"><meta name="generator" content="DocBook XSL Stylesheets V1.76.1-RC2"><link rel="home" href="index.html" title="kivitendo 3.0.0: Installation, Konfiguration, Entwicklung"><link rel="up" href="index.html" title="kivitendo 3.0.0: Installation, Konfiguration, Entwicklung"><link rel="prev" href="ch03s03.html" title="3.3. Excel-Vorlagen"><link rel="next" href="ch04s02.html" title="4.2. Entwicklung unter FastCGI"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Kapitel 4. Entwicklerdokumentation</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch03s03.html">Zurück</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="ch04s02.html">Weiter</a></td></tr></table><hr></div><div class="chapter" title="Kapitel 4. Entwicklerdokumentation"><div class="titlepage"><div><div><h2 class="title"><a name="d0e5253"></a>Kapitel 4. Entwicklerdokumentation</h2></div></div></div><div class="sect1" title="4.1. Globale Variablen"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="devel.globals"></a>4.1. Globale Variablen</h2></div></div></div><div class="sect2" title="4.1.1. Wie sehen globale Variablen in Perl aus?"><div class="titlepage"><div><div><h3 class="title"><a name="d0e5259"></a>4.1.1. Wie sehen globale Variablen in Perl aus?</h3></div></div></div><p>Globale Variablen liegen in einem speziellen namespace namens
|
||
"main", der von überall erreichbar ist. Darüber hinaus sind bareword
|
||
globs global und die meisten speziellen Variablen sind...
|
||
speziell.</p><p>Daraus ergeben sich folgende Formen:</p><div class="variablelist"><dl><dt><span class="term">
|
||
... | ... | |
<code class="varname">$PACKAGE::form</code>.</p></dd><dt><span class="term">
|
||
<code class="literal">local $form</code>
|
||
</span></dt><dd><p>Alle Änderungen an <code class="varname">$form</code> werden am Ende
|
||
des scopes zurückgesetzt</p></dd></dl></div></div><div class="sect2" title="4.1.2. Warum sind globale Variablen ein Problem?"><div class="titlepage"><div><div><h3 class="title"><a name="d0e5388"></a>4.1.2. Warum sind globale Variablen ein Problem?</h3></div></div></div><p>Das erste Problem ist <span class="productname">FCGI</span>™.</p><p>
|
||
des scopes zurückgesetzt</p></dd></dl></div></div><div class="sect2" title="4.1.2. Warum sind globale Variablen ein Problem?"><div class="titlepage"><div><div><h3 class="title"><a name="d0e5360"></a>4.1.2. Warum sind globale Variablen ein Problem?</h3></div></div></div><p>Das erste Problem ist <span class="productname">FCGI</span>™.</p><p>
|
||
<span class="productname">SQL-Ledger</span>™ hat fast alles im globalen
|
||
namespace abgelegt, und erwartet, dass es da auch wiederzufinden ist.
|
||
Unter <span class="productname">FCGI</span>™ müssen diese Sachen aber wieder
|
||
... | ... | |
dies hat, seit der Einführung, u.a. schon so manche langwierige
|
||
Bug-Suche verkürzt. Da globale Variablen aber implizit mit Package
|
||
angegeben werden, werden die nicht geprüft, und somit kann sich
|
||
schnell ein Tippfehler einschleichen.</p></div><div class="sect2" title="4.1.3. Kanonische globale Variablen"><div class="titlepage"><div><div><h3 class="title"><a name="d0e5421"></a>4.1.3. Kanonische globale Variablen</h3></div></div></div><p>Um dieses Problem im Griff zu halten gibt es einige wenige
|
||
schnell ein Tippfehler einschleichen.</p></div><div class="sect2" title="4.1.3. Kanonische globale Variablen"><div class="titlepage"><div><div><h3 class="title"><a name="d0e5393"></a>4.1.3. Kanonische globale Variablen</h3></div></div></div><p>Um dieses Problem im Griff zu halten gibt es einige wenige
|
||
globale Variablen, die kanonisch sind, d.h. sie haben bestimmte
|
||
vorgegebenen Eigenschaften, und alles andere sollte anderweitig
|
||
umhergereicht werden.</p><p>Diese Variablen sind im Moment die folgenden neun:</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>
|
||
... | ... | |
<code class="varname">$::request</code>
|
||
</p></li></ul></div><p>Damit diese nicht erneut als Müllhalde missbraucht werden, im
|
||
Folgenden eine kurze Erläuterung der bestimmten vorgegebenen
|
||
Eigenschaften (Konventionen):</p><div class="sect3" title="4.1.3.1. $::form"><div class="titlepage"><div><div><h4 class="title"><a name="d0e5485"></a>4.1.3.1. $::form</h4></div></div></div><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>Ist ein Objekt der Klasse
|
||
Eigenschaften (Konventionen):</p><div class="sect3" title="4.1.3.1. $::form"><div class="titlepage"><div><div><h4 class="title"><a name="d0e5457"></a>4.1.3.1. $::form</h4></div></div></div><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>Ist ein Objekt der Klasse
|
||
"<code class="classname">Form</code>"</p></li><li class="listitem"><p>Wird nach jedem Request gelöscht</p></li><li class="listitem"><p>Muss auch in Tests und Konsolenscripts vorhanden
|
||
sein.</p></li><li class="listitem"><p>Enthält am Anfang eines Requests die Requestparameter vom
|
||
User</p></li><li class="listitem"><p>Kann zwar intern über Requestgrenzen ein Datenbankhandle
|
||
... | ... | |
push @{ $form->{TEMPLATE_ARRAYS}{number} }, $form->{"partnumber_$i"};
|
||
push @{ $form->{TEMPLATE_ARRAYS}{description} }, $form->{"description_$i"};
|
||
# ...
|
||
}</pre></div><div class="sect3" title="4.1.3.2. %::myconfig"><div class="titlepage"><div><div><h4 class="title"><a name="d0e5569"></a>4.1.3.2. %::myconfig</h4></div></div></div><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>Das einzige Hash unter den globalen Variablen</p></li><li class="listitem"><p>Wird spätestens benötigt wenn auf die Datenbank
|
||
}</pre></div><div class="sect3" title="4.1.3.2. %::myconfig"><div class="titlepage"><div><div><h4 class="title"><a name="d0e5541"></a>4.1.3.2. %::myconfig</h4></div></div></div><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>Das einzige Hash unter den globalen Variablen</p></li><li class="listitem"><p>Wird spätestens benötigt wenn auf die Datenbank
|
||
zugegriffen wird</p></li><li class="listitem"><p>Wird bei jedem Request neu erstellt.</p></li><li class="listitem"><p>Enthält die Userdaten des aktuellen Logins</p></li><li class="listitem"><p>Sollte nicht ohne Filterung irgendwo gedumpt werden oder
|
||
extern serialisiert werden, weil da auch der Datenbankzugriff
|
||
für diesen user drinsteht.</p></li><li class="listitem"><p>Enthält unter anderem Listenbegrenzung vclimit,
|
||
... | ... | |
überwiegend die Daten, die sich unter <span class="guimenu">Programm</span>
|
||
-> <span class="guimenuitem">Einstellungen</span> befinden, bzw. die
|
||
Informationen über den Benutzer die über die
|
||
Administrator-Schnittstelle eingegeben wurden.</p></div><div class="sect3" title="4.1.3.3. $::locale"><div class="titlepage"><div><div><h4 class="title"><a name="d0e5608"></a>4.1.3.3. $::locale</h4></div></div></div><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>Objekt der Klasse "Locale"</p></li><li class="listitem"><p>Wird pro Request erstellt</p></li><li class="listitem"><p>Muss auch für Tests und Scripte immer verfügbar
|
||
Administrator-Schnittstelle eingegeben wurden.</p></div><div class="sect3" title="4.1.3.3. $::locale"><div class="titlepage"><div><div><h4 class="title"><a name="d0e5580"></a>4.1.3.3. $::locale</h4></div></div></div><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>Objekt der Klasse "Locale"</p></li><li class="listitem"><p>Wird pro Request erstellt</p></li><li class="listitem"><p>Muss auch für Tests und Scripte immer verfügbar
|
||
sein.</p></li><li class="listitem"><p>Cached intern über Requestgrenzen hinweg benutzte
|
||
Locales</p></li></ul></div><p>Lokalisierung für den aktuellen User. Alle Übersetzungen,
|
||
Zahlen- und Datumsformatierungen laufen über dieses Objekt.</p></div><div class="sect3" title="4.1.3.4. $::lxdebug"><div class="titlepage"><div><div><h4 class="title"><a name="d0e5626"></a>4.1.3.4. $::lxdebug</h4></div></div></div><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>Objekt der Klasse "LXDebug"</p></li><li class="listitem"><p>Wird global gecached</p></li><li class="listitem"><p>Muss immer verfügbar sein, in nahezu allen
|
||
Zahlen- und Datumsformatierungen laufen über dieses Objekt.</p></div><div class="sect3" title="4.1.3.4. $::lxdebug"><div class="titlepage"><div><div><h4 class="title"><a name="d0e5598"></a>4.1.3.4. $::lxdebug</h4></div></div></div><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>Objekt der Klasse "LXDebug"</p></li><li class="listitem"><p>Wird global gecached</p></li><li class="listitem"><p>Muss immer verfügbar sein, in nahezu allen
|
||
Funktionen</p></li></ul></div><p>
|
||
<code class="varname">$::lxdebug</code> stellt Debuggingfunktionen
|
||
bereit, wie "<code class="function">enter_sub</code>" und
|
||
... | ... | |
"<code class="function">message</code>" und "<code class="function">dump</code>" mit
|
||
denen man flott Informationen ins Log (tmp/kivitendo-debug.log)
|
||
packen kann.</p><p>Beispielsweise so:</p><pre class="programlisting">$main::lxdebug->message(0, 'Meine Konfig:' . Dumper (%::myconfig));
|
||
$main::lxdebug->message(0, 'Wer bin ich? Kunde oder Lieferant:' . $form->{vc});</pre></div><div class="sect3" title="4.1.3.5. $::auth"><div class="titlepage"><div><div><h4 class="title"><a name="d0e5663"></a>4.1.3.5. $::auth</h4></div></div></div><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>Objekt der Klasse "SL::Auth"</p></li><li class="listitem"><p>Wird global gecached</p></li><li class="listitem"><p>Hat eine permanente DB Verbindung zur Authdatenbank</p></li><li class="listitem"><p>Wird nach jedem Request resettet.</p></li></ul></div><p>
|
||
$main::lxdebug->message(0, 'Wer bin ich? Kunde oder Lieferant:' . $form->{vc});</pre></div><div class="sect3" title="4.1.3.5. $::auth"><div class="titlepage"><div><div><h4 class="title"><a name="d0e5635"></a>4.1.3.5. $::auth</h4></div></div></div><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>Objekt der Klasse "SL::Auth"</p></li><li class="listitem"><p>Wird global gecached</p></li><li class="listitem"><p>Hat eine permanente DB Verbindung zur Authdatenbank</p></li><li class="listitem"><p>Wird nach jedem Request resettet.</p></li></ul></div><p>
|
||
<code class="varname">$::auth</code> stellt Funktionen bereit um die
|
||
Rechte des aktuellen Users abzufragen. Obwohl diese Informationen
|
||
vom aktuellen User abhängen wird das Objekt aus
|
||
Geschwindigkeitsgründen nur einmal angelegt und dann nach jedem
|
||
Request kurz resettet.</p><p>Dieses Objekt kapselt auch den gerade aktiven Mandanten. Dessen Einstellungen können über
|
||
<code class="literal">$::auth->client</code> abgefragt werden; Rückgabewert ist ein Hash mit den Werten aus der Tabelle
|
||
<code class="literal">auth.clients</code>.</p></div><div class="sect3" title="4.1.3.6. $::lx_office_conf"><div class="titlepage"><div><div><h4 class="title"><a name="d0e5692"></a>4.1.3.6. $::lx_office_conf</h4></div></div></div><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>Objekt der Klasse
|
||
<code class="literal">auth.clients</code>.</p></div><div class="sect3" title="4.1.3.6. $::lx_office_conf"><div class="titlepage"><div><div><h4 class="title"><a name="d0e5664"></a>4.1.3.6. $::lx_office_conf</h4></div></div></div><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>Objekt der Klasse
|
||
"<code class="classname">SL::LxOfficeConf</code>"</p></li><li class="listitem"><p>Global gecached</p></li><li class="listitem"><p>Repräsentation der
|
||
<code class="filename">config/kivitendo.conf[.default]</code>-Dateien</p></li></ul></div><p>Globale Konfiguration. Configdateien werden zum Start gelesen
|
||
und danach nicht mehr angefasst. Es ist derzeit nicht geplant, dass
|
||
... | ... | |
file = /tmp/kivitendo-debug.log</pre><p>ist der Key <code class="varname">file</code> im Programm als
|
||
<code class="varname">$::lx_office_conf->{debug}{file}</code>
|
||
erreichbar.</p><div class="warning" title="Warnung" style="margin-left: 0.5in; margin-right: 0.5in;"><table border="0" summary="Warning"><tr><td rowspan="2" align="center" valign="top" width="25"><img alt="[Warnung]" src="system/docbook-xsl/images/warning.png"></td><th align="left">Warnung</th></tr><tr><td align="left" valign="top"><p>Zugriff auf die Konfiguration erfolgt im Moment über
|
||
Hashkeys, sind also nicht gegen Tippfehler abgesichert.</p></td></tr></table></div></div><div class="sect3" title="4.1.3.7. $::instance_conf"><div class="titlepage"><div><div><h4 class="title"><a name="d0e5728"></a>4.1.3.7. $::instance_conf</h4></div></div></div><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>Objekt der Klasse
|
||
Hashkeys, sind also nicht gegen Tippfehler abgesichert.</p></td></tr></table></div></div><div class="sect3" title="4.1.3.7. $::instance_conf"><div class="titlepage"><div><div><h4 class="title"><a name="d0e5700"></a>4.1.3.7. $::instance_conf</h4></div></div></div><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>Objekt der Klasse
|
||
"<code class="classname">SL::InstanceConfiguration</code>"</p></li><li class="listitem"><p>wird pro Request neu erstellt</p></li></ul></div><p>Funktioniert wie <code class="varname">$::lx_office_conf</code>,
|
||
speichert aber Daten die von der Instanz abhängig sind. Eine Instanz
|
||
ist hier eine Mandantendatenbank. Beispielsweise überprüft
|
||
</p><pre class="programlisting">$::instance_conf->get_inventory_system eq 'perpetual'</pre><p>
|
||
ob die berüchtigte Bestandsmethode zur Anwendung kommt.</p></div><div class="sect3" title="4.1.3.8. $::dispatcher"><div class="titlepage"><div><div><h4 class="title"><a name="d0e5749"></a>4.1.3.8. $::dispatcher</h4></div></div></div><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>Objekt der Klasse
|
||
ob die berüchtigte Bestandsmethode zur Anwendung kommt.</p></div><div class="sect3" title="4.1.3.8. $::dispatcher"><div class="titlepage"><div><div><h4 class="title"><a name="d0e5721"></a>4.1.3.8. $::dispatcher</h4></div></div></div><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>Objekt der Klasse
|
||
"<code class="varname">SL::Dispatcher</code>"</p></li><li class="listitem"><p>wird pro Serverprozess erstellt.</p></li><li class="listitem"><p>enthält Informationen über die technische Verbindung zum
|
||
Server</p></li></ul></div><p>Der dritte Punkt ist auch der einzige Grund warum das Objekt
|
||
global gespeichert wird. Wird vermutlich irgendwann in einem anderen
|
||
Objekt untergebracht.</p></div><div class="sect3" title="4.1.3.9. $::request"><div class="titlepage"><div><div><h4 class="title"><a name="d0e5767"></a>4.1.3.9. $::request</h4></div></div></div><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>Hashref (evtl später Objekt)</p></li><li class="listitem"><p>Wird pro Request neu initialisiert.</p></li><li class="listitem"><p>Keine Unterstruktur garantiert.</p></li></ul></div><p>
|
||
Objekt untergebracht.</p></div><div class="sect3" title="4.1.3.9. $::request"><div class="titlepage"><div><div><h4 class="title"><a name="d0e5739"></a>4.1.3.9. $::request</h4></div></div></div><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>Hashref (evtl später Objekt)</p></li><li class="listitem"><p>Wird pro Request neu initialisiert.</p></li><li class="listitem"><p>Keine Unterstruktur garantiert.</p></li></ul></div><p>
|
||
<code class="varname">$::request</code> ist ein generischer Platz um
|
||
Daten "für den aktuellen Request" abzulegen. Sollte nicht für action
|
||
at a distance benutzt werden, sondern um lokales memoizing zu
|
||
... | ... | |
<code class="varname">$::request</code>
|
||
</p></li><li class="listitem"><p>Muss ich von anderen Teilen des Programms lesend drauf
|
||
zugreifen? Dann <code class="varname">$::request</code>, aber Zugriff über
|
||
Wrappermethode</p></li></ul></div></div></div><div class="sect2" title="4.1.4. Ehemalige globale Variablen"><div class="titlepage"><div><div><h3 class="title"><a name="d0e5809"></a>4.1.4. Ehemalige globale Variablen</h3></div></div></div><p>Die folgenden Variablen waren einmal im Programm, und wurden
|
||
entfernt.</p><div class="sect3" title="4.1.4.1. $::cgi"><div class="titlepage"><div><div><h4 class="title"><a name="d0e5814"></a>4.1.4.1. $::cgi</h4></div></div></div><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>war nötig, weil cookie Methoden nicht als
|
||
Wrappermethode</p></li></ul></div></div></div><div class="sect2" title="4.1.4. Ehemalige globale Variablen"><div class="titlepage"><div><div><h3 class="title"><a name="d0e5781"></a>4.1.4. Ehemalige globale Variablen</h3></div></div></div><p>Die folgenden Variablen waren einmal im Programm, und wurden
|
||
entfernt.</p><div class="sect3" title="4.1.4.1. $::cgi"><div class="titlepage"><div><div><h4 class="title"><a name="d0e5786"></a>4.1.4.1. $::cgi</h4></div></div></div><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>war nötig, weil cookie Methoden nicht als
|
||
Klassenfunktionen funktionieren</p></li><li class="listitem"><p>Aufruf als Klasse erzeugt Dummyobjekt was im
|
||
Klassennamespace gehalten wird und über Requestgrenzen
|
||
leaked</p></li><li class="listitem"><p>liegt jetzt unter
|
||
<code class="varname">$::request->{cgi}</code>
|
||
</p></li></ul></div></div><div class="sect3" title="4.1.4.2. $::all_units"><div class="titlepage"><div><div><h4 class="title"><a name="d0e5830"></a>4.1.4.2. $::all_units</h4></div></div></div><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>war nötig, weil einige Funktionen in Schleifen zum Teil
|
||
</p></li></ul></div></div><div class="sect3" title="4.1.4.2. $::all_units"><div class="titlepage"><div><div><h4 class="title"><a name="d0e5802"></a>4.1.4.2. $::all_units</h4></div></div></div><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>war nötig, weil einige Funktionen in Schleifen zum Teil
|
||
ein paar hundert mal pro Request eine Liste der Einheiten
|
||
brauchen, und de als Parameter durch einen Riesenstack von
|
||
Funktionen geschleift werden müssten.</p></li><li class="listitem"><p>Liegt jetzt unter
|
||
<code class="varname">$::request->{cache}{all_units}</code>
|
||
</p></li><li class="listitem"><p>Wird nur in
|
||
<code class="function">AM->retrieve_all_units()</code> gesetzt oder
|
||
gelesen.</p></li></ul></div></div><div class="sect3" title="4.1.4.3. %::called_subs"><div class="titlepage"><div><div><h4 class="title"><a name="d0e5849"></a>4.1.4.3. %::called_subs</h4></div></div></div><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>wurde benutzt um callsub deep recursions
|
||
gelesen.</p></li></ul></div></div><div class="sect3" title="4.1.4.3. %::called_subs"><div class="titlepage"><div><div><h4 class="title"><a name="d0e5821"></a>4.1.4.3. %::called_subs</h4></div></div></div><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>wurde benutzt um callsub deep recursions
|
||
abzufangen.</p></li><li class="listitem"><p>Wurde entfernt, weil callsub nur einen Bruchteil der
|
||
möglichen Rekursioenen darstellt, und da nie welche
|
||
auftreten.</p></li><li class="listitem"><p>komplette recursion protection wurde entfernt.</p></li></ul></div></div></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch03s03.html">Zurück</a> </td><td width="20%" align="center"> </td><td width="40%" align="right"> <a accesskey="n" href="ch04s02.html">Weiter</a></td></tr><tr><td width="40%" align="left" valign="top">3.3. Excel-Vorlagen </td><td width="20%" align="center"><a accesskey="h" href="index.html">Zum Anfang</a></td><td width="40%" align="right" valign="top"> 4.2. Entwicklung unter FastCGI</td></tr></table></div></body></html>
|
doc/html/ch04s02.html | ||
---|---|---|
4GB Arbeitsspeicher und Ubuntu 9.10 eine halbe Sekunde. In der 2.6.0
|
||
sind es je nach Menge der definierten Variablen 1-2s. Ab der
|
||
Moose/Rose::DB Version sind es 5-6s.</p><p>Mit FastCGI ist die neuste Version auf 0,26 Sekunden selbst in
|
||
den kritischen Pfaden, unter 0,15 sonst.</p></div><div class="sect2" title="4.2.5. Bekannte Probleme"><div class="titlepage"><div><div><h3 class="title"><a name="devel.fcgi.known-issues"></a>4.2.5. Bekannte Probleme</h3></div></div></div><div class="sect3" title="4.2.5.1. Encoding Awareness"><div class="titlepage"><div><div><h4 class="title"><a name="devel.fcgi.known-issues.encoding"></a>4.2.5.1. Encoding Awareness</h4></div></div></div><p>UTF-8 kodierte Installationen sind sehr anfällig gegen
|
||
fehlerhfate Encodings unter FCGI. latin9 Installationen behandeln
|
||
falsch kodierte Zeichen eher unwissend, und geben sie einfach
|
||
weiter. UTF-8 verweigert bei fehlerhaften Programmpfaden kurzerhand
|
||
das Ausliefern. Es wird noch daran gearbeitet, alle Fehler da zu
|
||
beseitigen.</p></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch04.html">Zurück</a> </td><td width="20%" align="center"><a accesskey="u" href="ch04.html">Nach oben</a></td><td width="40%" align="right"> <a accesskey="n" href="ch04s03.html">Weiter</a></td></tr><tr><td width="40%" align="left" valign="top">Kapitel 4. Entwicklerdokumentation </td><td width="20%" align="center"><a accesskey="h" href="index.html">Zum Anfang</a></td><td width="40%" align="right" valign="top"> 4.3. SQL-Upgradedateien</td></tr></table></div></body></html>
|
||
den kritischen Pfaden, unter 0,15 sonst.</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch04.html">Zurück</a> </td><td width="20%" align="center"><a accesskey="u" href="ch04.html">Nach oben</a></td><td width="40%" align="right"> <a accesskey="n" href="ch04s03.html">Weiter</a></td></tr><tr><td width="40%" align="left" valign="top">Kapitel 4. Entwicklerdokumentation </td><td width="20%" align="center"><a accesskey="h" href="index.html">Zum Anfang</a></td><td width="40%" align="right" valign="top"> 4.3. SQL-Upgradedateien</td></tr></table></div></body></html>
|
doc/html/ch04s04.html | ||
---|---|---|
are built. Currently the only language fully supported is German, and
|
||
since most of the internal messages are held in English the English
|
||
version is usable too.</p><p>A stub version of French is included but not functunal at this
|
||
point.</p></div><div class="sect2" title="4.4.2. File structure"><div class="titlepage"><div><div><h3 class="title"><a name="translations-languages.file-structure"></a>4.4.2. File structure</h3></div></div></div><p>The structure of locales in kivitendo is:</p><pre class="programlisting">kivitendo/locale/<langcode>/</pre><p>where <langcode> stands for an abbreviation of the
|
||
point.</p></div><div class="sect2" title="4.4.2. Character set"><div class="titlepage"><div><div><h3 class="title"><a name="translations-languages.character-set"></a>4.4.2. Character set</h3></div></div></div><p>All files included in a language pack must use UTF-8 as their encoding.</p></div><div class="sect2" title="4.4.3. File structure"><div class="titlepage"><div><div><h3 class="title"><a name="translations-languages.file-structure"></a>4.4.3. File structure</h3></div></div></div><p>The structure of locales in kivitendo is:</p><pre class="programlisting">kivitendo/locale/<langcode>/</pre><p>where <langcode> stands for an abbreviation of the
|
||
language package. The builtin packages use two letter <a class="ulink" href="http://en.wikipedia.org/wiki/ISO_639-1" target="_top">ISO 639-1</a> codes,
|
||
but the actual name is not relevant for the program and can easily be
|
||
extended to <a class="ulink" href="http://en.wikipedia.org/wiki/IETF_language_tag" target="_top">IETF language
|
||
... | ... | |
recognized:</p><div class="variablelist"><dl><dt><span class="term">LANGUAGE</span></dt><dd><p>This file is mandatory.</p><p>The <code class="filename">LANGUAGE</code> file contains the self
|
||
descripted name of the language. It should contain a native
|
||
representation first, and in parenthesis an english translation
|
||
after that. Example:</p><pre class="programlisting">Deutsch (German)</pre></dd><dt><span class="term">charset</span></dt><dd><p>This file should be present.</p><p>The <code class="filename">charset</code> file describes which
|
||
charset a language package is written in and applies to all
|
||
other language files in the package. It is possible to write
|
||
some language packages without an explicit charset, but it is
|
||
still strongly recommended. You'll never know in what
|
||
environment your language package will be used, and neither
|
||
UTF-8 nor Latin1 are guaranteed.</p><p>The whole content of this file is a string that can be
|
||
recognized as a valid charset encoding. Example:</p><pre class="programlisting">UTF-8</pre></dd><dt><span class="term">all</span></dt><dd><p>This file is mandatory.</p><p>The central translation file. It is essentially an inline
|
||
after that. Example:</p><pre class="programlisting">Deutsch (German)</pre></dd><dt><span class="term">all</span></dt><dd><p>This file is mandatory.</p><p>The central translation file. It is essentially an inline
|
||
Perl script autogenerated by <span class="command"><strong>locales.pl</strong></span>. To
|
||
generate it, generate the directory and the two files mentioned
|
||
above, and execute the following command:</p><pre class="programlisting">scripts/locales.pl <langcode></pre><p>Otherwise you can simply copy one of the other languages.
|
doc/html/index.html | ||
---|---|---|
<html><head>
|
||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||
<title>kivitendo 3.0.0: Installation, Konfiguration, Entwicklung</title><link rel="stylesheet" type="text/css" href="style.css"><meta name="generator" content="DocBook XSL Stylesheets V1.76.1-RC2"><link rel="home" href="index.html" title="kivitendo 3.0.0: Installation, Konfiguration, Entwicklung"><link rel="next" href="ch01.html" title="Kapitel 1. Aktuelle Hinweise"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">kivitendo 3.0.0: Installation, Konfiguration, Entwicklung</th></tr><tr><td width="20%" align="left"> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="ch01.html">Weiter</a></td></tr></table><hr></div><div lang="de" class="book" title="kivitendo 3.0.0: Installation, Konfiguration, Entwicklung"><div class="titlepage"><div><div><h1 class="title"><a name="kivitendo-documentation"></a>kivitendo 3.0.0: Installation, Konfiguration, Entwicklung</h1></div></div><hr></div><div class="toc"><p><b>Inhaltsverzeichnis</b></p><dl><dt><span class="chapter"><a href="ch01.html">1. Aktuelle Hinweise</a></span></dt><dt><span class="chapter"><a href="ch02.html">2. Installation und Grundkonfiguration</a></span></dt><dd><dl><dt><span class="sect1"><a href="ch02.html#Installation-%C3%9Cbersicht">2.1. Übersicht</a></span></dt><dt><span class="sect1"><a href="ch02s02.html">2.2. Benötigte Software und Pakete</a></span></dt><dd><dl><dt><span class="sect2"><a href="ch02s02.html#Betriebssystem">2.2.1. Betriebssystem</a></span></dt><dt><span class="sect2"><a href="ch02s02.html#Pakete">2.2.2. Benötigte Perl-Pakete installieren</a></span></dt></dl></dd><dt><span class="sect1"><a href="ch02s03.html">2.3. Manuelle Installation des Programmpaketes</a></span></dt><dt><span class="sect1"><a href="ch02s04.html">2.4. kivitendo-Konfigurationsdatei</a></span></dt><dd><dl><dt><span class="sect2"><a href="ch02s04.html#config.config-file.introduction">2.4.1. Einführung</a></span></dt><dt><span class="sect2"><a href="ch02s04.html#config.config-file.sections-parameters">2.4.2. Abschnitte und Parameter</a></span></dt><dt><span class="sect2"><a href="ch02s04.html#config.config-file.prior-versions">2.4.3. Versionen vor 2.6.3</a></span></dt></dl></dd><dt><span class="sect1"><a href="ch02s05.html">2.5. Anpassung der PostgreSQL-Konfiguration</a></span></dt><dd><dl><dt><span class="sect2"><a href="ch02s05.html#Zeichens%C3%A4tze-die-Verwendung-von-UTF-8">2.5.1. Zeichensätze/die Verwendung von UTF-8</a></span></dt><dt><span class="sect2"><a href="ch02s05.html#%C3%84nderungen-an-Konfigurationsdateien">2.5.2. Änderungen an Konfigurationsdateien</a></span></dt><dt><span class="sect2"><a href="ch02s05.html#Erweiterung-f%C3%BCr-servergespeicherte-Prozeduren">2.5.3. Erweiterung für servergespeicherte Prozeduren</a></span></dt><dt><span class="sect2"><a href="ch02s05.html#Datenbankbenutzer-anlegen">2.5.4. Datenbankbenutzer anlegen</a></span></dt></dl></dd><dt><span class="sect1"><a href="ch02s06.html">2.6. Webserver-Konfiguration</a></span></dt><dd><dl><dt><span class="sect2"><a href="ch02s06.html#d0e690">2.6.1. Grundkonfiguration mittels CGI</a></span></dt><dt><span class="sect2"><a href="ch02s06.html#Apache-Konfiguration.FCGI">2.6.2. Konfiguration für FastCGI/FCGI</a></span></dt></dl></dd><dt><span class="sect1"><a href="ch02s07.html">2.7. Der Task-Server</a></span></dt><dd><dl><dt><span class="sect2"><a href="ch02s07.html#Konfiguration-des-Task-Servers">2.7.1. Verfügbare und notwendige Konfigurationsoptionen</a></span></dt><dt><span class="sect2"><a href="ch02s07.html#Einbinden-in-den-Boot-Prozess">2.7.2. Automatisches Starten des Task-Servers beim Booten</a></span></dt><dt><span class="sect2"><a href="ch02s07.html#Prozesskontrolle">2.7.3. Wie der Task-Server gestartet und beendet wird</a></span></dt><dt><span class="sect2"><a href="ch02s07.html#Prozesskontrolle2">2.7.4. Task-Server mit mehreren Mandanten</a></span></dt></dl></dd><dt><span class="sect1"><a href="ch02s08.html">2.8. Benutzerauthentifizierung und Administratorpasswort</a></span></dt><dd><dl><dt><span class="sect2"><a href="ch02s08.html#Grundlagen-zur-Benutzerauthentifizierung">2.8.1. Grundlagen zur Benutzerauthentifizierung</a></span></dt><dt><span class="sect2"><a href="ch02s08.html#Administratorpasswort">2.8.2. Administratorpasswort</a></span></dt><dt><span class="sect2"><a href="ch02s08.html#Authentifizierungsdatenbank">2.8.3. Authentifizierungsdatenbank</a></span></dt><dt><span class="sect2"><a href="ch02s08.html#Passwort%C3%BCberpr%C3%BCfung">2.8.4. Passwortüberprüfung</a></span></dt><dt><span class="sect2"><a href="ch02s08.html#Name-des-Session-Cookies">2.8.5. Name des Session-Cookies</a></span></dt><dt><span class="sect2"><a href="ch02s08.html#Anlegen-der-Authentifizierungsdatenbank">2.8.6. Anlegen der Authentifizierungsdatenbank</a></span></dt></dl></dd><dt><span class="sect1"><a href="ch02s09.html">2.9. Mandanten-, Benutzer- und Gruppenverwaltung</a></span></dt><dd><dl><dt><span class="sect2"><a href="ch02s09.html#Zusammenh%C3%A4nge">2.9.1. Zusammenhänge</a></span></dt><dt><span class="sect2"><a href="ch02s09.html#Mandanten-Benutzer-Gruppen">2.9.2. Mandanten, Benutzer und Gruppen</a></span></dt><dt><span class="sect2"><a href="ch02s09.html#Datenbanken-anlegen">2.9.3. Datenbanken anlegen</a></span></dt><dt><span class="sect2"><a href="ch02s09.html#Gruppen-anlegen">2.9.4. Gruppen anlegen</a></span></dt><dt><span class="sect2"><a href="ch02s09.html#Benutzer-anlegen">2.9.5. Benutzer anlegen</a></span></dt><dt><span class="sect2"><a href="ch02s09.html#Mandanten-anlegen">2.9.6. Mandanten anlegen</a></span></dt></dl></dd><dt><span class="sect1"><a href="ch02s10.html">2.10. E-Mail-Versand aus kivitendo heraus</a></span></dt><dd><dl><dt><span class="sect2"><a href="ch02s10.html#config.sending-email.sendmail">2.10.1. Versand über lokalen E-Mail-Server</a></span></dt><dt><span class="sect2"><a href="ch02s10.html#config.sending-email.smtp">2.10.2. Versand über einen SMTP-Server</a></span></dt></dl></dd><dt><span class="sect1"><a href="ch02s11.html">2.11. Drucken mit kivitendo</a></span></dt><dd><dl><dt><span class="sect2"><a href="ch02s11.html#Vorlagenverzeichnis-anlegen">2.11.1. Vorlagenverzeichnis anlegen</a></span></dt><dt><span class="sect2"><a href="ch02s11.html#Vorlagen-Standard">2.11.2. Standard</a></span></dt><dt><span class="sect2"><a href="ch02s11.html#f-tex">2.11.3. f-tex</a></span></dt><dt><span class="sect2"><a href="ch02s11.html#Vorlagen-RB">2.11.4. RB</a></span></dt><dt><span class="sect2"><a href="ch02s11.html#allgemeine-hinweise-zu-latex">2.11.5. Allgemeine Hinweise zu LaTeX Vorlagen</a></span></dt></dl></dd><dt><span class="sect1"><a href="ch02s12.html">2.12. OpenDocument-Vorlagen</a></span></dt><dt><span class="sect1"><a href="ch02s13.html">2.13. Konfiguration zur Einnahmenüberschussrechnung/Bilanzierung:
|
||
<title>kivitendo 3.0.0: Installation, Konfiguration, Entwicklung</title><link rel="stylesheet" type="text/css" href="style.css"><meta name="generator" content="DocBook XSL Stylesheets V1.76.1-RC2"><link rel="home" href="index.html" title="kivitendo 3.0.0: Installation, Konfiguration, Entwicklung"><link rel="next" href="ch01.html" title="Kapitel 1. Aktuelle Hinweise"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">kivitendo 3.0.0: Installation, Konfiguration, Entwicklung</th></tr><tr><td width="20%" align="left"> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="ch01.html">Weiter</a></td></tr></table><hr></div><div lang="de" class="book" title="kivitendo 3.0.0: Installation, Konfiguration, Entwicklung"><div class="titlepage"><div><div><h1 class="title"><a name="kivitendo-documentation"></a>kivitendo 3.0.0: Installation, Konfiguration, Entwicklung</h1></div></div><hr></div><div class="toc"><p><b>Inhaltsverzeichnis</b></p><dl><dt><span class="chapter"><a href="ch01.html">1. Aktuelle Hinweise</a></span></dt><dt><span class="chapter"><a href="ch02.html">2. Installation und Grundkonfiguration</a></span></dt><dd><dl><dt><span class="sect1"><a href="ch02.html#Installation-%C3%9Cbersicht">2.1. Übersicht</a></span></dt><dt><span class="sect1"><a href="ch02s02.html">2.2. Benötigte Software und Pakete</a></span></dt><dd><dl><dt><span class="sect2"><a href="ch02s02.html#Betriebssystem">2.2.1. Betriebssystem</a></span></dt><dt><span class="sect2"><a href="ch02s02.html#Pakete">2.2.2. Benötigte Perl-Pakete installieren</a></span></dt></dl></dd><dt><span class="sect1"><a href="ch02s03.html">2.3. Manuelle Installation des Programmpaketes</a></span></dt><dt><span class="sect1"><a href="ch02s04.html">2.4. kivitendo-Konfigurationsdatei</a></span></dt><dd><dl><dt><span class="sect2"><a href="ch02s04.html#config.config-file.introduction">2.4.1. Einführung</a></span></dt><dt><span class="sect2"><a href="ch02s04.html#config.config-file.sections-parameters">2.4.2. Abschnitte und Parameter</a></span></dt><dt><span class="sect2"><a href="ch02s04.html#config.config-file.prior-versions">2.4.3. Versionen vor 2.6.3</a></span></dt></dl></dd><dt><span class="sect1"><a href="ch02s05.html">2.5. Anpassung der PostgreSQL-Konfiguration</a></span></dt><dd><dl><dt><span class="sect2"><a href="ch02s05.html#Zeichens%C3%A4tze-die-Verwendung-von-UTF-8">2.5.1. Zeichensätze/die Verwendung von Unicode/UTF-8</a></span></dt><dt><span class="sect2"><a href="ch02s05.html#%C3%84nderungen-an-Konfigurationsdateien">2.5.2. Änderungen an Konfigurationsdateien</a></span></dt><dt><span class="sect2"><a href="ch02s05.html#Erweiterung-f%C3%BCr-servergespeicherte-Prozeduren">2.5.3. Erweiterung für servergespeicherte Prozeduren</a></span></dt><dt><span class="sect2"><a href="ch02s05.html#Datenbankbenutzer-anlegen">2.5.4. Datenbankbenutzer anlegen</a></span></dt></dl></dd><dt><span class="sect1"><a href="ch02s06.html">2.6. Webserver-Konfiguration</a></span></dt><dd><dl><dt><span class="sect2"><a href="ch02s06.html#d0e689">2.6.1. Grundkonfiguration mittels CGI</a></span></dt><dt><span class="sect2"><a href="ch02s06.html#Apache-Konfiguration.FCGI">2.6.2. Konfiguration für FastCGI/FCGI</a></span></dt></dl></dd><dt><span class="sect1"><a href="ch02s07.html">2.7. Der Task-Server</a></span></dt><dd><dl><dt><span class="sect2"><a href="ch02s07.html#Konfiguration-des-Task-Servers">2.7.1. Verfügbare und notwendige Konfigurationsoptionen</a></span></dt><dt><span class="sect2"><a href="ch02s07.html#Einbinden-in-den-Boot-Prozess">2.7.2. Automatisches Starten des Task-Servers beim Booten</a></span></dt><dt><span class="sect2"><a href="ch02s07.html#Prozesskontrolle">2.7.3. Wie der Task-Server gestartet und beendet wird</a></span></dt><dt><span class="sect2"><a href="ch02s07.html#Prozesskontrolle2">2.7.4. Task-Server mit mehreren Mandanten</a></span></dt></dl></dd><dt><span class="sect1"><a href="ch02s08.html">2.8. Benutzerauthentifizierung und Administratorpasswort</a></span></dt><dd><dl><dt><span class="sect2"><a href="ch02s08.html#Grundlagen-zur-Benutzerauthentifizierung">2.8.1. Grundlagen zur Benutzerauthentifizierung</a></span></dt><dt><span class="sect2"><a href="ch02s08.html#Administratorpasswort">2.8.2. Administratorpasswort</a></span></dt><dt><span class="sect2"><a href="ch02s08.html#Authentifizierungsdatenbank">2.8.3. Authentifizierungsdatenbank</a></span></dt><dt><span class="sect2"><a href="ch02s08.html#Passwort%C3%BCberpr%C3%BCfung">2.8.4. Passwortüberprüfung</a></span></dt><dt><span class="sect2"><a href="ch02s08.html#Name-des-Session-Cookies">2.8.5. Name des Session-Cookies</a></span></dt><dt><span class="sect2"><a href="ch02s08.html#Anlegen-der-Authentifizierungsdatenbank">2.8.6. Anlegen der Authentifizierungsdatenbank</a></span></dt></dl></dd><dt><span class="sect1"><a href="ch02s09.html">2.9. Mandanten-, Benutzer- und Gruppenverwaltung</a></span></dt><dd><dl><dt><span class="sect2"><a href="ch02s09.html#Zusammenh%C3%A4nge">2.9.1. Zusammenhänge</a></span></dt><dt><span class="sect2"><a href="ch02s09.html#Mandanten-Benutzer-Gruppen">2.9.2. Mandanten, Benutzer und Gruppen</a></span></dt><dt><span class="sect2"><a href="ch02s09.html#Datenbanken-anlegen">2.9.3. Datenbanken anlegen</a></span></dt><dt><span class="sect2"><a href="ch02s09.html#Gruppen-anlegen">2.9.4. Gruppen anlegen</a></span></dt><dt><span class="sect2"><a href="ch02s09.html#Benutzer-anlegen">2.9.5. Benutzer anlegen</a></span></dt><dt><span class="sect2"><a href="ch02s09.html#Mandanten-anlegen">2.9.6. Mandanten anlegen</a></span></dt></dl></dd><dt><span class="sect1"><a href="ch02s10.html">2.10. E-Mail-Versand aus kivitendo heraus</a></span></dt><dd><dl><dt><span class="sect2"><a href="ch02s10.html#config.sending-email.sendmail">2.10.1. Versand über lokalen E-Mail-Server</a></span></dt><dt><span class="sect2"><a href="ch02s10.html#config.sending-email.smtp">2.10.2. Versand über einen SMTP-Server</a></span></dt></dl></dd><dt><span class="sect1"><a href="ch02s11.html">2.11. Drucken mit kivitendo</a></span></dt><dd><dl><dt><span class="sect2"><a href="ch02s11.html#Vorlagenverzeichnis-anlegen">2.11.1. Vorlagenverzeichnis anlegen</a></span></dt><dt><span class="sect2"><a href="ch02s11.html#Vorlagen-Standard">2.11.2. Standard</a></span></dt><dt><span class="sect2"><a href="ch02s11.html#f-tex">2.11.3. f-tex</a></span></dt><dt><span class="sect2"><a href="ch02s11.html#Vorlagen-RB">2.11.4. RB</a></span></dt><dt><span class="sect2"><a href="ch02s11.html#allgemeine-hinweise-zu-latex">2.11.5. Allgemeine Hinweise zu LaTeX Vorlagen</a></span></dt></dl></dd><dt><span class="sect1"><a href="ch02s12.html">2.12. OpenDocument-Vorlagen</a></span></dt><dt><span class="sect1"><a href="ch02s13.html">2.13. Konfiguration zur Einnahmenüberschussrechnung/Bilanzierung:
|
||
EUR</a></span></dt><dd><dl><dt><span class="sect2"><a href="ch02s13.html#config.eur.introduction">2.13.1. Einführung</a></span></dt><dt><span class="sect2"><a href="ch02s13.html#config.eur.parameters">2.13.2. Konfigurationsparameter</a></span></dt><dt><span class="sect2"><a href="ch02s13.html#config.eur.setting-parameters">2.13.3. Festlegen der Parameter</a></span></dt><dt><span class="sect2"><a href="ch02s13.html#config.eur.inventory-system-perpetual">2.13.4. Bemerkungen zu Bestandsmethode</a></span></dt><dt><span class="sect2"><a href="ch02s13.html#config.eur.knonw-issues">2.13.5. Bekannte Probleme</a></span></dt></dl></dd><dt><span class="sect1"><a href="ch02s14.html">2.14. SKR04 19% Umstellung für innergemeinschaftlichen Erwerb</a></span></dt><dd><dl><dt><span class="sect2"><a href="ch02s14.html#config.skr04-update-3804.introduction">2.14.1. Einführung</a></span></dt><dt><span class="sect2"><a href="ch02s14.html#config.skr04-update-3804.create-chart">2.14.2. Konto 3804 manuell anlegen</a></span></dt></dl></dd><dt><span class="sect1"><a href="ch02s15.html">2.15. Einstellungen pro Mandant</a></span></dt><dt><span class="sect1"><a href="ch02s16.html">2.16. kivitendo ERP verwenden</a></span></dt></dl></dd><dt><span class="chapter"><a href="ch03.html">3. Features und Funktionen</a></span></dt><dd><dl><dt><span class="sect1"><a href="ch03.html#features.periodic-invoices">3.1. Wiederkehrende Rechnungen</a></span></dt><dd><dl><dt><span class="sect2"><a href="ch03.html#features.periodic-invoices.introduction">3.1.1. Einführung</a></span></dt><dt><span class="sect2"><a href="ch03.html#features.periodic-invoices.configuration">3.1.2. Konfiguration</a></span></dt><dt><span class="sect2"><a href="ch03.html#features.periodic-invoices.variables">3.1.3. Spezielle Variablen</a></span></dt><dt><span class="sect2"><a href="ch03.html#features.periodic-invoices.reports">3.1.4. Auflisten</a></span></dt><dt><span class="sect2"><a href="ch03.html#features.periodic-invoices.task-server">3.1.5. Erzeugung der eigentlichen Rechnungen</a></span></dt><dt><span class="sect2"><a href="ch03.html#features.periodic-invoices.create-for-current-month">3.1.6. Erste Rechnung für aktuellen Monat erstellen</a></span></dt></dl></dd><dt><span class="sect1"><a href="ch03s02.html">3.2. Dokumentenvorlagen und verfügbare Variablen</a></span></dt><dd><dl><dt><span class="sect2"><a href="ch03s02.html#dokumentenvorlagen-und-variablen.einf%C3%BChrung">3.2.1. Einführung</a></span></dt><dt><span class="sect2"><a href="ch03s02.html#dokumentenvorlagen-und-variablen.variablen-ausgeben">3.2.2. Variablen ausgeben</a></span></dt><dt><span class="sect2"><a href="ch03s02.html#dokumentenvorlagen-und-variablen.verwendung-in-druckbefehlen">3.2.3. Verwendung in Druckbefehlen</a></span></dt><dt><span class="sect2"><a href="ch03s02.html#dokumentenvorlagen-und-variablen.tag-style">3.2.4. Anfang und Ende der Tags verändern</a></span></dt><dt><span class="sect2"><a href="ch03s02.html#dokumentenvorlagen-und-variablen.zuordnung-dateinamen">3.2.5. Zuordnung von den Dateinamen zu den Funktionen</a></span></dt><dt><span class="sect2"><a href="ch03s02.html#dokumentenvorlagen-und-variablen.dateinamen-erweitert">3.2.6. Sprache, Drucker und E-Mail</a></span></dt><dt><span class="sect2"><a href="ch03s02.html#dokumentenvorlagen-und-variablen.allgemeine-variablen">3.2.7. Allgemeine Variablen, die in allen Vorlagen vorhanden
|
||
sind</a></span></dt><dt><span class="sect2"><a href="ch03s02.html#dokumentenvorlagen-und-variablen.invoice">3.2.8. Variablen in Rechnungen</a></span></dt><dt><span class="sect2"><a href="ch03s02.html#dokumentenvorlagen-und-variablen.dunning">3.2.9. Variablen in Mahnungen und Rechnungen über Mahngebühren</a></span></dt><dt><span class="sect2"><a href="ch03s02.html#dokumentenvorlagen-und-variablen.andere-vorlagen">3.2.10. Variablen in anderen Vorlagen</a></span></dt><dt><span class="sect2"><a href="ch03s02.html#dokumentenvorlagen-und-variablen.bloecke">3.2.11. Blöcke, bedingte Anweisungen und Schleifen</a></span></dt><dt><span class="sect2"><a href="ch03s02.html#dokumentenvorlagen-und-variablen.markup">3.2.12. Markup-Code zur Textformatierung innerhalb von
|
||
Formularen</a></span></dt></dl></dd><dt><span class="sect1"><a href="ch03s03.html">3.3. Excel-Vorlagen</a></span></dt><dd><dl><dt><span class="sect2"><a href="ch03s03.html#excel-templates.summary">3.3.1. Zusammenfassung</a></span></dt><dt><span class="sect2"><a href="ch03s03.html#excel-templates.usage">3.3.2. Bedienung</a></span></dt><dt><span class="sect2"><a href="ch03s03.html#excel-templates.syntax">3.3.3. Variablensyntax</a></span></dt><dt><span class="sect2"><a href="ch03s03.html#excel-templates.limitations">3.3.4. Einschränkungen</a></span></dt></dl></dd></dl></dd><dt><span class="chapter"><a href="ch04.html">4. Entwicklerdokumentation</a></span></dt><dd><dl><dt><span class="sect1"><a href="ch04.html#devel.globals">4.1. Globale Variablen</a></span></dt><dd><dl><dt><span class="sect2"><a href="ch04.html#d0e5287">4.1.1. Wie sehen globale Variablen in Perl aus?</a></span></dt><dt><span class="sect2"><a href="ch04.html#d0e5388">4.1.2. Warum sind globale Variablen ein Problem?</a></span></dt><dt><span class="sect2"><a href="ch04.html#d0e5421">4.1.3. Kanonische globale Variablen</a></span></dt><dt><span class="sect2"><a href="ch04.html#d0e5809">4.1.4. Ehemalige globale Variablen</a></span></dt></dl></dd><dt><span class="sect1"><a href="ch04s02.html">4.2. Entwicklung unter FastCGI</a></span></dt><dd><dl><dt><span class="sect2"><a href="ch04s02.html#devel.fcgi.general">4.2.1. Allgemeines</a></span></dt><dt><span class="sect2"><a href="ch04s02.html#devel.fcgi.exiting">4.2.2. Programmende und Ausnahmen</a></span></dt><dt><span class="sect2"><a href="ch04s02.html#devel.fcgi.globals">4.2.3. Globale Variablen</a></span></dt><dt><span class="sect2"><a href="ch04s02.html#devel.fcgi.performance">4.2.4. Performance und Statistiken</a></span></dt><dt><span class="sect2"><a href="ch04s02.html#devel.fcgi.known-issues">4.2.5. Bekannte Probleme</a></span></dt></dl></dd><dt><span class="sect1"><a href="ch04s03.html">4.3. SQL-Upgradedateien</a></span></dt><dd><dl><dt><span class="sect2"><a href="ch04s03.html#db-upgrade-files.introduction">4.3.1. Einführung</a></span></dt><dt><span class="sect2"><a href="ch04s03.html#db-upgrade-files.format">4.3.2. Format der Kontrollinformationen</a></span></dt><dt><span class="sect2"><a href="ch04s03.html#db-upgrade-files.format-perl-files">4.3.3. Format von in Perl geschriebenen Datenbankupgradescripten</a></span></dt><dt><span class="sect2"><a href="ch04s03.html#db-upgrade-files.dbupgrade-tool">4.3.4. Hilfsscript dbupgrade2_tool.pl</a></span></dt></dl></dd><dt><span class="sect1"><a href="ch04s04.html">4.4. Translations and languages</a></span></dt><dd><dl><dt><span class="sect2"><a href="ch04s04.html#translations-languages.introduction">4.4.1. Introduction</a></span></dt><dt><span class="sect2"><a href="ch04s04.html#translations-languages.file-structure">4.4.2. File structure</a></span></dt></dl></dd><dt><span class="sect1"><a href="ch04s05.html">4.5. Die kivitendo-Test-Suite</a></span></dt><dd><dl><dt><span class="sect2"><a href="ch04s05.html#devel.testsuite.intro">4.5.1. Einführung</a></span></dt><dt><span class="sect2"><a href="ch04s05.html#devel.testsuite.prerequisites">4.5.2. Voraussetzungen</a></span></dt><dt><span class="sect2"><a href="ch04s05.html#devel.testsuite.execution">4.5.3.
|
||
Formularen</a></span></dt></dl></dd><dt><span class="sect1"><a href="ch03s03.html">3.3. Excel-Vorlagen</a></span></dt><dd><dl><dt><span class="sect2"><a href="ch03s03.html#excel-templates.summary">3.3.1. Zusammenfassung</a></span></dt><dt><span class="sect2"><a href="ch03s03.html#excel-templates.usage">3.3.2. Bedienung</a></span></dt><dt><span class="sect2"><a href="ch03s03.html#excel-templates.syntax">3.3.3. Variablensyntax</a></span></dt><dt><span class="sect2"><a href="ch03s03.html#excel-templates.limitations">3.3.4. Einschränkungen</a></span></dt></dl></dd></dl></dd><dt><span class="chapter"><a href="ch04.html">4. Entwicklerdokumentation</a></span></dt><dd><dl><dt><span class="sect1"><a href="ch04.html#devel.globals">4.1. Globale Variablen</a></span></dt><dd><dl><dt><span class="sect2"><a href="ch04.html#d0e5259">4.1.1. Wie sehen globale Variablen in Perl aus?</a></span></dt><dt><span class="sect2"><a href="ch04.html#d0e5360">4.1.2. Warum sind globale Variablen ein Problem?</a></span></dt><dt><span class="sect2"><a href="ch04.html#d0e5393">4.1.3. Kanonische globale Variablen</a></span></dt><dt><span class="sect2"><a href="ch04.html#d0e5781">4.1.4. Ehemalige globale Variablen</a></span></dt></dl></dd><dt><span class="sect1"><a href="ch04s02.html">4.2. Entwicklung unter FastCGI</a></span></dt><dd><dl><dt><span class="sect2"><a href="ch04s02.html#devel.fcgi.general">4.2.1. Allgemeines</a></span></dt><dt><span class="sect2"><a href="ch04s02.html#devel.fcgi.exiting">4.2.2. Programmende und Ausnahmen</a></span></dt><dt><span class="sect2"><a href="ch04s02.html#devel.fcgi.globals">4.2.3. Globale Variablen</a></span></dt><dt><span class="sect2"><a href="ch04s02.html#devel.fcgi.performance">4.2.4. Performance und Statistiken</a></span></dt></dl></dd><dt><span class="sect1"><a href="ch04s03.html">4.3. SQL-Upgradedateien</a></span></dt><dd><dl><dt><span class="sect2"><a href="ch04s03.html#db-upgrade-files.introduction">4.3.1. Einführung</a></span></dt><dt><span class="sect2"><a href="ch04s03.html#db-upgrade-files.format">4.3.2. Format der Kontrollinformationen</a></span></dt><dt><span class="sect2"><a href="ch04s03.html#db-upgrade-files.format-perl-files">4.3.3. Format von in Perl geschriebenen Datenbankupgradescripten</a></span></dt><dt><span class="sect2"><a href="ch04s03.html#db-upgrade-files.dbupgrade-tool">4.3.4. Hilfsscript dbupgrade2_tool.pl</a></span></dt></dl></dd><dt><span class="sect1"><a href="ch04s04.html">4.4. Translations and languages</a></span></dt><dd><dl><dt><span class="sect2"><a href="ch04s04.html#translations-languages.introduction">4.4.1. Introduction</a></span></dt><dt><span class="sect2"><a href="ch04s04.html#translations-languages.character-set">4.4.2. Character set</a></span></dt><dt><span class="sect2"><a href="ch04s04.html#translations-languages.file-structure">4.4.3. File structure</a></span></dt></dl></dd><dt><span class="sect1"><a href="ch04s05.html">4.5. Die kivitendo-Test-Suite</a></span></dt><dd><dl><dt><span class="sect2"><a href="ch04s05.html#devel.testsuite.intro">4.5.1. Einführung</a></span></dt><dt><span class="sect2"><a href="ch04s05.html#devel.testsuite.prerequisites">4.5.2. Voraussetzungen</a></span></dt><dt><span class="sect2"><a href="ch04s05.html#devel.testsuite.execution">4.5.3.
|
||
Existierende Tests ausführen
|
||
</a></span></dt><dt><span class="sect2"><a href="ch04s05.html#devel.testsuite.meaning_of_scripts">4.5.4.
|
||
Bedeutung der verschiedenen Test-Scripte
|
locale/de/all | ||
---|---|---|
#!/usr/bin/perl
|
||
# -*- coding: utf-8; -*-
|
||
# vim: fenc=UTF-8
|
||
# vim: fenc=utf-8
|
||
|
||
use utf8;
|
||
|
||
... | ... | |
'You should create a backup of the database before proceeding because the backup might not be reversible.' => 'Sie sollten eine Sicherungskopie der Datenbank erstellen, bevor Sie fortfahren, da die Aktualisierung unter Umständen nicht umkehrbar ist.',
|
||
'You\'re not editing a file.' => 'Sie bearbeiten momentan keine Datei.',
|
||
'You\'ve already chosen the following limitations:' => 'Sie haben bereits die folgenden Einschränkungen vorgenommen:',
|
||
'Your PostgreSQL installationen uses UTF-8 as its encoding. Therefore you have to configure kivitendo to use UTF-8 as well.' => 'Ihre PostgreSQL-Installation benutzt UTF-8 als Zeichensatz. Sie müssen deshalb kivitendo so konfigurieren, dass es ebenfalls UTF-8 als Zeichensatz benutzt.',
|
||
'Your PostgreSQL installationen does not use Unicode as its encoding. This is not supported anymore.' => 'Ihre PostgreSQL-Installation benutzt ein anderes Encoding als Unicode. Dies wird nicht mehr unterstützt.',
|
||
'Your TODO list' => 'Ihre Aufgabenliste',
|
||
'Your account number' => 'Ihre Kontonummer',
|
||
'Your bank' => 'Der Name Ihrer Bank',
|
locale/de/charset | ||
---|---|---|
UTF-8
|
locale/en/charset | ||
---|---|---|
UTF-8
|
scripts/dbupgrade2_tool.pl | ||
---|---|---|
exit 0;
|
||
}
|
||
|
||
my $db_charset = $::lx_office_conf{system}->{dbcharset};
|
||
$db_charset ||= Common::DEFAULT_CHARSET();
|
||
|
||
foreach my $control (@upgradescripts) {
|
||
$control->{file} =~ /\.(sql|pl)$/;
|
||
my $file_type = $1;
|
||
... | ... | |
print "Applying upgrade $control->{file}\n";
|
||
|
||
if ($file_type eq "sql") {
|
||
$dbupgrader->process_query($dbh, "sql/Pg-upgrade2/$control->{file}", $control, $db_charset);
|
||
$dbupgrader->process_query($dbh, "sql/Pg-upgrade2/$control->{file}", $control);
|
||
} else {
|
||
$dbupgrader->process_perl_script($dbh, "sql/Pg-upgrade2/$control->{file}", $control, $db_charset);
|
||
$dbupgrader->process_perl_script($dbh, "sql/Pg-upgrade2/$control->{file}", $control);
|
||
}
|
||
}
|
||
|
scripts/locales.pl | ||
---|---|---|
unlink "$locales_dir/lost";
|
||
}
|
||
|
||
my $charset = slurp("$locales_dir/charset") || 'utf-8';
|
||
chomp $charset;
|
||
|
||
my %old_texts = %{ $self->{texts} || {} };
|
||
|
||
handle_file(@{ $_ }) for @progfiles;
|
||
... | ... | |
|
||
open my $fh, '>:encoding(utf8)', $file or die "$! : $file";
|
||
|
||
$charset =~ s/\r?\n//g;
|
||
my $emacs_charset = lc $charset;
|
||
|
||
print $fh "#!/usr/bin/perl\n# -*- coding: $emacs_charset; -*-\n# vim: fenc=$charset\n\nuse utf8;\n\n";
|
||
print $fh "#!/usr/bin/perl\n# -*- coding: utf-8; -*-\n# vim: fenc=utf-8\n\nuse utf8;\n\n";
|
||
print $fh $header, "\n" if $header;
|
||
print $fh "$data_name = $delim[0]\n" if $data_name;
|
||
|
Auch abrufbar als: Unified diff
Unterstützung für andere Datenbankencodings als Unicode/UTF-8 entfernt