Changeset 8620 in genesis for config/iris/node/FreeBSD/8.0-RELEASE/g_list.pl
- Timestamp:
- Oct 31, 2010, 8:47:20 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
config/iris/node/FreeBSD/8.0-RELEASE/g_list.pl
r8614 r8620 4 4 # Rick van der Zwet 5 5 # 6 use File::Basename; 6 7 7 8 # Config located at other file 8 my $conf_file ="/usr/local/www/wlconfig/freebsd/iris-8.0/genesis.conf";9 my $conf_file = dirname(__FILE__) . "/genesis.conf"; 9 10 do($conf_file) || die("Cann't open $conf_file"); 10 11 … … 66 67 #REQUEST parsen 67 68 $request=$ENV{'REQUEST_URI'}; 68 if( $request =~/.*g_list.pl\/(.*)$/) {69 if( $request =~ /$uri(.*)$/) { 69 70 ($node,$file)=split(/\//,$1); 70 71 $title="$node $file"; … … 85 86 else { 86 87 $HTML=1; 87 printline("<HTML> ");88 printline("<HTML><HEAD>"); 88 89 printline("<TITLE>Genesis $title</TITLE>"); 89 printline("<BODY BGcolor=white>"); 90 printline("<base href='$source'></base>"); 91 printline("</HEAD><BODY BGcolor=white>"); 90 92 }; 91 93 … … 167 169 } 168 170 else { 169 printline("<TR><TD><A HREF= g_list.pl/$node/config>$node</A></TD>");171 printline("<TR><TD><A HREF=$node/config>$node</A></TD>"); 170 172 foreach $file (sort @filelist) { 171 printline("<TD><A HREF= g_list.pl/$node/$file>$file</A></TD>\n");173 printline("<TD><A HREF=$node/$file>$file</A></TD>\n"); 172 174 }; 173 175 }; … … 313 315 314 316 if( $HTML) { 315 printline("<H1>Genesis $file voor: $ hostname</H1><P>");317 printline("<H1>Genesis $file voor: $node</H1><P>"); 316 318 }; 317 319
Note:
See TracChangeset
for help on using the changeset viewer.