Changeset 35275
- Timestamp:
- Mar 8, 2013, 11:01:03 AM (13 years ago)
- Location:
- branches/eam_branches/ipp-20130307/dvodist/www-util
- Files:
-
- 3 edited
-
dvodist.page.mkd (modified) (2 diffs)
-
ipp.php (modified) (2 diffs)
-
ippdata.page.mkd (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130307/dvodist/www-util/dvodist.page.mkd
r34748 r35275 12 12 $fromProxy = $_SERVER['HTTP_X_FORWARDED_FOR'] && ($_SERVER['REMOTE_ADDR'] == $ifaProxy); 13 13 if ($fromProxy) { 14 $rootdir = " ";14 $rootdir = "@ROOTWWW@"; 15 15 } else { 16 $rootdir = "@ROOT DIR@";16 $rootdir = "@ROOTWWW@@ROOTDIR@"; 17 17 } 18 18 … … 20 20 21 21 $script = basename($_SERVER[SCRIPT_NAME]); 22 do_markdown ($script );22 do_markdown ($script, $rootdir); 23 23 24 24 menu_end(); -
branches/eam_branches/ipp-20130307/dvodist/www-util/ipp.php
r35272 r35275 245 245 246 246 // lines which start with @ are processed by 'dirlist', all others are processed by Markdown 247 function do_markdown ($source) { 247 function do_markdown ($source, $root) { 248 248 249 if (!file_exists($source)) return; 249 250 … … 254 255 $to_dirlist = ""; 255 256 while ($line = fgets ($file, 1024)) { 257 // replace @WWWHOST@ with $root 258 $line = str_replace ("@WWWHOST@", $root, $line); 259 256 260 // echo "line: $line"; 257 261 if (!strncmp($line, "@", 1)) { -
branches/eam_branches/ipp-20130307/dvodist/www-util/ippdata.page.mkd
r35273 r35275 20 20 21 21 $script = basename($_SERVER[SCRIPT_NAME]); 22 do_markdown ($script );22 do_markdown ($script, $rootdir); 23 23 24 24 menu_end();
Note:
See TracChangeset
for help on using the changeset viewer.
