<?php
/**
* logout.php
*
* Copyright (c) 2004 Simon Newell <hide@address.com>
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* Allows an attachment of mime type application/document (.doc, .pdf, .sxw) to be
* opened and its contents displayed on browser.
*
* Do some cleaning up of graphic files created during conversion on user
* logout.
*
* @package plugins
* @subpackage attachment_doc
*/
/* Path for SquirrelMail required files. */
define('SM_PATH','../../../');
include_once(SM_PATH . 'functions/global.php');
include_once(SM_PATH . 'plugins/attachment_doc/includes/functions.php');
if (sqgetGlobalVar('username', $username, SQ_COOKIE) || sqgetGlobalVar('username', $username, SQ_POST) ||
sqgetGlobalVar('username', $username, SQ_GET)) {
die("Invalid request detected. Notify administrator.");
}
cleanup_doc($username);
?>