Die if not logged in to protect files

Avoids risk of them being run by visiting URL when not logged in
This commit is contained in:
Matt Pass
2014-10-18 21:09:32 +01:00
parent ed08585867
commit 2ea0ae8793
8 changed files with 28 additions and 0 deletions

View File

@@ -1,4 +1,7 @@
<?php
if (!isset($_SESSION['loggedIn'])) {
die('Sorry, not logged in.');
}
// Purpose: This file is run after a bug check, has $result string and $status arrays available to it
// Langs: PHP only
// Example:

View File

@@ -1,3 +1,8 @@
<?php
if (!isset($_SESSION['loggedIn'])) {
die('Sorry, not logged in.');
}
?>
<!--
Purpose: This file is run when ICEcoder editor has loaded
Langs: Anything - PHP, JS etc

View File

@@ -1,4 +1,7 @@
<?php
if (!isset($_SESSION['loggedIn'])) {
die('Sorry, not logged in.');
}
// Purpose: This file is run when a user saves a file, has $file and $fileLoc strings available to it
// Langs: PHP only
// Example:

View File

@@ -1,3 +1,8 @@
<?php
if (!isset($_SESSION['loggedIn'])) {
die('Sorry, not logged in.');
}
?>
<!--
Purpose: This file is run when ICEcoder has loaded
Langs: Anything - PHP, JS etc

View File

@@ -1,4 +1,7 @@
<?php
if (!isset($_SESSION['loggedIn'])) {
die('Sorry, not logged in.');
}
// Purpose: This file is run when a login fail occurs
// Langs: PHP only
// Example:

View File

@@ -1,4 +1,7 @@
<?php
if (!isset($_SESSION['loggedIn'])) {
die('Sorry, not logged in.');
}
// Purpose: This file is run when a user logs in
// Langs: PHP only
// Example:

View File

@@ -1,4 +1,7 @@
<?php
if (!isset($_SESSION['loggedIn'])) {
die('Sorry, not logged in.');
}
// Purpose: This file is run when a user logs out
// Langs: PHP only
// Example:

View File

@@ -1,4 +1,7 @@
<?php
if (!isset($_SESSION['loggedIn'])) {
die('Sorry, not logged in.');
}
// Purpose: This file is run when a new user sets up
// Langs: PHP only
// Example: