e107inc/e107

View on GitHub
e107_plugins/faqs/faqs.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%

Argument 2 (pluginName) is true but \e107::getScBatch() takes string defined at /code/e107_handlers/e107_class.php:1608
Open

        $sc = e107::getScBatch('faqs',TRUE);
Severity: Minor
Found in e107_plugins/faqs/faqs.php by phan

Variable $text_menu was undeclared, but it is being used as the left-hand side of an assignment operation
Open

        $text_menu .= "<div style='text-align:center'><br />".$tp->parseTemplate("{SEARCH=faqs}")."</div>";
Severity: Info
Found in e107_plugins/faqs/faqs.php by phan

Variable $text was undeclared, but it is being used as the left-hand side of an assignment operation
Open

        $text .= (is_numeric($id)) ? LAN_EDIT : LAN_ADD; //LAN_ADD may not exist on the front end, but I dont think this code is used - Mikey.
Severity: Info
Found in e107_plugins/faqs/faqs.php by phan

Variable $text was undeclared, but it is being used as the left-hand side of an assignment operation
Open

        $text .= " </select>
Severity: Info
Found in e107_plugins/faqs/faqs.php by phan

Variable $faq_info_title is undeclared
Open

        $ns->tablerender(LAN_PLUGIN_FAQS_FRONT_NAME.$faq_info_title, "<div style='text-align:center'>".$text."</div>".$this->faq_footer());
Severity: Minor
Found in e107_plugins/faqs/faqs.php by phan

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

$rs     = new form; // TODO - Remove outdated code 
Severity: Minor
Found in e107_plugins/faqs/faqs.php by phan

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

        $ret['text']         = $text;
Severity: Info
Found in e107_plugins/faqs/faqs.php by phan

Reference to undeclared constant \FAQ_ADLAN_52
Open

          <td class='forumheader3'  style=\"width:20%; vertical-align:top\">".FAQ_ADLAN_52."</td>";
Severity: Minor
Found in e107_plugins/faqs/faqs.php by phan

Variable $text was undeclared, but it is being used as the left-hand side of an assignment operation
Open

            $text .= "<input class=\"button\" type=\"submit\" name=\"faq_submit\" value=\"".FAQ_ADLAN_54."\" />";
Severity: Info
Found in e107_plugins/faqs/faqs.php by phan

Variable $text is undeclared
Open

        $ns->tablerender(LAN_PLUGIN_FAQS_FRONT_NAME.$faq_info_title, "<div style='text-align:center'>".$text."</div>".$this->faq_footer());
Severity: Minor
Found in e107_plugins/faqs/faqs.php by phan

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

        $ret['text'] = $text.$this->faq_footer();
Severity: Info
Found in e107_plugins/faqs/faqs.php by phan

Variable $faq_question is undeclared
Open

        $subject = (!$subject ? $tp->toDB($faq_question) : $subject);
Severity: Minor
Found in e107_plugins/faqs/faqs.php by phan

Variable $text_menu is undeclared
Open

           return $text_menu;
Severity: Minor
Found in e107_plugins/faqs/faqs.php by phan

Variable $text was undeclared, but it is being used as the left-hand side of an assignment operation
Open

            $text .= "<tr>
Severity: Info
Found in e107_plugins/faqs/faqs.php by phan

Argument 1 (name) is 'og:description' but \e107::meta() takes null defined at /code/e107_handlers/e107_class.php:2861
Open

            e107::meta('og:description', $ftmp['pagedescription']);
Severity: Minor
Found in e107_plugins/faqs/faqs.php by phan

Suspicious type null of a variable or expression used to build a string. (Expected type to be able to cast to a string)
Open

        <textarea id=\"data\" cols='15' class=\"tbox\" name=\"data\" style=\"width:100%\" rows=\"8\" onselect=\"storeCaret(this);\" onclick=\"storeCaret(this);\" onkeyup=\"storeCaret(this);\">$data</textarea>
