]> git.p6c8.net - selfforum.git/commitdiff
changed the handling of pathes, defined in config files. They are now absolute, not...
authorndparker <>
Wed, 7 Mar 2001 20:19:20 +0000 (20:19 +0000)
committerndparker <>
Wed, 7 Mar 2001 20:19:20 +0000 (20:19 +0000)
please change your config files.
also changed 'wselfhtm.css' in all template files to 'forum.css', rename (or copy) your wselfhtm.css in wwwroot/selfaktuell/src/, please

selfforum-cgi/user/config/answer.tmp.xml
selfforum-cgi/user/config/common.xml
selfforum-cgi/user/config/fo_posting.xml
selfforum-cgi/user/config/fo_view.xml
selfforum-cgi/user/config/forum.tmp.xml
selfforum-cgi/user/config/posting.tmp.xml
selfforum-cgi/user/fo_posting.pl
selfforum-cgi/user/fo_view.pl

index 8da9959dab151492ef60dd6782ab15c9ad865ead..8ea9c3e84b683b137072e104109a884dfb65d68d 100644 (file)
 <Scrap id="LINK_ARCHIV"><![CDATA[ <a href="/selfaktuell/forum/forumsarchiv.htm"><b>Forumsarchiv</b></a> ]]></Scrap>
 <Scrap id="LINK_SUCHE"><![CDATA[ <a href="/cgi-local/sfasuch.pl"><b>Forumsarchiv-Suche</b></a> ]]></Scrap>
 
-<Scrap id="_CSS_FILE"><![CDATA[ /selfaktuell/src/wselfhtm.css ]]></Scrap>
+<Scrap id="_CSS_FILE"><![CDATA[ /selfaktuell/src/forum.css ]]></Scrap>
 
 <!--
        Bilder
index f0496b0cb302f3951649271c5031c7b3f960f5e1..fb9d4f97a8ab9181308e5d428fef38dbdd41c947 100644 (file)
@@ -2,9 +2,9 @@
 
 <Config>
   <Property name="files">
-    <Variable name="messagePath">/selfaktuell/forum/messages/</Variable>
-    <Variable name="forum">/selfaktuell/forum/messages/selfforum.xml</Variable>
-    <Variable name="adminDefault">config/fo_admin_default.xml</Variable>
+    <Variable name="messagePath">e:/localhosts/i_selfhtml/htdocs/selfaktuell/forum/messages/</Variable>
+    <Variable name="forum">e:/localhosts/i_selfhtml/htdocs/selfaktuell/forum/messages/selfforum.xml</Variable>
+    <Variable name="adminDefault">e:/localhosts/i_selfhtml/cgi-local/user/config/fo_admin_default.xml</Variable>
   </Property>
 
   <Property name="template">
index 0616273b75b3494f5bc39e667694f5e1160f03f4..fd6e4fc6eb31ea8bfbe48801c0a63accba6af9d5 100644 (file)
@@ -3,7 +3,7 @@
 <Config>
   <Property name="show">
     <Property name="Posting">
-      <Variable name="templateFile">config/answer.tmp.xml</Variable>
+      <Variable name="templateFile">e:/localhosts/i_selfhtml/cgi-local/user/config/answer.tmp.xml</Variable>
 
       <Property name="assign">
         <Variable name="docNew">DOC_OPENING</Variable>
index c5995c7bc018e7376c6fbf5cd3896d58279f1d42..3b507ad69cac6cae47fcee41011d204773ea4122 100644 (file)
@@ -31,7 +31,7 @@
 
     <Property name="Forum">
 
-      <Variable name="templateFile">config/forum.tmp.xml</Variable>
+      <Variable name="templateFile">e:/localhosts/i_selfhtml/cgi-local/user/config/forum.tmp.xml</Variable>
 
       <Property name="assign">
         <Variable name="mainDocStart">DOC_FORUM_START</Variable>
@@ -43,7 +43,7 @@
     </Property>
 
     <Property name="Posting">
-      <Variable name="templateFile">config/posting.tmp.xml</Variable>
+      <Variable name="templateFile">e:/localhosts/i_selfhtml/cgi-local/user/config/posting.tmp.xml</Variable>
 
       <Property name="assign">
         <Variable name="mainDoc">DOC_POSTING</Variable>
index 89c7e56fffa56c500750024b514da7d06b1104e2..4ed9a2e84595f4f54d3edb7e1f25578bd08e859f 100644 (file)
        Links/URLs
 -->
 
