Esempio n. 1
0
	$action = GetVariable("action");
	$uuid = GetVariable("uuid");
	$anonymize = GetVariable("anonymize");
	$equipmentid = GetVariable("equipmentid");
	$siteid = GetVariable("siteid");
	$projectid = GetVariable("projectid");
	$instanceid = GetVariable("instanceid");
	$transactionid = GetVariable("transactionid");
	$altuid = GetVariable("altuid");
	$instance = GetVariable("instance");
	$dataformat = GetVariable("dataformat");
	$matchidonly = GetVariable("matchidonly");
	
	switch($action) {
		case 'UploadNonDICOM': UploadDICOM($uuid, $anonymize, $dataformat, $equipmentid, $siteid, $projectid, $instanceid, $matchidonly,$transactionid); break;
		case 'UploadDICOM': UploadDICOM($uuid, $anonymize, $dataformat, $equipmentid, $siteid, $projectid, $instanceid, $matchidonly,$transactionid); break;
		case 'getUID': GetUIDFromAltUID($altuid); break;
		case 'getInstanceList': GetInstanceList($u); break;
		case 'getProjectList': GetProjectList($u, $instance); break;
		case 'getSiteList': GetSiteList($u, $instance); break;
		case 'getEquipmentList': GetEquipmentList(); break;
		case 'startTransaction': StartTransaction($u); break;
		case 'endTransaction': EndTransaction($transactionid); break;
		default: echo "Welcome to NiDB v" . $GLOBALS['cfg']['version'];
	}
	
	/* -------------------------------------------- */
	/* ------- Authenticate ----------------------- */
	/* -------------------------------------------- */
	function Authenticate($username, $password) {
		$username = mysql_real_escape_string($username);
Esempio n. 2
0
$siteid = GetVariable("siteid");
$projectid = GetVariable("projectid");
$instanceid = GetVariable("instanceid");
$transactionid = GetVariable("transactionid");
$altuid = GetVariable("altuid");
$instance = GetVariable("instance");
$dataformat = GetVariable("dataformat");
$matchidonly = GetVariable("matchidonly");
$altuids = GetVariable("altuids");
$seriesnotes = GetVariable("seriesnotes");
switch ($action) {
    case 'UploadNonDICOM':
        UploadDICOM($uuid, $seriesnotes, $altuids, $anonymize, $dataformat, $equipmentid, $siteid, $projectid, $instanceid, $matchidonly, $transactionid);
        break;
    case 'UploadDICOM':
        UploadDICOM($uuid, $seriesnotes, $altuids, $anonymize, $dataformat, $equipmentid, $siteid, $projectid, $instanceid, $matchidonly, $transactionid);
        break;
    case 'getUID':
        GetUIDFromAltUID($altuid);
        break;
    case 'getInstanceList':
        GetInstanceList($u);
        break;
    case 'getProjectList':
        GetProjectList($u, $instance);
        break;
    case 'getSiteList':
        GetSiteList($u, $instance);
        break;
    case 'getEquipmentList':
        GetEquipmentList();
Esempio n. 3
0
			DisplayAssessmentForm($formid);
			break;
		case 'viewassessmentforms':
			DisplayAssessmentFormList();
			break;
		case 'importassessmentform':
			ImportAssessmentForm();
			break;
		case 'importassessmentdata':
			ImportAssessmentData($siteid,$projectid);
			break;
		case 'importmeasures':
			ImportMeasures($siteid,$projectid,$fileformat);
			break;
		case 'uploaddicom':
			UploadDICOM($siteid,$projectid,$anonymize,$permanent);
			break;
		case 'idmapper':
			DisplayIDMapperForm();
			break;
		case 'downloads':
			DisplayDownloads();
			break;
		case 'import':
			DisplayImportMenu();
			break;
		case 'mapids':
			MapIDs($idlist, $displayonlymatches);
			break;
		default:
			DisplayMenu();