Files
oc-server3/htdocs/lib/eventhandler.inc.php
2012-08-16 21:04:13 +02:00

63 lines
1.4 KiB
PHP

<?php
/****************************************************************************
./lib/eventhandler.inc.php
-------------------
begin : Mon June 28 2004
For license information see doc/license.txt
****************************************************************************/
/****************************************************************************
Unicode Reminder メモ
handler for events like a new cache post or a new log post
add in the function all neccessary actions to refresh static files
****************************************************************************/
function delete_statpic($userid)
{
$userid = $userid + 0;
// data changed - delete statpic of user, if exists - will be recreated on next request
if (file_exists('./images/statpics/statpic'.$userid.'.jpg'))
{
unlink('./images/statpics/statpic'.$userid.'.jpg');
}
}
function event_new_cache($userid)
{
delete_statpic($userid);
}
function event_new_log($cacheid, $userid)
{
delete_statpic($userid);
}
function event_change_log_type($cacheid, $userid)
{
delete_statpic($userid);
}
function event_remove_log($cacheid, $userid)
{
delete_statpic($userid);
}
function event_edit_cache($cacheid, $userid)
{
delete_statpic($userid);
}
function event_change_statpic($userid)
{
delete_statpic($userid);
}
function event_notify_new_cache($cache_id)
{
}
?>