Severity: Minor
Found in e107_plugins/faqs/faqs.php by phan

Reference to undeclared constant \FAQ_ADLAN_54
Open

            $text .= "<input class=\"button\" type=\"submit\" name=\"faq_submit\" value=\"".FAQ_ADLAN_54."\" />";
Severity: Minor
Found in e107_plugins/faqs/faqs.php by phan

Variable $sql is undeclared
Open

        $sql->insert("faqs", " 0, '".$_POST['faq_parent']."', '$faq_question', '$data', '".e107::getParser()->filter($_POST['faq_comment'], 'str')."', '".time()."', '".USERID."', '".$count."' ");
Severity: Minor
Found in e107_plugins/faqs/faqs.php by phan

Call with 3 arg(s) to \e_parse::toText() which only takes 1 arg(s) defined at /code/e107_handlers/e_parse_class.php:2158
Open

            $ret['pagedescription'] = e107::getParser()->toText($this->pageDescription,true,'RAWTEXT');
Severity: Info
Found in e107_plugins/faqs/faqs.php by phan

Argument 2 (id) is true but \e107::getTemplate() takes string defined at /code/e107_handlers/e107_class.php:3403
Open

        $schemaTemplate = e107::getTemplate('faqs', true, 'schema');
Severity: Minor
Found in e107_plugins/faqs/faqs.php by phan

Argument 2 (content) is array|string|string[] but \e107::meta() takes null defined at /code/e107_handlers/e107_class.php:2861
Open

            e107::meta('og:description', $ftmp['pagedescription']);
Severity: Minor
Found in e107_plugins/faqs/faqs.php by phan

Variable $text was undeclared, but it is being used as the left-hand side of an assignment operation
Open

        $text .= "</table></div>";
Severity: Info
Found in e107_plugins/faqs/faqs.php by phan

Variable $subject is undeclared
Open

        $subject = (!$subject ? $tp->toDB($faq_question) : $subject);
Severity: Minor
Found in e107_plugins/faqs/faqs.php by phan

Variable $text was undeclared, but it is being used as the left-hand side of an assignment operation
Open

        $text .= "</td>
Severity: Info
Found in e107_plugins/faqs/faqs.php by phan

Variable $faq_question is undeclared
Open

        <input class=\"tbox\" type=\"text\" name=\"faq_question\" style=\"width:100%\" value=\"$faq_question\"  />
Severity: Minor
Found in e107_plugins/faqs/faqs.php by phan

Variable $text was undeclared, but it is being used as the left-hand side of an assignment operation
Open

        $text .= "
Severity: Info
Found in e107_plugins/faqs/faqs.php by phan

Call to deprecated function \ren_help() defined at /code/e107_handlers/ren_help.php:19
Open

        $text .= ren_help("addtext");
Severity: Minor
Found in e107_plugins/faqs/faqs.php by phan

Invalid offset "submit_question_limit" of array type array{}
Open

            if(!empty($this->pref['submit_question_limit']) && $existing >= $this->pref['submit_question_limit'])
Severity: Minor
Found in e107_plugins/faqs/faqs.php by phan

Argument 2 (id) is true but \e107::getTemplate() takes string defined at /code/e107_handlers/e107_class.php:3403
Open

        $FAQ_LISTALL = e107::getTemplate('faqs', true, 'all');
Severity: Minor
Found in e107_plugins/faqs/faqs.php by phan

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

                if (ADMIN && getperms("B"))
Severity: Minor
Found in e107_plugins/faqs/faqs.php by phan

Variable $faq_answer is undeclared
Open

            $data = $faq_answer;
Severity: Minor
Found in e107_plugins/faqs/faqs.php by phan

Variable $text was undeclared, but it is being used as the left-hand side of an assignment operation
Open

            $text .= "<td class='forumheader3' >".r_userclass("faq_comment", $faq_comment, "", "public,guest,nobody,member,admin,classes")."</td>";
