IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 35272


Ignore:
Timestamp:
Mar 8, 2013, 10:29:38 AM (13 years ago)
Author:
eugene
Message:

wget does a better job if menu links include the host http server

Location:
branches/eam_branches/ipp-20130307/dvodist/www-util
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130307/dvodist/www-util/ipp.php

    r35238 r35272  
    11<?php
    2 
    3 global $rootdir;
    42
    53function head ($title) {
     
    2422  if (! $project) { $project = "none"; }
    2523
    26   // echo "<p style=\"font-size:50%\">host: $WWWHOST, db: $DBHOST</p>\n";
     24  // echo "<p style=\"font-size:50%\">host: $root</p>\n";
    2725  echo "<table class=page cellspacing=10px><tr><td valign=top>\n";
    2826  echo "<table class=menu cellspacing=0px>\n";
     
    7674    }
    7775
    78     global $rootdir;
    79 
    8076    // hi-lite the current page (use select-style, not style)
    8177    $thisname = $_SERVER[SCRIPT_NAME];
    82     $page = $rootdir . $base;
     78    $page = $root . $base;
    8379    if ($page == $thisname) {
    8480      $style = trim($line[1]);
     
    9288      break;
    9389    case 'picture':
    94       // prepend the rootdir if needed (reference to /)
     90      // prepend the root if needed (reference to /)
    9591      if ($name[0] == '/') {
    9692        $name = $root . $name;
     
    9995      break;
    10096    case 'piclink':
    101       // prepend the rootdir if needed (reference to /)
     97      // prepend the root if needed (reference to /)
    10298      if ($name[0] == '/') {
    10399        $name = $root . $name;
  • branches/eam_branches/ipp-20130307/dvodist/www-util/ippdata.page.mkd

    r34748 r35272  
    1212$fromProxy = $_SERVER['HTTP_X_FORWARDED_FOR'] && ($_SERVER['REMOTE_ADDR'] == $ifaProxy);
    1313if ($fromProxy) {
    14   $rootdir = "";
     14  $rootdir = "@ROOTWWW@";
    1515 } else {
    16   $rootdir = "@ROOTDIR@";
     16  $rootdir = "@ROOTWWW@/@ROOTDIR@";
    1717 }
    1818
Note: See TracChangeset for help on using the changeset viewer.