Skip to content

Commit cf15587

Browse files
committed
Merge branch 'master' into pilot
2 parents 15226a4 + eb45cd9 commit cf15587

File tree

3 files changed

+36
-14
lines changed

3 files changed

+36
-14
lines changed

README.md

Lines changed: 32 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,26 @@ set T="../xoops_trust_path";curl xoopsx.github.io/installer/install.sh|sed "s#<T
4848

4949
***
5050

51-
##Legacy
51+
# Legacy
52+
53+
# ⚠️ Unmaintained repository !
54+
55+
# 🆕 Development moved to XCL
56+
57+
https://github.com/xoopscube/xcl
58+
59+
## XOOPSCube development branch : 2.3
60+
61+
2019-01-29 Branch 2.3 updated to PHP7
62+
63+
https://github.com/xoopscube/xcl/tree/develop
64+
65+
XCL UI prototype
66+
67+
https://xoopscube.github.io/
68+
69+
TOC
70+
====
5271

5372
* [About](#about)
5473
* [License](#license)
@@ -81,12 +100,12 @@ About
81100
License
82101
====
83102

84-
###XOOPS Cube
103+
### XOOPS Cube
85104

86105
XOOPS Cube was started from scratch and the XOOPS Cube Core source code is released under the BSD licence.
87106

88107

89-
###XOOPS Cube Legacy
108+
### XOOPS Cube Legacy
90109

91110
XOOPS Cube Legacy source code which is one of base modules to ensure compatibility with old versions of Xoops 2 is released under a GPL licence.
92111

@@ -129,11 +148,11 @@ Language</th>
129148
</tr>
130149
</table>
131150

132-
###Software
151+
### Software
133152

134153
Useful Wikipedia articles with tables comparing general and technical information of Proprietary software, Free and open-source software.
135154

136-
<img src="http://xoopscube.org/uploads/fckeditor/server_database.png"> <a href="http://en.wikipedia.org/wiki/List_of_AMP_packages"> Local Test Server</a> : List of Apache窶溺ySQL窶撤HP packages
155+
<img src="http://xoopscube.org/uploads/fckeditor/server_database.png"> <a href="http://en.wikipedia.org/wiki/List_of_AMP_packages"> Local Test Server</a> : List of Apache–MySQL–PHP packages
137156
<img src="http://xoopscube.org/uploads/fckeditor/script_edit.png"> <a href="http://en.wikipedia.org/wiki/Source_code_editor"> Source Code Editor</a> : Some well-known source code editors
138157
<img src="http://xoopscube.org/uploads/fckeditor/picture_edit.png"> <a href="http://en.wikipedia.org/wiki/Comparison_of_raster_graphics_editors"> Graphics Editor</a> : Comparison of raster graphics editors
139158
<img src="http://xoopscube.org/uploads/fckeditor/computer_go.png"> <a href="http://en.wikipedia.org/wiki/FTP_clients"> FTP Clients</a> : Comparison of FTP client software
@@ -226,17 +245,17 @@ XOOPS Cube functionality can also be easily extended with Preloads - one file cl
226245
Modules
227246
====
228247

229-
###Xoops X (Ten)
248+
### Xoops X (Ten)
230249
Modules maintained by the community members
231250

232251
https://github.com/XoopsX
233252

234-
###Xoopscube.jp
253+
### Xoopscube.jp
235254
Modules up-to-date
236255

237256
[News, Announcements and Release Notes](http://xoopscube.jp/module/)
238257

239-
###Xoopscube.org
258+
### Xoopscube.org
240259

241260
[Module Compatibility Informations](http://xoopscube.org/modules/pukiwiki/?XOOPSCubeLegacy%2FModuleCompatibility)
242261

@@ -259,9 +278,12 @@ http://xoopscube.org/documentation/api
259278
Site and Support
260279
====
261280

262-
http://xoopscube.org
281+
https://github.com/xoopscube/legacy (uptodate development)
282+
283+
http://xoopscube.jp (uptodate)
284+
285+
http://xoopscube.org (archive)
263286

264-
http://xoopscube.jp
265287

266288
Contribute
267289
====

html/modules/legacy/admin/actions/ActSearchAction.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public function prepare(&$controller, &$xoopsUser)
127127
$perm = $db->prefix("group_permission");
128128
$groups = implode(",", $xoopsUser->getGroups());
129129

130-
$sql = "SELECT DISTINCT ${mod}.mid FROM ${mod},${perm} " .
130+
$sql = "SELECT DISTINCT ${mod}.weight, ${mod}.mid FROM ${mod},${perm} " .
131131
"WHERE ${mod}.isactive=1 AND ${mod}.mid=${perm}.gperm_itemid AND ${perm}.gperm_name='module_admin' AND ${perm}.gperm_groupid IN (${groups}) " .
132132
"ORDER BY ${mod}.weight, ${mod}.mid";
133133

html/modules/legacy/admin/blocks/AdminSideMenu.class.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ public function execute()
9797
// Users who are belong to ADMIN GROUP have every permissions, so we have to prepare two kinds of SQL.
9898
//
9999
if ($root->mContext->mUser->isInRole('Site.Owner')) {
100-
$sql = "SELECT DISTINCT mid FROM ${mod} WHERE isactive=1 AND hasadmin=1 ORDER BY weight, mid";
100+
$sql = "SELECT DISTINCT weight, mid FROM ${mod} WHERE isactive=1 AND hasadmin=1 ORDER BY weight, mid";
101101
} else {
102-
$sql = "SELECT DISTINCT ${mod}.mid FROM ${mod},${perm} " .
102+
$sql = "SELECT DISTINCT ${mod}.weight, ${mod}.mid FROM ${mod},${perm} " .
103103
"WHERE ${mod}.isactive=1 AND ${mod}.mid=${perm}.gperm_itemid AND ${perm}.gperm_name='module_admin' AND ${perm}.gperm_groupid IN (${groups}) " .
104104
"AND ${mod}.hasadmin=1 " .
105105
"ORDER BY ${mod}.weight, ${mod}.mid";
@@ -110,7 +110,7 @@ public function execute()
110110

111111
$handler =& xoops_gethandler('module');
112112

113-
while (list($mid) = $db->fetchRow($result)) {
113+
while (list($weight, $mid) = $db->fetchRow($result)) {
114114
$xoopsModule = & $handler->get($mid);
115115
$module =& Legacy_Utils::createModule($xoopsModule, false);
116116

0 commit comments

Comments
 (0)