Completed
Push — master ( 692213...d4ec0d )
by Goffy
03:18 queued 01:37
created

footer.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

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
 * xnewsletter module
13
 *
14
 * @copyright       The XOOPS Project http://sourceforge.net/projects/xoops/
15
 * @license         GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
16
 * @package         xnewsletter
17
 * @since           1.3
18
 * @author          Xoops Development Team
19
 * @version         svn:$id$
20
 */
21
// Module info/menu
22
$moduleInfo = $xnewsletter->getModule()->getInfo();
23
//$xoopsTpl->assign('xnewsletterModuleInfo', $moduleInfo); // huge array but useful?
0 ignored issues
show
Unused Code Comprehensibility introduced by
73% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
24
$xoopsTpl->assign('xnewsletterModuleInfoSub', $moduleInfo['sub']);
25
// Module admin
26
$xoopsTpl->assign('isAdmin', xnewsletter_userIsAdmin());
27
// Extra info
28
// copyright
29
$xoopsTpl->assign('copyright', $moduleCopyrightHtml); // this definition is not removed for backward compatibility issues
30
$xoopsTpl->assign('copyright_code', $moduleCopyrightHtml); // include/config.php
31
// advertise
32
$xoopsTpl->assign('adv', $xnewsletter->getConfig('advertise')); // this definition is not removed for backward compatibility issues
33
$xoopsTpl->assign('advertise_code', $xnewsletter->getConfig('advertise'));
34
// social
35
if ($xnewsletter->getConfig('social_active') == true) {
36
    $xoopsTpl->assign('social_active', true);
37
    $xoopsTpl->assign('social_code', $xnewsletter->getConfig('social_code'));
38
}
39
40
include_once XOOPS_ROOT_PATH . '/footer.php';
41