Viewing file: files.inc.php (1.32 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/*
############################################################################
# DWmail
# - version 4.0
# - Copyright (c) 2003-2006 Dominion Web Design
# - http://www.dominion-web.com/products/dwmail/
############################################################################
#
# The contents of this file are subject to the DWmail License version
# 2.2 ('License'). You may not use this file except in compliance with
# the License. You may obtain a copy of the License at
# http://www.dominion-web.com/products/dwmail/license.php
# Software distributed under the License is distributed on an "AS IS" basis,
# without warranty of any kind, either express or implied.
#
# This code is Copyright (c) 2003-2006 Dominion Web Design.
# All rights reserved.
#
# This software may not be redistributed outside the terms of the
# license agreement.
#
############################################################################
*/
function attachmentIcons($mimetype) {
$mimetype = str_replace('/', '_', $mimetype);
$mimetype = str_replace('..', '', $mimetype);
$mimetype = strip_tags($mimetype);
if (file_exists('./images/icons/' . $mimetype . '.gif')) {
$icongra = 'images/icons/' . $mimetype . '.gif';
}
else {
$icongra = './images/icons/unknown.gif';
}
return $icongra;
}
?>
|