Location: PHPKode > projects > phlyMail Lite > phlymail/handlers/files/api_logout.php
<?php
/**
 * Called by core on logout
 * @package phlyMail Nahariya 4.0+, Branch MessageCenter
 * @subpackage Hanlder Files
 * @copyright 2004-2009 phlyLabs, Berlin (http://phlylabs.de)
 * @version 0.0.3 2009-11-14
 */
// Only valid within phlyMail
if (!defined('_IN_PHM_')) die();

if ((!isset($_PM_['core']['logout_emptytrash']) || !$_PM_['core']['logout_emptytrash'])) {
    return;
}
require_once($_PM_['path']['handler'].'/files/fs.php');
$FS = new files_storage($_SESSION['phM_uid']);
$FS->init_folders(false);
if (isset($_PM_['core']['logout_emptytrash']) && $_PM_['core']['logout_emptytrash']) {
    $FS->delete_item(false, $FS->get_folder_id_from_path('waste', true), false);
}
unset($FS);
?>
Return current item: phlyMail Lite