Commit Graph

270 Commits

Author SHA1 Message Date
Chris Morgan
0aa7f26249 Switch from using htmlarea to using xinha. Clean up the use of the editor plugin 2005-09-30 02:48:33 +00:00
Tony Lambregts
2311d4d572 Add the ability for user to monitor changes to applications 2005-09-30 01:55:51 +00:00
Chris Morgan
a66ae25f38 Move deletion of maintainer logic into the user class. If the cleanup script wants to delete a user and can't, if they are a maintainer we should remove their maintainer status even if we don't delete their account. Send email at the start of the cleanup script to aid in debug 2005-09-30 01:37:57 +00:00
Chris Morgan
1a58863f78 Improve cleanup script to give users 1 month after warning before removing their account. Move user related logic into the user class. Add columns to the user_list table to track whether the user was warned about inactivity and the datetime of the warning. 2005-09-28 00:32:48 +00:00
Chris Morgan
5b846f81ac Fix screenshots for the top-X lists. We were passing a versionId as the first parameter of a function that expected an appId as the first parameter 2005-09-26 01:37:12 +00:00
Chris Morgan
2edc247c00 Make top-X lists version specific because only versions have ratings 2005-09-26 00:56:36 +00:00
Tony Lambregts
09ec082407 Add a page for viewing screenshots and a link to it from the sidebar 2005-09-25 23:55:06 +00:00
Jonathan Ernst
c609d3cf5b Check at run-time for GD 2.x or GD 1.x so we can start using GD 2.x with the new upgraded appdb server 2005-09-21 14:16:40 +00:00
Tony Lambregts
65c5e0e4b3 Fix bug in the rejection of versions that was only sending the maintainers the url to the requeued application if there was a rejection reason given. Add url to requeued application to rejected applications. 2005-09-21 01:26:10 +00:00
Chris Morgan
c44f818218 Send notification emails to admins when the cleanup cron job executes so there is some visibility into the maintenance tasks running on the appdb. Fix a minor bug in the user class where passing in (null,null) for iVendorId and iAppId results in a null query string being sent to mysql and triggering an error 2005-09-15 00:22:22 +00:00
Chris Morgan
58d4e45b08 Sort maintainers in adminMaintainers.php by their name. Add header for each maintainer that has a summary of the number of applications and versions they maintain 2005-08-25 03:24:31 +00:00
Chris Morgan
82c3000190 Sort applications that the user maintains alphabetically 2005-08-25 02:26:18 +00:00
Chris Morgan
07801e8b9e Comment replies were incorrectly adding duplicate emails for threads that contained multiple posts by the same author or if a maintainer was also an admin. Ensure that there are no duplicate email addresses using array_unique() 2005-08-24 01:36:12 +00:00
Chris Morgan
371327cb87 Fix User::getAppDataQuery() copy/paste bug that was causing super maintainers to not be able to process app data for applications they super maintain 2005-08-23 00:26:08 +00:00
Chris Morgan
16029378eb Fix two other places where $iVersionId was used instead of $this->iVersionId, one in the reject path and another in the delete path 2005-08-21 03:50:39 +00:00
Chris Morgan
d5ba04b634 Fix access of $iVersion inside of version class that should have been $this->iVersion 2005-08-21 02:07:41 +00:00
Tony Lambregts
b7f1d55472 Allow maintainers/administrators to reject an application submission instead of just deleting it 2005-08-15 03:44:03 +00:00
Chris Morgan
c8275c3096 Pass a default into User::getPref() when trying to retrieve the comments mode set so users with no comment mode set will default to 'threaded'. Otherwise these users won't see any comments. 2005-08-15 00:25:37 +00:00
Chris Morgan
c8b4caf151 Set defaults comments mode to threaded for new users 2005-08-15 00:17:54 +00:00
Chris Morgan
009cc6a55f Fix code indenting, change default non-logged in comment mode to threaded 2005-08-14 19:28:34 +00:00
Chris Morgan
c77e881999 Fix indenting. Remove use of $_SESSION[] inside of the class because we can simply use $this 2005-08-14 18:49:21 +00:00
Lukas Middendorf
691a199bd1 Search results were listing a number of versions that was counting versions that were still in the queue to be processed by appdb admins. Exclude queued versions from the count. 2005-08-14 17:27:08 +00:00
Tony Lambregts
fc2c9afdbc Use the correct (non-capitalized) name for resolution 2005-08-13 01:54:15 +00:00
Chris Morgan
1570a91d9d getMaintainersUserIdsFromAppIdVersionId() shouldn't return all supermaintainers when passed a versionId of 0 2005-08-13 01:45:42 +00:00
Tony Lambregts
df12143558 Fix display of no_screenshot.png image when there is no screenshot 2005-08-07 02:32:43 +00:00
Chris Morgan
0665823494 Remove words less than 4 letters from the normal searching path to reduce spurious matches 2005-08-06 03:53:08 +00:00
Chris Morgan
3a5b5f38da Use the correct object variables when printing acceptance/rejection emails so the application and version are actually displayed 2005-08-06 02:42:09 +00:00
Chris Morgan
639dd77d15 Let maintainers and super maintainers process the application versions and images submitted for applications they maintain 2005-08-05 22:07:41 +00:00
Chris Morgan
415ddb3654 Don't continue working on the bugzilla database if we were unable to connect to it 2005-08-01 20:53:44 +00:00
Chris Morgan
f6fe0a0cab If buglinks queries fail don't try to mysql_fetch_object() on the result 2005-08-01 03:57:32 +00:00
Chris Morgan
cc912964d6 Move some maintainer code into user class, don't let a user maintain
the same app more than once
2005-07-31 17:53:11 +00:00
Chris Morgan
4be7e90e66 user->isMaintainer() should return true if the user is a super maintainer of the application 2005-07-30 16:35:03 +00:00
Chris Morgan
f14d6a20ab Use the full path when calling move_uploaded_file() 2005-07-30 16:04:57 +00:00
Chris Morgan
5df2203821 Put single quotes around the application name/version name a comment is being deleted for 2005-07-30 15:36:15 +00:00
Tony Lambregts
6a8f8737f0 Add missing </form> to view_version_bugs() 2005-07-30 03:15:50 +00:00
Chris Morgan
cd6f9e8302 Remove 'game' from our search terms because many application descriptions use the word and searching for it returns erroneous results 2005-07-28 00:22:43 +00:00
Tony Lambregts
324ed66eae Fix situation where AppDB is not at DocumentRoot 2005-07-27 02:10:56 +00:00
Tony Lambregts
f8c64330a5 Add a generic function to make a clickable image 2005-07-26 03:53:16 +00:00
Tony Lambregts
860c6ee67a Add sidebar link for administrators to maintain buglinks 2005-07-20 02:31:13 +00:00
Tony Lambregts
01040ae536 Add some functions that will be used to maintain buglinks 2005-07-20 02:27:43 +00:00
Tony Lambregts
d71c45937e Hack a fix for "$this->iLinkId = mysql_insert_id();" not working
and other cleanups.
2005-07-16 20:02:17 +00:00
Tony Lambregts
c7d6988d4f Fix backlink to application/version when sending email 2005-07-13 03:44:38 +00:00
Tony Lambregts
7f49c5055e Modify the version object to include an array of bugs and use that array when deleting a version 2005-07-13 01:14:53 +00:00
Tony Lambregts
d42e47bd68 Create the buglink object 2005-07-13 01:13:46 +00:00
David Lee Lambert
4ddd5dc8c0 Send last modified information for images so the browser can use the cached version instead of re-downloading images each page refresh. 2005-07-10 02:22:21 +00:00
Jonathan Ernst
e645810d69 Fix missing application name when updating links 2005-07-05 04:00:39 +00:00
Chris Morgan
6ae3aa98fd When deleting a version or application the first thing deleted was the version
or application. Then each of the sub-objects like comments, notes etc were
deleted. This order is bad because it makes the database inconsistent, we
never want a comment/note/etc for a version that doesn't exist. Delete the
sub objects first and then the parent object.
2005-06-30 01:59:32 +00:00
Chris Morgan
3342c55772 Keep track of the appIds we've already output to the top X list. If we need
to fill the list in with applications that haven't received any votes make
sure we exclude the applications we've already output.
2005-06-25 03:44:39 +00:00
Chris Morgan
0f13fb4a38 Filter searches inside of searchForApplication() and
searchForApplicationFuzzy() so filtering occurs at the lowest possible level.
This fixes a bug where a list of duplicates an admin sees has the results
from an unfiltered search and may contain hundreds of extra applications.
2005-06-24 01:30:55 +00:00
Chris Morgan
4ab923935a Remove <br/> tags in screenshot anchor tags, there is an odd space between the screenshot and the text below it that appeared when the image was centered with <center> 2005-06-23 03:00:10 +00:00