mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-05 00:04:00 +01:00
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:
9
processes/on-load.php
Normal file
9
processes/on-load.php
Normal 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>
|
||||
8
processes/on-user-login-fail.php
Normal file
8
processes/on-user-login-fail.php
Normal 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);
|
||||
?>
|
||||
8
processes/on-user-login.php
Normal file
8
processes/on-user-login.php
Normal 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);
|
||||
?>
|
||||
8
processes/on-user-logout.php
Normal file
8
processes/on-user-logout.php
Normal 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);
|
||||
?>
|
||||
8
processes/on-user-new.php
Normal file
8
processes/on-user-new.php
Normal 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);
|
||||
?>
|
||||
Reference in New Issue
Block a user