username != ILINK_USER || $user->role != SERVICE_ROLE ) { header('location:'.LOGIN_PAGE); } define( 'COMMAND','command' ); define( 'REPORT_CMD','getLibReport' ); define( 'CAPTURE_SNAPSHOT_CMD','getLibSnapshot' ); define( 'UPDATE_SOFTWARE','updateSoftware' ); define( 'LOGOFF_CMD','logoff' ); class XMLStatus { var $cmdErrors = array(); var $errorCode; function XMLStatus() { $this->numErrors = 0; $this->errorCode = 0; } function setErrorCode( $code ) { $this->errorCode = $code; $this->numErrors++; } function out() { header('Content-type: text/xml'); print ''; print ""; if( $this->numErrors > 0 ) { print ''; print ''; print ''; } else { print ''; } print ''; return; } }; ?>