From: John W. <jo...@wo...> - 2006-01-30 04:35:27
|
i don't know php, but the patch work for me, i use 0.9x version with this patch, it will empty trash folder, when logout --------------------------------------------------------------- --- source/login.php.orig=09Tue Mar 22 11:55:13 2005 +++ source/login.php=09Mon Jan 30 12:23:09 2006 @@ -42,6 +42,15 @@ =20 =09=09if (!$loginID || !$host) header("Location: index.php"); =20 +=09=09/* DELETE_TRASH when logout */ +=09=09if ($my_prefs["delete_trash"] && !empty($my_prefs["trash_name"])){ +=09=09=09$conn =3D iil_Connect($host, $loginID, $password, $AUTH_MODE); +=09=09=09if ($conn) { +=09=09=09=09iil_C_ClearFolder($conn, $my_prefs["trash_name"]); +=09=09=09=09iil_Close($conn); +=09=09=09} +=09=09} + =09=09//close session =09=09include("../include/session_close.inc"); =09=09sess_close($user); ----------------------------------------------------------------------------- |