diff --git a/include/version.php b/include/version.php
index 3ea9e3a..dda91f0 100644
--- a/include/version.php
+++ b/include/version.php
@@ -36,6 +36,7 @@ class version {
var $sTestedRating;
var $sSubmitTime;
var $iSubmitterId;
+ var $iqsysId;
private $sState;
var $sLicense;
var $aTestResults; /* Array of test result objects. Especially useful when
@@ -83,6 +84,7 @@ class version {
$this->sState = $oRow->state;
$this->sLicense = $oRow->license;
$this->iObsoleteBy = $oRow->obsoleteBy;
+ $this->iqsysId = $oRow->qsysId;
}
}
@@ -104,12 +106,12 @@ class version {
$hResult = query_parameters("INSERT INTO appVersion
(versionName, description, ratingRelease,
rating, appId, submitTime, submitterId,
- state, license)
- VALUES ('?', '?', '?', '?', '?', ?, '?', '?', '?')",
+ state, license, qsysId)
+ VALUES ('?', '?', '?', '?', '?', ?, '?', '?', '?', '?')",
$this->sName, $this->sDescription, $this->sTestedRelease,
$this->sTestedRating, $this->iAppId, "NOW()",
$_SESSION['current']->iUserId, $this->sState,
- $this->sLicense);
+ $this->sLicense, $this->iqsysId);
if($hResult)
{
@@ -249,6 +251,16 @@ class version {
}
}
+ if($this->iqsysId && ($this->iqsysId!=$oVersion->iqsysId))
+ {
+ if(!query_parameters("UPDATE appVersion SET qsysId = '?' WHERE versionId = '?'",
+ $this->iqsysId, $this->iVersionId))
+ return FALSE;
+
+ $sWhatChanged .= "System was changed from $oVersion->iqsysId to ".
+ "$this->iqsysId.\n\n";
+ }
+
if($this->objectGetState() != $oVersion->objectGetState())
query_parameters("UPDATE appVersion SET state = '?' WHERE versionId = '?'", $this->objectGetState(), $this->objectGetId());
@@ -574,13 +586,13 @@ class version {
{
$sMsg = html_frame_start("Mark as obsolete", "90%", "", 0);
- $sMsg .= "Some applications need to be updated from time to time in order to ";
+ /*$sMsg .= "Some applications need to be updated from time to time in order to ";
$sMsg .= "be of any use. An example is online multi-player games, where you need ";
$sMsg .= "to be running a version compatible with the server. ";
$sMsg .= "If this is such an application, and this version is no longer usable, ";
$sMsg .= "you can mark it as obsolete and move its current votes to a usable ";
$sMsg .= "version instead.
";
-
+*/
$sMsg .= $sContent;
$sMsg .= html_frame_end();
@@ -657,6 +669,17 @@ class version {
$oTableRow->AddTextCell($this->makeLicenseList());
+ $oTable->AddRow($oTableRow);
+
+ // QEMU system
+ $oTableRow = new TableRow();
+ $oTableCell = new TableCell("System");
+ $oTableCell->SetBold(true);
+ $oTableCell->SetClass("color0");
+ $oTableRow->AddCell($oTableCell);
+
+ $oTableRow->AddTextCell($this->makeSystemsList());
+
$oTable->AddRow($oTableRow);
// version description
@@ -738,6 +761,7 @@ class version {
$this->sName = $aValues['sVersionName'];
$this->sDescription = $aValues['shVersionDescription'];
$this->sLicense = $aValues['sLicense'];
+ $this->iqsysId = $avalue['iqsysId'];
$this->iMaintainerRequest = $aValues['iMaintainerRequest'];
if($aValues['bObsolete'] == "true")
@@ -903,7 +927,7 @@ class version {
// rating Area
echo "