<?php
$modversion['name'] = "ギャラリー";
$modversion['version'] = "1.252J";
$modversion['description'] = "XoopsGallery日本語版1.2.4 based on Gallery 1.3.3 module with XOOPS commenting feature plus Smarty templates";
$modversion['author'] = "http://gallery.sourceforge.net/";
$modversion['credits'] = "Modularized into XOOPS and enhanced by K.Ono (http://www.xoops.org/) - The XOOPS Project";
$modversion['help'] = "http://www.xoops.org/";
$modversion['license'] = "GPL";
$modversion['official'] = 1;
$modversion['image'] = "images/gallery-tag.png";
$modversion['dirname'] = "xoopsgallery";

// Sql file (must contain sql generated by phpMyAdmin or phpPgAdmin)
// All tables should not have any prefix!
$modversion['sqlfile']['mysql'] = "sql/mysql.sql";
//$modversion['sqlfile']['postgresql'] = "sql/pgsql.sql";

// Tables created by sql file (without prefix!)
$modversion['tables'][0] = "xoopsgallery_image";

// Admin things
$modversion['hasAdmin'] = 1;
$modversion['adminindex'] = "admin/index.php";
$modversion['adminmenu'] = "admin/menu.php";

// Blocks
$modversion['blocks'][1]['file'] = "xoopsgallery_blocks.php";
$modversion['blocks'][1]['name'] = _MI_GALLERY_BNAME1;
$modversion['blocks'][1]['description'] = "最近アップロードされたイメージを表示する";
$modversion['blocks'][1]['show_func'] = "b_xoopsgallery_newshow";
$modversion['blocks'][1]['edit_func'] = "b_xoopsgallery_newedit";
$modversion['blocks'][1]['template'] = 'xoopsgallery_block_new.html';
$modversion['blocks'][1]['options'] = '3|150|1';
$modversion['blocks'][2]['file'] = "xoopsgallery_blocks.php";
$modversion['blocks'][2]['name'] = _MI_GALLERY_BNAME2;
$modversion['blocks'][2]['description'] = "ランダムイメージ";
$modversion['blocks'][2]['show_func'] = "b_xoopsgallery_getRandomImage";
$modversion['blocks'][2]['edit_func'] = "b_xoopsgallery_editRandomImage";
$modversion['blocks'][2]['template'] = 'xoopsgallery_block_rand.html';
$modversion['blocks'][2]['options'] = '1|150|0';

// Menu
$modversion['hasMain'] = 1;

// Templates
$modversion['templates'][1]['file'] = 'xoopsgallery_index.html';
$modversion['templates'][1]['description'] = '';
$modversion['templates'][2]['file'] = 'xoopsgallery_viewphoto.html';
$modversion['templates'][2]['description'] = '';
$modversion['templates'][3]['file'] = 'xoopsgallery_viewalbum.html';
$modversion['templates'][3]['description'] = '';

// Comments
$modversion['hasComments'] = 1;
$modversion['comments']['itemName'] = 'xoops_imageid';
$modversion['comments']['pageName'] = 'view_photo.php';
$modversion['comments']['extraParams'] = array('albumName', 'id');

// Comment callback functions
$modversion['comments']['callbackFile'] = 'include/functions.php';
//$modversion['comments']['callback']['approve'] = 'xoopsgallery_com_approve';
$modversion['comments']['callback']['update'] = 'xoopsgallery_com_update';

// Extra install/uninstall script for this module
$modversion['onInstall'] = 'include/functions.php';
$modversion['onUninstall'] = 'include/functions.php';

// Config options
$modversion['config'][1]['name'] = 'pnmDir';
$modversion['config'][1]['title'] = '_MI_GALLERY_PNMDIR';
$modversion['config'][1]['description'] = '_MI_GALLERY_PNMDIRDSC';
$modversion['config'][1]['formtype'] = 'textbox';
$modversion['config'][1]['valuetype'] = 'text';
$modversion['config'][1]['default'] = '/usr/bin';

$modversion['config'][2]['name'] = 'ImPath';
$modversion['config'][2]['title'] = '_MI_GALLERY_IMPATH';
$modversion['config'][2]['description'] = '_MI_GALLERY_IMPATHDSC';
$modversion['config'][2]['formtype'] = 'textbox';
$modversion['config'][2]['valuetype'] = 'text';
$modversion['config'][2]['default'] = '/usr/X11R6/bin';

