Skip to content

Commit

Permalink
Updates 1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mambax7 committed Jul 21, 2017
1 parent 9fb3489 commit a7100cc
Show file tree
Hide file tree
Showing 138 changed files with 3,941 additions and 2,121 deletions.
31 changes: 18 additions & 13 deletions admin/about.php
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
<?php

/*
* 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.
*/
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.
*/
/**
* @copyright XOOPS Project https://xoops.org/
* @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
* @package
* @since
* @author XOOPS Development Team
* Module: Equipment
*
* @category Module
* @package equipment
* @author swt02026 (https://github.com/swt02026/)
* @author XOOPS Development Team <http://xoops.org>
* @copyright {@link https://xoops.org/ XOOPS Project}
* @license GPL 2.0 or later
* @link https://xoops.org/
* @since 1.0.0
*/

require __DIR__ . '/admin_header.php';
Expand Down
31 changes: 18 additions & 13 deletions admin/admin_footer.php
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
<?php

/*
* 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.
*/
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.
*/
/**
* @copyright XOOPS Project https://xoops.org/
* @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
* @package
* @since
* @author XOOPS Development Team
* Module: Equipment
*
* @category Module
* @package equipment
* @author swt02026 (https://github.com/swt02026/)
* @author XOOPS Development Team <http://xoops.org>
* @copyright {@link https://xoops.org/ XOOPS Project}
* @license GPL 2.0 or later
* @link https://xoops.org/
* @since 1.0.0
*/

$pathIcon32 = Xmf\Module\Admin::iconUrl('', 32);
Expand Down
48 changes: 27 additions & 21 deletions admin/admin_header.php
Original file line number Diff line number Diff line change
@@ -1,21 +1,28 @@
<?php

/*
* 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.
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.
*/
/**
* Module: Equipment
*
* 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.
* @category Module
* @package equipment
* @author swt02026 (https://github.com/swt02026/)
* @author XOOPS Development Team <http://xoops.org>
* @copyright {@link https://xoops.org/ XOOPS Project}
* @license GPL 2.0 or later
* @link https://xoops.org/
* @since 1.0.0
*/

/**
* @copyright XOOPS Project https://xoops.org/
* @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
* @package
* @since
* @author XOOPS Development Team
*/
use Xmf\Request;

$path = dirname(dirname(dirname(__DIR__)));
require_once $path . '/include/cp_header.php';
Expand All @@ -29,28 +36,27 @@
} else {
$moduleHelper = Xmf\Module\Helper::getHelper('system');
}

/** @var Xmf\Module\Admin $adminObject */
$adminObject = \Xmf\Module\Admin::getInstance();

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

/** @var XoopsObjectHandler $descHandler */
$descHandler = xoops_getModuleHandler('desc', $moduleDirName);
/** @var XoopsObjectHandler $borrowHandler */
$borrowHandler = xoops_getModuleHandler('borrow', $moduleDirName);
/** @var XoopsObjectHandler $equipmentHandler */
$equipmentHandler = xoops_getModuleHandler('equipment', $moduleDirName);
/** @var XoopsObjectHandler $rentalsHandler */
$rentalsHandler = xoops_getModuleHandler('rentals', $moduleDirName);
/** @var XoopsObjectHandler $customerHandler */
$customerHandler = xoops_getModuleHandler('customer', $moduleDirName);

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

// Local icons path
$xoopsTpl->assign('pathModIcon16', $pathIcon16);
$xoopsTpl->assign('pathModIcon32', $pathIcon32);

// Load language files
$moduleHelper->loadLanguage('admin');
$moduleHelper->loadLanguage('modinfo');
Expand Down
219 changes: 0 additions & 219 deletions admin/borrow.php

This file was deleted.

Loading

0 comments on commit a7100cc

Please sign in to comment.