e107inc/e107

View on GitHub
e107_admin/banlist.php

Summary

Maintainability
A
0 mins
Test Coverage
F
12%

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

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

Assigning array<string ip email address or host></string> to property but \banlist_ui->fields is array{checkboxes:array{title:'',type:null,data:null,width:'5%',thclass:'center',forced:'1',class:'center',toggle:'e-multiselect'},banlist_id:array{title:'ID',data:'int',width:'5%',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},banlist_ip:array{title:'IP / Email',type:'method',data:'str',width:'auto',help:'',readParms:'',writeParms:array{},class:'left',thclass:'left'},banlist_bantype:array{title:'Type',type:'method',data:'str',width:'auto',filter:true,help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},banlist_datestamp:array{title:'Date stamp',type:'datestamp',data:'int',width:'auto',filter:true,help:'',readParms:'',writeParms:'auto=1&hidden=1&readonly=1',class:'left',thclass:'left'},banlist_banexpires:array{title:'Expires',type:'method',data:'int',inline:true,width:'auto',batch:true,filter:true,help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},banlist_admin:array{title:'Admin',type:'text',data:'int',noedit:true,width:'auto',help:'',readParms:'',writeParms:'',class:'center',thclass:'center'},banlist_reason:array{title:'Reason',type:'text',data:'str',inline:true,width:'auto',help:'',readParms:'constant=1',writeParms:array{size:'xxlarge'},class:'left',thclass:'left'},banlist_notes:array{title:'Notes',type:'text',data:'str',inline:true,width:'auto',help:'',readParms:'',writeParms:array{size:'xxlarge'},class:'left',thclass:'left'},options:array{title:'Options',type:'',data:'',width:'10%',thclass:'center last',class:'center last',forced:'1'}}
Open

            $this->fields['banlist_ip']['title']= BANLAN_5;
Severity: Minor
Found in e107_admin/banlist.php by phan

Assigning array<string ip email address or host></string> to property but \banlist_ui->fields is array{checkboxes:array{title:'',type:null,data:null,width:'5%',thclass:'center',forced:'1',class:'center',toggle:'e-multiselect'},banlist_id:array{title:'ID',data:'int',width:'5%',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},banlist_ip:array{title:'IP / Email',type:'method',data:'str',width:'auto',help:'',readParms:'',writeParms:array{},class:'left',thclass:'left'},banlist_bantype:array{title:'Type',type:'method',data:'str',width:'auto',filter:true,help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},banlist_datestamp:array{title:'Date stamp',type:'datestamp',data:'int',width:'auto',filter:true,help:'',readParms:'',writeParms:'auto=1&hidden=1&readonly=1',class:'left',thclass:'left'},banlist_banexpires:array{title:'Expires',type:'method',data:'int',inline:true,width:'auto',batch:true,filter:true,help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},banlist_admin:array{title:'Admin',type:'text',data:'int',noedit:true,width:'auto',help:'',readParms:'',writeParms:'',class:'center',thclass:'center'},banlist_reason:array{title:'Reason',type:'text',data:'str',inline:true,width:'auto',help:'',readParms:'constant=1',writeParms:array{size:'xxlarge'},class:'left',thclass:'left'},banlist_notes:array{title:'Notes',type:'text',data:'str',inline:true,width:'auto',help:'',readParms:'',writeParms:array{size:'xxlarge'},class:'left',thclass:'left'},options:array{title:'Options',type:'',data:'',width:'10%',thclass:'center last',class:'center last',forced:'1'}}
Open

            $this->fields['banlist_ip']['title']= BANLAN_5;
Severity: Minor
Found in e107_admin/banlist.php by phan

Assigning array<string></string> to property but \banlist_ui->fields is array{checkboxes:array{title:'',type:null,data:null,width:'5%',thclass:'center',forced:'1',class:'center',toggle:'e-multiselect'},banlist_id:array{title:'ID',data:'int',width:'5%',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},banlist_ip:array{title:'IP / Email',type:'method',data:'str',width:'auto',help:'',readParms:'',writeParms:array{},class:'left',thclass:'left'},banlist_bantype:array{title:'Type',type:'method',data:'str',width:'auto',filter:true,help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},banlist_datestamp:array{title:'Date stamp',type:'datestamp',data:'int',width:'auto',filter:true,help:'',readParms:'',writeParms:'auto=1&hidden=1&readonly=1',class:'left',thclass:'left'},banlist_banexpires:array{title:'Expires',type:'method',data:'int',inline:true,width:'auto',batch:true,filter:true,help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},banlist_admin:array{title:'Admin',type:'text',data:'int',noedit:true,width:'auto',help:'',readParms:'',writeParms:'',class:'center',thclass:'center'},banlist_reason:array{title:'Reason',type:'text',data:'str',inline:true,width:'auto',help:'',readParms:'constant=1',writeParms:array{size:'xxlarge'},class:'left',thclass:'left'},banlist_notes:array{title:'Notes',type:'text',data:'str',inline:true,width:'auto',help:'',readParms:'',writeParms:array{size:'xxlarge'},class:'left',thclass:'left'},options:array{title:'Options',type:'',data:'',width:'10%',thclass:'center last',class:'center last',forced:'1'}}
Open

                    $this->fields['banlist_ip']['writeParms']['tdClassRight']  = 'form-inline';
