winehq.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2025
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
January
2003
December
November
October
September
August
July
June
May
April
March
February
January
2002
December
November
October
September
August
July
June
May
April
March
February
January
2001
December
November
October
September
August
July
June
May
April
March
February
List overview
wine-commits
January 2007
----- 2025 -----
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
4 participants
893 discussions
Start a n
N
ew thread
appdb/ ./vendorview.php include/vendor.php
by WineHQ
31 Jan '07
31 Jan '07
ChangeSet ID: 30920 CVSROOT: /opt/cvs-commit Module name: appdb Changes by: wineowner(a)winehq.org 2007/01/30 20:24:54 Modified files: . : vendorview.php include : vendor.php Log message: Alexander Nicolaysen Sørnes <alex(a)thehandofagony.com> Add and use vendor::objectOutputHeader() and vendor::objectGetEntries() Patch:
http://cvs.winehq.org/patch.py?id=30920
Old revision New revision Changes Path 1.25 1.26 +3 -11 appdb/vendorview.php 1.11 1.12 +28 -0 appdb/include/vendor.php Index: appdb/vendorview.php diff -u -p appdb/vendorview.php:1.25 appdb/vendorview.php:1.26 --- appdb/vendorview.php:1.25 31 Jan 2007 2:24:54 -0000 +++ appdb/vendorview.php 31 Jan 2007 2:24:54 -0000 @@ -45,21 +45,13 @@ else apidb_header("View Vendors"); //get available vendors - $hResult = query_parameters("SELECT vendorId FROM vendor ORDER BY vendorName, vendorId;"); + $hResult = vendor::objectGetEntries(false); // show vendorlist echo "<table width='100%' border=0 cellpadding=3 cellspacing=0>\n\n"; - echo '<tr class="color4">',"\n"; - echo '<td>Vendor name</td>',"\n"; - echo '<td>Vendor\'s Web Page</td>',"\n"; - echo '<td align="right">linked Apps</td>',"\n"; - if ($_SESSION['current']->hasPriv("admin")) - { - echo '<td align="center">Action</td>',"\n"; - } - echo '</tr>',"\n"; - + vendor::objectOutputHeader("color4"); + $c = 1; while($oRow = mysql_fetch_object($hResult)) { Index: appdb/include/vendor.php diff -u -p appdb/include/vendor.php:1.11 appdb/include/vendor.php:1.12 --- appdb/include/vendor.php:1.11 31 Jan 2007 2:24:54 -0000 +++ appdb/include/vendor.php 31 Jan 2007 2:24:54 -0000 @@ -140,6 +140,34 @@ class Vendor { echo "</table>\n"; } + function objectGetEntries($bQueued) + { + /* Vendor queueing is not implemented yet */ + if($bQueued) + return NULL; + + $hResult = query_parameters("SELECT * FROM vendor + ORDER BY vendorName"); + + if(!$hResult) + return FALSE; + + return $hResult; + } + + function objectOutputHeader($sClass = "") + { + $sCells = array( + "Name", + "Website", + array("Linked apps", "align=\"right\"")); + + if(vendor::canEdit()) + $sCells[sizeof($sCells)] = "Action"; + + echo html_tr($sCells, $sClass); + } + function canEdit() { if($_SESSION['current']->hasPriv("admin"))
1
0
0
0
appdb/ ./distributionView.php include/distribu ...
by WineHQ
31 Jan '07
31 Jan '07
ChangeSet ID: 30919 CVSROOT: /opt/cvs-commit Module name: appdb Changes by: wineowner(a)winehq.org 2007/01/30 20:18:18 Modified files: . : distributionView.php include : distribution.php Log message: Alexander Nicolaysen Sørnes <alex(a)thehandofagony.com> Add and use distribution::display() Patch:
http://cvs.winehq.org/patch.py?id=30919
Old revision New revision Changes Path 1.24 1.25 +2 -73 appdb/distributionView.php 1.9 1.10 +77 -1 appdb/include/distribution.php Index: appdb/distributionView.php diff -u -p appdb/distributionView.php:1.24 appdb/distributionView.php:1.25 --- appdb/distributionView.php:1.24 31 Jan 2007 2:18:18 -0000 +++ appdb/distributionView.php 31 Jan 2007 2:18:18 -0000 @@ -43,7 +43,7 @@ if(!$oDistribution->iDistributionId) { $oDistribution = distribution::ObjectGetInstanceFromRow($oRow); - $oDistribution->display(($c % 2) ? "color0" : "color1"); + $oDistribution->objectOutputTableRow(($c % 2) ? "color0" : "color1"); } echo "</table>\n\n"; echo html_frame_end(" "); @@ -57,78 +57,7 @@ else apidb_header("View Distribution"); echo html_frame_start("Distribution Information",500); - echo "Distribution Name:"; - - if($oDistribution->sUrl) - echo "<a href='".$oDistribution->sUrl."'>"; - - echo $oDistribution->sName; - - if ($oDistribution->sUrl) - { - echo " (".$oDistribution->sUrl.")"; - echo "</a> <br />\n"; - } else - { - echo "<br />\n"; - } - - if($oDistribution->aTestingIds) - { - echo '<p><span class="title">Testing Results for '.$oDistribution->sName.'</span><br />',"\n"; - echo '<table width="100%" border="1">',"\n"; - echo '<thead class="historyHeader">',"\n"; - echo '<tr>',"\n"; - echo '<td>Application Version</td>',"\n"; - echo '<td>Submitter</td>',"\n"; - echo '<td>Date Submitted</td>',"\n"; - echo '<td>Wine version</td>',"\n"; - echo '<td>Installs?</td>',"\n"; - echo '<td>Runs?</td>',"\n"; - echo '<td>Rating</td>',"\n"; - echo '</tr></thead>',"\n"; - foreach($oDistribution->aTestingIds as $iTestingId) - { - $oTest = new testData($iTestingId); - $oVersion = new Version($oTest->iVersionId); - $oApp = new Application($oVersion->iAppId); - $oSubmitter = new User($oTest->iSubmitterId); - $bgcolor = $oTest->sTestedRating; - - /* make sure the user can view the versions we list in the table */ - /* otherwise skip over displaying the entries in this table */ - if(!$_SESSION[current]->canViewApplication($oApp)) - continue; - if(!$_SESSION[current]->canViewVersion($oVersion)) - continue; - - echo '<tr class='.$bgcolor.'>',"\n"; - echo '<td><a href="'.BASE.'appview.php?iVersionId='.$oTest->iVersionId.'&iTestingId='.$oTest->iTestingId.'">',"\n"; - echo $oApp->sName.' '.$oVersion->sName.'</a></td>',"\n"; - echo '<td>',"\n"; - if($_SESSION['current']->isLoggedIn()) - { - echo $oSubmitter->sEmail ? "<a href=\"mailto:".$oSubmitter->sEmail."\">":""; - echo $oSubmitter->sRealname; - echo $oSubmitter->sEmail ? "</a>":""; - } - else - echo $oSubmitter->sRealname; - echo '</td>',"\n"; - echo '<td>'.date("M d Y", mysqltimestamp_to_unixtimestamp($oTest->sSubmitTime)).'</td>',"\n"; - echo '<td>'.$oTest->sTestedRelease.' </td>',"\n"; - echo '<td>'.$oTest->sInstalls.' </td>',"\n"; - echo '<td>'.$oTest->sRuns.' </td>',"\n"; - echo '<td>'.$oTest->sTestedRating.' </td>',"\n"; - if ($_SESSION['current']->hasAppVersionModifyPermission($oVersion)) - { - echo '<td><a href="'.BASE.'admin/adminTestResults.php?sSub=view&iTestingId='.$oTest->iTestingId.'">',"\n"; - echo 'Edit</a></td>',"\n"; - } - echo '</tr>',"\n"; - } - echo '</table>',"\n"; - } + $oDistribution->display(); echo html_frame_end(); echo html_back_link(1); Index: appdb/include/distribution.php diff -u -p appdb/include/distribution.php:1.9 appdb/include/distribution.php:1.10 --- appdb/include/distribution.php:1.9 31 Jan 2007 2:18:18 -0000 +++ appdb/include/distribution.php 31 Jan 2007 2:18:18 -0000 @@ -464,7 +464,7 @@ class distribution { return new distribution($oRow->distributionId); } - function display($sClass = "") + function objectOutputTableRow($sClass = "") { $aCells = array( "<a href=\"".BASE."distributionView.php?iDistributionId=". @@ -496,6 +496,82 @@ class distribution { return FALSE; } + + function display() + { + echo "Distribution Name:"; + + if($this->sUrl) + echo "<a href='".$this->sUrl."'>"; + + echo $this->sName; + + if ($this->sUrl) + { + echo " (".$this->sUrl.")"; + echo "</a> <br />\n"; + } else + { + echo "<br />\n"; + } + + if($this->aTestingIds) + { + echo '<p><span class="title">Testing Results for '.$this->sName.'</span><br />',"\n"; + echo '<table width="100%" border="1">',"\n"; + echo '<thead class="historyHeader">',"\n"; + echo '<tr>',"\n"; + echo '<td>Application Version</td>',"\n"; + echo '<td>Submitter</td>',"\n"; + echo '<td>Date Submitted</td>',"\n"; + echo '<td>Wine version</td>',"\n"; + echo '<td>Installs?</td>',"\n"; + echo '<td>Runs?</td>',"\n"; + echo '<td>Rating</td>',"\n"; + echo '</tr></thead>',"\n"; + foreach($this->aTestingIds as $iTestingId) + { + $oTest = new testData($iTestingId); + $oVersion = new Version($oTest->iVersionId); + $oApp = new Application($oVersion->iAppId); + $oSubmitter = new User($oTest->iSubmitterId); + $bgcolor = $oTest->sTestedRating; + + /* make sure the user can view the versions we list in the table */ + /* otherwise skip over displaying the entries in this table */ + if(!$_SESSION[current]->canViewApplication($oApp)) + continue; + if(!$_SESSION[current]->canViewVersion($oVersion)) + continue; + + echo '<tr class='.$bgcolor.'>',"\n"; + echo '<td><a href="'.BASE.'appview.php?iVersionId='.$oTest->iVersionId.'&iTestingId='.$oTest->iTestingId.'">',"\n"; + echo $oApp->sName.' '.$oVersion->sName.'</a></td>',"\n"; + echo '<td>',"\n"; + if($_SESSION['current']->isLoggedIn()) + { + echo $oSubmitter->sEmail ? "<a href=\"mailto:".$oSubmitter->sEmail."\">":""; + echo $oSubmitter->sRealname; + echo $oSubmitter->sEmail ? "</a>":""; + } + else + echo $oSubmitter->sRealname; + echo '</td>',"\n"; + echo '<td>'.date("M d Y", mysqltimestamp_to_unixtimestamp($oTest->sSubmitTime)).'</td>',"\n"; + echo '<td>'.$oTest->sTestedRelease.' </td>',"\n"; + echo '<td>'.$oTest->sInstalls.' </td>',"\n"; + echo '<td>'.$oTest->sRuns.' </td>',"\n"; + echo '<td>'.$oTest->sTestedRating.' </td>',"\n"; + if ($_SESSION['current']->hasAppVersionModifyPermission($oVersion)) + { + echo '<td><a href="'.BASE.'admin/adminTestResults.php?sSub=view&iTestingId='.$oTest->iTestingId.'">',"\n"; + echo 'Edit</a></td>',"\n"; + } + echo '</tr>',"\n"; + } + echo '</table>',"\n"; + } + } } ?>
1
0
0
0
appdb/ ./vendorview.php include/vendor.php
by WineHQ
31 Jan '07
31 Jan '07
ChangeSet ID: 30918 CVSROOT: /opt/cvs-commit Module name: appdb Changes by: wineowner(a)winehq.org 2007/01/30 20:16:54 Modified files: . : vendorview.php include : vendor.php Log message: Alexander Nicolaysen Sørnes <alex(a)thehandofagony.com> Add and use vendor::display() Patch:
http://cvs.winehq.org/patch.py?id=30918
Old revision New revision Changes Path 1.24 1.25 +1 -22 appdb/vendorview.php 1.10 1.11 +28 -1 appdb/include/vendor.php Index: appdb/vendorview.php diff -u -p appdb/vendorview.php:1.24 appdb/vendorview.php:1.25 --- appdb/vendorview.php:1.24 31 Jan 2007 2:16:54 -0000 +++ appdb/vendorview.php 31 Jan 2007 2:16:54 -0000 @@ -33,28 +33,7 @@ if($oVendor->iVendorId) apidb_header("View Vendor"); echo html_frame_start("Vendor Information",500); - echo 'Vendor Name: '.$oVendor->sName,"\n"; - if($_SESSION['current']->hasPriv("admin")) - { - echo ' [<a href="'.apidb_fullurl("admin/editVendor.php").'?iVendorId='.$oVendor->iVendorId.'">edit</a>]',"\n"; - } - - echo '<br />',"\n"; - if ($oVendor->sWebpage) - echo 'Vendor URL: <a href="'.$oVendor->sWebpage.'">'.$oVendor->sWebpage.'</a> <br />',"\n"; - - - if($oVendor->aApplicationsIds) - { - echo '<br />Applications by '.$oVendor->sName.'<br /><ol>',"\n"; - foreach($oVendor->aApplicationsIds as $iAppId) - { - $oApp = new Application($iAppId); - echo '<li> <a href="appview.php?iAppId='.$oApp->iAppId.'">'.$oApp->sName.'</a> </li>',"\n"; - } - echo '</ol>',"\n"; - } - + $oVendor->display(); echo html_frame_end(); echo html_back_link(1); Index: appdb/include/vendor.php diff -u -p appdb/include/vendor.php:1.10 appdb/include/vendor.php:1.11 --- appdb/include/vendor.php:1.10 31 Jan 2007 2:16:54 -0000 +++ appdb/include/vendor.php 31 Jan 2007 2:16:54 -0000 @@ -148,11 +148,38 @@ class Vendor { return FALSE; } - function getOutputEditorValues($aClean) + function getOutputEditorValues($aClean) { $this->sName = $aClean['sVendorName']; $this->sWebpage = $aClean['sVendorWebpage']; } + + function display() + { + echo 'Vendor Name: '.$this->sName,"\n"; + if($this->canEdit()) + { + echo "[<a href=\"".BASE."admin/editVendor.php?iVendorId=$this->iVendorId\">edit</a>]"; + } + + echo '<br />',"\n"; + if ($this->sWebpage) + echo 'Vendor URL: <a href="'.$this->sWebpage.'">'. + $this->sWebpage.'</a> <br />',"\n"; + + + if($this->aApplicationsIds) + { + echo '<br />Applications by '.$this->sName.'<br /><ol>',"\n"; + foreach($this->aApplicationsIds as $iAppId) + { + $oApp = new Application($iAppId); + echo '<li> <a href="appview.php?iAppId='.$oApp->iAppId.'">'. + $oApp->sName.'</a> </li>',"\n"; + } + echo '</ol>',"\n"; + } + } } /* Get the total number of Vendors in the database */
1
0
0
0
appdb/include distribution.php
by WineHQ
30 Jan '07
30 Jan '07
ChangeSet ID: 30917 CVSROOT: /opt/cvs-commit Module name: appdb Changes by: wineowner(a)winehq.org 2007/01/29 18:46:55 Modified files: include : distribution.php Log message: Alexander Nicolaysen Sørnes <alex(a)thehandofagony.com> Fix capitalization of some methods of distribution class Patch:
http://cvs.winehq.org/patch.py?id=30917
Old revision New revision Changes Path 1.8 1.9 +2 -2 appdb/include/distribution.php Index: appdb/include/distribution.php diff -u -p appdb/include/distribution.php:1.8 appdb/include/distribution.php:1.9 --- appdb/include/distribution.php:1.8 30 Jan 2007 0:46:55 -0000 +++ appdb/include/distribution.php 30 Jan 2007 0:46:55 -0000 @@ -425,7 +425,7 @@ class distribution { echo "</select>\n"; } - function ObjectOutputHeader($sClass = "") + function objectOutputHeader($sClass = "") { $aCells = array( "Distribution name", @@ -438,7 +438,7 @@ class distribution { echo html_tr($aCells, $sClass); } - function ObjectGetEntries($bQueued) + function objectGetEntries($bQueued) { if($bQueued) {
1
0
0
0
appdb/include distribution.php
by WineHQ
30 Jan '07
30 Jan '07
ChangeSet ID: 30916 CVSROOT: /opt/cvs-commit Module name: appdb Changes by: wineowner(a)winehq.org 2007/01/29 18:46:05 Modified files: include : distribution.php Log message: Alexander Nicolaysen Sørnes <alex(a)thehandofagony.com> Only display delete link for distributions without any associated test data Patch:
http://cvs.winehq.org/patch.py?id=30916
Old revision New revision Changes Path 1.7 1.8 +6 -4 appdb/include/distribution.php Index: appdb/include/distribution.php diff -u -p appdb/include/distribution.php:1.7 appdb/include/distribution.php:1.8 --- appdb/include/distribution.php:1.7 30 Jan 2007 0:46: 5 -0000 +++ appdb/include/distribution.php 30 Jan 2007 0:46: 5 -0000 @@ -474,12 +474,14 @@ class distribution { if($this->canEdit()) { + if(!sizeof($this->aTestingIds)) + { + $sDelete = " [<a href='".$_SERVER['PHP_SELF']."?sSub=delete&". + "iDistributionId=$this->iDistributionId'>delete</a>]"; + } $aCells[3] = array( "[<a href='".BASE."admin/editDistribution.php?iDistributionId=". - $this->iDistributionId."'>edit</a>]". - (!sizeof($this->aTestingIds)) ? - " [<a href='".$_SERVER['PHP_SELF']."?sSub=delete&". - "iDistributionId=$this->iDistributionId'>delete</a>]" : "", + $this->iDistributionId."'>edit</a>]$sDelete", "align=\"center\""); }
1
0
0
0
appdb/include distribution.php
by WineHQ
30 Jan '07
30 Jan '07
ChangeSet ID: 30915 CVSROOT: /opt/cvs-commit Module name: appdb Changes by: wineowner(a)winehq.org 2007/01/29 18:43:33 Modified files: include : distribution.php Log message: Alexander Nicolaysen Sørnes <alex(a)thehandofagony.com> Return true on sucess in distribution::delete() Patch:
http://cvs.winehq.org/patch.py?id=30915
Old revision New revision Changes Path 1.6 1.7 +2 -0 appdb/include/distribution.php Index: appdb/include/distribution.php diff -u -p appdb/include/distribution.php:1.6 appdb/include/distribution.php:1.7 --- appdb/include/distribution.php:1.6 30 Jan 2007 0:43:33 -0000 +++ appdb/include/distribution.php 30 Jan 2007 0:43:33 -0000 @@ -162,6 +162,8 @@ class distribution { $this->SendNotificationMail("delete"); $this->mailSubmitter("delete"); + + return true; }
1
0
0
0
appdb/ ./appsubmit.php admin/adminAppQueue.php ...
by WineHQ
28 Jan '07
28 Jan '07
ChangeSet ID: 30914 CVSROOT: /opt/cvs-commit Module name: appdb Changes by: wineowner(a)winehq.org 2007/01/28 17:28:15 Modified files: . : appsubmit.php admin : adminAppQueue.php editVendor.php include : application.php vendor.php Log message: Alexander Nicolaysen Sørnes <alex(a)thehandofagony.com> Don't use arguments for vendor::create() and vendor::update() Patch:
http://cvs.winehq.org/patch.py?id=30914
Old revision New revision Changes Path 1.63 1.64 +11 -8 appdb/appsubmit.php 1.72 1.73 +4 -2 appdb/admin/adminAppQueue.php 1.17 1.18 +2 -1 appdb/admin/editVendor.php 1.89 1.90 +2 -2 appdb/include/application.php 1.9 1.10 +33 -16 appdb/include/vendor.php
1
0
0
0
appdb/. browse_downloadable.php
by WineHQ
27 Jan '07
27 Jan '07
ChangeSet ID: 30913 CVSROOT: /opt/cvs-commit Module name: appdb Changes by: wineowner(a)winehq.org 2007/01/27 17:44:00 Modified files: . : browse_downloadable.php Log message: Alexander Nicolaysen Sørnes <alex(a)thehandofagony.com> Hide queued version in the downloadable apps list Patch:
http://cvs.winehq.org/patch.py?id=30913
Old revision New revision Changes Path 1.2 1.3 +3 -2 appdb/browse_downloadable.php Index: appdb/browse_downloadable.php diff -u -p appdb/browse_downloadable.php:1.2 appdb/browse_downloadable.php:1.3 --- appdb/browse_downloadable.php:1.2 27 Jan 2007 23:44: 0 -0000 +++ appdb/browse_downloadable.php 27 Jan 2007 23:44: 0 -0000 @@ -24,7 +24,7 @@ $sQuery = "SELECT DISTINCT appFamily.app appVersion.versionName, appVersion.versionId, appFamily.description FROM appFamily, appVersion, appData WHERE appData.type = '?' AND appData.versionId = appVersion.versionId - AND appFamily.appId = appVersion.appId"; + AND appFamily.appId = appVersion.appId AND appVersion.queued = 'false'"; if(!$sLicense) $hResult = query_parameters($sQuery, "downloadurl"); @@ -86,7 +86,8 @@ $sQuery = "SELECT DISTINCT appFamily.app appVersion.versionName, appVersion.versionId, appFamily.description FROM appFamily, appVersion, appData WHERE appData.type = '?' AND appData.versionId = appVersion.versionId - AND appFamily.appId = appVersion.appId "; + AND appFamily.appId = appVersion.appId + AND appVersion.queued = 'false' "; if(!$sLicense) {
1
0
0
0
appdb/unit_test test_application.php test_main ...
by WineHQ
27 Jan '07
27 Jan '07
ChangeSet ID: 30912 CVSROOT: /opt/cvs-commit Module name: appdb Changes by: wineowner(a)winehq.org 2007/01/27 16:58:58 Modified files: unit_test : test_application.php test_maintainer.php test_url.php Log message: Alexander Nicolaysen Sørnes <alex(a)thehandofagony.com> Cleanup after unit tests Patch:
http://cvs.winehq.org/patch.py?id=30912
Old revision New revision Changes Path 1.4 1.5 +2 -0 appdb/unit_test/test_application.php 1.5 1.6 +2 -0 appdb/unit_test/test_maintainer.php 1.1 1.2 +2 -2 appdb/unit_test/test_url.php Index: appdb/unit_test/test_application.php diff -u -p appdb/unit_test/test_application.php:1.4 appdb/unit_test/test_application.php:1.5 --- appdb/unit_test/test_application.php:1.4 27 Jan 2007 22:58:58 -0000 +++ appdb/unit_test/test_application.php 27 Jan 2007 22:58:58 -0000 @@ -197,6 +197,8 @@ function test_application_getWithRating( return false; } + delete_app_and_user($oApp, $oUser); + return true; } Index: appdb/unit_test/test_maintainer.php diff -u -p appdb/unit_test/test_maintainer.php:1.5 appdb/unit_test/test_maintainer.php:1.6 --- appdb/unit_test/test_maintainer.php:1.5 27 Jan 2007 22:58:58 -0000 +++ appdb/unit_test/test_maintainer.php 27 Jan 2007 22:58:58 -0000 @@ -302,6 +302,8 @@ function test_superMaintainerOnAppSubmit Maintainer::deleteMaintainer($oUser, $iAppId); + $oApp->delete(); + return true; } Index: appdb/unit_test/test_url.php diff -u -p appdb/unit_test/test_url.php:1.1 appdb/unit_test/test_url.php:1.2 --- appdb/unit_test/test_url.php:1.1 27 Jan 2007 22:58:58 -0000 +++ appdb/unit_test/test_url.php 27 Jan 2007 22:58:58 -0000 @@ -14,8 +14,7 @@ function test_url_update() $bSuccess = true; // default to success until we detect failure /* Log in */ - $oUser = new User(); - if($retval = $oUser->login($test_email, $test_password) != SUCCESS) + if(!$oUser = create_and_login_user()) { echo "Received '$retval' instead of SUCCESS('".SUCCESS."')."; return FALSE; @@ -61,6 +60,7 @@ function test_url_update() } $oUrl->delete(TRUE); + $oUser->delete(); return $bSuccess; }
1
0
0
0
appdb/ ./browse_downloadable.php include/versi ...
by WineHQ
27 Jan '07
27 Jan '07
ChangeSet ID: 30911 CVSROOT: /opt/cvs-commit Module name: appdb Changes by: wineowner(a)winehq.org 2007/01/27 16:58:12 Modified files: . : browse_downloadable.php include : version.php Log message: Alexander Nicolaysen Sørnes <alex(a)thehandofagony.com> Allow filtering by license when browsing downloadable apps Patch:
http://cvs.winehq.org/patch.py?id=30911
Old revision New revision Changes Path 1.1 1.2 +42 -10 appdb/browse_downloadable.php 1.102 1.103 +14 -0 appdb/include/version.php Index: appdb/browse_downloadable.php diff -u -p appdb/browse_downloadable.php:1.1 appdb/browse_downloadable.php:1.2 --- appdb/browse_downloadable.php:1.1 27 Jan 2007 22:58:12 -0000 +++ appdb/browse_downloadable.php 27 Jan 2007 22:58:12 -0000 @@ -9,6 +9,9 @@ require(BASE."include/incl.php"); apidb_header("Browse Downloadable Applications"); +/* Match specific license? */ +$sLicense = version::checkLicense($aClean['sLicense']); + /* Set default values */ if(!$aClean['iNumVersions'] || $aClean['iNumVersions'] > 200 || $aClean['iNumVersions'] < 0) $aClean['iNumVersions'] = 25; @@ -17,12 +20,19 @@ if(!$aClean['iPage']) $aClean['iPage'] = 1; /* Count the possible matches */ -$hResult = query_parameters("SELECT DISTINCT appFamily.appName, +$sQuery = "SELECT DISTINCT appFamily.appName, appVersion.versionName, appVersion.versionId, appFamily.description FROM appFamily, appVersion, appData WHERE appData.type = '?' AND appData.versionId = appVersion.versionId - AND appFamily.appId = appVersion.appId", - "downloadurl"); + AND appFamily.appId = appVersion.appId"; + +if(!$sLicense) + $hResult = query_parameters($sQuery, "downloadurl"); +else +{ + $sQuery .= " AND license = '?'"; + $hResult = query_parameters($sQuery, "downloadurl", $sLicense); +} if($hResult && mysql_num_rows($hResult)) $num = mysql_num_rows($hResult); @@ -58,16 +68,38 @@ foreach($numVersionsArray as $i) echo "</select>\n"; +echo "<b>Filter by license</b>\n"; +$oVersion = new Version(); +echo $oVersion->makeLicenseList($sLicense); + echo " <input type=\"submit\" value=\"Refresh\" />\n"; echo "</form></div>\n<br />\n"; -$hResult = query_parameters("SELECT DISTINCT appFamily.appName, - appVersion.versionName, appVersion.versionId, appFamily.description - FROM appFamily, appVersion, appData - WHERE appData.type = '?' AND appData.versionId = appVersion.versionId - AND appFamily.appId = appVersion.appId - ORDER BY appFamily.appName LIMIT ?, ?", - "downloadurl", $iLimitLower, $aClean['iNumVersions']); +if(!$num) +{ + echo "<div align=\"center\"><font color=\"red\">No matches found</font></div>\n"; + echo html_frame_end(" "); + exit; +} + +$sQuery = "SELECT DISTINCT appFamily.appName, + appVersion.versionName, appVersion.versionId, appFamily.description + FROM appFamily, appVersion, appData + WHERE appData.type = '?' AND appData.versionId = appVersion.versionId + AND appFamily.appId = appVersion.appId "; + +if(!$sLicense) +{ + $sQuery .= "ORDER BY appFamily.appName LIMIT ?, ?"; + $hResult = query_parameters($sQuery, "downloadurl", $iLimitLower, + $aClean['iNumVersions']); +} else +{ + $sQuery .= "AND license = '?' ORDER BY appFamily.appName LIMIT ?, ?"; + $hResult = query_parameters($sQuery, + "downloadurl", $sLicense, $iLimitLower, + $aClean['iNumVersions']); +} if($hResult && mysql_num_rows($hResult)) { Index: appdb/include/version.php diff -u -p appdb/include/version.php:1.102 appdb/include/version.php:1.103 --- appdb/include/version.php:1.102 27 Jan 2007 22:58:12 -0000 +++ appdb/include/version.php 27 Jan 2007 22:58:12 -0000 @@ -1121,6 +1121,20 @@ class Version { return $sReturn; } + /* In order to prevent MySQL injections. Returns matched license */ + function checkLicense($sLicense) + { + $aLicense = array(LICENSE_RETAIL, LICENSE_OPENSOURCE, LICENSE_FREEWARE, + LICENSE_DEMO, LICENSE_SHAREWARE); + + foreach($aLicense as $sElement) + { + if($sLicense == $sElement) + return $sElement; + } + + return FALSE; + } } ?>
1
0
0
0
← Newer
1
2
3
4
...
90
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
Results per page:
10
25
50
100
200