[APPDB] Add new license.
Andrey Gusev
andrey.goosev at gmail.com
Mon Jan 9 15:45:51 CST 2017
---
include/version.php | 5 +++--
tables/appdb_tables.sql | 2 +-
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/include/version.php b/include/version.php
index e918a9c..2e34d1a 100644
--- a/include/version.php
+++ b/include/version.php
@@ -20,6 +20,7 @@ define("LICENSE_DEMO", "Demo");
define("LICENSE_RETAIL", "Retail");
define('LICENSE_FREETOUSE', 'Free to use');
define('LICENSE_FREETOSHARE', 'Free to use and share');
+define('LICENSE_STEAM', 'Steam');
/**
* Version class for handling versions.
@@ -1370,7 +1371,7 @@ EOT;
public static function getLicenses()
{
return array(LICENSE_RETAIL, LICENSE_OPENSOURCE, LICENSE_FREETOUSE,
- LICENSE_FREETOSHARE, LICENSE_DEMO, LICENSE_SHAREWARE);
+ LICENSE_FREETOSHARE, LICENSE_DEMO, LICENSE_SHAREWARE, LICENSE_STEAM);
}
// returns a string containing the html for a selection list
@@ -1404,7 +1405,7 @@ EOT;
public static function checkLicense($sLicense)
{
$aLicense = array(LICENSE_RETAIL, LICENSE_OPENSOURCE, LICENSE_FREETOUSE,
- LICENSE_FREETOSHARE, LICENSE_DEMO, LICENSE_SHAREWARE);
+ LICENSE_FREETOSHARE, LICENSE_DEMO, LICENSE_SHAREWARE, LICENSE_STEAM);
foreach($aLicense as $sElement)
{
diff --git a/tables/appdb_tables.sql b/tables/appdb_tables.sql
index 9fb4672..20239de 100644
--- a/tables/appdb_tables.sql
+++ b/tables/appdb_tables.sql
@@ -58,7 +58,7 @@ create table appVersion (
ratingRelease text,
submitTime datetime NOT NULL,
submitterId int(11) NOT NULL default '0',
- license enum('Retail','Open Source','Demo','Shareware','Free to use','Free to use and share'),
+ license enum('Retail','Open Source','Demo','Shareware','Free to use','Free to use and share','Steam'),
obsoleteBy int(11) NOT NULL default '0',
state enum('accepted','queued','rejected','pending','deleted') NOT NULL default 'accepted',
hasMaintainer enum('true','false') NOT NULL default 'false',
--
2.7.4
More information about the wine-patches
mailing list