XoopsModules25x /
efqdirectory
| 1 | <?php |
||
| 2 | /* |
||
| 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 | */ |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @copyright {@link https://xoops.org/ XOOPS Project} |
||
| 14 | * @license {@link http://www.gnu.org/licenses/gpl-2.0.html GNU GPL 2 or later} |
||
| 15 | * @package efqdirectory |
||
| 16 | * @since |
||
| 17 | * @author Martijn Hertog (aka wtravel) |
||
| 18 | * @author XOOPS Development Team, |
||
| 19 | */ |
||
| 20 | |||
| 21 | include __DIR__ . '/header.php'; |
||
| 22 | $myts = MyTextSanitizer::getInstance();// MyTextSanitizer object |
||
|
0 ignored issues
–
show
|
|||
| 23 | require_once XOOPS_ROOT_PATH . '/class/module.errorhandler.php'; |
||
|
0 ignored issues
–
show
|
|||
| 24 | require_once __DIR__ . '/class/class.couponhandler.php'; |
||
| 25 | |||
| 26 | $eh = new ErrorHandler; |
||
|
0 ignored issues
–
show
The type
ErrorHandler was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 27 | $moddir = $xoopsModule->getVar('dirname'); |
||
| 28 | |||
| 29 | $itemid = isset($_GET['itemid']) ? (int)$_GET['itemid'] : 0; |
||
| 30 | $catid = isset($_GET['catid']) ? (int)$_GET['catid'] : 0; |
||
| 31 | |||
| 32 | $GLOBALS['xoopsOption']['template_main'] = 'efqdiralpha1_savings.tpl'; |
||
| 33 | include XOOPS_ROOT_PATH . '/header.php'; |
||
| 34 | $xoopsTpl->assign('xoops_module_header', $xoops_module_header); |
||
| 35 | |||
| 36 | $coupon = new efqCouponHandler(); |
||
| 37 | if ($itemid) { |
||
| 38 | $coupons = $coupon->getByItem($itemid); |
||
| 39 | } |
||
| 40 | $sql = 'SELECT itemid, title FROM ' . $xoopsDB->prefix($module->getVar('dirname', 'n') . '_items') . ' WHERE itemid=' . $itemid . ''; |
||
| 41 | $item_result = $xoopsDB->query($sql); |
||
| 42 | $numrows = $xoopsDB->getRowsNum($item_result); |
||
| 43 | //echo $numrows; |
||
| 44 | while (list($itemid, $itemtitle) = $xoopsDB->fetchRow($item_result)) { |
||
| 45 | $title = $myts->htmlSpecialChars($itemtitle); |
||
| 46 | $item = $itemid; |
||
| 47 | } |
||
| 48 | $xoopsTpl->assign('itemtitle', $title); |
||
| 49 | $xoopsTpl->assign('itemid', $item); |
||
| 50 | |||
| 51 | foreach ($coupons as $coup) { |
||
| 52 | //echo $coup['descr']; |
||
| 53 | $xoopsTpl->append('coupons', array( |
||
| 54 | 'couponid' => $coup['couponid'], |
||
| 55 | 'itemid' => $coup['itemid'], |
||
| 56 | 'descr' => $myts->displayTarea($coup['descr']), |
||
| 57 | 'image' => $coup['image'], |
||
| 58 | 'publish' => $coup['publish'], |
||
| 59 | 'expire' => $coup['expire'], |
||
| 60 | 'heading' => $coup['heading'], |
||
| 61 | 'lbr' => $coup['lbr'] |
||
| 62 | )); |
||
| 63 | } |
||
| 64 | if ($xoopsUser) { |
||
| 65 | $xoopsTpl->assign('admin', $xoopsUser->isAdmin($xoopsModule->mid())); |
||
| 66 | } |
||
| 67 | $xoopsTpl->assign('moddir', $moddir); |
||
| 68 | |||
| 69 | include XOOPS_ROOT_PATH . '/footer.php'; |
||
| 70 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths