:::

10-1 上課範例:xoops_version.php

<?php
$modversion = array();

//---模組基本資訊---//
$modversion['name'] = _MI_CONTAC_NAME;
$modversion['version']	= '1.0';
$modversion['description'] = _MI_CONTAC_DESC;
$modversion['author'] = _MI_CONTAC_AUTHOR;
$modversion['credits']	= _MI_CONTAC_CREDITS;
$modversion['help'] = 'page=help';
$modversion['license']		= 'GPL see LICENSE';
$modversion['image']		= "images/logo.png";
$modversion['dirname'] = basename(dirname(__FILE__));


//---模組狀態資訊---//
$modversion['status_version'] = '1.0';
$modversion['release_date'] = '2012-09-19';
$modversion['module_website_url'] = 'http://tad0616.net';
$modversion['module_website_name'] = _MI_CONTAC_AUTHOR_WEB;
$modversion['module_status'] = 'release';
$modversion['author_website_url'] = 'http://tad0616.net';
$modversion['author_website_name'] = _MI_CONTAC_AUTHOR_WEB;
$modversion['min_php']= 5.2;
$modversion['min_xoops']='2.5';


//---啟動後台管理界面選單---//
$modversion['system_menu'] = 1;//---資料表架構---//
$modversion['sqlfile']['mysql'] = "sql/mysql.sql";
$modversion['tables'][1] = "contact";
$modversion['tables'][2] = "contact_cate";
$modversion['tables'][3] = "contact_files_center";

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

//---使用者主選單設定---//
$modversion['hasMain'] = 1;


//---樣板設定---//

$modversion['templates'][1]['file'] = 'contact_index_tpl.html';
$modversion['templates'][1]['description'] = _MI_CONTAC_TEMPLATE_DESC1;

//---區塊設定---//
$modversion['blocks'][0]['file'] = "contact_qrcode.php";
$modversion['blocks'][0]['name'] = 'QR Code ';
$modversion['blocks'][0]['description'] = '產生連到手持裝置頁面的QR Code條碼';
$modversion['blocks'][0]['show_func'] = "contact_qrcode_show";
$modversion['blocks'][0]['template'] = "contact_qrcode.html";
?>

:::

搜尋

QR Code 區塊

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

書籍目錄

展開 | 闔起

線上使用者

57人線上 (6人在瀏覽線上書籍)

會員: 0

訪客: 57

更多…