-<Scrap id="_CSS_FILE"><![CDATA[ /selfaktuell/src/wselfhtm.css ]]></Scrap>
+<Scrap id="_CSS_FILE"><![CDATA[ /selfaktuell/src/forum.css ]]></Scrap>
 
 <Scrap id="LINK_SELFHTML"><![CDATA[ <a href="/selfhtml/"><b>SELFHTML</b></a> ]]></Scrap>
 <Scrap id="LINK_SELFAKTUELL"><![CDATA[ <a href="/selfaktuell/"><b>SELFHTML&nbsp;aktuell</b></a> ]]></Scrap>
index f37c5751a29b85e69457e0cd9afd334cfbd9fe43..32b1ce07beb8a4f22bda0125309458d7fb7c80c2 100644 (file)
 <Scrap id="LINK_SELFLIVE"><![CDATA[ <a href="../live/"><b>SELFHTML&nbsp;live!</b></a> ]]></Scrap>
 <Scrap id="LINK_SELFFORUM"><![CDATA[ <a href="./"><b>SELFHTML&nbsp;Forum</b></a> ]]></Scrap>
 
-<Scrap id="_CSS_FILE"><![CDATA[ ../src/wselfhtm.css ]]></Scrap>
+<Scrap id="_CSS_FILE"><![CDATA[ ../src/forum.css ]]></Scrap>
 
 <!--
        Bilder
index 388963217963f6e1166f8579d4a5e2fd81bcddfc..6bcde802bbcb16303dd3bda67ed908679d105066 100644 (file)
@@ -44,12 +44,12 @@ our $assign   = $show_posting -> {assign};
 our $formmust = $show_posting -> {form} -> {must};
 our $formdata = $show_posting -> {form} -> {data};
 our $formact  = $show_posting -> {form} -> {action};
-our $template = new Template "$Bin/".$show_posting -> {templateFile};
+our $template = new Template $show_posting -> {templateFile};
 our $pars = {};
 our ($failed, %dparam, $threads, $last_thread, $last_message, $ftid, $fmid, $flocked);
 
-sub forum_filename () {$conf -> {wwwRoot} . $conf -> {files} -> {forum};}
-sub message_path () {$conf -> {wwwRoot} . $conf -> {files} -> {messagePath};}
+sub forum_filename () {$conf -> {files} -> {forum};}
+sub message_path () {$conf -> {files} -> {messagePath};}
 
 ################################
 
index f92d376de8a72653d9379bdedcfedde40210b2f9..5773ddd4d31d2657e80ead1bfcb14dc49ac982e6 100644 (file)
@@ -23,17 +23,17 @@ print header(-type => 'text/html');
 
 my $conf = read_script_conf ($Bin, $Shared, $Script);
 
-$conf -> {wwwRoot} = 'i:/i_selfhtml/htdocs' unless ($ENV{GATEWAY_INTERFACE} =~ /CGI/);
+#$conf -> {wwwRoot} = 'i:/i_selfhtml/htdocs' unless ($ENV{GATEWAY_INTERFACE} =~ /CGI/);
 
 my $show = $conf -> {show};
 my $show_forum = $show -> {Forum};
 my $show_posting = $show -> {Posting};
 my $cgi = $show -> {assign} -> {cgi};
 my $tree = $show -> {assign} -> {thread};
-my $adminDefault = read_admin_conf ("$Bin/".$conf -> {files} -> {adminDefault});
+my $adminDefault = read_admin_conf ($conf -> {files} -> {adminDefault});
 
-my $forum_file = $conf -> {wwwRoot}.$conf -> {files} -> {forum};
-my $message_path = $conf -> {wwwRoot}.$conf -> {files} -> {messagePath};
+my $forum_file = $conf -> {files} -> {forum};
+my $message_path = $conf -> {files} -> {messagePath};
 
 #use Lock qw(:ALL);release_file(forum_file);die;
 
@@ -41,7 +41,7 @@ my ($tid, $mid) = (param ($cgi -> {thread}), param ($cgi -> {posting}));
 
 if (defined ($tid) and defined ($mid)) {
   print_posting_as_HTML ($message_path,
-                         "$Bin/".$show_posting -> {templateFile},
+                         $show_posting -> {templateFile},
                         {assign       => $show_posting -> {assign},
                          thread       => $tid,
                          posting      => $mid,
@@ -54,12 +54,10 @@ if (defined ($tid) and defined ($mid)) {
 
 else {
   print_forum_as_HTML ($forum_file,
-                       "$Bin/".$show_forum -> {templateFile},
+                       $show_forum -> {templateFile},
                       {assign       => $show_forum -> {assign},
                        adminDefault => $adminDefault,
                        cgi          => $cgi,
                        tree         => $tree
                       });}
-
-print "t1 ";
 # eos
\ No newline at end of file

patrick-canterino.de