From: fox_two <> Date: Mon, 4 Jun 2001 19:33:19 +0000 (+0000) Subject: Initial revision. X-Git-Url: https://git.p6c8.net/selfforum.git/commitdiff_plain/3a3c30675c33b22cafe316471d7c86ff86cab3cb?ds=sidebyside Initial revision. --- diff --git a/selfforum-cgi/user/fo_arcview.pl b/selfforum-cgi/user/fo_arcview.pl new file mode 100644 index 0000000..667fd2b --- /dev/null +++ b/selfforum-cgi/user/fo_arcview.pl @@ -0,0 +1,147 @@ +#!/usr/bin/perl -w + +################################################################################ +# # +# File: user/fo_arcview.pl # +# # +# Authors: Frank Schoenmann , 2001-06-02 # +# # +# Description: archive browser # +# # +################################################################################ + +use strict; +use vars qw( + $Bin + $Shared + $Script + $Config +); + +BEGIN { + my $null = $0; $null =~ s/\\/\//g; # for win :-( + $Bin = ($null =~ /^(.*)\/.*$/)? $1 : '.'; + $Shared = "$Bin/../../cgi-shared"; + $Config = "$Bin/../../cgi-config/forum"; + $Script = ($null =~ /^.*\/(.*)$/)? $1 : $null; + +# my $null = $0; #$null =~ s/\\/\//g; # for win :-( +# $Bin = ($null =~ /^(.*)\/.*$/)? $1 : '.'; +# $Config = "$Bin/../../../cgi-config/devforum"; +# $Shared = "$Bin/../../../cgi-shared"; +# $Script = ($null =~ /^.*\/(.*)$/)? $1 : $null; +} + +use lib "$Shared"; +use CGI::Carp qw(fatalsToBrowser); + +use Conf; +use Conf::Admin; +use Template::Archive qw( + print_month_as_HTML + print_thread_as_HTML +); +#use Template::Forum; +#use Template::Posting; + +use CGI qw(param header path_info); + +print header(-type => 'text/html'); + +#my $show = $conf->{show}; +#my $tree = $show->{assign}->{thread}; + +#my $forum_file = $conf->{files}->{forum}; +#my $message_path = $conf->{files}->{messagePath}; + +my $conf = read_script_conf($Config, $Shared, $Script); +my $show = $conf->{'show'}; +my $cgi = $show->{'assign'}->{'cgi'}; +my $show_archive = $show->{'Archive'}; +my $adminDefault = read_admin_conf($conf->{'files'}->{'adminDefault'}); + +my ($year, $month, $tid, $mid); + +# tid is thread id, mid is not used yet +if (my $path_info = path_info()) { + (undef, $year, $month, $tid, $mid) = split "/", $path_info; +} else { + ($year, $month, $tid, $mid) = + (param($cgi->{'year'}), param($cgi->{'month'}), param($cgi->{'thread'}), param($cgi->{'posting'})); +} + +if ($year) { + if ($month) { + if ($tid) { + if ($mid) { +# print_msg_as_HTML(); + } else { + print_thread_as_HTML( + $conf->{'files'}->{'archivePath'} . $year .'/'. $month .'/t'. $tid . '.xml', +# '/home/users/f/fo/fox_two/sf/data/forum/archive/2001/5/t23518', + $show_archive->{'templateFile'}, + { + 'assign' => $show_archive->{'assign'}, + 'adminDefault' => $adminDefault, + 'cgi' => $cgi, + 'year' => $year, + 'month' => $month, + 'thread' => $tid, + 'posting' => $mid, + 'tree' => $show->{'assign'}->{'thread'} + + } + ); + } + } else { + print_month_as_HTML( + $conf->{'files'}->{'archivePath'} . $year . '/' . $month . '/' . $conf->{'files'}->{'archiveIndex'}, + $show_archive->{'templateFile'}, + { + 'assign' => $show_archive->{'assign'}, + 'year' => $year, + 'month' => $month + } + ); + } + } else { +# print_year_as_HTML(); + } +} else { +# print_overview_as_HTML(); +} + + +#if (defined ($tid) and defined ($mid)) { +# print_posting_as_HTML ( +# $message_path, +# $show_posting -> {templateFile}, +# { assign => $show_posting -> {assign}, +# thread => $tid, +# posting => $mid, +# adminDefault => $adminDefault, +# messages => $conf -> {template} -> {messages}, +# form => $show_posting -> {form}, +# cgi => $cgi, +# tree => $tree, +# firsttime => 1, +# cachepath => $conf -> {files} -> {cachePath} +# } +# ); +#} +# +#else { +# print_forum_as_HTML ( +# $forum_file, +# $show_forum -> {templateFile}, +# { assign => $show_forum -> {assign}, +# adminDefault => $adminDefault, +# cgi => $cgi, +# tree => $tree +# } +# ); +#} + +# +# +### end of fo_view.pl ########################################################## diff --git a/selfforum-config/common.xml-default b/selfforum-config/common.xml-default new file mode 100644 index 0000000..fb9d4f9 --- /dev/null +++ b/selfforum-config/common.xml-default @@ -0,0 +1,72 @@ + + + + + e:/localhosts/i_selfhtml/htdocs/selfaktuell/forum/messages/ + e:/localhosts/i_selfhtml/htdocs/selfaktuell/forum/messages/selfforum.xml + e:/localhosts/i_selfhtml/cgi-local/user/config/fo_admin_default.xml + + + + + + + /selfaktuell/forum/images/01.gif + 419 + 119 + Für dein Problem gibt es nur eine Lösung: SELFmade von Selbermachen. + + + /selfaktuell/forum/images/02.gif + 302 + 119 + Die Antwort auf deine Frage findest du im Archiv. + + + /selfaktuell/forum/images/03.gif + 248 + 119 + Was willst du jetzt eigentlich wissen? + + + /selfaktuell/forum/images/04.gif + 428 + 119 + Schau mal in SELFHTML nach, um eine Antwort auf deine Frage zu finden! + + + /selfaktuell/forum/images/05.gif + 158 + 119 + Jetzt reicht's aber! + + + /selfaktuell/forum/images/06.gif + 462 + 119 + Erstmal selber probieren, dann bei Problemen: SELFHTML, danach: dieses Forum. + + + /selfaktuell/forum/images/07.gif + 275 + 119 + Stopp! So etwas hat hier nichts zu suchen. + + + /selfaktuell/forum/images/08.gif + 213 + 100 + Schau mal unter folgenden Links nach: + + + /selfaktuell/forum/images/10.gif + 224 + 119 + ??!%${ + + + + + + + \ No newline at end of file diff --git a/selfforum-config/config.dtd b/selfforum-config/config.dtd new file mode 100644 index 0000000..7ea146f --- /dev/null +++ b/selfforum-config/config.dtd @@ -0,0 +1,56 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/selfforum-config/fo_admin.xml-default b/selfforum-config/fo_admin.xml-default new file mode 100644 index 0000000..67b3ed7 --- /dev/null +++ b/selfforum-config/fo_admin.xml-default @@ -0,0 +1,37 @@ + + + + + + + + + _VIEWS + _VOTINGS + _RATE + + + + + + /var/www/cgi-local/user/config/admin.tmpl.xml + + + DOC_FORUM_START + DOC_FORUM_END + _LOAD_TIME + _CSS_FILE + DOC_ERROR + + _N_A + _OCCUPIED + _ERROR_TEXT + + + + + + + + + diff --git a/selfforum-config/fo_admin_default.dtd b/selfforum-config/fo_admin_default.dtd new file mode 100644 index 0000000..b066b07 --- /dev/null +++ b/selfforum-config/fo_admin_default.dtd @@ -0,0 +1,296 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/selfforum-config/fo_admin_default.xml-default b/selfforum-config/fo_admin_default.xml-default new file mode 100644 index 0000000..5e4f1be --- /dev/null +++ b/selfforum-config/fo_admin_default.xml-default @@ -0,0 +1,46 @@ + + + + + + + 10 + + + + + + »» + + + + + 250000 + 2000 + 150 + + + + + + + + + + 300 + + + + + + + + 45 + + + diff --git a/selfforum-config/fo_arcview.xml-default b/selfforum-config/fo_arcview.xml-default new file mode 100644 index 0000000..5ff0927 --- /dev/null +++ b/selfforum-config/fo_arcview.xml-default @@ -0,0 +1,50 @@ + + + + + + + /var/www/cgi-local/user/config/arcview.tmpl.xml + + + ARC_THREAD_START + ARC_THREAD_END + XPOSTING + + ARC_MONTH_START + ARC_MONTH_END + ARC_MONTH_THREAD + + _T_ID + _T_CATEGORY + _T_TITLE + _T_AUTHOR + _T_TIME + _T_DATE + + _YEAR + _MONTH + _MONTH_NAME + + _MSG_ID + _MSG_AUTHOR + _MSG_MAIL + _MSG_HOMEPAGE + _MSG_TIME + _MSG_CATEGORY + _MSG_TITLE + _MSG_TEXT + + CITE_START + CITE_END + + DOC_ERROR + _ERROR_TEXT + + _CSS_FILE + + + + + + diff --git a/selfforum-config/fo_posting.xml-default b/selfforum-config/fo_posting.xml-default new file mode 100644 index 0000000..5b9e3af --- /dev/null +++ b/selfforum-config/fo_posting.xml-default @@ -0,0 +1,282 @@ + + + + + + + /var/www/cgi-local/user/config/answer.tmpl.xml + + + DOC_OPENING + DOC_THANKYOU + + DOC_OPENING + DOC_FATAL + _ERR_MESS + _NUM + + _MANIPULATED + _MANIPULATED + _MANIPULATED + _ENCODING + _OCCUPIED + _MASTERLOCK + _NOREPLY + _DUPE + _NOT_SAVED + _UNKNOWN + + _CSS_FILE + + OPTION + _OPTVAL + _SELECTED + + _MESSAGE + + CITE_START + CITE_END + + + + _NAME + _MAIL + _TIME + _BODY + _CATEGORY + _TITLE + _HOME + _IMAGE + + + + + + /cgi-local/user/fo_posting.pl + _FORM_ACTION + + + + + + uniqueID + quoteChar + posterName + posterEmail + posterCategory + posterSubject + posterBody + + + + followUp + uniqueID + quoteChar + posterName + posterEmail + posterBody + posterCategory + posterSubject + + + + + + + _FORM_FUP_NAME + _FORM_FUP_VALUE + _MANIPULATED + + + fup + 20 + fatal + internal + + + + + _FORM_UID_NAME + _FORM_UID_VALUE + _MANIPULATED + + + userid + 40 + fatal + internal + + + + + _FORM_UNID_NAME + _FORM_UNID_VALUE + _MANIPULATED + + + unid + 40 + fatal + internal + + + + + _FORM_QCHAR_NAME + _FORM_QCHAR_VALUE + _MANIPULATED + + + qchar + 20 + fatal + internal + + + + + _FORM_NAME_NAME + _FORM_NAME_VALUE + _NAME_TOO_LONG + _NAME_TOO_SHORT + + + name + 60 + 2 + name + repeat + + + + + _FORM_MAIL_NAME + _FORM_MAIL_VALUE + _MAIL_TOO_LONG + _MAIL_TOO_SHORT + _MAIL_WRONG + + + email + 60 + 7 + email + repeat + + + + + _FORM_CAT_NAME + _CATLIST + _CAT_WRONG + _CAT_WRONG + _CAT_WRONG + + + category + 18 + 3 + fetch + category + + ASP + BROWSER + CGI + CSS + DATENBANK + DESIGN + DHTML + E-MAIL + FTP + GRAFIK + HTML + HTTP + INTERNET-ANBINDUNG + JAVA + JAVASCRIPT + MEINUNG + MENSCHELEI + PERL + PHP + PROGRAMMIERTECHNIK + PROJEKTVERWALTUNG + PROVIDER + RECHT + SERVER + SOFTWARE + VB-SCRIPT + XML + XML-DERIVAT + XSL + ZUR INFO + ZU DIESEM FORUM + + + + + + _FORM_SUBJECT_NAME + _FORM_SUBJECT_VALUE + _SUB_TOO_LONG + _SUB_TOO_SHORT + + subject + 64 + 4 + fetch + subject + + + + + _FORM_BODY_NAME + _FORM_BODY_VALUE + _BODY_TOO_LONG + _BODY_TOO_SHORT + + body + 12288 + 10 + repeat + multiline-text + + + + + _FORM_SIGN_VALUE + + + + + + _FORM_URL_NAME + _FORM_URL_VALUE + _URL_TOO_LONG + + url + 1024 + http-url + kill + http:// + + + + + _FORM_IMG_NAME + _FORM_IMG_VALUE + _IMG_TOO_LONG + + image + 1024 + http-url + kill + http:// + + + + + + + + + diff --git a/selfforum-config/fo_view.dtd b/selfforum-config/fo_view.dtd new file mode 100644 index 0000000..b0fcd3f --- /dev/null +++ b/selfforum-config/fo_view.dtd @@ -0,0 +1,21 @@ + + + + + + + + + diff --git a/selfforum-config/fo_view.xml-default b/selfforum-config/fo_view.xml-default new file mode 100644 index 0000000..4ee6809 --- /dev/null +++ b/selfforum-config/fo_view.xml-default @@ -0,0 +1,22 @@ + + + + + + /var/www/cgi-local/user/config/forum.tmpl.xml + + + DOC_FORUM_START + DOC_FORUM_END + _LOAD_TIME + _CSS_FILE + DOC_ERROR + _N_A + _OCCUPIED + _ERROR_TEXT + + + + + +