Processes added

Files added to put custom processes into, including events for:
load, login fail, login, logout and new user
This commit is contained in:
Matt Pass
2013-05-31 20:14:54 +01:00
parent 5576c9e2e9
commit 95dbad842d
5 changed files with 41 additions and 0 deletions

9
processes/on-load.php Normal file
View File

@@ -0,0 +1,9 @@
<!--
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>

View File

@@ -0,0 +1,8 @@
<?php
// Purpose: This file is run when a login fail occurs
// Langs: PHP only
// Example:
// $fh = fopen(dirname(__FILE__)."/../user-access.log", 'a');
// fwrite($fh, "FAIL ".date("D dS M Y h:i:sa").": ".$_POST['username']."\n");
// fclose($fh);
?>

View File

@@ -0,0 +1,8 @@
<?php
// Purpose: This file is run when a user logs in
// Langs: PHP only
// Example:
// $fh = fopen(dirname(__FILE__)."/../user-access.log", 'a');
// fwrite($fh, "login ".date("D dS M Y h:i:sa").": ".$_SESSION['username']."\n");
// fclose($fh);
?>

View File

@@ -0,0 +1,8 @@
<?php
// Purpose: This file is run when a user logs out
// Langs: PHP only
// Example:
// $fh = fopen(dirname(__FILE__)."/../user-access.log", 'a');
// fwrite($fh, "logout ".date("D dS M Y h:i:sa").": ".$_SESSION['username']."\n");
// fclose($fh);
?>

View File

@@ -0,0 +1,8 @@
<?php
// Purpose: This file is run when a new user sets up
// Langs: PHP only
// Example:
// $fh = fopen(dirname(__FILE__)."/../user-access.log", 'a');
// fwrite($fh, "NEW >>> ".date("D dS M Y h:i:sa").": ".$_SESSION['username']."\n");
// fclose($fh);
?>