Skip to content

Commit a7100cc

Browse files
committed
Updates 1.1
1 parent 9fb3489 commit a7100cc

File tree

138 files changed

+3941
-2121
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

138 files changed

+3941
-2121
lines changed

admin/about.php

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,25 @@
11
<?php
2+
23
/*
3-
* You may not change or alter any portion of this comment or credits
4-
* of supporting developers from this source code or any supporting source code
5-
* which is considered copyrighted (c) material of the original comment or credit authors.
6-
*
7-
* This program is distributed in the hope that it will be useful,
8-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10-
*/
4+
You may not change or alter any portion of this comment or credits
5+
of supporting developers from this source code or any supporting source code
6+
which is considered copyrighted (c) material of the original comment or credit authors.
117
8+
This program is distributed in the hope that it will be useful,
9+
but WITHOUT ANY WARRANTY; without even the implied warranty of
10+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11+
*/
1212
/**
13-
* @copyright XOOPS Project https://xoops.org/
14-
* @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
15-
* @package
16-
* @since
17-
* @author XOOPS Development Team
13+
* Module: Equipment
14+
*
15+
* @category Module
16+
* @package equipment
17+
* @author swt02026 (https://github.com/swt02026/)
18+
* @author XOOPS Development Team <http://xoops.org>
19+
* @copyright {@link https://xoops.org/ XOOPS Project}
20+
* @license GPL 2.0 or later
21+
* @link https://xoops.org/
22+
* @since 1.0.0
1823
*/
1924

2025
require __DIR__ . '/admin_header.php';

admin/admin_footer.php

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,25 @@
11
<?php
2+
23
/*
3-
* You may not change or alter any portion of this comment or credits
4-
* of supporting developers from this source code or any supporting source code
5-
* which is considered copyrighted (c) material of the original comment or credit authors.
6-
*
7-
* This program is distributed in the hope that it will be useful,
8-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10-
*/
4+
You may not change or alter any portion of this comment or credits
5+
of supporting developers from this source code or any supporting source code
6+
which is considered copyrighted (c) material of the original comment or credit authors.
117
8+
This program is distributed in the hope that it will be useful,
9+
but WITHOUT ANY WARRANTY; without even the implied warranty of
10+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11+
*/
1212
/**
13-
* @copyright XOOPS Project https://xoops.org/
14-
* @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
15-
* @package
16-
* @since
17-
* @author XOOPS Development Team
13+
* Module: Equipment
14+
*
15+
* @category Module
16+
* @package equipment
17+
* @author swt02026 (https://github.com/swt02026/)
18+
* @author XOOPS Development Team <http://xoops.org>
19+
* @copyright {@link https://xoops.org/ XOOPS Project}
20+
* @license GPL 2.0 or later
21+
* @link https://xoops.org/
22+
* @since 1.0.0
1823
*/
1924

2025
$pathIcon32 = Xmf\Module\Admin::iconUrl('', 32);

admin/admin_header.php

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,28 @@
11
<?php
2+
23
/*
3-
* You may not change or alter any portion of this comment or credits
4-
* of supporting developers from this source code or any supporting source code
5-
* which is considered copyrighted (c) material of the original comment or credit authors.
4+
You may not change or alter any portion of this comment or credits
5+
of supporting developers from this source code or any supporting source code
6+
which is considered copyrighted (c) material of the original comment or credit authors.
7+
8+
This program is distributed in the hope that it will be useful,
9+
but WITHOUT ANY WARRANTY; without even the implied warranty of
10+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11+
*/
12+
/**
13+
* Module: Equipment
614
*
7-
* This program is distributed in the hope that it will be useful,
8-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15+
* @category Module
16+
* @package equipment
17+
* @author swt02026 (https://github.com/swt02026/)
18+
* @author XOOPS Development Team <http://xoops.org>
19+
* @copyright {@link https://xoops.org/ XOOPS Project}
20+
* @license GPL 2.0 or later
21+
* @link https://xoops.org/
22+
* @since 1.0.0
1023
*/
1124

12-
/**
13-
* @copyright XOOPS Project https://xoops.org/
14-
* @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
15-
* @package
16-
* @since
17-
* @author XOOPS Development Team
18-
*/
25+
use Xmf\Request;
1926

2027
$path = dirname(dirname(dirname(__DIR__)));
2128
require_once $path . '/include/cp_header.php';
@@ -29,28 +36,27 @@
2936
} else {
3037
$moduleHelper = Xmf\Module\Helper::getHelper('system');
3138
}
39+
3240
/** @var Xmf\Module\Admin $adminObject */
3341
$adminObject = \Xmf\Module\Admin::getInstance();
3442

3543
$pathIcon16 = \Xmf\Module\Admin::iconUrl('', 16);
3644
$pathIcon32 = \Xmf\Module\Admin::iconUrl('', 32);
3745
$pathModIcon32 = $moduleHelper->getModule()->getInfo('modicons32');
3846

39-
/** @var XoopsObjectHandler $descHandler */
40-
$descHandler = xoops_getModuleHandler('desc', $moduleDirName);
41-
/** @var XoopsObjectHandler $borrowHandler */
42-
$borrowHandler = xoops_getModuleHandler('borrow', $moduleDirName);
47+
/** @var XoopsObjectHandler $equipmentHandler */
48+
$equipmentHandler = xoops_getModuleHandler('equipment', $moduleDirName);
49+
/** @var XoopsObjectHandler $rentalsHandler */
50+
$rentalsHandler = xoops_getModuleHandler('rentals', $moduleDirName);
51+
/** @var XoopsObjectHandler $customerHandler */
52+
$customerHandler = xoops_getModuleHandler('customer', $moduleDirName);
4353

4454
$myts = MyTextSanitizer::getInstance();
4555
if (!isset($xoopsTpl) || !is_object($xoopsTpl)) {
4656
require_once XOOPS_ROOT_PATH . '/class/template.php';
4757
$xoopsTpl = new XoopsTpl();
4858
}
4959

50-
// Local icons path
51-
$xoopsTpl->assign('pathModIcon16', $pathIcon16);
52-
$xoopsTpl->assign('pathModIcon32', $pathIcon32);
53-
5460
// Load language files
5561
$moduleHelper->loadLanguage('admin');
5662
$moduleHelper->loadLanguage('modinfo');

admin/borrow.php

Lines changed: 0 additions & 219 deletions
This file was deleted.

0 commit comments

Comments
 (0)