- Timestamp:
- Apr 22, 2026, 5:16:15 PM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-pstamp-20260421/pstamp/web/dsroot.php
r42994 r42996 1 1 <?php // upload.php 2 2 3 // get the loca tl configuration variables3 // get the local configuration variables 4 4 require "pstamp.php"; 5 5 require "dblogin.php"; 6 7 6 8 7 $user = $_SERVER['PHP_AUTH_USER']; … … 22 21 s.innerHTML = s.innerHTML - 1; 23 22 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'; 25 24 location.reload(); 26 25 else … … 40 39 echo "<body>\n"; 41 40 echo "The page will NOW refresh in <span id='timer'> 20</span> mins"; 42 $db server = dblogin();41 $dbconnection = dblogin("DATASTORE"); 43 42 44 43 $query = "SELECT prod_name, last_fs, last_update, type, description FROM dsProduct ORDER BY type, prod_id"; 45 $result = mysqli_query($db server, $query);44 $result = mysqli_query($dbconnection, $query); 46 45 if (!$result) { 47 die("Database access failed: " . mysqli_error($db server));46 die("Database access failed: " . mysqli_error($dbconnection)); 48 47 } 49 48 … … 58 57 $prod_name = $row[0]; 59 58 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"; 65 60 echo "<a href=\"$prod_link\">$prod_name</a>"; 66 67 61 echo "</td>"; 68 62
Note:
See TracChangeset
for help on using the changeset viewer.