$modversion['config'][3]['name'] = 'graphics';
$modversion['config'][3]['title'] = '_MI_GALLERY_GRPHCS';
$modversion['config'][3]['description'] = '_MI_GALLERY_GRPHCSDSC';
$modversion['config'][3]['formtype'] = 'select';
$modversion['config'][3]['valuetype'] = 'text';
$modversion['config'][3]['default'] = 'NetPBM';
$modversion['config'][3]['options'] = array('NetPBM' => 'NetPBM', 'ImageMagick' => 'ImageMagick');

$modversion['config'][4]['name'] = 'showAlbumTree';
$modversion['config'][4]['title'] = '_MI_GALLERY_SHOWTREE';
$modversion['config'][4]['description'] = '_MI_GALLERY_SHOWTREEDSC';
$modversion['config'][4]['formtype'] = 'yesno';
$modversion['config'][4]['valuetype'] = 'int';
$modversion['config'][4]['default'] = 1;

$modversion['config'][5]['name'] = 'cols';
$modversion['config'][5]['title'] = '_MI_GALLERY_COLS';
$modversion['config'][5]['description'] = '_MI_GALLERY_COLSDSC';
$modversion['config'][5]['formtype'] = 'textbox';
$modversion['config'][5]['valuetype'] = 'int';
$modversion['config'][5]['default'] = 3;

$modversion['config'][6]['name'] = 'rows';
$modversion['config'][6]['title'] = '_MI_GALLERY_ROWS';
$modversion['config'][6]['description'] = '_MI_GALLERY_ROWSDSC';
$modversion['config'][6]['formtype'] = 'textbox';
$modversion['config'][6]['valuetype'] = 'int';
$modversion['config'][6]['default'] = 3;

$modversion['config'][7]['name'] = 'highlight_size';
$modversion['config'][7]['title'] = '_MI_GALLERY_HLSIZE';
$modversion['config'][7]['description'] = '_MI_GALLERY_HLSIZEDSC';
$modversion['config'][7]['formtype'] = 'textbox';
$modversion['config'][7]['valuetype'] = 'int';
$modversion['config'][7]['default'] = 200;

$modversion['config'][8]['name'] = 'thumb_size';
$modversion['config'][8]['title'] = '_MI_GALLERY_THMBSIZE';
$modversion['config'][8]['description'] = '_MI_GALLERY_THMBSIZEDSC';
$modversion['config'][8]['formtype'] = 'textbox';
$modversion['config'][8]['valuetype'] = 'int';
$modversion['config'][8]['default'] = 150;

$modversion['config'][9]['name'] = 'resize_size';
$modversion['config'][9]['title'] = '_MI_GALLERY_RESIZE';
$modversion['config'][9]['description'] = '_MI_GALLERY_RESIZEDSC';
$modversion['config'][9]['formtype'] = 'select';
$modversion['config'][9]['valuetype'] = 'int';
$modversion['config'][9]['default'] = 640;
$modversion['config'][9]['options'] = array('--' => 0, '400' => 400, '500' => 500, '600' => 600, '640' => 640, '700' => 700, '800' => 800, '1024' => 1024);

$modversion['config'][10]['name'] = 'fit_to_window';
$modversion['config'][10]['title'] = '_MI_GALLERY_FITWIN';
$modversion['config'][10]['description'] = '_MI_GALLERY_FITWINDSC';
$modversion['config'][10]['formtype'] = 'yesno';
$modversion['config'][10]['valuetype'] = 'int';
$modversion['config'][10]['default'] = 1;

$modversion['config'][11]['name'] = 'use_fullOnly';
$modversion['config'][11]['title'] = '_MI_GALLERY_FULL';
$modversion['config'][11]['description'] = '_MI_GALLERY_FULLDSC';
$modversion['config'][11]['formtype'] = 'yesno';
$modversion['config'][11]['valuetype'] = 'int';
$modversion['config'][11]['default'] = 0;

$modversion['config'][12]['name'] = 'print_photos';
$modversion['config'][12]['title'] = '_MI_GALLERY_PRINT';
$modversion['config'][12]['description'] = '_MI_GALLERY_PRINTDSC';
$modversion['config'][12]['formtype'] = 'select';
$modversion['config'][12]['valuetype'] = 'text';
$modversion['config'][12]['default'] = 'shutterfly';
$modversion['config'][12]['options'] = array('none' => 'none', 'shutterfly' => 'shutterfly', 'shutterfly without donation' => 'shutterfly without donation');

$modversion['config'][13]['name'] = 'returnto';
$modversion['config'][13]['title'] = '_MI_GALLERY_RETURN';
$modversion['config'][13]['description'] = '_MI_GALLERY_RETURNDSC';
$modversion['config'][13]['formtype'] = 'yesno';
$modversion['config'][13]['valuetype'] = 'int';
$modversion['config'][13]['default'] = 1;

