]> Creatis software - clitk.git/commitdiff
Added adressing information because architecture does not provide this
authorSimon Rit <simon.rit@creatis.insa-lyon.fr>
Fri, 20 May 2011 07:32:54 +0000 (09:32 +0200)
committerSimon Rit <simon.rit@creatis.insa-lyon.fr>
Fri, 20 May 2011 07:32:54 +0000 (09:32 +0200)
information on Windows

vv/vvRegisterForm.cxx
vv/write.php

index e39ffddadd9faf50f80befbab7f6b679927107d6..c25b253c22154a1a6c1311cf38bdfc269069c392 100644 (file)
@@ -40,6 +40,7 @@ void vvRegisterForm::sendData(){
   url2.addQueryItem("os", osName->text().toUtf8());
   url2.addQueryItem("vvVersion", VV_VERSION);
   url2.addQueryItem("architecture", ARCHITECTURE);
+  url2.addQueryItem("adressing", QString::number(sizeof(char*)*8)+"-bit");
   url2.addQueryItem("compilationDate", QString(__DATE__) + ", " + QString(__TIME__) );
 
   manager->get(QNetworkRequest(url2));
index a0f193efca6d86f5a4b9964c01707ba1d320d2b9..18a9579fcbcd1043b5fdce36417fcf59c9d4709c 100644 (file)
@@ -11,6 +11,7 @@ define('OS_LENGTH', 20);
 define('VV_VERSION_LENGTH', 30);
 define('COUNTRY_LENGTH', 30); 
 define('ARCHITECTURE_LENGTH',10);
+define('ADRESSING_LENGTH',10);
 define('COMPILATION_DATE_LENGTH', 30); 
 function ensureString($var, $length){
   $var = str_replace("\n", '',$var);
@@ -30,6 +31,7 @@ $data['vvVersion']= ensureString($_GET['vvVersion'], VV_VERSION_LENGTH);
 $data['time']    = date("F j, Y, g:i a");
 $data['geoloc']          = ensureString(file_get_contents('http://api.hostip.info/country.php?ip='.$_SERVER['REMOTE_ADDR']), COUNTRY_LENGTH);
 $data['architecture'] = ensureString($_GET['architecture'], ARCHITECTURE_LENGTH);
+$data['adressing'] = ensureString($_GET['adressing'], ADRESSING_LENGTH);
 $data['compilationDate'] = ensureString($_GET['compilationDate'], COMPILATION_DATE_LENGTH);
 writeLine($file, $data);
 fclose();