Location: PHPKode > projects > NetOffice > netoffice/includes/files_types.php
<?php // $Revision: 1.4 $
/* vim: set expandtab ts=4 sw=4 sts=4: */

/**
 * $Id: files_types.php,v 1.4 2003/10/28 22:40:46 madbear Exp $
 * 
 * Copyright (c) 2003 by the NetOffice developers
 * 
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 */

function file_info_type($extension)
{
    global $type;

    switch ($extension) {
        case 'doc':$type = 'doc.gif';
            break;
        case 'mdb':$type = 'mdb.gif';
            break;
        case 'ppt':$type = 'ppt.gif';
            break;
        case 'xls':$type = 'xls.gif';
            break;

        case 'pdf':$type = 'pdf.gif';
            break;
        case 'ai':$type = 'ai.gif';
            break;
        case 'eps':$type = 'ai.gif';
            break;
        case 'ttf':$type = 'ttf.gif';
            break;

        case 'gif':$type = 'gif.gif';
            break;
        case 'jpg':$type = 'jpg.gif';
            break;
        case 'png':$type = 'png.gif';
            break;
        case 'psd':$type = 'psd.gif';
            break;

        case 'txt':$type = 'txt.gif';
            break;

        case 'js':$type = 'js.gif';
            break;

        case 'htm':$type = 'htm.gif';
            break;
        case 'html':$type = 'htm.gif';
            break;

        case 'php':$type = 'php.gif';
            break;
        case 'php3':$type = 'php.gif';
            break;

        case 'zip':$type = 'zip.gif';
            break;
        case 'rar':$type = 'rar.gif';
            break;

        case 'swf':$type = 'swf.gif';
            break;
        case 'rm':$type = 'rm.gif';
            break;

        default:$type = 'fic.gif';
    } 

    return $type;
} 

?>
Return current item: NetOffice