Chris Morgan
a651a3cdf3
Modify query_error() to log errors to a database table instead of displaying them on the screen. This should
...
let us more easily debug difficult or intermittent issues that users may not report. Add a cron to report logged
errors to appdb admins every night. Implement some basic unit tests for the new error logging code
2006-07-19 16:37:54 +00:00
Chris Morgan
2976ff9833
Fix centering of screenshot images on application/version pages
2006-07-19 00:54:56 +00:00
Chris Morgan
2ef31edf05
Fix voting(again) by changing all variables to use the new naming scheme
2006-07-19 00:11:40 +00:00
Chris Morgan
71f963b04c
Remove some unused functions from html.php
2006-07-19 00:11:11 +00:00
Jonathan Ernst
3a61131ffd
Trim 's' and 'sh' variables in filter.php so we correctly convert variable values with spaces into "" strings
2006-07-18 02:42:57 +00:00
Chris Morgan
0019810922
Rename include/db.php to include/query.php, all of the functions in db.php were named query_*(). Rename test_db.php to
...
test_query.php to match the rename of include/db.php. Modify include/incl.php to include query.php instead of db.php
2006-07-17 20:56:07 +00:00
Chris Morgan
a41a3577ce
Remove the application created to perform the unit test so we don't 'leak' dummy applications
2006-07-17 20:41:18 +00:00
Chris Morgan
8bdf80982f
Fix table name case difference 'Appversion' -> 'appVersion' that was breaking a query
2006-07-16 17:37:23 +00:00
Chris Morgan
0b9a5b4e94
Merge appMaintainerQueue table into appMaintainers table. This simplifies the handling of queued vs.
...
unqueued maintainers and removes a table from the database
2006-07-16 16:53:08 +00:00
Tony Lambregts
ed2cbe739d
Stop allowing anonymous test results
2006-07-16 05:39:56 +00:00
Chris Morgan
ed0c692744
Exclude GPC values that start with 'Dialog', these are used by Xinha and we don't want to modify that code. Also exclude
...
PHPSESSID, this is a convenience for developers as php uses this key for its default session management and we really don't
mind if it is defined or not as we use our own session handlers
2006-07-15 05:16:37 +00:00
Tony Lambregts
e1711a2cdb
Show additional comments when viewing test data in application version
2006-07-14 01:48:46 +00:00
Tony Lambregts
ccbb2a14fc
Include link to app and version when displaying a list of test results
2006-07-14 01:32:04 +00:00
Jonathan Ernst
a4e384604b
Fix missing reply text by renaming replyText to sReplyText
2006-07-13 18:54:10 +00:00
Chris Morgan
04e7fa9906
Rename include/testResults.php to include/testData.php to match the name of the class
...
inside of the file.
2006-07-12 00:29:35 +00:00
Chris Morgan
916517e6f5
Ensure that session.gc_probability is 1 and set session.gc_divisor to something reasonable for a reasonably
...
heavily accessed site like appdb. This change solves the mystery of why we had millions of unexpired sessions
in session_list and should make the session_list cron cleanup job superfluous.
2006-07-11 20:35:43 +00:00
Jonathan Ernst
53ed5725b4
Stop copying variables, update comments
2006-07-11 19:26:14 +00:00
Chris Morgan
ec77d82734
Clean up variable naming in query_parameters()
2006-07-11 19:25:16 +00:00
Chris Morgan
069a51fba8
Clean up category class. Move category related functions into the class and remove now extranious
...
$catId parameter from category::display()
2006-07-11 18:53:06 +00:00
Chris Morgan
457f7cc34b
Move distribution related functions into distribution class and combine getNumberOfDistributions() and
...
getNumberOfQueuedDistributions() by passing in a $bQueued flag
2006-07-11 17:02:35 +00:00
Chris Morgan
9adf7e5592
Clean up appimage code removing a bunch of redundant code and removing a query for each image that is actually output
...
to the browser
2006-07-11 03:48:40 +00:00
Chris Morgan
1587e8d0b4
Remove unused lookupVendorName()
2006-07-11 03:47:00 +00:00
Chris Morgan
88dde93132
Speed up outputTopXRowAppsFromRating() by earlying out if we have enough applications to fill our required amount.
...
This saves a database query for each top X table. Also rename $num_apps to $iNum_apps
2006-07-11 03:41:57 +00:00
Chris Morgan
4db25a90ad
Add a 'back' link at the top of the page. Switch to using html_back_link() to keep the displayed text
...
uniform, we were missing the '<<' before 'Back'
2006-07-11 03:39:18 +00:00
Chris Morgan
160f739da8
Screenshot class cleanups. Move screenshot related functions into the class. Rename get_screenshot_img() to
...
get_random_screenshot_img() so the name of the function matches its purpose
2006-07-11 03:37:07 +00:00
Chris Morgan
d831939a07
Fix case of sWebpage to let updating of application class information correctly update the applications web page.
2006-07-10 23:02:03 +00:00
Jeremy Newman
219b5ac09c
enable zlib output compression from PHP
2006-07-10 20:49:46 +00:00
Chris Morgan
d6f7ddd17b
appVersion table should have an index on appId field as we frequently query this table
...
using appId
2006-07-10 16:32:05 +00:00
Chris Morgan
0d8de67fd9
Eliminate redundant parameters from testData function
2006-07-10 15:42:00 +00:00
Chris Morgan
cd5a620d88
testData class cleanup. Move some test related functions into the class as
...
static functions. Clean up some variable names.
2006-07-10 15:39:21 +00:00
Chris Morgan
5f4998194a
Screenshot class optimization. Defer creation of thumbnail and screenshot images until values are necessary.
...
This greatly speeds up the loading of the main page as we create screenshot objects to check their other internal
parameters and not output their images.
2006-07-10 15:18:08 +00:00
Tony Lambregts
6405eeafa4
Show tested rating and use its color when displaying the list of test results
2006-07-10 03:46:48 +00:00
Tony Lambregts
43a49d462a
Fix editing of a users administrative rights
2006-07-10 02:21:47 +00:00
Tony Lambregts
5b1d16da69
Require include/application.php to get the name of the application for email
2006-07-09 22:59:42 +00:00
Tony Lambregts
dab95ccdb1
Fix spelling of iPage in redirect
2006-07-09 22:57:44 +00:00
Tony Lambregts
9a52b37760
Fix a comment
2006-07-09 22:56:14 +00:00
Tony Lambregts
77170ab9dd
Sort test results by rating
2006-07-09 06:08:00 +00:00
Chris Morgan
97c96b2448
Fix commentview.php, missed an instance of view_app_comments() -> Comment::view_app_comments()
2006-07-09 01:36:17 +00:00
Chris Morgan
0a9f8cc155
Performance improvements to version and application classes. Reduce the amount of queries to
...
what is necessary during object creation. The only use of all but one of the arrays we were fetching
during version and application construction was in ::delete() so we can just retrieve them there.
Speed screenshot class up by only querying for necessary columns, not select *
2006-07-09 00:48:33 +00:00
Chris Morgan
d06cba3977
appimage should use the image sUrl instead of the iId when trying to stat() the file. We can't always be sure
...
that the iId will be the name of the file
2006-07-09 00:39:43 +00:00
Tony Lambregts
0cf64d78e0
Fix moving version to existing application, variable wasn't prefixed correctly
2006-07-08 22:45:40 +00:00
Chris Morgan
95cb27dc69
Fix variable naming in adminMaintainerQueue.php to match the current naming convention
2006-07-08 22:12:08 +00:00
Chris Morgan
07e2dab8f8
Pass $iTestingId into Version::display() instead of reading it from $_REQUEST. We don't want
...
classes to depend on $_REQUEST if possible
2006-07-08 22:10:56 +00:00
Chris Morgan
763ad58bcf
Move function in include/comment.php inside of the comment class. This lets us refer to
...
these functions like Comment:: making it clear they are static functions of the comment class
2006-07-08 22:09:14 +00:00
Chris Morgan
f05c05864e
Pass input arrays into GetOutputEditoValues() and CheckOutputEditorInput(). We don't want
...
classes to be hardcoded to read directly from $_REQUEST
2006-07-08 22:06:28 +00:00
Chris Morgan
4708101f01
Add cron cleanup function to purge expired sessions from session_list table
2006-07-08 21:49:49 +00:00
Tony Lambregts
edcbd98b9e
Fix backward compatibility for bug ids. bug_id from bugzilla is the bug number not the internal buglinkid
2006-07-08 19:05:28 +00:00
Chris Morgan
2092d65827
Fix incorrect include, should be 'bugs.php' not 'bug.php'
2006-07-08 19:03:38 +00:00
Chris Morgan
88817c58b6
Revert test result filtering changes until we can figure out how to deal with xinha variable names
...
that don't match our internal ones
2006-07-08 05:02:22 +00:00
Chris Morgan
84d3f076f7
Variable is $iAppId, not $appId
2006-07-07 19:24:33 +00:00