Severity: Info
Found in e107_plugins/faqs/faqs.php by phan

Argument 2 (pluginName) is true but \e107::getScBatch() takes string defined at /code/e107_handlers/e107_class.php:1608
Open

        $sc = e107::getScBatch('faqs', true);
Severity: Minor
Found in e107_plugins/faqs/faqs.php by phan

Argument 2 (fields) is true but \e_db::retrieve() takes string defined at /code/e107_handlers/e_db_interface.php:153
Open

        if(!$data = $sql->retrieve($query, true))
Severity: Minor
Found in e107_plugins/faqs/faqs.php by phan

Variable $sub_action is undeclared
Open

            $ftmp = $faq->show_existing_parents($action, $sub_action, $id, $from, $amount);
Severity: Minor
Found in e107_plugins/faqs/faqs.php by phan

Variable $text was undeclared, but it is being used as the left-hand side of an assignment operation
Open

        $text .= "<select style='width:150px' class='tbox' id='faq_parent' name='faq_parent' >";
Severity: Info
Found in e107_plugins/faqs/faqs.php by phan

Invalid offset "orderby" of array type array{}
Open

        list($orderBy, $ascdesc) = explode('-', vartrue($this->pref['orderby'],'faq_order-ASC'));
Severity: Minor
Found in e107_plugins/faqs/faqs.php by phan

Variable $text was undeclared, but it is being used as the left-hand side of an assignment operation
Open

        $text .= ren_help("addtext");
Severity: Info
Found in e107_plugins/faqs/faqs.php by phan

Variable $faq_comment is undeclared
Open

            $text .= "<td class='forumheader3' >".r_userclass("faq_comment", $faq_comment, "", "public,guest,nobody,member,admin,classes")."</td>";
Severity: Minor
Found in e107_plugins/faqs/faqs.php by phan

Variable $text was undeclared, but it is being used as the left-hand side of an assignment operation
Open

            $text .= "<tr>
Severity: Info
Found in e107_plugins/faqs/faqs.php by phan

Reference to undeclared constant \FAQ_ADLAN_53
Open

            $text .= "<input class=\"button\" type=\"submit\" name=\"faq_edit_submit\" value=\"".FAQ_ADLAN_53."$faq_id\" />
Severity: Minor
Found in e107_plugins/faqs/faqs.php by phan

Argument 1 (text) is null but \e_parse::toHTML() takes string defined at /code/e107_handlers/e_parse_class.php:1532
Open

                $message = !empty($this->pref['submit_question_acknowledgement']) ? e107::getParser()->toHTML($this->pref['submit_question_acknowledgement'],true, 'BODY') : LAN_FAQS_004;
Severity: Minor
Found in e107_plugins/faqs/faqs.php by phan

Variable $text was undeclared, but it is being used as the left-hand side of an assignment operation
Open

        $text .= " FAQ</td></tr>"; 
Severity: Info
Found in e107_plugins/faqs/faqs.php by phan

Variable $text was undeclared, but it is being used as the left-hand side of an assignment operation
Open

        $text .= "<br /></td></tr>";
Severity: Info
Found in e107_plugins/faqs/faqs.php by phan

Variable $text was undeclared, but it is being used as the left-hand side of an assignment operation
Open

            $text .= "<input class=\"button\" type=\"submit\" name=\"faq_edit_submit\" value=\"".FAQ_ADLAN_53."$faq_id\" />
Severity: Info
Found in e107_plugins/faqs/faqs.php by phan

Argument 2 (pluginName) is true but \e107::getScBatch() takes string defined at /code/e107_handlers/e107_class.php:1608
Open

        $sc     = e107::getScBatch('faqs',TRUE);
Severity: Minor
Found in e107_plugins/faqs/faqs.php by phan

