Issues (143)

include/uninstallscript.php (3 issues)

Labels
Severity
1
<?php
2
/**
3
 *  Uninstall Script
4
 *
5
 * You may not change or alter any portion of this comment or credits
6
 * of supporting developers from this source code or any supporting source code
7
 * which is considered copyrighted (c) material of the original comment or credit authors.
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
 * @package   ::    xdonations
13
 * @subpackage:: admin
14
 * @author    ::     zyspec ([email protected])
15
 * @license   ::    {@link http://www.gnu.org/licenses/gpl-2.0.html GNU Public License}
16
 * @since     ::      File available since version 1.96
17
 */
18
19
use XoopsModules\Xdonations;
20
21
require_once XOOPS_ROOT_PATH . '/include/cp_functions.php';
0 ignored issues
show
The constant XOOPS_ROOT_PATH was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
22
$moduleDirName = basename(dirname(__DIR__));
23
global $xoopsConfig;
24
25
xoops_loadLanguage('main', $moduleDirName);
0 ignored issues
show
The function xoops_loadLanguage was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

25
/** @scrutinizer ignore-call */ 
26
xoops_loadLanguage('main', $moduleDirName);
Loading history...
26
27
// Delete the ipn log file if it exists
28
$lpFile = XOOPS_UPLOAD_PATH . '/xdonations_ipn.log';
0 ignored issues
show
The constant XOOPS_UPLOAD_PATH was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
29
if (file_exists($lpFile)) {
30
    unlink($lpFile);
31
}
32