<?php
//v1.0.4 www.bcoos.net 2006/10 GPL
//v1.3  www.bcoos.net 2006/09 GPL 
//v1.2 www.exoops.info 2006/03
$modversion['name'] = _MI_MYALBUM_NAME;
$modversion['version'] = '1.2';
$modversion['description'] = _MI_MYALBUM_DESC;
$modversion['credits'] = "Daniel Branco<br>( http://datsun1200.com)<br>Datsun 1200 Club<br>Kazumi Ono<br>( http://www.mywebaddons.com/ )<br>The XOOPS Project";
$modversion['help'] = "mylinks.html";
$modversion['license'] = "GPL see LICENSE";
$modversion['official'] = 0;
$modversion['dirname'] = "myalbum";
// 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] = "myalbum_cat";
$modversion['tables'][1] = "myalbum_photos";
$modversion['tables'][2] = "myalbum_text";
$modversion['tables'][3] = "myalbum_votedata";
$modversion['tables'][4] = "myalbum_comments";
// ------------------------------------------------------------------------- //
// SQL-PHP
$modversion['hasSqlUpdate']   = 1;
$modversion['SqlUpdateFile']['mysql'] = 'sql/update1.2.php';
// Admin things
$modversion['hasAdmin'] = 1;
$modversion['adminindex'] = "admin/index.php";
$modversion['adminmenu'] = "admin/menu.php";
// Blocks
$modversion['blocks'][1]['file'] = "myalbum_photo.php";
$modversion['blocks'][1]['name'] = _MB_MYPHOTO_ALBUM;
$modvertion['blocks'][1]['description'] = "Shows a random photo";
$modversion['blocks'][1]['show_func'] = "b_myalbum_photo_show";
$modversion['blocks'][1]['edit_func'] = "b_myalbum_photo_edit";
$modversion['blocks'][1]['options'] = "width|3";
$modversion['blocks'][2]['file'] = "myalbum_top.php";
$modversion['blocks'][2]['name'] = "Recent images";
$modvertion['blocks'][2]['description'] = "Shows recently added photos";
$modversion['blocks'][2]['show_func'] = "b_myalbum_top_show";
$modversion['blocks'][2]['edit_func'] = "b_myalbum_top_edit";
$modversion['blocks'][2]['options'] = "date|10";
$modversion['blocks'][3]['file'] = "myalbum_top.php";
$modversion['blocks'][3]['name'] = "Most viewed images";
$modvertion['blocks'][3]['description'] = "Shows most viewed photos";
$modversion['blocks'][3]['show_func'] = "b_myalbum_top_show";
$modversion['blocks'][3]['edit_func'] = "b_myalbum_top_edit";
$modversion['blocks'][3]['options'] = "hits|10";
$modversion['blocks'][4]['file'] = "myalbum_comments.php";
$modversion['blocks'][4]['name'] = _MB_MYPHOTO_COMMENTS;
$modvertion['blocks'][4]['description'] = "Shows last comments";
$modversion['blocks'][4]['show_func'] = "b_myalbum_comments_show";
$modversion['blocks'][4]['edit_func'] = "b_myalbum_comments_edit";
$modversion['blocks'][4]['options'] = "10|1";
// Menu
$modversion['hasMain'] = 1;
$modversion['sub'][1]['name'] = "<img src=\"../../images/icons/".$bcoosConfig['iconset']."pen.gif\" alt=\"Submit\">";
$modversion['sub'][1]['url'] = "submit.php";
$modversion['sub'][2]['name'] = _POPULAR;
$modversion['sub'][2]['url'] = "topten.php?hit=1";
$modversion['sub'][3]['name'] = _TOPRATED;
$modversion['sub'][3]['url'] = "topten.php?rate=1";
// Search
$modversion['hasSearch'] = 1;
$modversion['search']['file'] = "include/search.inc.php";
$modversion['search']['func'] = "myalbum_search";
// Waiting
$modversion['hasWaiting']     = 1;
$modversion['waiting']['file'] = 'include/waiting.inc.php';
$modversion['waiting']['func'] = 'myalbum_waiting';
?>
