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);