XOOPS
2.6.0
Main Page
Related Pages
Classes
Files
Examples
File List
File Members
xoops_version.php
Go to the documentation of this file.
1
<?php
2
/*
3
You may not change or alter any portion of this comment or credits
4
of supporting developers from this source code or any supporting source code
5
which is considered copyrighted (c) material of the original comment or credit authors.
6
7
This program is distributed in the hope that it will be useful,
8
but WITHOUT ANY WARRANTY; without even the implied warranty of
9
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10
*/
11
21
$modversion
= array();
22
$modversion
[
'name'
] =
_MI_COMMENTS_NAME
;
23
$modversion
[
'description'
] =
_MI_COMMENTS_DSC
;
24
$modversion
[
'version'
] = 0.1;
25
$modversion
[
'author'
] =
'Trabis'
;
26
$modversion
[
'nickname'
] =
'trabis'
;
27
$modversion
[
'credits'
] =
'The XOOPS Project'
;
28
$modversion
[
'license'
] =
'GNU GPL 2.0'
;
29
$modversion
[
'license_url'
] =
'http://www.gnu.org/licenses/gpl-2.0.html'
;
30
$modversion
[
'official'
] = 1;
31
$modversion
[
'help'
] =
'page=help'
;
32
$modversion
[
'image'
] =
'images/logo.png'
;
33
$modversion
[
'dirname'
] =
'comments'
;
34
35
//about
36
$modversion
[
'release_date'
] =
'2012/12/23'
;
37
$modversion
[
'module_website_url'
] =
'http://www.xoops.org/'
;
38
$modversion
[
'module_website_name'
] =
'XOOPS'
;
39
$modversion
[
'module_status'
] =
'ALPHA 1'
;
40
$modversion
[
'min_php'
] =
'5.3.7'
;
41
$modversion
[
'min_xoops'
] =
'2.6.0'
;
42
43
// paypal
44
$modversion
[
'paypal'
] = array();
45
$modversion
[
'paypal'
][
'business'
] =
'xoopsfoundation@gmail.com'
;
46
$modversion
[
'paypal'
][
'item_name'
] =
''
;
47
$modversion
[
'paypal'
][
'amount'
] = 0;
48
$modversion
[
'paypal'
][
'currency_code'
] =
'USD'
;
49
50
// Admin things
51
$modversion
[
'hasAdmin'
] = 1;
52
$modversion
[
'system_menu'
] = 1;
53
$modversion
[
'adminindex'
] =
'admin/index.php'
;
54
$modversion
[
'adminmenu'
] =
'admin/menu.php'
;
55
56
// Scripts to run upon installation or update
57
$modversion
[
'onInstall'
] =
'include/install.php'
;
58
$modversion
[
'onUninstall'
] =
'include/install.php'
;
59
60
//Menus
61
$modversion
[
'hasMain'
] = 0;
62
63
// Manage extension
64
$modversion
[
'extension'
] = 1;
65
$modversion
[
'extension_module'
][] =
'system'
;
66
67
// Table definitions
68
$modversion
[
'schema'
] =
'sql/schema.yml'
;
69
$modversion
[
'sqlfile'
][
'mysql'
] =
"sql/mysql.sql"
;
70
71
// Tables created by sql file (without prefix!)
72
$modversion
[
'tables'
] = array(
73
'comments'
74
);
75
76
/*
77
Blocks
78
*/
79
$modversion
[
'blocks'
][] = array(
80
'file'
=>
'comments_blocks.php'
,
81
'name'
=>
_MI_COMMENTS_BNAME1
,
82
'description'
=>
_MI_COMMENTS_BNAME1_DSC
,
83
'show_func'
=>
'b_comments_show'
,
84
'options'
=>
'10'
,
85
'edit_func'
=>
'b_comments_edit'
,
86
'template'
=>
'comments.tpl'
,
87
);
88
89
// Preferences
90
91
$modversion
[
'config'
][] = array(
92
'name'
=>
'com_mode'
,
93
'title'
=>
'_MI_COMMENTS_MODE'
,
94
'description'
=>
'_MI_COMMENTS_MODEDSC'
,
95
'formtype'
=>
'select'
,
96
'valuetype'
=>
'text'
,
97
'options'
=> array(
98
'XoopsLocale::NESTED'
=>
'nest'
,
99
'XoopsLocale::FLAT'
=>
'flat'
,
100
'XoopsLocale::THREADED'
=>
'thread'
101
),
102
'default'
=>
'nest'
,
103
);
104
105
$modversion
[
'config'
][] = array(
106
'name'
=>
'com_order'
,
107
'title'
=>
'_MI_COMMENTS_ORDER'
,
108
'description'
=>
'_MI_COMMENTS_ORDERDSC'
,
109
'formtype'
=>
'select'
,
110
'valuetype'
=>
'int'
,
111
'options'
=> array(
'XoopsLocale::OLDEST_FIRST'
=> 0,
'XoopsLocale::NEWEST_FIRST'
=> 1),
112
'default'
=> 0,
113
);
114
115
$editors
= XoopsLists::getDirListAsArray(\
XoopsBaseConfig::get
(
'root-path'
) .
'/class/xoopseditor'
);
116
117
$modversion
[
'config'
][] = array(
118
'name'
=>
'com_editor'
,
119
'title'
=>
'_MI_COMMENTS_EDITOR'
,
120
'description'
=>
'_MI_COMMENTS_EDITORDSC'
,
121
'formtype'
=>
'select'
,
122
'valuetype'
=>
'text'
,
123
'default'
=>
'dhtmltextarea'
,
124
'options'
=>
$editors
,
125
);
126
127
$modversion
[
'config'
][] = array(
128
'name'
=>
'com_pager'
,
129
'title'
=>
'_MI_COMMENTS_PAGER'
,
130
'description'
=>
'_MI_COMMENTS_PAGERDSC'
,
131
'formtype'
=>
'textbox'
,
132
'valuetype'
=>
'int'
,
133
'default'
=> 20,
134
);
$editors
$editors
Definition:
xoops_version.php:115
_MI_COMMENTS_NAME
const _MI_COMMENTS_NAME
Definition:
modinfo.php:20
_MI_COMMENTS_BNAME1
const _MI_COMMENTS_BNAME1
Definition:
modinfo.php:29
_MI_COMMENTS_BNAME1_DSC
const _MI_COMMENTS_BNAME1_DSC
Definition:
modinfo.php:30
XoopsBaseConfig\get
static get($name)
Definition:
XoopsBaseConfig.php:117
$modversion
$modversion
Definition:
xoops_version.php:22
_MI_COMMENTS_DSC
const _MI_COMMENTS_DSC
Definition:
modinfo.php:21
usr64
htdocs
modules
comments
xoops_version.php
Generated on Fri May 22 2015 03:07:01 for XOOPS by
1.8.9.1