<?php
// +-------------------------------------------------------------------------+
// | File Management Plugin for Geeklog - by portalparts www.portalparts.com |
// +-------------------------------------------------------------------------+
// | Filemgmt plugin - version 1.5                                           |
// | Date: Mar 18, 2006                                                      |
// +-------------------------------------------------------------------------+
// | Copyright (C) 2004 by Consult4Hire Inc.                                 |
// | Author:                                                                 |
// | Blaine Lang                 -    blaine@portalparts.com                 |
// +-------------------------------------------------------------------------+
// | 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.                  |
// |                                                                         |
// | This program is distributed in the hope that it will be useful,         |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of          |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.                    |
// | See the GNU General Public License for more details.                    |
// |                                                                         |
// | You should have received a copy of the GNU General Public License       |
// | along with this program; if not, write to the Free Software Foundation, |
// | Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.         |
// |                                                                         |
// +-------------------------------------------------------------------------+
//

/* Include the Filemgmt Plugin configuration which defines Directories and URL's and options
This file is set via the Filemgmt Plugin Admin menu - Configuration settings.
The script reads and write to this file - thus needs to be a separate file.
*/

if (file_exists('filemgmt.php')) include ('filemgmt.php');

$CONF_FM['version'] = '1.6.0.jp3';

$_FM_CONF = array();
$_FM_CONF['version'] = '1.6.0.jp3';

$_FM_TABLES['filemgmt_cat']           = $_DB_table_prefix . 'filemgmt_category';
$_FM_TABLES['filemgmt_filedetail']    = $_DB_table_prefix . 'filemgmt_filedetail';
$_FM_TABLES['filemgmt_filedesc']      = $_DB_table_prefix . 'filemgmt_filedesc';
$_FM_TABLES['filemgmt_brokenlinks']   = $_DB_table_prefix . 'filemgmt_broken';
//$_FM_TABLES['filemgmt_modreq']        = $_DB_table_prefix . 'filemgmt_mod'; // No use ?
$_FM_TABLES['filemgmt_votedata']      = $_DB_table_prefix . 'filemgmt_votedata';
$_FM_TABLES['filemgmt_history']       = $_DB_table_prefix . 'filemgmt_downloadhistory';

$_TABLES['filemgmt_category']        = $_FM_TABLES['filemgmt_cat'];
$_TABLES['filemgmt_filedetail']      = $_FM_TABLES['filemgmt_filedetail'];
$_TABLES['filemgmt_filedesc']        = $_FM_TABLES['filemgmt_filedesc'];
$_TABLES['filemgmt_broken']          = $_FM_TABLES['filemgmt_brokenlinks'];
$_TABLES['filemgmt_votedata']        = $_FM_TABLES['filemgmt_votedata'];
$_TABLES['filemgmt_downloadhistory'] = $_FM_TABLES['filemgmt_history'];

// Permissions that will be used for new files into the repository
$filemgmtFilePermissions = (int) 0755;

// Number of days to show new files listing
$filemgmtWhatsNewPeriodDays = 14;
// String Length for Filename Titles in WhatsNewBlock
$filemgmtWhatsNewTitleLength = 20;
// Should the Whats New Block show new FileMgmt Comments
$filemgmt_showWhatsNewComments = true;

/* Configuration for the auto-rename or reject logic when users are submitted files for approval */
/* Map any extensions to a new extension or 'reject' if they should not be allowed  */
/* Any file type not listed will be uploaded using original file extension  */

$_FMDOWNLOAD  = array( 
    'php'   => 'phps',
    'pl'    => 'txt',
    'cgi'   => 'txt',
    'py'    => 'txt',
    'sh'    => 'txt',
    'exe'   => 'reject'
);

$CONF_FM['ignore_target'] = true;
$_FM_CONF['ignore_target'] = true;

// Send an email notification for a new submission
$_FM_CONF['notification'] = true;

// glmenu only use - for glmenu generated menus

$CONF_FILEMGMT['glmenutype'] = 'block';      // Set to block or header

$_FMDOWNLOAD['inconlib']    = array( 
        php => "php.gif",
        phps => "php.gif",
        bmp => "bmp.gif",
        gif => "gif.gif",
        jpg => "jpg.gif",
        html => "htm.gif",
        htm => "htm.gif",
        mov => "mov.gif",
        mp3 => "mp3.gif",
        pdf => "pdf.gif",
        ppt => "ppt.gif",
        tar => "zip.gif",
        gz  => "zip.gif",
        zip => "zip.gif",
        txt => "txt.gif",
        doc => "doc.gif",
        xls => "xls.gif",
        mpp => "mpp.gif",
        exe => "exe.gif",
        swf => "swf.gif",
        vsd => "visio.gif",
        none => "file.gif"
        );

?>