Variable $category_title is undeclared
Open

        $ret['title'] = LAN_FAQS_011." - ".$category_title;
Severity: Minor
Found in e107_plugins/faqs/faqs.php by phan

Variable $faq_id is undeclared
Open

            $text .= "<input class=\"button\" type=\"submit\" name=\"faq_edit_submit\" value=\"".FAQ_ADLAN_53."$faq_id\" />
Severity: Minor
Found in e107_plugins/faqs/faqs.php by phan

Argument 2 (pluginName) is true but \e107::getScBatch() takes string defined at /code/e107_handlers/e107_class.php:1608
Open

        $sc = e107::getScBatch('faqs', true);
Severity: Minor
Found in e107_plugins/faqs/faqs.php by phan

Variable $sql2 is undeclared (Did you mean $sql)
Open

            if (!is_object($sql2))
Severity: Minor
Found in e107_plugins/faqs/faqs.php by phan

Variable $text_menu was undeclared, but it is being used as the left-hand side of an assignment operation
Open

        $text_menu .= "<div style='text-align:center;' ><br />
Severity: Info
Found in e107_plugins/faqs/faqs.php by phan

Variable $text was undeclared, but it is being used as the left-hand side of an assignment operation
Open

        $text .= "<table class='fborder' style=\"".USER_WIDTH."\" >
Severity: Info
Found in e107_plugins/faqs/faqs.php by phan

Reference to undeclared constant \FAQ_ADLAN_49
Open

        <td class='fcaption' style=\"width:70%\">".FAQ_ADLAN_49."</td>
Severity: Minor
Found in e107_plugins/faqs/faqs.php by phan

Variable $text was undeclared, but it is being used as the left-hand side of an assignment operation
Open

        $text .= "
Severity: Info
Found in e107_plugins/faqs/faqs.php by phan

Variable $text was undeclared, but it is being used as the left-hand side of an assignment operation
Open

        $text .= "
Severity: Info
Found in e107_plugins/faqs/faqs.php by phan

Variable $text was undeclared, but it is being used as the left-hand side of an assignment operation
Open

            $text .= "<input type='hidden' name='faq_comment' value='0' />";
Severity: Info
Found in e107_plugins/faqs/faqs.php by phan

Variable $sql is undeclared
Open

        $sql->update("faqs", "faq_parent='".intval($_POST['faq_parent'])."', faq_question ='$faq_question', faq_answer='$data', faq_comment='".$_POST['faq_comment']."'  WHERE faq_id='".$idx."' ");
Severity: Minor
Found in e107_plugins/faqs/faqs.php by phan

Argument 2 (pluginName) is true but \e107::getScBatch() takes string defined at /code/e107_handlers/e107_class.php:1608
Open

        $this->sc = e107::getScBatch('faqs',TRUE);
Severity: Minor
Found in e107_plugins/faqs/faqs.php by phan

Invalid offset "page_title" of array type array{}
Open

        if (!empty($this->pref['page_title'][e_LANGUAGE]))
Severity: Minor
Found in e107_plugins/faqs/faqs.php by phan

Variable $text_menu was undeclared, but it is being used as the left-hand side of an assignment operation
Open

        $text_menu .="</div>";
Severity: Info
Found in e107_plugins/faqs/faqs.php by phan

Variable $text was undeclared, but it is being used as the left-hand side of an assignment operation
Open

            $text .= "</td>
Severity: Info
Found in e107_plugins/faqs/faqs.php by phan

Reference to undeclared constant \FAQ_ADLAN_60
Open

        <td class='forumheader3' style=\"width:20%;vertical-align:top\">".FAQ_ADLAN_60."</td>
Severity: Minor
Found in e107_plugins/faqs/faqs.php by phan

Variable $text was undeclared, but it is being used as the left-hand side of an assignment operation
Open

            $text .= "
Severity: Info
Found in e107_plugins/faqs/faqs.php by phan

