e107inc/e107

View on GitHub
e107_plugins/download/includes/admin.php

Summary

Maintainability
A
3 hrs
Test Coverage
F
3%

File admin.php has 2005 lines of code (exceeds 2000 allowed). Consider refactoring.
Open

<?php
/*
 * e107 website system
 *
 * Copyright (C) 2008-2017 e107 Inc (e107.org)
Severity: Major
Found in e107_plugins/download/includes/admin.php - About 2 hrs to fix

    Avoid deeply nested control flow statements.
    Open

                                 if (!$foundSome)
                                 {
                                     // $text .= $rs->form_open("post", e_SELF."?".e_QUERY, "myform");
                                     
                                    $text .= '<form method="post" action="'.e_SELF.'?'.e_QUERY.'" id="myform">
    Severity: Major
    Found in e107_plugins/download/includes/admin.php - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                                   if ($filesize <> $row['download_filesize']) {
                                      if (!$foundSome) {
                                          // $text .= $rs->form_open("post", e_SELF."?".e_QUERY, "myform");
                                         $text .= '<form method="post" action="'.e_SELF.'?'.e_QUERY.'" id="myform">
                                                 <table class="table adminlist">';
      Severity: Major
      Found in e107_plugins/download/includes/admin.php - About 45 mins to fix

        Variable $download_sef is undeclared (Did you mean $download_url)
        Open

                                    ".$frm->renderElement('download_sef',$download_sef, array('type'=>'text', 'writeParms'=>array('sef'=>'download_name','size'=>'xxlarge')))."

        Reference to undeclared constant \DOWLAN_143
        Open

                'mirror/create'        => array('caption'=> DOWLAN_143, 'perm' => 'P'),

        array to string comparison
        Open

                    if ($subAction == 'edit')

        array to int comparison
        Open

                    if($count > 0)

        Call to undeclared method \e_admin_ui::getDownloadCategoryTree
        Open

                        return e107::getParser()->toHTML($controller->getDownloadCategoryTree($curVal), false, 'TITLE');
        Severity: Critical
        Found in e107_plugins/download/includes/admin.php by phan

        Reference to undeclared constant \DOWLAN_112
        Open

                'main/limits'        => array('caption'=> DOWLAN_112, 'perm' => 'P'),

        Assigning string to property but \download_main_admin_ui->filterQry is \Custom
        Open

                            $this->filterQry = $this->missingFiles();

        Assigning 'SELECT * FROM \x60#download\x60 WHERE download_category=0' to property but \download_main_admin_ui->filterQry is \Custom
        Open

                            $this->filterQry = "SELECT * FROM `#download` WHERE download_category=0";

        Method \download_main_admin_ui::createPage is declared to return string but has no return value
        Open

                function createPage()

        Call to undeclared method \download_main_admin_ui::batchImportForm
        Open

                    $this->batchImportForm();
        Severity: Critical
        Found in e107_plugins/download/includes/admin.php by phan

        Variable $row is undeclared
        Open

                                  $filets   = (is_readable(e_DOWNLOAD.$row['download_url']) ? $gen->convert_date(filectime(e_DOWNLOAD.$file['fname']), "long") : DOWLAN_181);

        Variable $download_mirror_type is undeclared
        Open

                                    <input type='radio' name='download_mirror_type' value='0'".(!$download_mirror_type ? " checked='checked'" : "")."/> ".DOWLAN_157."

        Call to undeclared method \e_admin_ui::getDownloadCategoryTree
        Open

                        return $this->select('download_category_parent', $controller->getDownloadCategoryTree(), $curVal);
        Severity: Critical
        Found in e107_plugins/download/includes/admin.php by phan

        Assigning string to property but \download_main_admin_ui->filterQry is \Custom
        Open

                            $this->filterQry = $this->missingFiles('filesize');    

        Static call to undeclared method \download::makeMirrorArray
        Open

                                          $mirrorArray = download::makeMirrorArray($row['download_mirror'], TRUE);
        Severity: Critical
        Found in e107_plugins/download/includes/admin.php by phan

        array to string comparison
        Open

                  if ($subAction == "dlm" && !$_POST['submit'])

        Variable $download_keywords is undeclared
        Open

                                 <td style='width:80%'>".$frm->tags('download_keywords',$download_keywords)."

        Variable $mirror_id is undeclared
        Open

                        <input type='image' title='".LAN_DELETE."' name='delete[mirror_{$mirror_id}]' src='".ADMIN_DELETE_ICON_PATH."' onclick=\"return jsconfirm('".DOWLAN_137." [ID: $mirror_id ]')\"/>

        Reference to undeclared constant \ADMIN_WARNING_ICON
        Open

                    $status = array(ADMIN_FALSE_ICON,ADMIN_TRUE_ICON,ADMIN_WARNING_ICON);        

        Variable $mirror_id is undeclared
        Open

                  ".($edit ? "<input class='btn btn-default btn-secondary button' type='submit' name='submit_mirror' value='".DOWLAN_142."'/><input type='hidden' name='id' value='{$mirror_id}'/>" : "<input class='btn button' type='submit' name='submit_mirror' value='".DOWLAN_143."'/>")."

        Reference to undeclared constant \ADMIN_DELETE_ICON_PATH
        Open

                                                      <input type="image" title="'.LAN_DELETE.'" name="delete[main_'.$row["download_id"].']" src="'.ADMIN_DELETE_ICON_PATH.'" onclick=\'return jsconfirm('. $this->getJsConfirm($row["download_id"]) .') \'/>

        Variable $download_mirror_type is undeclared
        Open

                                    <input type='radio' name='download_mirror_type' value='1'".($download_mirror_type ? " checked='checked'" : "")."/> ".DOWLAN_156."<br/>

        Variable $mirror_name is undeclared
        Open

                        <td style='width: 30%;'>".$tp -> toHTML($mirror_name)."</td>

        Variable $mirror_image is undeclared
        Open

                     unset($mirror_name, $mirror_url, $mirror_image, $mirror_location, $mirror_description);

        Reference to undeclared constant \ADMIN_TRUE_ICON
        Open

                    $status = array(ADMIN_FALSE_ICON,ADMIN_TRUE_ICON,ADMIN_WARNING_ICON);        

        Reference to undeclared constant \LAN_PLUGIN_DOWNLOAD_NAME
        Open

            protected $menuTitle = LAN_PLUGIN_DOWNLOAD_NAME;

        Returning type array{caption:'Help',text:string} but renderHelp() is declared to return string
        Open

                return array('caption' => LAN_HELP, 'text' => $help_text);

        Assigning int to property but \download_main_admin_ui->id is string
        Open

                    $this->id            = $this->getId(); // vartrue($_GET['id']);

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

                            $limitList[$row['limit_classnum']] = $row;

        Reference to undeclared constant \ADMIN_EDIT_ICON
        Open

                                                 <a href="'.e_SELF.'?create.edit.'.$row["download_id"].'.maint.duplicates">'.ADMIN_EDIT_ICON.'</a>

        Variable $kb_sel is undeclared
        Open

                                      <option value='KB'{$kb_sel}>".CORE_LAN_KB."</option>

        array to string comparison
        Open

                  if ($subAction == "edit" && !defined("SUBMITTED"))

        Assigning string to property but \download_main_admin_ui->subAction is array{}
        Open

                    $this->subAction     = $this->getAction(); // vartrue($_GET['action']);

        Variable $mirror_description is undeclared
        Open

                     unset($mirror_name, $mirror_url, $mirror_image, $mirror_location, $mirror_description);

        Assigning array<string></string> to property but \download_cat_ui->fields is array{checkboxes:array{title:'',type:null,width:'5%',forced:true,thclass:'center',class:'center'},download_category_icon:array{title:'Icon',type:'method',width:'5%',thclass:'center',class:'center',writeParms:'glyphs=1'},download_category_id:array{title:'ID',type:'number',width:'5%',forced:true,readParms:'link=sef&target=blank'},download_category_name:array{title:'Title',type:'text',data:'str',inline:true,width:'auto',thclass:'left',writeParms:'size=xxlarge'},download_category_sef:array{title:'SEF URL',type:'text',data:'str',batch:true,inline:true,width:'auto',thclass:'left',writeParms:'sef=download_category_name&size=xxlarge'},download_category_description:array{title:'Description',type:'bbarea',data:'str',width:'30%',readParms:'expand=...&truncate=50&bb=1'},download_category_parent:array{title:'Parent',type:'method',width:'5%',batch:true,filter:true},download_category_class:array{title:'Visibility',type:'userclass',inline:true,width:'auto',data:'int',batch:true,filter:true},download_category_order:array{title:'Order',type:'number',nolist:true,data:'int',width:'5%',thclass:'right',class:'right'},options:array{title:'Options',type:null,width:'10%',forced:true,thclass:'center last',class:'center',sort:1}}
        Open

                    $this->fields['download_category_order']['nolist'] = false;

        Assigning string to property but \download_main_admin_ui->filterQry is \Custom
        Open

                            $this->filterQry = "SELECT GROUP_CONCAT(d.download_id SEPARATOR ',') as gc, d.download_id, d.download_name, d.download_url, dc.download_category_name

        Reference to undeclared constant \ADMIN_DELETE_ICON_PATH
        Open

                                                     <input type="image" title="'.LAN_DELETE.'" name="delete[main_'.$row["download_id"].']" src="'.ADMIN_DELETE_ICON_PATH.'" onclick=\'return jsconfirm('. $this->getJsConfirm($row["download_id"]) .') \'/>

        Variable $e107 is undeclared
        Open

                                  $filesize = (is_readable(e_DOWNLOAD.$row['download_url']) ? $e107->parseMemorySize(filesize(e_DOWNLOAD.$file['fname'])) : DOWLAN_181);

        Variable $row is undeclared
        Open

                                  $filesize = (is_readable(e_DOWNLOAD.$row['download_url']) ? $e107->parseMemorySize(filesize(e_DOWNLOAD.$file['fname'])) : DOWLAN_181);

        Reference to undeclared constant \ADMIN_DELETE_ICON_PATH
        Open

                                                  <input type="image" title="'.LAN_DELETE.'" name="delete[main_'.$row["download_id"].']" src="'.ADMIN_DELETE_ICON_PATH.'" onclick=\'return jsconfirm('. $this->getJsConfirm($row["download_id"]) .') \'/>

        Variable $b_sel is undeclared
        Open

                                      <option value='B'{$b_sel}>".CORE_LAN_B."</option>

        Variable $mirror_url is undeclared
        Open

                  <input class='form-control input-xxlarge' type='text' name='mirror_url' size='70' value='{$mirror_url}' maxlength='255'/>

        Reference to undeclared constant \LAN_DL_BROKENDOWNLOADSREPORTS
        Open

                'broken/list'         => array('caption'=> LAN_DL_BROKENDOWNLOADSREPORTS, 'perm' => 'P'),

        Call to undeclared method \e_admin_ui::getDownloadCategoryTree
        Open

                        return $controller->getDownloadCategoryTree();
        Severity: Critical
        Found in e107_plugins/download/includes/admin.php by phan

        Variable $download_comment is undeclared
        Open

                  if ($download_comment == "0") {

        Call to undeclared method \e_db::db_getList
        Open

                     $mirrorList = $sql -> db_getList();
        Severity: Critical
        Found in e107_plugins/download/includes/admin.php by phan

        Variable $mirror_id is undeclared
        Open

                        <td style='width: 10%; text-align: center;'>$mirror_id</td>

        Variable $mirror_image is undeclared
        Open

                  <input class='form-control input-xxlarge' type='text' id='mirror_image' name='mirror_image' size='60' value='{$mirror_image}' maxlength='200'/>

        Reference to undeclared constant \DOWLAN_128
        Open

                'mirror/list'        => array('caption'=> DOWLAN_128, 'perm' => 'P'),

        Assigning string to property but \download_main_admin_ui->action is array{}
        Open

                    $this->action         = $this->getMode(); // vartrue($_GET['mode']);

        Call to undeclared method \e_db::db_getList
        Open

                        $classList = $sql->db_getList();
        Severity: Critical
        Found in e107_plugins/download/includes/admin.php by phan

        Variable $download_datestamp is undeclared
        Open

                  if (!$download_datestamp){

        Variable $download_class is undeclared
        Open

                                 <td style='width:80%'>".r_userclass('download_class', $download_class, 'off', 'public, nobody, member, admin, classes, language')."</td>

        Variable $mirror_url is undeclared
        Open

                     unset($mirror_name, $mirror_url, $mirror_image, $mirror_location, $mirror_description);

        Reference to undeclared constant \ADMIN_VIEW_ICON
        Open

                    $text .= "<a class='btn btn-default' href='".e_SELF."?mode=main&action=edit&id=". $download_id."'>".ADMIN_VIEW_ICON."</a>";

        Assigning array<string></string> to property but \download_main_admin_ui->fields is array{checkboxes:array{title:'',type:null,data:null,width:'5%',thclass:'center',forced:true,class:'center',toggle:'e-multiselect'},download_id:array{title:'ID',type:'text',data:'int',width:'5%',thclass:'',forced:true,readParms:'url=item&target=blank',primary:true},download_name:array{title:'Title',type:'text',data:'str',inline:true,width:'auto',thclass:''},download_url:array{title:'File',type:'url',data:'str',width:'auto',thclass:'',batch:true,filter:true},download_sef:array{title:'SEF URL',type:'text',inline:true,data:'str',width:'auto',thclass:'',batch:true,filter:true,writeParms:'sef=download_name'},download_keywords:array{title:'Keywords',type:'tags',inline:true,data:'str',width:'auto',thclass:''},download_author:array{title:'Author',type:'user',data:'str',width:'auto',thclass:'left'},download_author_email:array{title:'Author Email',type:'email',data:'str',width:'auto',thclass:'left'},download_author_website:array{title:'Author Website',type:'url',data:'str',width:'auto',thclass:'left'},download_description:array{title:'Description',type:'bbarea',width:'30%',readParms:'expand=...&truncate=50&bb=1'},download_filesize:array{title:'Filesize',type:'text',data:'str',width:'auto',thclass:'right',class:'right'},download_requested:array{title:'Requested',type:'text',data:'str',width:'auto',thclass:'right',class:'right'},download_category:array{title:'Category',type:'dropdown',width:'auto',inline:true,batch:true,filter:true},download_active:array{title:'Status',type:'method',data:'int',width:'5%',thclass:'center',class:'center',batch:true,filter:true,noedit:true},download_datestamp:array{title:'Date',type:'datestamp',data:'int',width:'auto',thclass:'',readParms:'long',writeParms:''},download_thumb:array{title:'Thumbnail image',type:'image',data:'str',width:'100px',thclass:'center',class:'center',readParms:'thumb=60&thumb_urlraw=0&thumb_aw=60&legacyPath=\x7be_FILE\x7ddownloadthumbs',writeParms:'media=download_image',readonly:true},download_image:array{title:'Main image',type:'image',data:'str',width:'100px',thclass:'center',class:'center',readParms:'thumb=60&thumb_urlraw=0&thumb_aw=60&legacyPath=\x7be_FILE\x7ddownloadimages',writeParms:'media=download_image',readonly:true,batch:false,filter:false},download_comment:array{title:'Allow Comments?',type:'boolean',data:'int',width:'5%',thclass:'center',batch:true,filter:true,noedit:true},download_class:array{title:'Userclass',type:'userclass',width:'auto',inline:true,data:'int',batch:true,filter:true},download_visible:array{title:'Visibility',type:'userclass',inline:true,width:'auto',data:'int',batch:true,filter:true},download_mirror:array{title:'Mirrors',type:'text',data:'str',width:'10%',thclass:'center'},download_mirror_type:array{title:'Mirror type',type:'method',data:'str',width:'10%',thclass:'center'},issue:array{title:'Issue',type:'method',data:null,nolist:true,noedit:true,filter:true},options:array{title:'Options',type:null,data:null,width:'10%',thclass:'center last',class:'center last',forced:true}}
        Open

                    $this->fields['download_category']['readParms']         = $categories;

        Reference to undeclared constant \ADMIN_EDIT_ICON
        Open

                                              <a href="'.e_SELF.'?create.edit.'.$row["download_id"].'.maint.nocategory">'.ADMIN_EDIT_ICON.'</a>

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

                  $download_status[0] = DOWLAN_122;

        Call to undeclared method \e_db::db_getList
        Open

                     $mirrorList = $sql -> db_getList();         // Get the list of possible mirrors
        Severity: Critical
        Found in e107_plugins/download/includes/admin.php by phan

        Variable $download_thumb is undeclared
        Open

                         $text .= $frm->imagepicker('download_thumb', $download_thumb,'',array('media'=>'download_thumb', 'legacyPath'=>'{e_FILE}downloadthumbs'));

        Variable $download_visible is undeclared
        Open

                                 <td style='width:80%'>".r_userclass('download_visible', $download_visible, 'off', 'public, nobody, member, admin, classes, language')."</td>

        Variable $mirror_name is undeclared
        Open

                     unset($mirror_name, $mirror_url, $mirror_image, $mirror_location, $mirror_description);

        Variable $mirror_location is undeclared
        Open

                     unset($mirror_name, $mirror_url, $mirror_image, $mirror_location, $mirror_description);

        Variable $gen is undeclared
        Open

                                  $filets   = (is_readable(e_DOWNLOAD.$row['download_url']) ? $gen->convert_date(filectime(e_DOWNLOAD.$file['fname']), "long") : DOWLAN_181);

        Reference to undeclared constant \ADMIN_EDIT_ICON
        Open

                                              <a href="'.e_SELF.'?create.edit.'.$row["download_id"].'.maint.inactive">'.ADMIN_EDIT_ICON.'</a>

        Reference to undeclared constant \ADMIN_DELETE_ICON_PATH
        Open

                                                  <input type="image" title="'.LAN_DELETE.'" name="delete[main_'.$row["download_id"].']" src="'.ADMIN_DELETE_ICON_PATH.'" onclick=\'return jsconfirm('. $this->getJsConfirm($row["download_id"]) .') \'/>

        Variable $mirror_name is undeclared
        Open

                           $text .= "<option value='{$mirror_id}'".($mirror_id == $mirrorArray[($count-1)]['id'] ? " selected='selected'" : "").">{$mirror_name}</option>\n";

        Argument 4 (sc_parameters) is array{media:'download_thumb',legacyPath:'\x7be_FILE\x7ddownloadthumbs'} but \e_form::imagepicker() takes string defined at /code/e107_handlers/form_handler.php:1349
        Open

                         $text .= $frm->imagepicker('download_thumb', $download_thumb,'',array('media'=>'download_thumb', 'legacyPath'=>'{e_FILE}downloadthumbs'));

        Variable $mirror_location is undeclared
        Open

                  <input class='form-control' type='text' name='mirror_location' size='60' value='$mirror_location' maxlength='200'/>

        Reference to undeclared constant \ADMIN_EDIT_ICON
        Open

                                                 <a href="'.e_SELF.'?create.edit.'.$row["download_id"].'.maint.missing">'.ADMIN_EDIT_ICON.'</a>

        Reference to undeclared constant \ADMIN_DELETE_ICON_PATH
        Open

                                                         <input type="image" title="'.LAN_DELETE.'" name="delete[main_'.$row["download_id"].']" src="'.ADMIN_DELETE_ICON_PATH.'" onclick=\'return jsconfirm('. $this->getJsConfirm($row["download_id"]) .') \'/>

        Argument 4 (sc_parameters) is array{media:'download_image',legacyPath:'\x7be_FILE\x7ddownloadimages'} but \e_form::imagepicker() takes string defined at /code/e107_handlers/form_handler.php:1349
        Open

                $text .= $frm->imagepicker('download_image', $download_image,'',array('media'=>'download_image', 'legacyPath'=>'{e_FILE}downloadimages'));

        Call to undeclared method \download_main_admin_ui::show_message
        Open

                               $this->show_message($mess);
        Severity: Critical
        Found in e107_plugins/download/includes/admin.php by phan

        Variable $mirror_image is undeclared
        Open

                        <td style='width: 30%;'>".($mirror_image ? "<img src='".e_FILE."downloadimages/".$mirror_image."' alt=''/>" : LAN_NONE)."</td>

        Reference to undeclared constant \ADMIN_DELETE_ICON_PATH
        Open

                        <input type='image' title='".LAN_DELETE."' name='delete[mirror_{$mirror_id}]' src='".ADMIN_DELETE_ICON_PATH."' onclick=\"return jsconfirm('".DOWLAN_137." [ID: $mirror_id ]')\"/>

        Static call to undeclared method \download::makeMirrorArray
        Open

                                          $mirrorArray = download::makeMirrorArray($row['download_mirror'], TRUE);
        Severity: Critical
        Found in e107_plugins/download/includes/admin.php by phan

        Variable $mirror_id is undeclared
        Open

                           $text .= "<option value='{$mirror_id}'".($mirror_id == $mirrorArray[($count-1)]['id'] ? " selected='selected'" : "").">{$mirror_name}</option>\n";

        Assigning array<string></string> to property but \download_main_admin_ui->fields is array{checkboxes:array{title:'',type:null,data:null,width:'5%',thclass:'center',forced:true,class:'center',toggle:'e-multiselect'},download_id:array{title:'ID',type:'text',data:'int',width:'5%',thclass:'',forced:true,readParms:'url=item&target=blank',primary:true},download_name:array{title:'Title',type:'text',data:'str',inline:true,width:'auto',thclass:''},download_url:array{title:'File',type:'url',data:'str',width:'auto',thclass:'',batch:true,filter:true},download_sef:array{title:'SEF URL',type:'text',inline:true,data:'str',width:'auto',thclass:'',batch:true,filter:true,writeParms:'sef=download_name'},download_keywords:array{title:'Keywords',type:'tags',inline:true,data:'str',width:'auto',thclass:''},download_author:array{title:'Author',type:'user',data:'str',width:'auto',thclass:'left'},download_author_email:array{title:'Author Email',type:'email',data:'str',width:'auto',thclass:'left'},download_author_website:array{title:'Author Website',type:'url',data:'str',width:'auto',thclass:'left'},download_description:array{title:'Description',type:'bbarea',width:'30%',readParms:'expand=...&truncate=50&bb=1'},download_filesize:array{title:'Filesize',type:'text',data:'str',width:'auto',thclass:'right',class:'right'},download_requested:array{title:'Requested',type:'text',data:'str',width:'auto',thclass:'right',class:'right'},download_category:array{title:'Category',type:'dropdown',width:'auto',inline:true,batch:true,filter:true},download_active:array{title:'Status',type:'method',data:'int',width:'5%',thclass:'center',class:'center',batch:true,filter:true,noedit:true},download_datestamp:array{title:'Date',type:'datestamp',data:'int',width:'auto',thclass:'',readParms:'long',writeParms:''},download_thumb:array{title:'Thumbnail image',type:'image',data:'str',width:'100px',thclass:'center',class:'center',readParms:'thumb=60&thumb_urlraw=0&thumb_aw=60&legacyPath=\x7be_FILE\x7ddownloadthumbs',writeParms:'media=download_image',readonly:true},download_image:array{title:'Main image',type:'image',data:'str',width:'100px',thclass:'center',class:'center',readParms:'thumb=60&thumb_urlraw=0&thumb_aw=60&legacyPath=\x7be_FILE\x7ddownloadimages',writeParms:'media=download_image',readonly:true,batch:false,filter:false},download_comment:array{title:'Allow Comments?',type:'boolean',data:'int',width:'5%',thclass:'center',batch:true,filter:true,noedit:true},download_class:array{title:'Userclass',type:'userclass',width:'auto',inline:true,data:'int',batch:true,filter:true},download_visible:array{title:'Visibility',type:'userclass',inline:true,width:'auto',data:'int',batch:true,filter:true},download_mirror:array{title:'Mirrors',type:'text',data:'str',width:'10%',thclass:'center'},download_mirror_type:array{title:'Mirror type',type:'method',data:'str',width:'10%',thclass:'center'},issue:array{title:'Issue',type:'method',data:null,nolist:true,noedit:true,filter:true},options:array{title:'Options',type:null,data:null,width:'10%',thclass:'center last',class:'center last',forced:true}}
        Open

                    $this->fields['download_category']['writeParms']         = $categories;

        Reference to undeclared constant \ADMIN_EDIT_ICON
        Open

                                                    <a href="'.e_SELF.'?create.edit.'.$row["download_id"].'.maint.filesize">'.ADMIN_EDIT_ICON.'</a>

        Reference to undeclared constant \ADMIN_EDIT_ICON
        Open

                        <a href='".e_SELF."?mirror.edit.{$mirror_id}'>".ADMIN_EDIT_ICON."</a>

        Variable $mirror_id is undeclared
        Open

                        <a href='".e_SELF."?mirror.edit.{$mirror_id}'>".ADMIN_EDIT_ICON."</a>

        Variable $mirror_name is undeclared
        Open

                  <input class='form-control input-xxlarge' type='text' name='mirror_name' size='60' value='{$mirror_name}' maxlength='200'/>

        Variable $mirror_description is undeclared
        Open

                  $text .= $frm->bbarea('mirror_description',$mirror_description);

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

                $download_status[0] = DOWLAN_122; // Inactive; 

        Reference to undeclared constant \ADMIN_FALSE_ICON
        Open

                    $status = array(ADMIN_FALSE_ICON,ADMIN_TRUE_ICON,ADMIN_WARNING_ICON);        

        There are no issues that match your filters.

        Category
        Status