Changeset 10595
- Timestamp:
- Dec 8, 2006, 5:02:30 PM (19 years ago)
- Location:
- trunk/ippMonitor
- Files:
-
- 3 edited
-
doc/notes.txt (modified) (1 diff)
-
raw/getimage.php (modified) (2 diffs)
-
raw/phptest.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippMonitor/doc/notes.txt
r9136 r10595 1 2 Installation: 3 4 the code currently requires three (3) hardwired paths to be set before 5 installation: 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. 1 16 2 17 - to update the mysql database from a dump: -
trunk/ippMonitor/raw/getimage.php
r9347 r10595 1 1 <?php 2 2 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"; 4 6 5 7 // load an image file from the image directory 6 7 8 // validate request 8 9 if ($_SERVER[REQUEST_METHOD] != 'GET') { … … 13 14 $basename = str_replace ('..','',$basename); 14 15 15 $filename = $IMAGEDIR . $basename; 16 $filename = system ("ipp_datapath.pl --site=$CONFIGDIR $IMAGEDIR", $status); 17 if ($status) { 18 $filename = $MISSING; 19 } 16 20 17 21 $file = fopen ($filename, "r"); -
trunk/ippMonitor/raw/phptest.php
r9439 r10595 19 19 } 20 20 21 $value = system ("ls /etc", $status); 22 echo "status: $status\n"; 23 21 24 menu_end(); 22 25 ?>
Note:
See TracChangeset
for help on using the changeset viewer.
