8 if(!defined('XOOPS_ROOT_PATH'))
13 if(!defined('SD2ND_TRUST_PATH'))
15 define('SD2ND_TRUST_PATH',XOOPS_TRUST_PATH . '/modules/sd2nd');
18 require_once SD2ND_TRUST_PATH . '/class/Sd2ndUtils.class.php';
21 // Define a basic manifesto.
23 $modversion['name'] = _MI_SD2ND_LANG_SD2ND;
24 $modversion['version'] = 0.01;
25 $modversion['description'] = _MI_SD2ND_DESC_SD2ND;
26 $modversion['author'] = _MI_SD2ND_LANG_AUTHOR;
27 $modversion['credits'] = _MI_SD2ND_LANG_CREDITS;
28 $modversion['license'] = 'GPL';
29 $modversion['official'] = 0;
30 $modversion['image'] = 'images/sd2nd.png';
31 $modversion['dirname'] = $myDirName;
32 $modversion['trust_dirname'] = 'sd2nd';
34 $modversion['cube_style'] = true;
35 $modversion['legacy_installer'] = array(
37 'class' => 'Installer',
38 'namespace' => 'Sd2nd',
39 'filepath' => SD2ND_TRUST_PATH . '/admin/class/installer/Sd2ndInstaller.class.php'
41 'uninstaller' => array(
42 'class' => 'Uninstaller',
43 'namespace' => 'Sd2nd',
44 'filepath' => SD2ND_TRUST_PATH . '/admin/class/installer/Sd2ndUninstaller.class.php'
48 'namespace' => 'Sd2nd',
49 'filepath' => SD2ND_TRUST_PATH . '/admin/class/installer/Sd2ndUpdater.class.php'
52 $modversion['disable_legacy_2nd_installer'] = false;
54 $modversion['sqlfile']['mysql'] = 'sql/mysql.sql';
55 $modversion['tables'] = array(
56 // '{prefix}_{dirname}_xxxx',
57 '{prefix}_{dirname}_ability',
58 '{prefix}_{dirname}_active_ability',
59 '{prefix}_{dirname}_char',
60 '{prefix}_{dirname}_costume',
61 '{prefix}_{dirname}_eno_pno_link',
62 '{prefix}_{dirname}_icon',
63 '{prefix}_{dirname}_image',
64 '{prefix}_{dirname}_kind',
65 '{prefix}_{dirname}_learned_ability',
66 '{prefix}_{dirname}_learned_costume',
67 '{prefix}_{dirname}_learned_skill',
68 '{prefix}_{dirname}_map',
69 '{prefix}_{dirname}_map_cache',
70 '{prefix}_{dirname}_map_name',
71 '{prefix}_{dirname}_map_spot',
72 '{prefix}_{dirname}_race',
73 '{prefix}_{dirname}_skill',
74 '{prefix}_{dirname}_skill_element_link',
75 '{prefix}_{dirname}_status',
76 '{prefix}_{dirname}_target',
77 '{prefix}_{dirname}_update',
83 // Templates. You must never change [cubson] chunk to get the help of cubson.
85 $modversion['templates'] = array(
88 'file' => '{dirname}_xxx.html',
89 'description' => _MI_SD2ND_TPL_XXX
93 array('file' => '{dirname}_index.html','description' => _MI_SD2ND_TPL_INDEX),
94 array('file' => '{dirname}_map_view.html','description' => _MI_SD2ND_TPL_MAP_VIEW),
95 array('file' => '{dirname}_active_ability_list.html','description' => _MI_SD2ND_TPL_ACTIVE_ABILITY_LIST),
96 array('file' => '{dirname}_learned_ability_list.html','description' => _MI_SD2ND_TPL_LEARNED_ABILITY_LIST),
97 array('file' => '{dirname}_learned_skill_list.html','description' => _MI_SD2ND_TPL_LEARNED_SKILL_LIST),
98 array('file' => '{dirname}_learned_costume_list.html','description' => _MI_SD2ND_TPL_LEARNED_COSTUME_LIST),
99 array('file' => '{dirname}_ability_list.html','description' => _MI_SD2ND_TPL_ABILITY_LIST),
100 array('file' => '{dirname}_costume_list.html','description' => _MI_SD2ND_TPL_COSTUME_LIST),
101 array('file' => '{dirname}_skill_list.html','description' => _MI_SD2ND_TPL_SKILL_LIST),
102 ##[/cubson:templates]
106 // Admin panel setting
108 $modversion['hasAdmin'] = 1;
109 $modversion['adminindex'] = 'admin/index.php';
110 $modversion['adminmenu'] = array(
113 'title' => _MI_SD2ND_LANG_XXXX,
114 'link' => 'admin/index.php?action=xxx',
115 'keywords' => _MI_SD2ND_KEYWORD_XXX,
121 ##[/cubson:adminmenu]
125 // Public side control setting
127 $modversion['hasMain'] = 1;
128 $modversion['hasSearch'] = 0;
129 $modversion['sub'] = array(
132 'name' => _MI_SD2ND_LANG_SUB_XXX,
133 'url' => 'index.php?action=XXX'
143 $modversion['config'] = array(
147 'title' => '_MI_SD2ND_TITLE_XXXX',
148 'description' => '_MI_SD2ND_DESC_XXXX',
149 'formtype' => 'xxxx',
150 'valuetype' => 'xxx',
151 'options' => array(xxx => xxx,xxx => xxx),
162 $modversion['blocks'] = array(
166 'file' => 'xxxBlock.class.php',
168 'name' => _MI_SD2ND_BLOCK_NAME_xxx,
169 'description' => _MI_SD2ND_BLOCK_DESC_xxx,
171 'template' => '{dirname}_block_xxx.html',
172 'show_all_module' => true,
173 'visible_any' => true