IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 22, 2026, 5:16:15 PM (3 months ago)
Author:
eugene
Message:

fixing for modern PHP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-pstamp-20260421/pstamp/web/dsroot.php

    r42994 r42996  
    11<?php // upload.php
    22
    3 // get the locatl configuration variables
     3// get the local configuration variables
    44require "pstamp.php";
    55require "dblogin.php";
    6 
    76
    87$user = $_SERVER['PHP_AUTH_USER'];
     
    2221    s.innerHTML = s.innerHTML - 1;
    2322    if (s.innerHTML == 0)
    24   //    window.location = 'http://pstamp.ipp.ifa.hawaii.edu/dsroot.php';
     23      // window.location = 'http://pstamp.ipp.ifa.hawaii.edu/dsroot.php';
    2524      location.reload();
    2625    else
     
    4039echo "<body>\n";
    4140echo "The page will NOW refresh in <span id='timer'> 20</span> mins";
    42 $dbserver = dblogin();
     41$dbconnection = dblogin("DATASTORE");
    4342
    4443$query = "SELECT prod_name, last_fs, last_update, type, description FROM dsProduct ORDER BY type, prod_id";
    45 $result = mysqli_query($dbserver, $query);
     44$result = mysqli_query($dbconnection, $query);
    4645if (!$result) {
    47     die("Database access failed: " . mysqli_error($dbserver));
     46    die("Database access failed: " . mysqli_error($dbconnection));
    4847}
    4948
     
    5857    $prod_name = $row[0];
    5958    echo "<td>";
    60     // echo "<a href=\"http://datastore.ipp.ifa.hawaii.edu/$prod_name\">$prod_name</a>";
    61     //$prod_link = "http://datastore.ipp.ifa.hawaii.edu/$prod_name";
    62     $prod_link = "http://datastore.ipp.ifa.hawaii.edu/ds/$prod_name";
    63 
    64     // $prod_link "<a href=\"http://datastore.ipp.ifa.hawaii.edu/$prod_name\">$prod_name</a>";
     59    $prod_link = "$DS_URL/$prod_name";
    6560    echo "<a href=\"$prod_link\">$prod_name</a>";
    66    
    6761    echo "</td>";
    6862
Note: See TracChangeset for help on using the changeset viewer.