-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathadmin.php
More file actions
102 lines (90 loc) · 3.37 KB
/
admin.php
File metadata and controls
102 lines (90 loc) · 3.37 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
<?php
/**
* jQuery for CMSimple
*
* Admin-interface for configuring the plugin
* via the standard-functions of pluginloader.
*
* Version: 1.6.9
* Build: 20260030501
* Copyright: Holger Irmler
* Email: CMSimple@HolgerIrmler.de
* Website: http://CMSimple.HolgerIrmler.de
* Copyright: CMSimple_XH developers
* Website: https://www.cmsimple-xh.org/?About-CMSimple_XH/The-XH-Team
*
*/
if (!defined('CMSIMPLE_XH_VERSION')) {
header('HTTP/1.0 403 Forbidden');
exit;
}
require($pth['folder']['plugin_includes'] . 'jqsystemcheck.php');
/*
* Register the plugin menu items.
*/
if (function_exists('XH_registerStandardPluginMenuItems')) {
XH_registerStandardPluginMenuItems(false);
}
if(XH_wantsPluginAdministration('jquery')) {
//Helper-functions
function jquery_getCoreVersions() {
global $pth;
$versions = array();
$handle = opendir($pth['folder']['plugins'] . 'jquery/lib/jquery/');
while (false !== ($entry = readdir($handle))) {
if ($entry != '.' && $entry != '..') {
$versions[] = $entry;
}
}
closedir($handle);
sort($versions);
return $versions;
}
function jquery_getUiVersions() {
global $pth;
$versions = array();
$handle = opendir($pth['folder']['plugins'] . 'jquery/lib/jquery_ui/');
while (false !== ($entry = readdir($handle))) {
if ($entry != '.' && $entry != '..') {
$versions[] = $entry;
}
}
closedir($handle);
sort($versions);
return $versions;
}
function jquery_getMigrateVersions() {
global $pth;
$temp = glob($pth['folder']['plugins'] . 'jquery/lib/migrate/*.js');
$versions = array();
foreach ($temp as $version) {
$versions[] = basename($version);
}
return $versions;
}
include_once($pth['folder']['plugins'] . 'jquery/jquery.inc.php');
include_jQuery();
include_jQueryUI();
$o .= print_plugin_admin('on');
if(($admin != 'plugin_main') && ($admin != '')) {
$o .= plugin_admin_common($action, $admin, $plugin);
}
$jqPluginName = 'jQuery for CMSimple_XH';
$jqPluginVersion = '1.6.9';
$jqPluginDate = '2026-03-05';
$jqCopyright = '2024';
$jqCmsVersionArray = array('1.7.0', 'and higher');
$jqPhpVersion = '7.4';
if($admin == '' || $admin == 'plugin_main') {
$o .= "\n" . '<div>';
$o .= "\n" . "<h1>$jqPluginName</h1>";
$o .= "\n" . "<p>$jqPluginVersion - $jqPluginDate</p>";
$o .= "\n" . '<p>©2011-2023 <a href="http://cmsimple.holgerirmler.de/" target="_blank">http://CMSimple.HolgerIrmler.de</a></p>';
$o .= "\n" . "<p>©$jqCopyright <a href=\"https://www.cmsimple-xh.org/?About-CMSimple_XH/The-XH-Team\" target=\"_blank\">The CMSimple_XH developers</a></p>";
$o .= "\n" . "<p>$jqPluginName is published under <a href=\"https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html\" target=\"_blank\">GNU General Public License, version 2</a></p>";
$o .= "\n" . '<hr>';
$o .= "\n" . '<p><a target="_blank" href="https://jquery.com">jQuery</a> is published under <a href="https://opensource.org/license/mit" target="_blank">MIT license</a></p>';
$o .= jquery_Systemcheck($jqCmsVersionArray, $jqPhpVersion);
$o .= "\n" . '</div>';
}
}