[1042] XOOPS模組開發進階
<?php
/**
* Phone Book module
*
* You may not change or alter any portion of this comment or credits
* of supporting developers from this source code or any supporting source code
* which is considered copyrighted (c) material of the original comment or credit authors.
* 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.
*
* @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
* @license http://www.fsf.org/copyleft/gpl.html GNU public license
* @package Phone Book
* @since 2.5
* @author tad
* @version $Id $
**/
$modversion = array();
//---模組基本資訊---//
$modversion['name'] = _MI_PHONEBOOK_NAME;
$modversion['version'] = '1.0';
$modversion['description'] = _MI_PHONEBOOK_DESC;
$modversion['author'] = _MI_PHONEBOOK_AUTHOR;
$modversion['credits'] = _MI_PHONEBOOK_CREDITS;
$modversion['help'] = 'page=help';
$modversion['license'] = 'GPL see LICENSE';
$modversion['image'] = "images/logo.png";
$modversion['dirname'] = basename(__DIR__);
//---模組狀態資訊---//
$modversion['status_version'] = '1.0';
$modversion['release_date'] = '2015-09-25';
$modversion['module_website_url'] = 'http://tad0616.net';
$modversion['module_website_name'] = _MI_PHONEBOOK_AUTHOR_WEB;
$modversion['module_status'] = 'release';
$modversion['author_website_url'] = 'http://tad0616.net';
$modversion['author_website_name'] = _MI_PHONEBOOK_AUTHOR_WEB;
$modversion['min_php'] = '5.3';
$modversion['min_xoops'] = '2.5';
//---paypal資訊---//
$modversion['paypal'] = array();
$modversion['paypal']['business'] = '[email protected]';
$modversion['paypal']['item_name'] = 'Donation :' . _MI_PHONEBOOK_AUTHOR;
$modversion['paypal']['amount'] = 0;
$modversion['paypal']['currency_code'] = 'USD';
//---安裝設定---//
$modversion['onInstall'] = "include/onInstall.php";
$modversion['onUpdate'] = "include/onUpdate.php";
$modversion['onUninstall'] = "include/onUninstall.php";
//---啟動後台管理界面選單---//
$modversion['system_menu'] = 1;
//---資料表架構---//
$modversion['sqlfile']['mysql'] = "sql/mysql.sql";
$modversion['tables'][1] = "phone_book";
$modversion['tables'][2] = "phone_book_cate";
//---管理介面設定---//
$modversion['hasAdmin'] = 1;
$modversion['adminindex'] = "admin/main.php";
$modversion['adminmenu'] = "admin/menu.php";
//---使用者主選單設定---//
$modversion['hasMain'] = 1;
$i=0;
//---樣板設定---//
$i=0;
$modversion['templates'][$i]['file'] = 'phone_book_adm_main_b3.html';
$modversion['templates'][$i]['description'] = 'phone_book_adm_main_b3.html for bootstrap3';
$i++;
$modversion['templates'][$i]['file'] = 'phone_book_adm_cate_b3.html';
$modversion['templates'][$i]['description'] = 'phone_book_adm_cate_b3.html for bootstrap3';
$i++;
$modversion['templates'][$i]['file'] = 'phone_book_index_b3.html';
$modversion['templates'][$i]['description'] = 'phone_book_index_b3.html for bootstrap3';
$i++;
$modversion['templates'][$i]['file'] = 'phone_book_birthday_b3.html';
$modversion['templates'][$i]['description'] = 'phone_book_birthday_b3.html for bootstrap3';
//---區塊設定---//
$i=0;