Code Duplication    Length = 10-10 lines in 2 locations

cleanit.php 1 location

@@ 13-22 (lines=10) @@
10
 */
11
//  trigger_error("Clean Invoked");
12
include __DIR__ . '/../../mainfile.php';
13
if (empty($_POST['check'])) { // this is set by the admin page option, not by a regular call
14
    $GLOBALS['xoopsOption']['template_main'] = 'gwiki_view.tpl';
15
    include XOOPS_ROOT_PATH . '/header.php';
16
    do_clean();
17
    include XOOPS_ROOT_PATH . '/footer.php';
18
} else {
19
    $xoopsLogger->activated = false;
20
    do_clean();
21
    exit;
22
}
23
24
function do_clean()
25
{

extras/cleanlitterbox.php 1 location

@@ 36-45 (lines=10) @@
33
include __DIR__ . '/../../mainfile.php';
34
// if check variable is set, show like a regular module page (with debug if on)
35
// otherwise, turn off logging and just get busy cleaning
36
if (!empty($_REQUEST['check'])) {
37
    $GLOBALS['xoopsOption']['template_main'] = 'gwiki_view.tpl';
38
    include XOOPS_ROOT_PATH . '/header.php';
39
    do_clean();
40
    include XOOPS_ROOT_PATH . '/footer.php';
41
} else {
42
    $xoopsLogger->activated = false;
43
    do_clean();
44
    exit;
45
}
46
47
function do_clean()
48
{