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
February
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
November 2007
----- 2025 -----
February 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
3 participants
757 discussions
Start a n
N
ew thread
Maarten Lankhorst : dsound: Make AngleBetweenVectorsRad when vectors have no magnitude.
by Alexandre Julliard
12 Nov '07
12 Nov '07
Module: wine Branch: master Commit: 3f965d582fbcc7f6e596a61541b93a1286501706 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=3f965d582fbcc7f6e596a6154…
Author: Maarten Lankhorst <maarten(a)codeweavers.com> Date: Fri Nov 9 20:13:01 2007 +0100 dsound: Make AngleBetweenVectorsRad when vectors have no magnitude. --- dlls/dsound/sound3d.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/dlls/dsound/sound3d.c b/dlls/dsound/sound3d.c index db4390f..2397f52 100644 --- a/dlls/dsound/sound3d.c +++ b/dlls/dsound/sound3d.c @@ -110,6 +110,9 @@ static inline D3DVALUE AngleBetweenVectorsRad (const D3DVECTOR *a, const D3DVECT product = ScalarProduct (a,b); la = VectorMagnitude (a); lb = VectorMagnitude (b); + if (!la || !lb) + return 0; + cos = product/(la*lb); angle = acos(cos); TRACE("angle between (%f,%f,%f) and (%f,%f,%f) = %f radians (%f degrees)\n", a->x, a->y, a->z, b->x,
1
0
0
0
Maarten Lankhorst : dsound: Implement AngleBetweenVectorsDeg as a call to AngleBetweenVectorsRad.
by Alexandre Julliard
12 Nov '07
12 Nov '07
Module: wine Branch: master Commit: 545a774fccd2d66dba79a6319ebe4d207fef1c88 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=545a774fccd2d66dba79a6319…
Author: Maarten Lankhorst <maarten(a)codeweavers.com> Date: Fri Nov 9 20:12:09 2007 +0100 dsound: Implement AngleBetweenVectorsDeg as a call to AngleBetweenVectorsRad. --- dlls/dsound/sound3d.c | 24 ++++++------------------ 1 files changed, 6 insertions(+), 18 deletions(-) diff --git a/dlls/dsound/sound3d.c b/dlls/dsound/sound3d.c index cd64cc2..db4390f 100644 --- a/dlls/dsound/sound3d.c +++ b/dlls/dsound/sound3d.c @@ -102,8 +102,8 @@ static inline D3DVALUE RadToDeg (D3DVALUE angle) return newangle; } -/* angle between vectors - deg version */ -static inline D3DVALUE AngleBetweenVectorsDeg (const D3DVECTOR *a, const D3DVECTOR *b) +/* angle between vectors - rad version */ +static inline D3DVALUE AngleBetweenVectorsRad (const D3DVECTOR *a, const D3DVECTOR *b) { D3DVALUE la, lb, product, angle, cos; /* definition of scalar product: a*b = |a|*|b|*cos...therefore: */ @@ -112,26 +112,14 @@ static inline D3DVALUE AngleBetweenVectorsDeg (const D3DVECTOR *a, const D3DVECT lb = VectorMagnitude (b); cos = product/(la*lb); angle = acos(cos); - /* we now have angle in radians */ - angle = RadToDeg(angle); - TRACE("angle between (%f,%f,%f) and (%f,%f,%f) = %f degrees\n", a->x, a->y, a->z, b->x, - b->y, b->z, angle); + TRACE("angle between (%f,%f,%f) and (%f,%f,%f) = %f radians (%f degrees)\n", a->x, a->y, a->z, b->x, + b->y, b->z, angle, RadToDeg(angle)); return angle; } -/* angle between vectors - rad version */ -static inline D3DVALUE AngleBetweenVectorsRad (const D3DVECTOR *a, const D3DVECTOR *b) +static inline D3DVALUE AngleBetweenVectorsDeg (const D3DVECTOR *a, const D3DVECTOR *b) { - D3DVALUE la, lb, product, angle, cos; - /* definition of scalar product: a*b = |a|*|b|*cos...therefore: */ - product = ScalarProduct (a,b); - la = VectorMagnitude (a); - lb = VectorMagnitude (b); - cos = product/(la*lb); - angle = acos(cos); - TRACE("angle between (%f,%f,%f) and (%f,%f,%f) = %f radians\n", a->x, a->y, a->z, b->x, - b->y, b->z, angle); - return angle; + return RadToDeg(AngleBetweenVectorsRad(a, b)); } /* calculates vector between two points */
1
0
0
0
Paul Millar : libwine: Fix naked getuid() to allow compilation under MinGW.
by Alexandre Julliard
12 Nov '07
12 Nov '07
Module: wine Branch: master Commit: 8d571e28f1779c82ba91973dc540d0d7ec5ef867 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=8d571e28f1779c82ba91973dc…
Author: Paul Millar <paul(a)astro.gla.ac.uk> Date: Fri Nov 9 18:07:36 2007 +0100 libwine: Fix naked getuid() to allow compilation under MinGW. --- libs/wine/config.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/libs/wine/config.c b/libs/wine/config.c index 860cae2..eb187e5 100644 --- a/libs/wine/config.c +++ b/libs/wine/config.c @@ -230,7 +230,9 @@ static void init_paths(void) } } if (!S_ISDIR(st.st_mode)) fatal_error( "%s is not a directory\n", config_dir ); +#ifdef HAVE_GETUID if (st.st_uid != getuid()) fatal_error( "%s is not owned by you\n", config_dir ); +#endif init_server_dir( st.st_dev, st.st_ino ); }
1
0
0
0
Alexander Nicolaysen Sørnes : Fix comments display
by Chris Morgan
12 Nov '07
12 Nov '07
Module: appdb Branch: master Commit: eb75246a9e6b464e2671ab8ec183bad2b0992d63 URL:
http://source.winehq.org/git/appdb.git/?a=commit;h=eb75246a9e6b464e2671ab8e…
Author: Alexander Nicolaysen Sørnes <alex(a)thehandofagony.com> Date: Sun Nov 11 23:07:48 2007 +0100 Fix comments display --- include/comment.php | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/comment.php b/include/comment.php index 38d419e..63554bf 100644 --- a/include/comment.php +++ b/include/comment.php @@ -292,15 +292,15 @@ class Comment { $iVersionId = query_escape_string($iVersionId); $iParentId = query_escape_string($iParentId); - $sExtra = ""; - - $sOrderingMode = "DESC"; - /* NOTE: we must compare against NULL here because $iParentId of 0 is valid */ if($iParentId) { $sExtra = "AND parentId = '".$iParentId."' "; $sOrderingMode = "ASC"; + } else + { + $sExtra = "AND parentId = '0'"; + $sOrderingMode = "DESC"; } $sQuery = "SELECT from_unixtime(unix_timestamp(appComments.time), \"%W %M %D %Y, %k:%i\") as time, ".
1
0
0
0
Alexander Nicolaysen Sørnes : comment: Show newest threads first
by Chris Morgan
11 Nov '07
11 Nov '07
Module: appdb Branch: master Commit: 3aef9df655569a1bba7a75fe17aebd1ec6dfd40f URL:
http://source.winehq.org/git/appdb.git/?a=commit;h=3aef9df655569a1bba7a75fe…
Author: Alexander Nicolaysen Sørnes <alex(a)thehandofagony.com> Date: Sat Nov 10 19:19:23 2007 +0100 comment: Show newest threads first --- include/comment.php | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/include/comment.php b/include/comment.php index 0a85529..38d419e 100644 --- a/include/comment.php +++ b/include/comment.php @@ -294,15 +294,21 @@ class Comment { $sExtra = ""; + $sOrderingMode = "DESC"; + /* NOTE: we must compare against NULL here because $iParentId of 0 is valid */ - if($iParentId != NULL) + if($iParentId) + { $sExtra = "AND parentId = '".$iParentId."' "; + $sOrderingMode = "ASC"; + } $sQuery = "SELECT from_unixtime(unix_timestamp(appComments.time), \"%W %M %D %Y, %k:%i\") as time, ". "appComments.commentId, appComments.parentId, appComments.versionId, appComments.userId, appComments.subject, appComments.body, appVersion.appId ". "FROM appComments, appVersion WHERE appComments.versionId = appVersion.versionId AND appComments.versionId = '".$iVersionId."' ". $sExtra. - "ORDER BY appComments.time ASC"; + "ORDER BY appComments.time $sOrderingMode"; + $hResult = query_appdb($sQuery); return $hResult;
1
0
0
0
Alexander Nicolaysen Sørnes : Don' t include vendor names in searches
by Chris Morgan
11 Nov '07
11 Nov '07
Module: appdb Branch: master Commit: da4b3f638db157c5fc3de077c4e4ed5d60d43819 URL:
http://source.winehq.org/git/appdb.git/?a=commit;h=da4b3f638db157c5fc3de077…
Author: Alexander Nicolaysen Sørnes <alex(a)thehandofagony.com> Date: Sat Nov 10 17:20:53 2007 +0100 Don't include vendor names in searches --- include/util.php | 24 +----------------------- 1 files changed, 1 insertions(+), 23 deletions(-) diff --git a/include/util.php b/include/util.php index 4f6f546..5853a10 100644 --- a/include/util.php +++ b/include/util.php @@ -416,37 +416,15 @@ function searchForApplication($search_words) array_push($split_words, $value); } - $vendorIdArray = array(); - - /* find all of the vendors whos names or urls match words in our */ - /* search parameters */ - foreach ($split_words as $key=>$value) - { - $sQuery = "SELECT vendorId from vendor where vendorName LIKE '%?%' - OR vendorURL LIKE '%?%'"; - $hResult = query_parameters($sQuery, $value, $value); - while($oRow = query_fetch_object($hResult)) - { - array_push($vendorIdArray, $oRow->vendorId); - } - } - $search_words = str_replace(' ', '%', query_escape_string($search_words)); /* base query */ $sQuery = "SELECT * - FROM appFamily, vendor + FROM appFamily WHERE appName != 'NONAME' - AND appFamily.vendorId = vendor.vendorId AND appFamily.queued = 'false' AND (appName LIKE '%" . $search_words . "%' OR keywords LIKE '%" . $search_words . "%'"; - - /* append to the query any vendors that we matched with */ - foreach($vendorIdArray as $key=>$value) - { - $sQuery.=" OR appFamily.vendorId=".query_escape_string($value); - } $sQuery.=" ) ORDER BY appName";
1
0
0
0
Alexander Nicolaysen Sørnes : Use AppDB search when JavaScript is unavailable
by Chris Morgan
10 Nov '07
10 Nov '07
Module: appdb Branch: master Commit: 44d414d8960019d47fd82aa1e08445e99d2c1af5 URL:
http://source.winehq.org/git/appdb.git/?a=commit;h=44d414d8960019d47fd82aa1…
Author: Alexander Nicolaysen Sørnes <alex(a)thehandofagony.com> Date: Sat Nov 10 00:41:19 2007 +0100 Use AppDB search when JavaScript is unavailable --- include/sidebar.php | 28 ++++++++++++++++++++-------- 1 files changed, 20 insertions(+), 8 deletions(-) diff --git a/include/sidebar.php b/include/sidebar.php index 270adc1..4d43a0f 100644 --- a/include/sidebar.php +++ b/include/sidebar.php @@ -47,19 +47,31 @@ function app_search_box($q = '') // used in place of appdb specific search engine code // Chris Morgan <cmorgan(a)alum.wpi.edu> maintains // the search engine settings - $sSearchStr = ' + $shSearchStr = ' <!-- Google CSE Search Box Begins --> - <form id="searchbox_013271970634691685804:bc-56dvxydi" action="
http://appdb.winehq.org/search_results.php
"> - <input type="hidden" name="cx" value="013271970634691685804:bc-56dvxydi" /> - <input type="hidden" name="cof" value="FORID:11" /> - <input name="q" type="text" size="20" /> - <input type="submit" name="sa" value="Search" /> - </form> + <script type="text/javascript"> + document.write(\'<form id=\"searchbox_013271970634691685804:bc-56dvxydi\" action=\"
http://appdb.winehq.org/search_results.php\
">\') + document.write(\'<input type="hidden" name="cx" value="013271970634691685804:bc-56dvxydi" />\') + document.write(\'<input type=\"hidden\" name=\"cof" value=\"FORID:11\" />\') + document.write(\'<input name=\"q\" type=\"text\" size=\"20\" />\') + document.write(\'<input type=\"submit\" name=\"sa\" value=\"Search\" />\') + document.write(\'</form>\') + </script> <script type="text/javascript" src="
http://www.google.com/coop/cse/brand?form=searchbox_013271970634691685804%3…
"></script> <!-- Google CSE Search Box Ends --> '; + // Search dialog using our own search engine, displayed when + // JavaScript is unavailable + $shSearchStr .= ' + <noscript> + <form method="post" action="search.php"> + <input type="text" size="20" name="sSearchQuery" /> + <input type="submit" value="Search" /> + </form> + </noscript> +'; - return $sSearchStr; + return $shSearchStr; } ?>
1
0
0
0
Alexander Nicolaysen Sørnes : distribution: Fix spelling error
by Chris Morgan
10 Nov '07
10 Nov '07
Module: appdb Branch: master Commit: 4c06d4103300db7cf8a181073bb3fbd5e64be4b1 URL:
http://source.winehq.org/git/appdb.git/?a=commit;h=4c06d4103300db7cf8a18107…
Author: Alexander Nicolaysen Sørnes <alex(a)thehandofagony.com> Date: Fri Nov 9 23:28:01 2007 +0100 distribution: Fix spelling error --- include/distribution.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/distribution.php b/include/distribution.php index 9dc45f6..e82ab54 100644 --- a/include/distribution.php +++ b/include/distribution.php @@ -598,7 +598,7 @@ class distribution { if($this->aTestingIds) { - echo '<p><span class="title">Testing Results for '.$this->sName.'</span><br />',"\n"; + echo '<p><span class="title">Test Results for '.$this->sName.'</span><br />',"\n"; echo '<table width="100%" border="1">',"\n"; echo '<thead class="historyHeader">',"\n"; echo '<tr>',"\n";
1
0
0
0
Alexander Nicolaysen Sørnes : application: Show name as link if not queued
by Chris Morgan
10 Nov '07
10 Nov '07
Module: appdb Branch: master Commit: 8fa22a5d2643de651884739bdb54806ccd7e1267 URL:
http://source.winehq.org/git/appdb.git/?a=commit;h=8fa22a5d2643de651884739b…
Author: Alexander Nicolaysen Sørnes <alex(a)thehandofagony.com> Date: Fri Nov 9 23:16:08 2007 +0100 application: Show name as link if not queued --- include/application.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/application.php b/include/application.php index c2e2501..9d723dd 100644 --- a/include/application.php +++ b/include/application.php @@ -967,7 +967,7 @@ class Application { $oTableRow->AddTextCell(print_date(mysqldatetime_to_unixtimestamp($this->sSubmitTime))); $oTableRow->AddTextCell($oUser->objectMakeLink()); $oTableRow->AddTextCell($sVendor); - $oTableRow->AddTextCell($this->sName); + $oTableRow->AddTextCell(($this->sQueued == 'false') ? $this->objectMakeLink() : $this->sName); $oOMTableRow = new OMTableRow($oTableRow); return $oOMTableRow;
1
0
0
0
Alexander Nicolaysen Sørnes : Replace browse_newest_apps class using sorting
by Chris Morgan
10 Nov '07
10 Nov '07
Module: appdb Branch: master Commit: 7e66843cc4b54c7173fae83affd95129f53fd41a URL:
http://source.winehq.org/git/appdb.git/?a=commit;h=7e66843cc4b54c7173fae83a…
Author: Alexander Nicolaysen Sørnes <alex(a)thehandofagony.com> Date: Fri Nov 9 23:10:34 2007 +0100 Replace browse_newest_apps class using sorting --- include/application.php | 2 +- include/browse_newest_apps.php | 176 ---------------------------------------- include/sidebar.php | 4 +- objectManager.php | 1 - unit_test/test_om_objects.php | 7 -- 5 files changed, 3 insertions(+), 187 deletions(-) diff --git a/include/application.php b/include/application.php index 8449e6a..c2e2501 100644 --- a/include/application.php +++ b/include/application.php @@ -943,7 +943,7 @@ class Application { public static function objectGetSortableFields() { - return array("submitTime", "appName"); + return array('submitTime', 'appName', 'appId'); } public static function objectGetHeader() diff --git a/include/browse_newest_apps.php b/include/browse_newest_apps.php deleted file mode 100644 index b7b5ba8..0000000 --- a/include/browse_newest_apps.php +++ /dev/null @@ -1,176 +0,0 @@ -<?php - -// class lists the newest applications and versions in the database - -class browse_newest_apps -{ - var $iAppId; - - // constructor doesn't need to perform any queries. we provide a constructor for - // browse_newest_apps because the objectManager requires an instance for some methods - function browse_newest_apps($iAppId = null, $oRow = null) - { - if(!$iAppId && !$oRow) - return; - - if(!$oRow) - { - $this->iAppId = $iAppId; - } - - if($oRow) - { - $this->iAppId = $oRow->appId; - } - } - - function objectGetEntries($bQueued, $bRejected, $iRows = 0, $iStart = 0) - { - // We don't implement queues or rejected applications - if($bQueued || $bRejected) - return false; - - - // if row limit is 0 we want to fetch all rows - if(!$iRows) - { - $iRows = browse_newest_apps::objectGetEntriesCount($bQueued, $bRejected); - } - - $sQuery = "SELECT appId, appName, description, submitTime FROM appFamily WHERE". - " queued = '?' ORDER BY appId DESC LIMIT ?,?"; - - return query_parameters($sQuery, $bQueued ? "true" : "false", - $iStart, $iRows); - } - - function objectGetEntriesCount($bQueued, $bRejected) - { - // We don't implement queues or rejected applications - if($bQueued || $bRejected) - { - return 0; - } - - return application::objectGetEntriesCount($bQueued, $bRejected); - } - - function objectGetHeader() - { - $oTableRow = new TableRow(); - - $oTableCell = new TableCell("Submission Date"); - $oTableRow->AddCell($oTableCell); - - $oTableCell = new TableCell("Application"); - $oTableRow->AddCell($oTableCell); - - $oTableCell = new TableCell("Description"); - $oTableRow->AddCell($oTableCell); - - return $oTableRow; - } - - function objectGetTableRow() - { - $oApp = new application($this->iAppId); - - $oTableRow = new TableRow(); - - $oTableCell = new TableCell(print_short_date(mysqldatetime_to_unixtimestamp($oApp->sSubmitTime))); - $oTableCell->SetWidth("20%"); - $oTableRow->AddCell($oTableCell); - $oTableRow->AddTextCell($oApp->objectMakeLink()); - $oTableRow->AddTextCell(util_trim_description($oApp->sDescription)); - - // make the row clickable - $oTableRowClick = new TableRowClick($oApp->objectMakeUrl()); - $oTableRow->SetRowClick($oTableRowClick); - - $oOMTableRow = new OMTableRow($oTableRow); - return $oOMTableRow; - } - - function objectGetItemsPerPage($bQueued = false) - { - $aItemsPerPage = array(25, 50, 100, 200); - $iDefaultPerPage = 25; - return array($aItemsPerPage, $iDefaultPerPage); - } - - function objectGetChildren() - { - $oApp = new application($this->iAppId); - return $oApp->objectGetChildren(); - } - - function objectGetSubmitterId() - { - $oApp = new application($this->iAppId); - return $oApp->objectGetSubmitterId(); - } - - function objectGetMailOptions($sAction, $bMailSubmitter, $bParentAction) - { - $oApp = new application($this->iAppId); - return $oApp->objectGetMailOptions($sAction, $bMailSubmitter, $bParentAction); - } - - function objectGetMail($sAction, $bMailSubmitter, $bParentAction) - { - $oApp = new application($this->iAppId); - return $oApp->objectGetMail($sAction, $bMailSubmitter, $bParentAction); - } - - function objectGetId() - { - return $this->iAppId; - } - - // stub implementation - function allowAnonymousSubmissions() - { - return false; - } - - // stub canEdit() out, no one can edit these entries - function canEdit() - { - return false; - } - - // stub implementation - function display() - { - } - - // stub implementation - function outputEditor() - { - } - - // stub implementation - function getOutputEditorValues($aValues) - { - } - - // stub implementation - function objectMakeLink() - { - $oApp = new Application($this->iAppId); - return $oApp->objectMakeLink(); - } - - // stub implementation - function objectMakeUrl() - { - } - - // stub implementation - function mustBeQueued() - { - return false; - } -} - -?> diff --git a/include/sidebar.php b/include/sidebar.php index b24fcaf..270adc1 100644 --- a/include/sidebar.php +++ b/include/sidebar.php @@ -20,8 +20,8 @@ function global_sidebar_menu() $g = new htmlmenu("AppDB"); $g->add("Screenshots", BASE."viewScreenshots.php"); $g->add("Browse Apps", BASE."appbrowse.php"); - $g->add("Browse Newest Apps", BASE."objectManager.php?sClass=browse_newest_apps&". - "bIsQueue=false&sTitle=Newest%20apps"); + $g->add("Browse Newest Apps", BASE."objectManager.php?sClass=application&". + "bIsQueue=false&sTitle=Newest%20apps&sOrderBy=appId&bAscending=false"); $g->add("Downloadable Apps", BASE."browse_downloadable.php"); $g->add("Browse Apps by Rating", BASE."browse_by_rating.php"); $g->add("Top 25", BASE."votestats.php"); diff --git a/objectManager.php b/objectManager.php index d50fe6f..11f1e23 100644 --- a/objectManager.php +++ b/objectManager.php @@ -22,7 +22,6 @@ require_once(BASE.'include/objectManager.php'); require_once(BASE.'include/application_queue.php'); require_once(BASE.'include/version_queue.php'); require_once(BASE.'include/testData_queue.php'); -require_once(BASE.'include/browse_newest_apps.php'); require_once(BASE.'include/bugs.php'); /* if we have no valid class name we should abort */ diff --git a/unit_test/test_om_objects.php b/unit_test/test_om_objects.php index 82b018d..7e1695a 100644 --- a/unit_test/test_om_objects.php +++ b/unit_test/test_om_objects.php @@ -10,7 +10,6 @@ require_once(BASE.'include/maintainer.php'); require_once(BASE.'include/testData_queue.php'); require_once(BASE.'include/version_queue.php'); require_once(BASE.'include/application_queue.php'); -require_once(BASE.'include/browse_newest_apps.php'); require_once(BASE.'include/monitor.php'); require_once(BASE.'include/bugs.php'); @@ -28,11 +27,6 @@ function test_class($sClassName, $aTestMethods) return false; } - // TODO: work around for 'browse_newest_apps' class - // since we can't create a new database object of browse_newest_apps - if($sClassName == "browse_newest_apps") - return true; - /* Set up test user */ $sTestEmail = __FUNCTION__."@localhost.com"; $sTestPassword = "password"; @@ -275,7 +269,6 @@ function test_object_methods() $aTestClasses = array("application", "application_queue", - "browse_newest_apps", "bug", "distribution", "downloadurl",
1
0
0
0
← Newer
1
...
46
47
48
49
50
51
52
...
76
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
Results per page:
10
25
50
100
200