Completed
Pull Request — master (#29)
by Goffy
01:40
created

language/english/common.php (2 issues)

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
 * ****************************************************************************
4
 *  - A Project by Developers TEAM For Xoops - ( https://xoops.org )
5
 * ****************************************************************************
6
 *  XNEWSLETTER - MODULE FOR XOOPS
7
 *  Copyright (c) 2007 - 2012
8
 *  Goffy ( wedega.com )
9
 *
10
 *  You may not change or alter any portion of this comment or credits
11
 *  of supporting developers from this source code or any supporting
12
 *  source code which is considered copyrighted (c) material of the
13
 *  original comment or credit authors.
14
 *
15
 *  This program is distributed in the hope that it will be useful,
16
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
17
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
 *  GNU General Public License for more details.
19
 *  ---------------------------------------------------------------------------
20
 * @copyright  Goffy ( wedega.com )
21
 * @license    GPL 2.0
22
 * @package    xnewsletter
23
 * @author     Goffy ( [email protected] )
24
 *
25
 *  Version :   svn:$id$
26
 * ****************************************************************************
27
 */
28
// Common
29
if (!defined('_CO_XNEWSLETTER_WARNING_NOPERMISSIONS')) {
30
    define('_CO_XNEWSLETTER_WARNING_NOPERMISSIONS', 'Warning: insufficient permissions');
31
}
32
$moduleDirName = basename(dirname(dirname(__DIR__)));
33
$moduleDirNameUpper = mb_strtoupper($moduleDirName);
34
$pathIcon32 = \Xmf\Module\Admin::menuIconPath('');
35
if (!defined($moduleDirNameUpper . '_AUTHOR_LOGOIMG')) {
36
    define($moduleDirNameUpper . '_AUTHOR_LOGOIMG', $pathIcon32 . '/xoopsmicrobutton.gif');
37
}
38
//Latest Version Check
39 View Code Duplication
if (!defined('CO_' . $moduleDirNameUpper . '_' . 'NEW_VERSION')) {
0 ignored issues
show
This code seems to be duplicated across your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
40
    define('CO_' . $moduleDirNameUpper . '_' . 'NEW_VERSION', 'New Version: ');
41
}
42 View Code Duplication
if (!defined('CO_' . $moduleDirNameUpper . '_' . 'ADMENU_FEEDBACK')) {
0 ignored issues
show
This code seems to be duplicated across your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
43
    //Menu
44
    define('CO_' . $moduleDirNameUpper . '_' . 'ADMENU_FEEDBACK', 'Feedback');
45
}