Variable $sql is undeclared
Open

        $count             = ($sql->count("faqs", "(*)", "WHERE faq_parent='".intval($_POST['faq_parent'])."' ") + 1);
Severity: Minor
Found in e107_plugins/faqs/faqs.php by phan

Invalid offset "list_type" of array type array{}
Open

        if($this->pref['list_type'] == 'ol')
Severity: Minor
Found in e107_plugins/faqs/faqs.php by phan

Variable $text was undeclared, but it is being used as the left-hand side of an assignment operation
Open

        $text .= "<div style='width : auto; height : 110px; overflow : auto; '>
Severity: Info
Found in e107_plugins/faqs/faqs.php by phan

Invalid offset "page_title" of array type array{}
Open

            $ret['caption'] = e107::getParser()->toHTML($this->pref['page_title'][e_LANGUAGE], true, 'TITLE');
Severity: Minor
Found in e107_plugins/faqs/faqs.php by phan

Variable $text_menu was undeclared, but it is being used as the left-hand side of an assignment operation
Open

                $text_menu .="[&nbsp;<a href='faqs.php?new.$id'>".LAN_FAQS_ASK_A_QUESTION."</a>&nbsp;]";
Severity: Info
Found in e107_plugins/faqs/faqs.php by phan

Reference to undeclared constant \NWSLAN_42
Open

                  <td style='width:70%' class='forumheader3'>".($rw['faq_question'] ? $tp->toHTML($rw['faq_question']) : "[".NWSLAN_42."]")."</td>
Severity: Minor
Found in e107_plugins/faqs/faqs.php by phan

Variable $text was undeclared, but it is being used as the left-hand side of an assignment operation
Open

            $text .= "<option value=\"".$prow['faq_info_id']."\" $selected>".$prow['faq_info_title']."</option>";
Severity: Info
Found in e107_plugins/faqs/faqs.php by phan

Reference to undeclared constant \FAQ_ADLAN_51
Open

        <td class='forumheader3' style=\"width:20%\">".FAQ_ADLAN_51."</td>
Severity: Minor
Found in e107_plugins/faqs/faqs.php by phan

Variable $faq is undeclared
Open

        $text .= "<input type=\"hidden\" name=\"faq\" value=\"$faq\" />
Severity: Minor
Found in e107_plugins/faqs/faqs.php by phan

Invalid offset "submit_question_acknowledgement" of array type array{}
Open

                $message = !empty($this->pref['submit_question_acknowledgement']) ? e107::getParser()->toHTML($this->pref['submit_question_acknowledgement'],true, 'BODY') : LAN_FAQS_004;
Severity: Minor
Found in e107_plugins/faqs/faqs.php by phan

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

        $ret['title'] = LAN_FAQS_011." - ".$category_title;
Severity: Info
Found in e107_plugins/faqs/faqs.php by phan

Argument 2 (pluginName) is true but \e107::getScBatch() takes string defined at /code/e107_handlers/e107_class.php:1608
Open

        $sc = e107::getScBatch('faqs',TRUE);
Severity: Minor
Found in e107_plugins/faqs/faqs.php by phan

Reference to undeclared constant \FAQLAN_38
Open

                        $ns->tablerender(FAQLAN_38, $text);
Severity: Minor
Found in e107_plugins/faqs/faqs.php by phan

Variable $faq_id is undeclared
Open

                    echo "<div style='text-align:right'><a href='".e_ADMIN."modcomment.php?faq.$faq_id'>".LAN_FAQS_009."</a></div><br />";
Severity: Minor
Found in e107_plugins/faqs/faqs.php by phan

Variable $text was undeclared, but it is being used as the left-hand side of an assignment operation
Open

        $text .= "<input type=\"hidden\" name=\"faq\" value=\"$faq\" />
Severity: Info
Found in e107_plugins/faqs/faqs.php by phan

There are no issues that match your filters.

Category
Status