IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 40764


Ignore:
Timestamp:
May 30, 2019, 8:47:11 AM (7 years ago)
Author:
eugene
Message:

merge changes from trunk (updates to support modern PHP)

Location:
tags/ipp-ps2-20190404/dvodist/www-util
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-ps2-20190404/dvodist/www-util/dvodist.page.mkd

    r40053 r40764  
    2020menu("$utils/dvodist.menu.dat", 'DVO Distribution Server', $rootdir, "$rootdir/ipp.css", '', '');
    2121
    22 $script = basename($_SERVER[SCRIPT_NAME]);
     22$script = basename($_SERVER['SCRIPT_NAME']);
    2323do_markdown ($script, $rootdir);
    2424
  • tags/ipp-ps2-20190404/dvodist/www-util/ipp.page.mkd

    r34748 r40764  
    1919menu("$utils/ipp.menu.dat", 'DVO Distribution Server', $rootdir, "$rootdir/ipp.css", '', '');
    2020
    21 $script = basename($_SERVER[SCRIPT_NAME]);
     21$script = basename($_SERVER['SCRIPT_NAME']);
    2222do_markdown ($script);
    2323
  • tags/ipp-ps2-20190404/dvodist/www-util/ipp.php

    r36076 r40764  
    5656  // loop over the lines in the file and generate lines in the menu
    5757  while ($line = fgetcsv ($file, 1024, "|")) {
    58     if (ereg ('^[:blank:]*#', $line[0])) continue;
     58    if (preg_match ('/^\s*#/', $line[0])) continue;
    5959    if (count($line) < 2) continue;
    6060
     
    8181
    8282    // append additional elements if needed
     83    $link = "$base";
    8384    if ($append) {
    8485      $link = "$base" . "?" . $append;
    85     } else {
    86       $link = "$base";
    8786    }
    8887       
    8988    // prepend the rootdir if needed (reference to /)
    90     if ($link[0] == '/') {
     89    if (substr($link, 0, 1) == "/") {
    9190      $link = $root . $link;
    9291    }
    9392
    9493    // hi-lite the current page (use select-style, not style)
    95     $thisname = $_SERVER[SCRIPT_NAME];
     94    $thisname = $_SERVER['SCRIPT_NAME'];
    9695    $page = $root . $base;
    9796    if ($page == $thisname) {
     
    147146  // loop over the lines in the file and generate lines in the menu
    148147  while ($line = fgetcsv ($file, 1024, ":")) {
    149     if (ereg ('^[:blank:]*#', $line[0])) continue;
     148    if (preg_match ('/^\s*#/', $line[0])) continue;
    150149    if (count($line) < 2) continue;
    151150
     
    205204    $inline = trim ($inlist[$i], "@ \t");
    206205    $line = explode (":", $inline);
    207     if (ereg ('^[:blank:]*#', $line[0])) continue;
     206    if (preg_match ('/^\s*#/', $line[0])) continue;
    208207    if (count($line) < 2) continue;
    209208
  • tags/ipp-ps2-20190404/dvodist/www-util/ippdata.page.mkd

    r35415 r40764  
    1818menu("$utils/ippdata.menu.dat", 'Pan-STARRS 1 Data Distribution Server', $rootdir, "$rootdir/ipp.css", '', '');
    1919
    20 $script = basename($_SERVER[SCRIPT_NAME]);
     20$script = basename($_SERVER['SCRIPT_NAME']);
    2121do_markdown ($script, $rootdir);
    2222
Note: See TracChangeset for help on using the changeset viewer.