Severity: Minor
Found in e107_admin/banlist.php by phan

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

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

Argument 2 (replace) is int but \str_replace() takes array|string
Open

            $this->batchOptions = array('delete-all'=>str_replace('[x]', $allFailedTotal, BANLAN_127));
Severity: Minor
Found in e107_admin/banlist.php by phan

Assigning array<string></string> to property but \banlist_ui->fields is array{checkboxes:array{title:'',type:null,data:null,width:'5%',thclass:'center',forced:'1',class:'center',toggle:'e-multiselect'},banlist_id:array{title:'ID',data:'int',width:'5%',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},banlist_ip:array{title:'IP / Email',type:'method',data:'str',width:'auto',help:'',readParms:'',writeParms:array{},class:'left',thclass:'left'},banlist_bantype:array{title:'Type',type:'method',data:'str',width:'auto',filter:true,help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},banlist_datestamp:array{title:'Date stamp',type:'datestamp',data:'int',width:'auto',filter:true,help:'',readParms:'',writeParms:'auto=1&hidden=1&readonly=1',class:'left',thclass:'left'},banlist_banexpires:array{title:'Expires',type:'method',data:'int',inline:true,width:'auto',batch:true,filter:true,help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},banlist_admin:array{title:'Admin',type:'text',data:'int',noedit:true,width:'auto',help:'',readParms:'',writeParms:'',class:'center',thclass:'center'},banlist_reason:array{title:'Reason',type:'text',data:'str',inline:true,width:'auto',help:'',readParms:'constant=1',writeParms:array{size:'xxlarge'},class:'left',thclass:'left'},banlist_notes:array{title:'Notes',type:'text',data:'str',inline:true,width:'auto',help:'',readParms:'',writeParms:array{size:'xxlarge'},class:'left',thclass:'left'},options:array{title:'Options',type:'',data:'',width:'10%',thclass:'center last',class:'center last',forced:'1'}}
Open

                    $this->fields['banlist_ip']['writeParms']['post'] = "<button class='btn btn-primary' id='useip' data-ip='{$myip}'>".BANLAN_125."</button></div>"; // USERIP;
Severity: Minor
Found in e107_admin/banlist.php by phan

Argument 2 (replace) is int but \str_replace() takes array|string
Open

                $mes->addSuccess(str_replace('[y]', $result, BANLAN_48));
Severity: Minor
Found in e107_admin/banlist.php by phan

Argument 3 (checked) is '' but \e_form::checkbox() takes bool|false defined at /code/e107_handlers/form_handler.php:2685
Open

                                    <td colspan='3'>" . $frm->checkbox('ban_over_expiry', 1, '', array('label' => BANLAN_44)) . "</td>
Severity: Minor
Found in e107_admin/banlist.php by phan

Call to undeclared function \process_csv()
Open

                    $message = process_csv(e_UPLOAD . $files[0]['name'],
Severity: Critical
Found in e107_admin/banlist.php by phan

Argument 3 (checked) is '' but \e_form::checkbox() takes bool|false defined at /code/e107_handlers/form_handler.php:2685
Open

                                    <td colspan='3'>" . $frm->checkbox('ban_over_import', 1, '', array('label' => BANLAN_43)) . "</td>
Severity: Minor
Found in e107_admin/banlist.php by phan

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

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

Assigning array<string class="\'input-append\'\x3e'}}"></string> to property but \banlist_ui->fields is array{checkboxes:array{title:'',type:null,data:null,width:'5%',thclass:'center',forced:'1',class:'center',toggle:'e-multiselect'},banlist_id:array{title:'ID',data:'int',width:'5%',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},banlist_ip:array{title:'IP / Email',type:'method',data:'str',width:'auto',help:'',readParms:'',writeParms:array{},class:'left',thclass:'left'},banlist_bantype:array{title:'Type',type:'method',data:'str',width:'auto',filter:true,help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},banlist_datestamp:array{title:'Date stamp',type:'datestamp',data:'int',width:'auto',filter:true,help:'',readParms:'',writeParms:'auto=1&hidden=1&readonly=1',class:'left',thclass:'left'},banlist_banexpires:array{title:'Expires',type:'method',data:'int',inline:true,width:'auto',batch:true,filter:true,help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},banlist_admin:array{title:'Admin',type:'text',data:'int',noedit:true,width:'auto',help:'',readParms:'',writeParms:'',class:'center',thclass:'center'},banlist_reason:array{title:'Reason',type:'text',data:'str',inline:true,width:'auto',help:'',readParms:'constant=1',writeParms:array{size:'xxlarge'},class:'left',thclass:'left'},banlist_notes:array{title:'Notes',type:'text',data:'str',inline:true,width:'auto',help:'',readParms:'',writeParms:array{size:'xxlarge'},class:'left',thclass:'left'},options:array{title:'Options',type:'',data:'',width:'10%',thclass:'center last',class:'center last',forced:'1'}}
Open

                    $this->fields['banlist_ip']['writeParms']['pre'] = "<div class='input-append'>";
Severity: Minor
Found in e107_admin/banlist.php by phan

Call with 2 arg(s) to \e_form::help() which only takes 1 arg(s) defined at /code/e107_handlers/form_handler.php:3244
Open

                                  ".$frm->help(BANLAN_92, 'after')."
Severity: Info
Found in e107_admin/banlist.php by phan

There are no issues that match your filters.

Category
Status