-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuploaderExt.php
More file actions
35 lines (27 loc) · 1.02 KB
/
uploaderExt.php
File metadata and controls
35 lines (27 loc) · 1.02 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
<?php
# get correct id for plugin
$thisfile = basename(__FILE__, ".php");
# add in this plugin's language file
i18n_merge('uploaderExt') || i18n_merge('uploaderExt', 'en_US');
# register plugin
register_plugin(
$thisfile, //Plugin id
'UploaderExt', //Plugin name
'3.3', //Plugin version
'Multicolor', //Plugin author
'https://getsimple-ce.ovh/donate', //author website
i18n_r('uploaderExt/LANG_Description'), //Plugin description
'plugins', //page type - on which admin tab to display
'uploaderExtSettings' //main function (administration)
);
add_action('footer', 'uploaderExt');
$jsonSettings = json_decode(@file_get_contents(GSDATAOTHERPATH . 'UploaderExt/settings.json'), true);
function uploaderExt() {
global $jsonSettings;
include GSPLUGINPATH . 'uploaderExt/uploaderExtFunction.inc.php';
};
add_action('plugins-sidebar', 'createSideMenu', array($thisfile, i18n_r('uploaderExt/LANG_Settings').' 📤'));
function uploaderExtSettings() {
global $jsonSettings;
include GSPLUGINPATH . 'uploaderExt/settings.inc.php';
};