Files
ICEcoder/processes/on-load.php
Matt Pass 2ea0ae8793 Die if not logged in to protect files
Avoids risk of them being run by visiting URL when not logged in
2014-10-18 21:09:32 +01:00

14 lines
279 B
PHP

<?php
if (!isset($_SESSION['loggedIn'])) {
die('Sorry, not logged in.');
}
?>
<!--
Purpose: This file is run when ICEcoder has loaded
Langs: Anything - PHP, JS etc
Example:
//-->
<script>
// top.ICEcoder.openFile('/index.html');
// alert('Thanks for using ICEcoder');
</script>