<?php
$modversion = array();

//---模組基本資訊---//
$modversion['name'] = _MI_TADADMIN_NAME;
$modversion['version'] = '1.3';
$modversion['description'] = _MI_TADADMIN_DESC;
$modversion['author'] = _MI_TADADMIN_AUTHOR;
$modversion['credits'] = _MI_TADADMIN_CREDITS;
$modversion['help'] = 'page=help';
$modversion['license'] = 'GNU GPL 2.0';
$modversion['license_url'] = 'www.gnu.org/licenses/gpl-2.0.html/';
$modversion['image'] = "images/logo_{$xoopsConfig['language']}.png";
$modversion['dirname'] = basename(dirname(__FILE__));

//---模組狀態資訊---//
$modversion['release_date'] = '2020/03/16';
$modversion['module_website_url'] = 'https://tad0616.net/';
$modversion['module_website_name'] = _MI_TAD_WEB;
$modversion['module_status'] = 'release';
$modversion['author_website_url'] = 'https://tad0616.net/';
$modversion['author_website_name'] = _MI_TAD_WEB;
$modversion['min_php'] = 5.4;
$modversion['min_xoops'] = '2.5';

//---paypal資訊---//
$modversion['paypal'] = array();
$modversion['paypal']['business'] = 'tad0616@gmail.com';
$modversion['paypal']['item_name'] = 'Donation : ' . _MI_TAD_WEB;
$modversion['paypal']['amount'] = 0;
$modversion['paypal']['currency_code'] = 'USD';

//---模組資料表架構---//
// $modversion['sqlfile']['mysql'] = "sql/mysql.sql";
// $modversion['tables'][1] = "tad_admin";

//---後台使用系統選單---//
$modversion['system_menu'] = 1;

//---後台管理介面設定---//
$modversion['hasAdmin'] = 1;
$modversion['adminindex'] = 'admin/index.php';
$modversion['adminmenu'] = 'admin/menu.php';

//---前台主選單設定---//
$modversion['hasMain'] = 1;
//$modversion['sub'][1]['name'] = '';
//$modversion['sub'][1]['url'] = '';

//---模組自動功能---//
// $modversion['onInstall'] = "include/onInstall.php";
// $modversion['onUpdate'] = "include/onUpdate.php";
// $modversion['onUninstall'] = "include/onUninstall.php";

//---偏好設定---//
$modversion['config'] = array();
$i = 0;
$modversion['config'][$i]['name'] = 'list_amount';
$modversion['config'][$i]['title'] = '_MI_TADADMIN_LIST_AMOUNT';
$modversion['config'][$i]['description'] = '_MI_TADADMIN_LIST_AMOUNT_DESC';
$modversion['config'][$i]['formtype'] = 'textbox';
$modversion['config'][$i]['valuetype'] = 'int';
$modversion['config'][$i]['default'] = '10';

$i++;
$modversion['config'][$i]['name'] = 'login';
$modversion['config'][$i]['title'] = '_MI_TADADMIN_LOGIN';
$modversion['config'][$i]['description'] = '_MI_TADADMIN_LOGIN_DESC';
$modversion['config'][$i]['formtype'] = 'textbox';
$modversion['config'][$i]['valuetype'] = 'text';
$modversion['config'][$i]['default'] = '';

$i++;
$modversion['config'][$i]['name'] = 'module_id_temp';
$modversion['config'][$i]['title'] = '_MI_TADADMIN_MODULE_ID_TEMP';
$modversion['config'][$i]['description'] = '_MI_TADADMIN_MODULE_ID_TEMP_DESC';
$modversion['config'][$i]['formtype'] = 'textarea';
$modversion['config'][$i]['valuetype'] = 'text';
$modversion['config'][$i]['default'] = '';

$i++;
$modversion['config'][$i]['name'] = 'block_id_temp';
$modversion['config'][$i]['title'] = '_MI_TADADMIN_BLOCK_ID_TEMP';
$modversion['config'][$i]['description'] = '_MI_TADADMIN_BLOCK_ID_TEMP_DESC';
$modversion['config'][$i]['formtype'] = 'textarea';
$modversion['config'][$i]['valuetype'] = 'text';
$modversion['config'][$i]['default'] = '';

$i++;
$modversion['config'][$i]['name'] = 'ssh_port';
$modversion['config'][$i]['title'] = '_MI_TADADMIN_SSH_PORT';
$modversion['config'][$i]['description'] = '_MI_TADADMIN_SSH_PORT_DESC';
$modversion['config'][$i]['formtype'] = 'textbox';
$modversion['config'][$i]['valuetype'] = 'int';
$modversion['config'][$i]['default'] = '22';

$i++;
$modversion['config'][$i]['name'] = 'source';
$modversion['config'][$i]['title'] = '_MI_TADADMIN_SOURCE';
$modversion['config'][$i]['description'] = '_MI_TADADMIN_SOURCE_DESC';
$modversion['config'][$i]['formtype'] = 'textbox';
$modversion['config'][$i]['valuetype'] = 'text';
$modversion['config'][$i]['default'] = 'https://campus-xoops.tn.edu.tw';

//---搜尋---//
//$modversion['hasSearch'] = 1;
//$modversion['search']['file'] = "include/search.php";
//$modversion['search']['func'] = "搜尋函數名稱";

//---區塊設定---//
$modversion['blocks'] = array();

//---樣板設定---//
$modversion['templates'] = array();
$i = 1;
$modversion['templates'][$i]['file'] = 'tad_admin_main.tpl';
$modversion['templates'][$i]['description'] = 'tad_admin_main.tpl';

$i++;
$modversion['templates'][$i]['file'] = 'tad_admin_phpini.tpl';
$modversion['templates'][$i]['description'] = 'tad_admin_phpini.tpl';

$i++;
$modversion['templates'][$i]['file'] = 'tad_admin_xoops.tpl';
$modversion['templates'][$i]['description'] = 'tad_admin_xoops.tpl';
