This repository was archived by the owner on Jul 16, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathicms_version.php
More file actions
152 lines (129 loc) · 5.15 KB
/
icms_version.php
File metadata and controls
152 lines (129 loc) · 5.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<?php
/**
* banners version infomation
*
* This file holds the configuration information of this module
*
* @copyright The ImpressCMS Project
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License (GPL)
* @since 1.0
* @author Phoenyx <phoenyx@impresscms.de>
* @package banners
* @version $Id$
*/
defined("ICMS_ROOT_PATH") or die("ICMS root path not defined");
/** General Information */
$modversion = array(
'name' => _MI_BANNERS_MD_NAME,
'version' => "1.1.1",
'description' => _MI_BANNERS_MD_DESC,
'author' => "fiammybe",
'credits' => "The ImpressCMS Project,Phoenyx, QM-B, Skenow",
'help' => "",
'license' => "GNU General Public License (GPL)",
'official' => 1,
'dirname' => basename(dirname(__FILE__)),
'modname' => 'banners',
/** Images information */
'iconsmall' => "images/icon_small.png",
'iconbig' => "images/icon_big.png",
'image' => "images/icon_big.png", /* for backward compatibility */
/** Development information */
'status_version' => "RC",
'status' => "final",
'date' => "11 October 2018",
'author_word' => "ImpressCMS 1.3.11+ Only",
'warning' => _CO_ICMS_WARNING_FINAL,
/** Menu information */
'hasMain' => 1,
/** Administrative information */
'hasAdmin' => 1,
'adminindex' => "admin/index.php",
'adminmenu' => "admin/menu.php",
/** Install and update informations */
'onInstall' => "include/onupdate.inc.php",
'onUpdate' => "include/onupdate.inc.php",
'onUninstall' => "include/onupdate.inc.php",
/** Contributors */
'developer_website_url' => "http://www.impresscms.org",
'developer_website_name' => "ImpressCMS",
'developer_email' => "david.j@impresscms.org");
$modversion['people']['developers'][] = "[url=https://www.impresscms.org/userinfo.php?uid=1168]Phoenyx[/url]";
//$modversion['people']['testers'][] = "";
//$modversion['people']['translators'][] = "";
//$modversion['people']['documenters'][] = "";
//$modversion['people']['other'][] = "";
/** Manual */
//$modversion['manual']['wiki'][] = "<a href='https://www.impresscms.org/modules/simplywiki/index.php?title=banners' target='_blank'>English</a>";
/** Database information */
$modversion['object_items'] = array('banner', 'client', 'position', 'positionlink', 'visiblein');
$modversion['tables'] = icms_getTablesArray($modversion['dirname'], $modversion['object_items']);
/** Menu */
$banners_client_handler = icms_getModuleHandler('client', $modversion['dirname'], 'banners', TRUE);
if (is_object($banners_client_handler) && $banners_client_handler->getUserClientId(TRUE) !== FALSE) {
$modversion['sub'][0]['name'] = _SUBMIT;
$modversion['sub'][0]['url'] = "banner.php?op=mod";
}
/** Templates information */
$modversion['templates'][1] = array(
'file' => 'banners_admin_client.html',
'description' => _MI_BANNERS_CLIENTS.' (Admin)');
$modversion['templates'][] = array(
'file' => 'banners_admin_banner.html',
'description' => _MI_BANNERS_BANNERS.' (Admin)');
$modversion['templates'][] = array(
'file' => 'banners_admin_position.html',
'description' => _MI_BANNERS_POSITIONS.' (Admin)');
$modversion['templates'][] = array(
'file' => 'banners_banner.html',
'description' => _MI_BANNERS_BANNERS);
$modversion['templates'][] = array(
'file' => 'banners_client.html',
'description' => _MI_BANNERS_CLIENTS);
/** Configuration Items */
$modversion['config'][] = array(
'name' => 'email_new_banner',
'title' => '_MI_BANNERS_EMAIL_NEW_BANNER',
'description' => '',
'formtype' => 'yesno',
'valuetype' => 'int',
'default' => 1);
$modversion['config'][] = array(
'name' => 'email_new_banner_subject',
'title' => '_MI_BANNERS_EMAIL_NEW_BANNER_SUBJECT',
'description' => '',
'formtype' => 'textbox',
'valuetype' => 'text',
'default' => _MI_BANNERS_EMAIL_NEW_BANNER_SUBJECT_DEFAULT);
$modversion['config'][] = array(
'name' => 'email_new_client',
'title' => '_MI_BANNERS_EMAIL_NEW_CLIENT',
'description' => '',
'formtype' => 'yesno',
'valuetype' => 'int',
'default' => 1);
$modversion['config'][] = array(
'name' => 'email_new_client_subject',
'title' => '_MI_BANNERS_EMAIL_NEW_CLIENT_SUBJECT',
'description' => '',
'formtype' => 'textbox',
'valuetype' => 'text',
'default' => _MI_BANNERS_EMAIL_NEW_CLIENT_SUBJECT_DEFAULT);
$modversion['config'][] = array(
'name' => 'maxfilesize',
'title' => '_MI_BANNERS_MAXFILESIZE',
'description' => '_MI_BANNERS_MAXFILESIZE_DSC',
'formtype' => 'textbox',
'valuetype' => 'int',
'default' => 102400);
icms_loadLanguageFile($modversion['dirname'], 'common');
$modversion['config'][] = array(
'name' => 'client_banner_types',
'title' => '_MI_BANNERS_CLIENT_BANNER_TYPES',
'description' => '_MI_BANNERS_CLIENT_BANNER_TYPES_DSC',
'formtype' => 'select_multi',
'valuetype' => 'array',
'default' => array(1),
'options' => array(_CO_BANNERS_BANNER_TYPE_IMAGE => 1,
_CO_BANNERS_BANNER_TYPE_HTML => 2,
_CO_BANNERS_BANNER_TYPE_FLASH => 3));