From 26fce69f0febcf35358e919ec562b7b85bd6efeb Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Thu, 23 Aug 2007 01:48:45 +0000 Subject: [PATCH] Require that users be logged in to submit screenshots. Display a login link on the screenshots page for users that aren't logged in so they know that if they login they'll be able to submit screenshots. --- screenshots.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/screenshots.php b/screenshots.php index dd47c40..e5a46c6 100644 --- a/screenshots.php +++ b/screenshots.php @@ -125,8 +125,9 @@ if($hResult && query_num_rows($hResult)) echo "
Please consider submitting a screenshot for the selected version yourself.

"; } -// let's show the screenshot uploading box -if($aClean['iVersionId']) +// let's show the screenshot uploading box, but only +// if the user is logged in +if($aClean['iVersionId'] && $_SESSION['current']->isLoggedIn()) { echo "

When submitting screenshots please ensure that the focus is on the application running inside Wine."; echo "
This means if the application is running in a window then please crop the image so that only the application is shown and not your desktop.

"; @@ -144,6 +145,10 @@ if($aClean['iVersionId']) echo '',"\n"; echo '',"\n"; echo '',"\n"; +} else // else let the person know that if they log in they can submit screenshots +{ + echo '
'; + echo "Log in to submit screenshots
\n"; } echo html_back_link(1);