-
Notifications
You must be signed in to change notification settings - Fork 2
/
xoops_version.php
127 lines (121 loc) · 6.86 KB
/
xoops_version.php
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
<?php
declare(strict_types=1);
/*
You may not change or alter any portion of this comment or credits
of supporting developers from this source code or any supporting source code
which is considered copyrighted (c) material of the original comment or credit authors.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
/**
* wgBacklinks module for xoops
*
* @copyright module for xoops
* @license GPL 2.0 or later
* @package wgbacklinks
* @author Goffy - Wedega.com - Email:<[email protected]> - Website:<https://wedega.com>
*/
require_once \dirname(__DIR__) . '/wgbacklinks/preloads/autoloader.php';
//
$dirname = \basename(__DIR__);
// ------------------- Informations ------------------- //
$modversion['name'] = \_MI_WGBACKLINKS_NAME;
$modversion['version'] = '1.1.1';
$modversion['release'] = '2023-04-09';
$modversion['release_date'] = '2023/04/09';
$modversion['module_status'] = 'RC2';
$modversion['min_xoops'] = '2.5.11 Stable';
$modversion['description'] = \_MI_WGBACKLINKS_DESC;
$modversion['author'] = 'Goffy - Wedega.com';
$modversion['author_mail'] = '[email protected]';
$modversion['author_website_url'] = 'https://wedega.com';
$modversion['author_website_name'] = 'Wedega - Webdesign Gabor';
$modversion['credits'] = 'Wedega - Webdesign Gabor';
$modversion['license'] = 'GPL 2.0 or later';
$modversion['license_url'] = 'www.gnu.org/licenses/gpl-2.0.html/';
$modversion['help'] = 'page=help';
$modversion['release_info'] = 'release_info';
$modversion['release_file'] = \XOOPS_URL . '/modules/wgbacklinks/docs/release_info file';
$modversion['manual'] = 'link to manual file';
$modversion['manual_file'] = \XOOPS_URL . '/modules/wgbacklinks/docs/install.txt';
$modversion['min_php'] = '7.4';
$modversion['min_admin'] = '1.1';
$modversion['min_db'] = array('mysql' => '5.0.7', 'mysqli' => '5.0.7');
$modversion['image'] = 'assets/images/wgbacklinks_logo.png';
$modversion['dirname'] = \basename(__DIR__);
$modversion['dirmoduleadmin'] = 'Frameworks/moduleclasses/moduleadmin';
$modversion['sysicons16'] = '../../Frameworks/moduleclasses/icons/16';
$modversion['sysicons32'] = '../../Frameworks/moduleclasses/icons/32';
$modversion['modicons16'] = 'assets/icons/16';
$modversion['modicons32'] = 'assets/icons/32';
$modversion['demo_site_url'] = 'https://xoops.wedega.com';
$modversion['demo_site_name'] = 'XOOPS on Wedega';
$modversion['support_url'] = 'https://xoops.wedega.com';
$modversion['support_name'] = '';
$modversion['module_website_url'] = 'https://xoops.wedega.com';
$modversion['module_website_name'] = 'XOOPS on Wedega';
$modversion['system_menu'] = 1;
$modversion['hasAdmin'] = 1;
$modversion['hasMain'] = 0;
$modversion['adminindex'] = 'admin/index.php';
$modversion['adminmenu'] = 'admin/menu.php';
$modversion['onInstall'] = 'include/install.php';
$modversion['onUpdate'] = 'include/update.php';
// ------------------- Templates ------------------- //
// Admin
$modversion['templates'][] = array('file' => 'wgbacklinks_admin_about.tpl', 'description' => '', 'type' => 'admin');
$modversion['templates'][] = array('file' => 'wgbacklinks_admin_header.tpl', 'description' => '', 'type' => 'admin');
$modversion['templates'][] = array('file' => 'wgbacklinks_admin_index.tpl', 'description' => '', 'type' => 'admin');
$modversion['templates'][] = array('file' => 'wgbacklinks_admin_providers.tpl', 'description' => '', 'type' => 'admin');
$modversion['templates'][] = array('file' => 'wgbacklinks_admin_sites.tpl', 'description' => '', 'type' => 'admin');
$modversion['templates'][] = array('file' => 'wgbacklinks_admin_shares.tpl', 'description' => '', 'type' => 'admin');
$modversion['templates'][] = array('file' => 'wgbacklinks_admin_clients.tpl', 'description' => '', 'type' => 'admin');
$modversion['templates'][] = array('file' => 'wgbacklinks_admin_footer.tpl', 'description' => '', 'type' => 'admin');
// User
$modversion['templates'][] = array('file' => 'wgbacklinks_header.tpl', 'description' => '');
$modversion['templates'][] = array('file' => 'wgbacklinks_index.tpl', 'description' => '');
$modversion['templates'][] = array('file' => 'wgbacklinks_footer.tpl', 'description' => '');
// ------------------- Mysql ------------------- //
$modversion['sqlfile']['mysql'] = 'sql/mysql.sql';
// Tables
$modversion['tables'][1] = 'wgbacklinks_providers';
$modversion['tables'][2] = 'wgbacklinks_sites';
$modversion['tables'][3] = 'wgbacklinks_clients';
// ------------------- Blocks ------------------- //
// ------------------- Config ------------------- //
$c = 1;
// Keywords
$modversion['config'][$c]['name'] = 'keywords';
$modversion['config'][$c]['title'] = '\_MI_WGBACKLINKS_KEYWORDS';
$modversion['config'][$c]['description'] = '\_MI_WGBACKLINKS_KEYWORDS_DESC';
$modversion['config'][$c]['formtype'] = 'textbox';
$modversion['config'][$c]['valuetype'] = 'text';
$modversion['config'][$c]['default'] = 'wgbacklinks, wedega, webdesign gabor';
++$c;
// Admin pager
$modversion['config'][$c]['name'] = 'adminpager';
$modversion['config'][$c]['title'] = '\_MI_WGBACKLINKS_ADMIN_PAGER';
$modversion['config'][$c]['description'] = '\_MI_WGBACKLINKS_ADMIN_PAGER_DESC';
$modversion['config'][$c]['formtype'] = 'textbox';
$modversion['config'][$c]['valuetype'] = 'int';
$modversion['config'][$c]['default'] = 10;
++$c;
// Module type
include_once \XOOPS_ROOT_PATH . '/modules/wgbacklinks/include/common.php';
$modversion['config'][$c]['name'] = 'wgbacklinks_modtype';
$modversion['config'][$c]['title'] = '\_MI_WGBACKLINKS_MODTYPE';
$modversion['config'][$c]['description'] = '\_MI_WGBACKLINKS_MODTYPE_DESC';
$modversion['config'][$c]['formtype'] = 'select';
$modversion['config'][$c]['valuetype'] = 'int';
$modversion['config'][$c]['default'] = 2;
$modversion['config'][$c]['options'] = array('\_MI_WGBACKLINKS_MODTYPE_1' => \WGBACKLINKS_MODTYPE_1, '\_MI_WGBACKLINKS_MODTYPE_2' => \WGBACKLINKS_MODTYPE_2);
++$c;
// Unique Key for this module
$modversion['config'][$c]['name'] = 'wgbacklinks_modkey';
$modversion['config'][$c]['title'] = '\_MI_WGBACKLINKS_MODKEY';
$modversion['config'][$c]['description'] = '\_MI_WGBACKLINKS_MODKEY_DESC';
$modversion['config'][$c]['formtype'] = 'textbox';
$modversion['config'][$c]['valuetype'] = 'text';
$modversion['config'][$c]['default'] = md5(\substr(str_shuffle("!$%&/=?_-;:,.0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"), 0, 50));
++$c;