IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 24, 2010, 1:33:57 PM (16 years ago)
Author:
eugene
Message:

various improvements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippMonitor/raw/ipp.php

    r26947 r27054  
    283283  if (! $project) { $project = "none"; }
    284284
    285   // hardwire this name based on the configuration (use ipp.php.in)
     285  // these are defined in site.php
    286286  global $DBHOST;
    287   $HOST = $_SERVER['SERVER_NAME'];
    288   echo "<p style=\"font-size:50%\">host: $HOST, db: $DBHOST</p>\n";
     287  global $WWWHOST;
     288
     289  echo "<p style=\"font-size:50%\">host: $WWWHOST, db: $DBHOST</p>\n";
    289290  echo "<table class=page cellspacing=10px><tr><td valign=top>\n";
    290291  echo "<table class=menu cellspacing=0px>\n";
     
    448449  }
    449450  if ($value == "") { return $where; }
     451
     452  global $restricted;
     453  $restricted = 1;
     454
    450455  if ($where) {
    451456    $where = $where . " AND";
     
    680685
    681686  if ($basename && $camera && $rule) {
     687    echo "<a href=\"showimage.php?name=$basename&rule=$rule&camera=$camera&class_id=$class_id\">\n";
    682688    echo "<img $size src=\"getimage.php?name=$basename&rule=$rule&camera=$camera&class_id=$class_id\">\n";
     689    echo "</a>\n";
    683690  }
    684691}
Note: See TracChangeset for help on using the changeset viewer.