Update the comments in some files

This commit is contained in:
Jonathan Ernst
2006-07-06 18:37:34 +00:00
committed by WineHQ
parent 54c484de8c
commit a34058b924
13 changed files with 205 additions and 102 deletions

View File

@@ -1,11 +1,24 @@
<?php
/*************************/
/* code to show an image */
/*************************/
/**
* Shows a thumbnail or a full size screenshot.
*
* Mandatory parameters:
* - iId, image identifier
*
* Optional parameters:
* - bThumbnail, "true" if we want to see a thumbnail, "false" otherwise
* - sREQUEST_METHOD
*
* TODO:
* - rename and document sREQUEST_METHOD
* - replace iId with iScreenshotId
* - replace require_once with require after checking that it doesn't break anything
*/
// application environment
include("path.php");
require(BASE."include/"."incl.php");
require_once(BASE."include/"."screenshot.php");
require(BASE."include/incl.php");
require_once(BASE."include/screenshot.php");
$aClean = array(); //array of filtered user input
@@ -13,12 +26,11 @@ $aClean['iId'] = makeSafe($_REQUEST['iId']);
$aClean['sREQUEST_METHOD'] = makeSafe($_REQUEST['sREQUEST_METHOD']);
$aClean['bThumbnail'] = makeSafe($_REQUEST['bThumbnail']);
/* an image doesn't have a link, so a cookie makes no sense */
// an image doesn't have a link, so a cookie makes no sense
header("Set-Cookie: ");
header("Pragma: ");
/* if the user isn't supposed to be viewing this image */
/* display an error message and exit */
// is the user supposed to be viewing this image ?
if(!$_SESSION['current']->canViewImage($aClean['iId']))
util_show_error_page("Insufficient privileges.");