mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-03 07:13:59 +01:00
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:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user