Let maintainers and super maintainers process the application versions and images submitted for applications they maintain

This commit is contained in:
Chris Morgan
2005-08-05 22:07:41 +00:00
committed by WineHQ
parent 415ddb3654
commit 639dd77d15
13 changed files with 290 additions and 72 deletions

View File

@@ -3,7 +3,7 @@
/* screenshot class and related functions */
/******************************************/
require(BASE."include/image.php");
require_once(BASE."include/image.php");
// load the watermark
$watermark = new image("/images/watermark.png");
@@ -128,11 +128,9 @@ class Screenshot {
*/
function delete($bSilent=false)
{
$sQuery = "DELETE FROM appData
WHERE id = ".$this->iScreenshotId."
AND type = 'image'
LIMIT 1";
if($hResult = query_appdb($sQuery))
/* the user object should delete the app data entry */
/* we can perform better permissions checking there */
if($_SESSION['current']->deleteAppData($this->iScreenshotId))
{
$this->oScreenshotImage->delete();
$this->oThumbnailImage->delete();