--- source/login.php.orig	Tue Mar 22 11:55:13 2005
+++ source/login.php	Mon Jan 30 12:23:09 2006
@@ -42,6 +42,15 @@
 
 		if (!$loginID || !$host) header("Location: index.php");
 
+		/* DELETE_TRASH when logout */
+		if ($my_prefs["delete_trash"] && !empty($my_prefs["trash_name"])){
+			$conn = iil_Connect($host, $loginID, $password, $AUTH_MODE);
+			if ($conn) {
+				iil_C_ClearFolder($conn, $my_prefs["trash_name"]);
+				iil_Close($conn);
+			}
+		}
+
 		//close session
 		include("../include/session_close.inc");
 		sess_close($user);
