EHC Club Manager
file_view.php File Reference

Variables

 $allowed_roles
 
if(!in_array(true, $allowed_roles, true)) $document_id = filter_input(INPUT_GET, 'document_id', FILTER_VALIDATE_INT)
 
if(! $document_id) $mimeTypes
 
 $stmt = $mysqli->prepare("SELECT file_path, file_name FROM person_documents WHERE document_id = ?")
 
 $result = $stmt->get_result()
 

Variable Documentation

◆ $allowed_roles

$allowed_roles
Initial value:
= [
$EHC_ADMIN,
$READONLY
]

◆ $document_id

if (!in_array(true, $allowed_roles, true)) $document_id = filter_input(INPUT_GET, 'document_id', FILTER_VALIDATE_INT)

◆ $mimeTypes

if (! $document_id) $mimeTypes
Initial value:
= [
'jpg' => 'image/jpeg',
'jpeg' => 'image/jpeg',
'png' => 'image/png',
'pdf' => 'application/pdf'
]

◆ $result

$result = $stmt->get_result()

◆ $stmt

$stmt = $mysqli->prepare("SELECT file_path, file_name FROM person_documents WHERE document_id = ?")