e107inc/e107

View on GitHub
e107_plugins/poll/admin_config.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%

Variable $poll_options is undeclared
Open

            $pollopts = explode(chr(1),$poll_options);
Severity: Minor
Found in e107_plugins/poll/admin_config.php by phan

Variable $poll_options is undeclared
Open

        $tmpArray = explode(chr(1), $poll_options);
Severity: Minor
Found in e107_plugins/poll/admin_config.php by phan

Variable $poll_title is undeclared
Open

        $_POST['poll_title'] = $poll_title;
Severity: Minor
Found in e107_plugins/poll/admin_config.php by phan

Variable $poll_comment is undeclared
Open

        $_POST['poll_comment'] = $poll_comment;
Severity: Minor
Found in e107_plugins/poll/admin_config.php by phan

Variable $poll_storage_method is undeclared
Open

        $_POST['pollUserclass'] = (($poll_vote_userclass == e_UC_PUBLIC) && $poll_storage_method == 2) ? e_UC_MEMBER : $poll_vote_userclass;
Severity: Minor
Found in e107_plugins/poll/admin_config.php by phan

Variable $poll_comment is undeclared
Open

                 $text .= (in_array("poll_comment",$fieldpref)) ? "<td>".($poll_comment ? LAN_YES : LAN_NO)."</td>" : "";
Severity: Minor
Found in e107_plugins/poll/admin_config.php by phan

Variable $poll_id is undeclared
Open

                    <button class='btn btn-default btn-secondary btn-large action delete' type='submit' name='delete[$poll_id]' value='del' onclick=\"return jsconfirm(".$tp->toAttribute($tp->toJSON(LAN_CONFIRMDEL." [".$poll_id."]")).") \" title='".LAN_DELETE."' >".ADMIN_DELETE_ICON."</button>
Severity: Minor
Found in e107_plugins/poll/admin_config.php by phan

Call to deprecated function \show_admin_menu() defined at /code/e107_admin/boot.php:354
Open

    show_admin_menu($caption, $action, $var);
Severity: Minor
Found in e107_plugins/poll/admin_config.php by phan

Variable $poll_active is undeclared
Open

        $_POST['activate'] = $poll_active;
Severity: Minor
Found in e107_plugins/poll/admin_config.php by phan

Variable $poll_id is undeclared
Open

                <td>$poll_id</td>";
Severity: Minor
Found in e107_plugins/poll/admin_config.php by phan

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

    $var['list']['text'] = LAN_MANAGE;
Severity: Info
Found in e107_plugins/poll/admin_config.php by phan

Suspicious array access to nullable ?array
Open

if (varset($_POST['edit']) || varset($_GET['mode'])=='create' && !varset($_POST['submit']))
Severity: Minor
Found in e107_plugins/poll/admin_config.php by phan

Variable $poll_allow_multiple is undeclared
Open

        $_POST['multipleChoice'] = $poll_allow_multiple;
Severity: Minor
Found in e107_plugins/poll/admin_config.php by phan

Reference to undeclared constant \ADMIN_EDIT_ICON
Open

                    <button class='btn btn-default btn-secondary btn-large' type='submit' name='edit[{$poll_id}]' value='edit' alt='".LAN_EDIT."' title='".LAN_EDIT."' >".ADMIN_EDIT_ICON."</button>
Severity: Minor
Found in e107_plugins/poll/admin_config.php by phan

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

if (!getperms("P") || !e107::isInstalled('poll')) 
Severity: Minor
Found in e107_plugins/poll/admin_config.php by phan

Variable $poll_id is undeclared
Open

    unset($poll_id, $_POST['poll_title'], $_POST['poll_option'], $_POST['activate']);
Severity: Minor
Found in e107_plugins/poll/admin_config.php by phan

Variable $poll_result_type is undeclared
Open

        $_POST['showResults'] = $poll_result_type;
Severity: Minor
Found in e107_plugins/poll/admin_config.php by phan

