IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 10595


Ignore:
Timestamp:
Dec 8, 2006, 5:02:30 PM (19 years ago)
Author:
eugene
Message:

adding datapath

Location:
trunk/ippMonitor
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippMonitor/doc/notes.txt

    r9136 r10595  
     1
     2Installation:
     3
     4the code currently requires three (3) hardwired paths to be set before
     5installation:
     6
     7- the DESTBIN directory in the Makefile must be set to the directory
     8  in your apache installation where the package will reside
     9
     10- the database hostname, user, and password must be set in ipp.php
     11
     12- the location of the ipprc.config file must be specific in
     13  getimage.php
     14
     15** TODO: set these with a configure script.
    116
    217- to update the mysql database from a dump:
  • trunk/ippMonitor/raw/getimage.php

    r9347 r10595  
    11<?php
    22
    3 $IMAGEDIR = "/data/alala/eugene/swtests/pantasks/";
     3# $IMAGEDIR = "/data/alala/eugene/swtests/pantasks/";
     4$CONFIGDIR = "/data/alala/eugene/src/panstarrs/ipp/config/ipprc.config";
     5$MISSING = "missing.png";
    46
    57// load an image file from the image directory
    6 
    78// validate request
    89if ($_SERVER[REQUEST_METHOD] != 'GET') {
     
    1314$basename = str_replace ('..','',$basename);
    1415
    15 $filename = $IMAGEDIR . $basename;
     16$filename = system ("ipp_datapath.pl --site=$CONFIGDIR $IMAGEDIR", $status);
     17if ($status) {
     18  $filename = $MISSING;
     19}
    1620
    1721$file = fopen ($filename, "r");
  • trunk/ippMonitor/raw/phptest.php

    r9439 r10595  
    1919}
    2020
     21$value = system ("ls /etc", $status);
     22echo "status: $status\n";
     23
    2124menu_end();
    2225?>
Note: See TracChangeset for help on using the changeset viewer.