Location: PHPKode > projects > phlyMail Lite > phlymail/handlers/email/api_logout.php
<?php
/**
 * Called by core on logout
 * @package phlyMail Nahariya 4.0+, Branch MessageCenter
 * @subpackage Handler Email
 * @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'])
        && (!isset($_PM_['core']['logout_emptyjunk']) || !$_PM_['core']['logout_emptyjunk'])) {
    return;
}
require_once($_PM_['path']['handler'].'/email/fs.php');
$STOR = new email_storage($_SESSION['phM_uid']);
$STOR->init_folders(false);
if (isset($_PM_['core']['logout_emptytrash']) && $_PM_['core']['logout_emptytrash']) {
    $STOR->delete_mail(false, $STOR->get_folder_id_from_path('waste', true), false);
}
if (isset($_PM_['core']['logout_emptyjunk']) && $_PM_['core']['logout_emptyjunk']) {
    $STOR->delete_mail(false, $STOR->get_folder_id_from_path('junk', true), false);
}
unset($STOR);
?>
Return current item: phlyMail Lite