From 224ba7dda02a766906622bf3d78aab64e18f4fac Mon Sep 17 00:00:00 2001 From: Simon Rit Date: Fri, 20 May 2011 09:32:54 +0200 Subject: [PATCH] Added adressing information because architecture does not provide this information on Windows --- vv/vvRegisterForm.cxx | 1 + vv/write.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/vv/vvRegisterForm.cxx b/vv/vvRegisterForm.cxx index e39ffdd..c25b253 100644 --- a/vv/vvRegisterForm.cxx +++ b/vv/vvRegisterForm.cxx @@ -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)); diff --git a/vv/write.php b/vv/write.php index a0f193e..18a9579 100644 --- a/vv/write.php +++ b/vv/write.php @@ -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(); -- 2.47.1