$modversion['config'][14]['name'] = 'albumsPerPage';
$modversion['config'][14]['title'] = '_MI_GALLERY_PERPAGE';
$modversion['config'][14]['description'] = '_MI_GALLERY_PERPAGEDSC';
$modversion['config'][14]['formtype'] = 'textbox';
$modversion['config'][14]['valuetype'] = 'int';
$modversion['config'][14]['default'] = 5;

$modversion['config'][15]['name'] = 'showSearchEngine';
$modversion['config'][15]['title'] = '_MI_GALLERY_SEARCH';
$modversion['config'][15]['description'] = '_MI_GALLERY_SEARCHDSC';
$modversion['config'][15]['formtype'] = 'yesno';
$modversion['config'][15]['valuetype'] = 'int';
$modversion['config'][15]['default'] = 1;

$modversion['config'][16]['name'] = 'useOriginalFileNames';
$modversion['config'][16]['title'] = '_MI_GALLERY_FILENAME';
$modversion['config'][16]['description'] = '_MI_GALLERY_FILENAMEDSC';
$modversion['config'][16]['formtype'] = 'yesno';
$modversion['config'][16]['valuetype'] = 'int';
$modversion['config'][16]['default'] = 1;

$modversion['config'][17]['name'] = 'jpegImageQuality';
$modversion['config'][17]['title'] = '_MI_GALLERY_QUALITY';
$modversion['config'][17]['description'] = '_MI_GALLERY_QUALITYDSC';
$modversion['config'][17]['formtype'] = 'select';
$modversion['config'][17]['valuetype'] = 'int';
$modversion['config'][17]['default'] = 95;
$modversion['config'][17]['options'] = array('50' => 50, '55' => 55, '60' => 60, '65' => 65, '70' => 70, '75' => 75, '80' => 80, '85' => 85, '90' => 90, '95' => 95, '100' => 100);

$modversion['config'][18]['name'] = 'operationTimeLimit';
$modversion['config'][18]['title'] = '_MI_GALLERY_TIME';
$modversion['config'][18]['description'] = '_MI_GALLERY_TIMEDSC';
$modversion['config'][18]['formtype'] = 'select';
$modversion['config'][18]['valuetype'] = 'int';
$modversion['config'][18]['default'] = 30;
$modversion['config'][18]['options'] = array('5' => 5, '10' => 10, '15' => 15, '20' => 20, '25' => 25, '30' => 30, '40' => 40, '60' => 60, '90' => 90, '120' => 120, '240' => 240);

$modversion['config'][19]['name'] = 'debug';
$modversion['config'][19]['title'] = '_MI_GALLERY_DEBUG';
$modversion['config'][19]['description'] = '_MI_GALLERY_DEBUGDSC';
$modversion['config'][19]['formtype'] = 'yesno';
$modversion['config'][19]['valuetype'] = 'int';
$modversion['config'][19]['default'] = 0;

$modversion['config'][20]['name'] = 'use_flock';
$modversion['config'][20]['title'] = '_MI_GALLERY_FLOCK';
$modversion['config'][20]['description'] = '_MI_GALLERY_FLOCKDSC';
$modversion['config'][20]['formtype'] = 'yesno';
$modversion['config'][20]['valuetype'] = 'int';
$modversion['config'][20]['default'] = 1;

$modversion['config'][21]['name'] = 'display_clicks';
$modversion['config'][21]['title'] = '_MI_GALLERY_CLICK';
$modversion['config'][21]['description'] = '_MI_GALLERY_CLICKDSC';
$modversion['config'][21]['formtype'] = 'yesno';
$modversion['config'][21]['valuetype'] = 'int';
$modversion['config'][21]['default'] = 1;

$modversion['config'][22]['name'] = 'exifPath';
$modversion['config'][22]['title'] = '_MI_GALLERY_EXIFPATH';
$modversion['config'][22]['description'] = '_MI_GALLERY_EXIFPATHDSC';
$modversion['config'][22]['formtype'] = 'textbox';
$modversion['config'][22]['valuetype'] = 'text';
$modversion['config'][22]['default'] = '/usr/bin/jhead';

$modversion['config'][23]['name'] = 'exifCache';
$modversion['config'][23]['title'] = '_MI_GALLERY_EXIFCACHE';
$modversion['config'][23]['description'] = '_MI_GALLERY_EXIFCACHEDSC';
$modversion['config'][23]['formtype'] = 'yesno';
$modversion['config'][23]['valuetype'] = 'int';
$modversion['config'][23]['default'] = 0;

?>