Changeset 35272
- Timestamp:
- Mar 8, 2013, 10:29:38 AM (13 years ago)
- Location:
- branches/eam_branches/ipp-20130307/dvodist/www-util
- Files:
-
- 2 edited
-
ipp.php (modified) (5 diffs)
-
ippdata.page.mkd (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130307/dvodist/www-util/ipp.php
r35238 r35272 1 1 <?php 2 3 global $rootdir;4 2 5 3 function head ($title) { … … 24 22 if (! $project) { $project = "none"; } 25 23 26 // echo "<p style=\"font-size:50%\">host: $ WWWHOST, db: $DBHOST</p>\n";24 // echo "<p style=\"font-size:50%\">host: $root</p>\n"; 27 25 echo "<table class=page cellspacing=10px><tr><td valign=top>\n"; 28 26 echo "<table class=menu cellspacing=0px>\n"; … … 76 74 } 77 75 78 global $rootdir;79 80 76 // hi-lite the current page (use select-style, not style) 81 77 $thisname = $_SERVER[SCRIPT_NAME]; 82 $page = $root dir. $base;78 $page = $root . $base; 83 79 if ($page == $thisname) { 84 80 $style = trim($line[1]); … … 92 88 break; 93 89 case 'picture': 94 // prepend the root dirif needed (reference to /)90 // prepend the root if needed (reference to /) 95 91 if ($name[0] == '/') { 96 92 $name = $root . $name; … … 99 95 break; 100 96 case 'piclink': 101 // prepend the root dirif needed (reference to /)97 // prepend the root if needed (reference to /) 102 98 if ($name[0] == '/') { 103 99 $name = $root . $name; -
branches/eam_branches/ipp-20130307/dvodist/www-util/ippdata.page.mkd
r34748 r35272 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
Note:
See TracChangeset
for help on using the changeset viewer.
