umntTime = $umntTime; $this->mntTime = $mntTime; $this->x = $x; $this->y = $y; $this->serial = $serial; $this->partition = $partition; $this->read = $read; $this->written = $written; $this->moTime = $moTime; $this->barcode = $barcode; $this->loc = $x.",".$y; $this->use = true; } }; /////////////////////////////////////////////////////////////////////////// // This class defines the data that will read from the TapeAlertLog files // A line of the file looks like: // 12/22/2007 12:56:59,12/22/2007 12:56:17,0,2,1210143187,rdt2,0,0,2,000158L3 //////////////////////////////////////////////////////////////////////////////// class CMediaData { var $aTime; var $serial; var $barcode; var $tapeAlert; var $use; function CMediaData($aTime, $serial, $barcode, $tapeAlert) { $this->aTime = $aTime; $this->serial = $serial; $this->barcode = $barcode; $this->tapeAlert = $tapeAlert; $this->use = true; } }; function check_file_exists( $filename ) { global $fileNotFound; $fh = fopen( $filename, 'rb' ); if( $fh == false ) { $fileNotFound = "true"; } else { fclose( $fh ); } } ?>