e107inc/e107

View on GitHub
e107_admin/search.php

Summary

Maintainability
A
0 mins
Test Coverage
F
43%

Variable $search_handlers was undeclared, but array fields are being added to it.
Open

$search_handlers['comments'] = LAN_COMMENTS;
Severity: Info
Found in e107_admin/search.php by phan

Variable $tp is undeclared
Open

    $search_prefs[$handler_type][$query[2]]['chars'] = $tp -> toDB($_POST['chars']);
Severity: Minor
Found in e107_admin/search.php by phan

Variable $ns is undeclared
Open

    $ns->tablerender($caption, $mes->render().$text);
Severity: Minor
Found in e107_admin/search.php by phan

Variable $search_info was undeclared, but array fields are being added to it.
Open

            $search_info[0]['qtype'] = $searchConfigs[$plug_dir]['name'];
Severity: Info
Found in e107_admin/search.php by phan

Variable $ns is undeclared
Open

    $ns->tablerender(SEALAN_1, $mes->render().$text);
Severity: Minor
Found in e107_admin/search.php by phan

Variable $sql is undeclared
Open

    $check = $sql ->update("core", "e107_value='".$tmp."' WHERE e107_name='search_prefs'");
Severity: Minor
Found in e107_admin/search.php by phan

Variable $temp is undeclared
Open

    unset($temp);
Severity: Minor
Found in e107_admin/search.php by phan

Reference to undeclared constant \ADMIN_EDIT_ICON
Open

                                <a class='btn btn-default btn-secondary btn-large' href='".e_SELF."?edit.c.".$key."'>".ADMIN_EDIT_ICON."</a>
Severity: Minor
Found in e107_admin/search.php by phan

Variable $tp is undeclared
Open

                                <input class='tbox input-text' type='text' name='pre_title_alt' value='".$tp -> toForm($search_prefs[$handler_type][$query[2]]['pre_title_alt'])."' size='20' />
Severity: Minor
Found in e107_admin/search.php by phan

Variable $ns is undeclared
Open

$ns->tablerender(SEALAN_20, $mes->render().$text);
Severity: Minor
Found in e107_admin/search.php by phan

Variable $tp is undeclared
Open

    $query[2] = $tp->toDB($query[2]);
Severity: Minor
Found in e107_admin/search.php by phan

Variable $temp was undeclared, but array fields are being added to it.
Open

    $temp['search_restrict'] = intval($_POST['search_restrict']);
Severity: Info
Found in e107_admin/search.php by phan

Variable $tp is undeclared
Open

                            <input class='tbox input-text' type='text' name='chars' value='".$tp -> toForm($search_prefs[$handler_type][$query[2]]['chars'])."' size='4' maxlength='4' />
Severity: Minor
Found in e107_admin/search.php by phan

Variable $comments_type_id is undeclared
Open

        $search_prefs['comments_handlers'][$file] = array('id' => $comments_type_id, 'class' => '0', 'dir' => $file);
Severity: Minor
Found in e107_admin/search.php by phan

Variable $tp is undeclared
Open

    $search_prefs[$handler_type][$query[2]]['pre_title_alt'] = $tp -> toDB($_POST['pre_title_alt']);
Severity: Minor
Found in e107_admin/search.php by phan

Variable $tp is undeclared
Open

                            ".$frm->text('time_secs', $tp -> toForm($search_prefs['time_secs']), 3, 'class=tbox&size=mini')."&nbsp;".SEALAN_14."
Severity: Minor
Found in e107_admin/search.php by phan

Variable $var was undeclared, but array fields are being added to it.
Open

    $var['main']['text'] = SEALAN_41;
Severity: Info
Found in e107_admin/search.php by phan

Variable $temp was undeclared, but array fields are being added to it.
Open

    $temp['relevance'] = intval($_POST['relevance']);
Severity: Info
Found in e107_admin/search.php by phan

Variable $comments_type_id is undeclared
Open

        unset($comments_type_id);
Severity: Minor
Found in e107_admin/search.php by phan

Variable $tp is undeclared
Open

    $search_prefs[$handler_type][$query[2]]['results'] = $tp -> toDB($_POST['results']);
Severity: Minor
Found in e107_admin/search.php by phan

Variable $sql is undeclared
Open

        $mes->addError(LAN_ERROR." ".$sql->getLastErrorNumber().': '.$sql->getLastErrorText());
Severity: Minor
Found in e107_admin/search.php by phan

Variable $tp is undeclared
Open

                            <input class='tbox input-text' type='text' name='results' value='".$tp -> toForm($search_prefs[$handler_type][$query[2]]['results'])."' size='4' maxlength='4' />
Severity: Minor
Found in e107_admin/search.php by phan

Reference to undeclared constant \ADMIN_EDIT_ICON
Open

                                <a class='btn btn-default btn-secondary btn-large' href='".e_SELF."?edit.p.".$plug_dir."'>".ADMIN_EDIT_ICON."</a>
Severity: Minor
Found in e107_admin/search.php by phan

Call to deprecated function \getperms() defined at /code/class2.php:1322
Open

if (!getperms('X'))
Severity: Minor
Found in e107_admin/search.php by phan

Variable $tp is undeclared
Open

                            ".$frm->text('php_limit', $tp -> toForm($search_prefs['php_limit']), 5, 'class=tbox&size=mini')."&nbsp;".SEALAN_32."
Severity: Minor
Found in e107_admin/search.php by phan

There are no issues that match your filters.

Category
Status