Changeset 8421 for trunk/MagicSoft/Mars/datacenter/db/plotinclude.php
- Timestamp:
- 04/19/07 22:51:59 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/db/plotinclude.php
r8402 r8421 1 1 <?php 2 2 3 //arrays and functions for plot.php and plotdb.php 3 4 include("include.php"); 4 5 include("magicdefs.php"); … … 120 121 } 121 122 123 //functions for showplots.php and showplots2.php 124 function gettypename($type2) 125 { 126 switch ($type2) 127 { 128 case "calib": 129 $type="callisto"; 130 break; 131 case "signal": 132 $type="callisto"; 133 break; 134 case "star": 135 $type="star"; 136 break; 137 } 138 return $type; 139 } 140 141 function getplotname($seq, $tabnum, $type, $type2) 142 { 143 $seqlong=str_pad($seq, 8, "0", STR_PAD_LEFT); 144 $seqshort=substr($seqlong, 0, 4); 145 $plot = "http://datacenter.astro.uni-wuerzburg.de/"; 146 $plot .= $type . "/" . str_pad( $seqshort, 4, "0", STR_PAD_LEFT); 147 $plot .= "/" . $seqlong . "/" . $type2 . $seqlong . "-tab" . $tabnum . ".png"; 148 return $plot; 149 } 122 150 123 151 ?>
Note:
See TracChangeset
for help on using the changeset viewer.