Variable $poll_vote_userclass is undeclared
Open

                $text .= (in_array("poll_vote_userclass",$fieldpref)) ? "<td>".(r_userclass_name($poll_vote_userclass))."</td>" : "";
Severity: Minor
Found in e107_plugins/poll/admin_config.php by phan

Call to deprecated class \form defined at /code/e107_handlers/form_handler.php:8340
Open

$rs = new form;
Severity: Minor
Found in e107_plugins/poll/admin_config.php by phan

Variable $poll_start_datestamp is undeclared
Open

        if ($poll_start_datestamp)
Severity: Minor
Found in e107_plugins/poll/admin_config.php by phan

Variable $poll_end_datestamp is undeclared
Open

        if ($poll_end_datestamp)
Severity: Minor
Found in e107_plugins/poll/admin_config.php by phan

Variable $poll_id is undeclared
Open

    unset($poll_id, $_POST['poll_title'], $_POST['poll_option'], $_POST['activate'], $_POST['multipleChoice'], $_POST['showResults'], $_POST['startday'], $_POST['startmonth'], $_POST['startyear'], $_POST['endday'], $_POST['endmonth'], $_POST['endyear']);
Severity: Minor
Found in e107_plugins/poll/admin_config.php by phan

Variable $poll_storage_method is undeclared
Open

        $_POST['storageMethod'] = $poll_storage_method;
Severity: Minor
Found in e107_plugins/poll/admin_config.php by phan

Variable $poll_title is undeclared
Open

                $text .= (in_array("poll_title",$fieldpref)) ? "<td class='left'>".$tp->toHTML($poll_title, TRUE,"no_hook, emotes_off, defs")."</td>" : "";              
Severity: Minor
Found in e107_plugins/poll/admin_config.php by phan

Reference to undeclared constant \ADMIN_DELETE_ICON
Open

                    <button class='btn btn-default btn-secondary btn-large action delete' type='submit' name='delete[$poll_id]' value='del' onclick=\"return jsconfirm(".$tp->toAttribute($tp->toJSON(LAN_CONFIRMDEL." [".$poll_id."]")).") \" title='".LAN_DELETE."' >".ADMIN_DELETE_ICON."</button>
Severity: Minor
Found in e107_plugins/poll/admin_config.php by phan

Suspicious array access to nullable ?array
Open

        if($_POST['edit'])
Severity: Minor
Found in e107_plugins/poll/admin_config.php by phan

Variable $poll_id is undeclared
Open

                    <button class='btn btn-default btn-secondary btn-large' type='submit' name='edit[{$poll_id}]' value='edit' alt='".LAN_EDIT."' title='".LAN_EDIT."' >".ADMIN_EDIT_ICON."</button>
Severity: Minor
Found in e107_plugins/poll/admin_config.php by phan

Suspicious array access to nullable ?array
Open

if(!varset($_POST['edit']) && ($_GET['mode']=="list" || !$_GET['mode']))
Severity: Minor
Found in e107_plugins/poll/admin_config.php by phan

Variable $poll_vote_userclass is undeclared
Open

        $_POST['pollUserclass'] = (($poll_vote_userclass == e_UC_PUBLIC) && $poll_storage_method == 2) ? e_UC_MEMBER : $poll_vote_userclass;
Severity: Minor
Found in e107_plugins/poll/admin_config.php by phan

Variable $poll_end_datestamp is undeclared
Open

            $tmp = getdate($poll_end_datestamp);
Severity: Minor
Found in e107_plugins/poll/admin_config.php by phan

Variable $user_pref is undeclared
Open

    $fieldpref = (varset($user_pref['admin_poll_columns'])) ? $user_pref['admin_poll_columns'] : array("poll_id","poll_title","poll_options","poll_vote_userclass"); ;
Severity: Minor
Found in e107_plugins/poll/admin_config.php by phan

Variable $poll_start_datestamp is undeclared
Open

            $tmp = getdate($poll_start_datestamp);
Severity: Minor
Found in e107_plugins/poll/admin_config.php by phan

There are no issues that match your filters.

Category
Status