:::

9-1 /xoops_version.php

<?php
$modversion = array();

//---模組基本資訊---//
$modversion['name'] = _MI_TADEBOOK_NAME;
$modversion['version'] = 1.00;
$modversion['description'] = _MI_TADEBOOK_DESCRIPTION;
$modversion['author'] = 'Tad ([email protected])';
$modversion['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.png';
$modversion['dirname'] = basename(dirname(__FILE__));



//---模組狀態資訊---//
$modversion['release_date'] = '2015/03/21';
$modversion['module_website_url'] = 'http://tad0616.net';
$modversion['module_website_name'] = _MI_TADEBOOK_MODULE_WEBSITE_NAME;
$modversion['module_status'] = 'release';
$modversion['author_website_url'] = 'http://tad0616.net';
$modversion['author_website_name'] = _MI_TADEBOOK_MODULE_AUTHOR_NAME;
$modversion['min_php']= 5.2 ;
$modversion['min_xoops']='2.5';
$modversion['min_tadtools']='1.20';

//---paypal資訊---//
$modversion ['paypal'] = array();
$modversion ['paypal']['business'] = '[email protected]';
$modversion ['paypal']['item_name'] = 'Donation : ' . 'Tad';
$modversion ['paypal']['amount'] = 2;
$modversion ['paypal']['currency_code'] = 'USD';


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


//---模組資料表架構---//
$modversion['sqlfile']['mysql'] = 'sql/mysql.sql';
$modversion['tables'][0] = 'tad_ebook';
$modversion['tables'][1] = 'tad_ebook_page';
$modversion['tables'][2] = 'tad_ebook_files_center';


//---後台管理介面設定---//
$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['templates'] = array();
$i=1;
$modversion['templates'][$i]['file'] = 'tad_ebook_index.html';
$modversion['templates'][$i]['description'] = 'tad_ebook_index.html';
$i++;
$modversion['templates'][$i]['file'] = 'tad_ebook_index_b3.html';
$modversion['templates'][$i]['description'] = 'tad_ebook_index_b3.html';

$i++;
$modversion['templates'][$i]['file'] = 'tad_ebook_adm_main.html';
$modversion['templates'][$i]['description'] = 'tad_ebook_adm_main.html';
$i++;
$modversion['templates'][$i]['file'] = 'tad_ebook_adm_main_b3.html';
$modversion['templates'][$i]['description'] = 'tad_ebook_adm_main_b3.html';

$i++;
$modversion['templates'][$i]['file'] = 'tad_ebook_post.html';
$modversion['templates'][$i]['description'] = 'tad_ebook_post.html';
$i++;
$modversion['templates'][$i]['file'] = 'tad_ebook_post_b3.html';
$modversion['templates'][$i]['description'] = 'tad_ebook_post_b3.html';

$i++;
$modversion['templates'][$i]['file'] = 'tad_ebook_verify.html';
$modversion['templates'][$i]['description'] = 'tad_ebook_verify.html';
$i++;
$modversion['templates'][$i]['file'] = 'tad_ebook_verify_b3.html';
$modversion['templates'][$i]['description'] = 'tad_ebook_verify_b3.html';

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



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

//---區塊設定---//
$modversion['blocks'] = array();
$modversion['blocks'][1]['file'] = "tad_ebook_list.php";
$modversion['blocks'][1]['name'] = '列出所有期刊';
$modversion['blocks'][1]['description'] = '列出所有期刊';
$modversion['blocks'][1]['show_func'] = "tad_ebook_list";
$modversion['blocks'][1]['template'] = "tad_ebook_list.html";
$modversion['blocks'][1]['edit_func'] = "tad_ebook_list_edit";
$modversion['blocks'][1]['options'] = "1|200px";

// $modversion['blocks'][2]['file'] = "區塊檔.php";
// $modversion['blocks'][2]['name'] = 區塊名稱(常數);
// $modversion['blocks'][2]['description'] = 區塊說明(常數);
// $modversion['blocks'][2]['show_func'] = "執行區塊函數名稱";
// $modversion['blocks'][2]['template'] = "區塊樣板.html";
// $modversion['blocks'][2]['edit_func'] = "編輯區塊函數名稱";
// $modversion['blocks'][2]['options'] = "設定值1|設定值2";


//---評論---//
$modversion['hasComments'] = 1;
$modversion['comments']['pageName'] = 'index.php';
$modversion['comments']['itemName'] = 'page_sn';

//---通知---//
$modversion['hasNotification'] = 1;

$modversion['notification']['category'][1]['name'] = 'global';
$modversion['notification']['category'][1]['title'] = '全局通知';
$modversion['notification']['category'][1]['description'] =  '全局通知';
$modversion['notification']['category'][1]['subscribe_from'] = array('index.php');
$modversion['notification']['category'][1]['item_name'] = 0;
$modversion['notification']['category'][1]['allow_bookmark'] = 0;

// $modversion['notification']['category'][2]['name'] = 'ebook';
// $modversion['notification']['category'][2]['title'] = _標題語系常數;
// $modversion['notification']['category'][2]['description'] =  _描述語系常數;
// $modversion['notification']['category'][2]['subscribe_from'] = array('頁面1.php','頁面2.php',...);
// $modversion['notification']['category'][2]['item_name'] = 'ebook_sn';
// $modversion['notification']['category'][2]['allow_bookmark'] = 1;

$modversion['notification']['event'][1]['name'] = 'new_ebook';
$modversion['notification']['event'][1]['category'] = 'global';
$modversion['notification']['event'][1]['title'] = '新期刊邀稿通知';
$modversion['notification']['event'][1]['caption'] = '新期刊邀稿通知';
$modversion['notification']['event'][1]['description'] = '新期刊邀稿通知';
$modversion['notification']['event'][1]['mail_template'] = 'new_ebook';
$modversion['notification']['event'][1]['mail_subject'] = '新期刊邀稿通知';
$modversion['notification']['event'][1]['admin_only'] = '0';
$modversion['notification']['event'][1]['invisible'] = '0';


// $modversion['notification']['event'][2]['name'] = '事件名稱';
// $modversion['notification']['event'][2]['category'] = '所屬類別';
// $modversion['notification']['event'][2]['title'] = _事件標題的語系常數;
// $modversion['notification']['event'][2]['caption'] = _事件內容的語系常數;
// $modversion['notification']['event'][2]['description'] = _事件描述的語系常數;
// $modversion['notification']['event'][2]['mail_template'] = '通知信的樣版名稱';
// $modversion['notification']['event'][2]['mail_subject'] = _郵件主題的語系常數;
// $modversion['notification']['event'][2]['admin_only'] = '0';
// $modversion['notification']['event'][2]['invisible'] = '1';

$modversion['notification']['lookup_file'] = 'include/notification.inc.php';
$modversion['notification']['lookup_func'] = 'new_ebook';



?>

 


:::

搜尋

QR Code 區塊

https%3A%2F%2Ftad0616.net%2Fmodules%2Ftad_book3%2Fpage.php%3Ftbdsn%3D1182%26tbsn%3D37

書籍目錄

展開 | 闔起

線上使用者

94人線上 (26人在瀏覽線上書籍)

會員: 0

訪客: 94

更多…