ThatsNasu / Fiae-DE

Webpage for the users / members of the FIAE-D / FIAE-E classes 2021.
https://fiaede.bitbite.dev
4 stars 1 forks source link

request_uri check #63

Closed ThatsNasu closed 2 years ago

ThatsNasu commented 2 years ago

add checks if files / pages are called directly, since some pages might not work if called directly, due to missing class definitions, which are loaded in index.php

netcodedev commented 2 years ago

($_SERVER["REQUEST_URI"] == str_replace("\\","/",substr(__FILE__, strlen($_SERVER['DOCUMENT_ROOT']))))