# ====================================================
# Autor: n.d.p. / 2001-01-05
-# lm : n.d.p. / 2001-02-02
+# lm : n.d.p. / 2001-02-25
# ====================================================
# Funktion:
# Einlesen der Admindefaultkonfiguration
package Conf::Admin;
-use vars qw(@ISA @EXPORT);
+use vars qw(@EXPORT);
use Lock qw(:READ);
# Funktionsexport
# ====================================================
-require Exporter;
-@ISA = qw(Exporter);
+use base qw(Exporter);
@EXPORT = qw(read_admin_conf);
################################
# ====================================================
# Autor: n.d.p. / 2001-01-07
-# lm : n.d.p. / 2001-02-06
+# lm : n.d.p. / 2001-02-25
# ====================================================
# Funktion:
# Codierung von non-ASCII-Zeichen fuer
require 5.6.0;
-use vars qw(@ISA @EXPORT %sonder %unimap $utf8);
+use vars qw(@EXPORT %sonder %unimap $utf8);
# ====================================================
# Funktionsexport
# ====================================================
-require Exporter;
-@ISA = qw(Exporter);
+use base qw(Exporter);
@EXPORT = qw(plain multiline toUTF8);
################################
# ====================================================
BEGIN {
+ $utf8 = 0;
+
# Latin 1 + geraten
%sonder=("\177" => '', # Delete-Zeichen
"\200" => '€', # Euro-Zeichen
# ====================================================
# Autor: n.d.p. / 2001-01-07
-# lm : n.d.p. / 2001-01-08
+# lm : n.d.p. / 2001-02-25
# ====================================================
# Funktion:
# Spezielle Codierung eines Postingtextes
package Encode::Posting;
-use vars qw(@ISA @EXPORT);
+use vars qw(@EXPORT);
use Encode::Plain; $Encode::Plain::utf8 = 1;
# ====================================================
# Funktionsexport
# ====================================================
-require Exporter;
-@ISA = qw(Exporter);
+use base qw(Exporter);
@EXPORT = qw(encoded_body answer_field message_field);
################################
# ====================================================
# Autor: n.d.p. / 2001-01-29
-# lm : n.d.p. / 2001-01-29
+# lm : n.d.p. / 2001-02-25
# ====================================================
# Funktion:
# Speicherung eines Postings
package Posting::Write;
-use vars qw(@ISA @EXPORT);
+use vars qw(@EXPORT);
+use base qw(Exporter);
# ====================================================
# Funktionsexport
# ====================================================
-require Exporter;
-@ISA = qw(Exporter);
@EXPORT = qw(write_posting);
use Encode::Plain; $Encode::Plain::utf8 = 1;
# ====================================================
# Autor: n.d.p. / 2001-01-07
-# lm : n.d.p. / 2001-01-08
+# lm : n.d.p. / 2001-02-25
# ====================================================
# Funktion:
# * Schnittstellen fuer den Zugriff auf Messages
package Posting::_lib;
-use vars qw(@ISA @EXPORT_OK);
+use vars qw(@EXPORT_OK);
+use base qw(Exporter);
use Encode::Plain; $Encode::Plain::utf8 = 1;
# Funktionsexport
# ====================================================
-require Exporter;
-@ISA = qw(Exporter);
@EXPORT_OK = qw(get_message_header get_message_body get_message_node parse_single_thread
hr_time short_hr_time long_hr_time
get_all_threads
use Lock qw(:WRITE);
use Posting::_lib qw(get_message_node get_message_header get_message_body parse_single_thread hr_time);
use Template;
+use Template::_conf;
use Template::_query;
use Template::_thread;
my $template = new Template $tempfile;
# Datei sperren... (eigentlich)
+ my $view = get_view_params ({adminDefault => $param -> {adminDefault}
+ });
+
my $xml=new XML::DOM::Parser -> parsefile ($threadpath.'t'.$param -> {thread}.'.xml');
my ($mnode, $tnode) = get_message_node ($xml, 't'.$param -> {thread}, 'm'.$param -> {posting});
my $pnode = $mnode -> getParentNode;
my $header = get_message_header ($mnode);
- my $msg = parse_single_thread ($tnode, 0, 0);
+ my $msg = parse_single_thread ($tnode, $param -> {showDeleted}, $view -> {sortedMsg});
my $pheader = ($pnode -> getNodeName eq 'Message')?get_message_header ($pnode):{};
my $assign = $param -> {assign};
my $body = get_message_body ($xml, 'm'.$param -> {posting});
my $text = message_field ($body,
- {quoteChars => '»» ',
+ {quoteChars => plain($view -> {quoteChars}),
quoting => 1,
startCite => ${$template -> scrap ($assign -> {startCite})},
endCite => ${$template -> scrap ($assign -> {endCite})}
my $area = answer_field ($body,
{quoteArea => 1,
- quoteChars => '»» ',
+ quoteChars => plain($view -> {quoteChars}),
messages => $param -> {messages}
});
$formdata->{posterBody}->{assign}->{value} => $area,
$formdata->{uniqueID} ->{assign}->{value} => plain(unique_id),
$formdata->{followUp} ->{assign}->{value} => plain($param -> {thread}.';'.$param -> {posting}),
- $formdata->{quoteChar} ->{assign}->{value} => "ÿ".plain('»» '),
+ $formdata->{quoteChar} ->{assign}->{value} => "ÿ".plain($view -> {quoteChars}),
$formdata->{userID} ->{assign}->{value} => '',
}, $pars)};
<?xml version="1.0"?>
<Config>
- <Constant name="wwwRoot">C:/Server/teamone</Constant>
- <Constant name="cgiRoot">C:/Server/teamone/cgi-local</Constant>
- <Constant name="serverName">teamone</Constant>
+ <Constant name="wwwRoot">e:/localhosts/i_selfhtml/htdocs</Constant>
+ <Constant name="cgiRoot">e:/localhosts/i_selfhtml/cgi-local</Constant>
+ <Constant name="serverName">selfhtml</Constant>
</Config>
-<!-- Ende -->
+<!-- Ende -->
\ No newline at end of file
use Template::Posting;
use CGI qw(param header);
-
use XML::DOM;
print header (-type => 'text/html');
if (defined ($tid) and defined ($mid)) {
print_posting_as_HTML ($message_path,
"$Bin/".$show_posting -> {templateFile},
- {assign => $show_posting -> {assign},
- thread => $tid,
- posting => $mid,
- messages => $show_posting -> {messages},
- form => $show_posting -> {form},
- cgi => $cgi,
- tree => $tree
+ {assign => $show_posting -> {assign},
+ thread => $tid,
+ posting => $mid,
+ adminDefault => $adminDefault,
+ messages => $show_posting -> {messages},
+ form => $show_posting -> {form},
+ cgi => $cgi,
+ tree => $tree
});}
else {