e107inc/e107

View on GitHub
e107_admin/image.php

Summary

Maintainability
D
2 days
Test Coverage
F
10%

File image.php has 2619 lines of code (exceeds 2000 allowed). Consider refactoring.
Open

<?php
/*
 * e107 website system
 *
 * Copyright (C) 2008-2009 e107 Inc (e107.org)
Severity: Major
Found in e107_admin/image.php - About 2 days to fix

    Avoid deeply nested control flow statements.
    Open

                        if ($imageHeight > $allowedHeight)
                        {
                            if (strlen($sBadImage))
                            {
                                $sBadImage .= ', ';
    Severity: Major
    Found in e107_admin/image.php - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                          if ($imageWidth > $allowedWidth)
                          {
                              $sBadImage = IMALAN_40." ($imageWidth)";
                          }
      Severity: Major
      Found in e107_admin/image.php - About 45 mins to fix

        Avoid too many return statements within this method.
        Open

                    return $img_data;
        Severity: Major
        Found in e107_admin/image.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                              return FALSE;
          Severity: Major
          Found in e107_admin/image.php - About 30 mins to fix

            Assigning array<string></string> to property but \media_admin_ui->fields is array<string>&gt;|array{checkboxes:array{title:'',type:null,data:null,width:'5%',forced:true,thclass:'center',class:'center'},media_id:array{title:'ID',type:'number',data:'int',width:'5%',forced:true,nolist:true},media_preview:array{title:'Preview',type:'method',data:false,forced:true,width:'110px',thclass:'center',class:'center'},media_url:array{title:'Path',type:'text',data:'str',inline:false,thclass:'left',class:'left',width:'auto',writeParms:'size=xxlarge'},media_category:array{title:'Category',type:'comma',inline:false,data:'str',width:'10%',filter:true,batch:true,class:'left'},media_name:array{title:'Title',type:'text',data:'str',inline:true,width:'auto',writeParms:array{size:'xxlarge'}},media_caption:array{title:'Caption',type:'text',data:'str',inline:true,width:'auto',writeParms:array{size:'xxlarge'}},media_sef:array{title:'URL',readonly:1,type:'method',data:false},media_description:array{title:'Description',type:'textarea',data:'str',width:'auto',thclass:'left first',readParms:'truncate=100',writeParms:'size=xxlarge&amp;counter=0'},media_type:array{title:'Mime Type',type:'dropdown',data:'str',filter:true,width:'auto',noedit:true},media_author:array{title:'User',type:'user',data:'int',width:'auto',thclass:'center',class:'center',readParms:'link=1',filter:true,batch:true,noedit:true},media_datestamp:array{title:'Date stamp',type:'datestamp',data:'int',width:'10%',noedit:true},media_size:array{title:'Size',type:'number',data:'int',width:'auto',readonly:2},media_dimensions:array{title:'Dimensions',type:'text',data:'str',width:'5%',readonly:true,class:'nowrap',noedit:true},media_userclass:array{title:'Userclass',type:'userclass',data:'str',inline:true,width:'10%',thclass:'center',filter:true,batch:true},media_tags:array{title:'Tags/Keywords',type:'tags',inline:true,data:'str',width:'10%',filter:true,batch:true},media_usedby:array{title:'Used by',type:'hidden',data:'text',width:'auto',thclass:'center',class:'center',nolist:true,readonly:true},options:array{title:'Options',type:'method',data:null,forced:true,width:'10%',thclass:'center last',class:'center',batch:true,noedit:true}}</string>
            Open

                    $this->fields['media_category']['nolist'] = true;
            Severity: Minor
            Found in e107_admin/image.php by phan

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

                    if(!getperms('A') && !getperms('A1'))
            Severity: Minor
            Found in e107_admin/image.php by phan

            Returning type false but getYouTubeCode() is declared to return string
            Open

                    return isset($matches[1]) ? 'video:'.trim($matches[1]) : false;
            Severity: Minor
            Found in e107_admin/image.php by phan

            Argument #1 of this call to \str_replace is typically a literal or constant but isn't, but argument #3 (which is typically a variable) is a literal or constant. The arguments may be in the wrong order.
            Open

                                $text = str_replace($srch,$repl,IMALAN_108);
            Severity: Minor
            Found in e107_admin/image.php by phan

            Variable $sql is undeclared
            Open

                        if (!$sql->count('user', '(*)', "WHERE user_image='-upload-{$image_todb}' OR user_sess='{$image_todb}'")) {
            Severity: Minor
            Found in e107_admin/image.php by phan

            Returning type null but createPage() is declared to return string
            Open

                        return null;
            Severity: Minor
            Found in e107_admin/image.php by phan

            Call to undeclared method \e_admin_form_ui::rotateImages
            Open

                            $frm->rotateImages($ids,$type);
            Severity: Critical
            Found in e107_admin/image.php by phan

            Assigning array<string></string> to property but \media_admin_ui->fields is array<string>&gt;|array{checkboxes:array{title:'',type:null,data:null,width:'5%',forced:true,thclass:'center',class:'center'},media_id:array{title:'ID',type:'number',data:'int',width:'5%',forced:true,nolist:true},media_preview:array{title:'Preview',type:'method',data:false,forced:true,width:'110px',thclass:'center',class:'center'},media_url:array{title:'Path',type:'text',data:'str',inline:false,thclass:'left',class:'left',width:'auto',writeParms:'size=xxlarge'},media_category:array{title:'Category',type:'comma',inline:false,data:'str',width:'10%',filter:true,batch:true,class:'left'},media_name:array{title:'Title',type:'text',data:'str',inline:true,width:'auto',writeParms:array{size:'xxlarge'}},media_caption:array{title:'Caption',type:'text',data:'str',inline:true,width:'auto',writeParms:array{size:'xxlarge'}},media_sef:array{title:'URL',readonly:1,type:'method',data:false},media_description:array{title:'Description',type:'textarea',data:'str',width:'auto',thclass:'left first',readParms:'truncate=100',writeParms:'size=xxlarge&amp;counter=0'},media_type:array{title:'Mime Type',type:'dropdown',data:'str',filter:true,width:'auto',noedit:true},media_author:array{title:'User',type:'user',data:'int',width:'auto',thclass:'center',class:'center',readParms:'link=1',filter:true,batch:true,noedit:true},media_datestamp:array{title:'Date stamp',type:'datestamp',data:'int',width:'10%',noedit:true},media_size:array{title:'Size',type:'number',data:'int',width:'auto',readonly:2},media_dimensions:array{title:'Dimensions',type:'text',data:'str',width:'5%',readonly:true,class:'nowrap',noedit:true},media_userclass:array{title:'Userclass',type:'userclass',data:'str',inline:true,width:'10%',thclass:'center',filter:true,batch:true},media_tags:array{title:'Tags/Keywords',type:'tags',inline:true,data:'str',width:'10%',filter:true,batch:true},media_usedby:array{title:'Used by',type:'hidden',data:'text',width:'auto',thclass:'center',class:'center',nolist:true,readonly:true},options:array{title:'Options',type:'method',data:null,forced:true,width:'10%',thclass:'center last',class:'center',batch:true,noedit:true}}</string>
            Open

                    $this->fields['media_category']['readonly']    = TRUE;
            Severity: Minor
            Found in e107_admin/image.php by phan

            Assigning array<string></string> to property but \media_admin_ui->fields is array<string>&gt;|array{checkboxes:array{title:'',type:null,data:null,width:'5%',forced:true,thclass:'center',class:'center'},media_id:array{title:'ID',type:'number',data:'int',width:'5%',forced:true,nolist:true},media_preview:array{title:'Preview',type:'method',data:false,forced:true,width:'110px',thclass:'center',class:'center'},media_url:array{title:'Path',type:'text',data:'str',inline:false,thclass:'left',class:'left',width:'auto',writeParms:'size=xxlarge'},media_category:array{title:'Category',type:'comma',inline:false,data:'str',width:'10%',filter:true,batch:true,class:'left'},media_name:array{title:'Title',type:'text',data:'str',inline:true,width:'auto',writeParms:array{size:'xxlarge'}},media_caption:array{title:'Caption',type:'text',data:'str',inline:true,width:'auto',writeParms:array{size:'xxlarge'}},media_sef:array{title:'URL',readonly:1,type:'method',data:false},media_description:array{title:'Description',type:'textarea',data:'str',width:'auto',thclass:'left first',readParms:'truncate=100',writeParms:'size=xxlarge&amp;counter=0'},media_type:array{title:'Mime Type',type:'dropdown',data:'str',filter:true,width:'auto',noedit:true},media_author:array{title:'User',type:'user',data:'int',width:'auto',thclass:'center',class:'center',readParms:'link=1',filter:true,batch:true,noedit:true},media_datestamp:array{title:'Date stamp',type:'datestamp',data:'int',width:'10%',noedit:true},media_size:array{title:'Size',type:'number',data:'int',width:'auto',readonly:2},media_dimensions:array{title:'Dimensions',type:'text',data:'str',width:'5%',readonly:true,class:'nowrap',noedit:true},media_userclass:array{title:'Userclass',type:'userclass',data:'str',inline:true,width:'10%',thclass:'center',filter:true,batch:true},media_tags:array{title:'Tags/Keywords',type:'tags',inline:true,data:'str',width:'10%',filter:true,batch:true},media_usedby:array{title:'Used by',type:'hidden',data:'text',width:'auto',thclass:'center',class:'center',nolist:true,readonly:true},options:array{title:'Options',type:'method',data:null,forced:true,width:'10%',thclass:'center last',class:'center',batch:true,noedit:true}}</string>
            Open

                    $this->fields['media_userclass']['noedit']    = TRUE;
            Severity: Minor
            Found in e107_admin/image.php by phan

            Call to undeclared method \e_object::loadBatch
            Open

                        $this->getTreeModel()->setParam('db_query', $this->_modifyListQry(false, false, false, false, $this->listQry))->loadBatch();
            Severity: Critical
            Found in e107_admin/image.php by phan

            Return type of beforeUpdate() is undeclared type \TBD
            Open

                public function beforeUpdate($new_data, $old_data, $id)
            Severity: Minor
            Found in e107_admin/image.php by phan

            Argument 2 (mode) is 'rel' but \e_parse::createConstants() takes int defined at /code/e107_handlers/e_parse_class.php:3255
            Open

                    if(file_exists($newpath) || e107::getDb()->select('core_media', '*',"media_url = '".$tp->createConstants($newpath,'rel')."' LIMIT 1") )
            Severity: Minor
            Found in e107_admin/image.php by phan

            Variable $frm is undeclared
            Open

                            ".$frm->admin_button('check_all', LAN_CHECKALL, 'action'). '
            Severity: Minor
            Found in e107_admin/image.php by phan

            Assigning array<string right left></string> to property but \media_admin_ui->prefs is array{image_post:array{title:'Enable image display',tab:0,type:'boolean',data:'int',writeParms:'help=IMALAN_2'},image_post_class:array{title:'Image display class',type:'userclass',data:'int',writeParms:'help=IMALAN_11&classlist=public,guest,nobody,member,admin,main,classes'},image_post_disabled_method:array{title:'Disabled image method',type:'boolean',writeParms:'enabled=IMALAN_15&disabled=IMALAN_14'},resize_method:array{title:'Resize method',type:'method',data:'str'},thumbnail_quality:array{title:'Thumbnail Quality',type:'number',data:'int',writeParms:'',help:'Set this as low as possible before quality loss is apparent. Max. 100'},convert_to_jpeg:array{title:'Convert to jpeg during import',type:'boolean',data:'int',writeParms:'',help:'PNG and GIF files will be automatically converted to jpeg format. \x28icons excluded\x29'},convert_to_webp:array{title:'Convert to webp during import',type:'boolean',data:'int',writeParms:'',help:'JPEG, PNG and GIF files will be automatically converted to webp format. \x28icons excluded\x29'},thumb_to_webp:array{title:'Convert to webp during render',type:'boolean',data:'int',writeParms:'',help:'JPEG, PNG and GIF files will be automatically converted to webp format. \x28icons excluded\x29'},im_width:array{title:'Avatar Width',type:'number',data:'int',writeParms:'',help:'Avatar images will be constrained to these dimensions \x28in pixels\x29'},im_height:array{title:'Avatar Height',type:'number',data:'int',writeParms:'',help:'Avatar images will be constrained to these dimensions \x28in pixels\x29'},resize_dimensions:array{title:'Default Image Sizes',type:'method',data:'str'},watermark_activate:array{title:'Watermark Activation',tab:1,type:'number',data:'str',help:'All images with a width or height greater than this value will be given a watermark during resizing.'},watermark_text:array{title:'Watermark Text',tab:1,type:'text',data:'str',help:'Optional Watermark Text'},watermark_font:array{title:'Watermark Font',tab:1,type:'dropdown',data:'str',help:'Optional Watermark Font. Upload more .ttf fonts to the /fonts folder in your theme directory.'},watermark_size:array{title:'Watermark Size',tab:1,type:'number',data:'int',help:'Size of the font in pts'},watermark_pos:array{title:'Watermark Position',tab:1,type:'dropdown',data:'str',help:'Watermark Position'},watermark_margin:array{title:'Watermark Margin',tab:1,type:'number',data:'int',help:'The distance that watermark will appear from the edge of the image.'},watermark_color:array{title:'Watermark Color',tab:1,type:'text',data:'str',help:'Color of the watermark eg. 000000'},watermark_shadowcolor:array{title:'Watermark Shadow-Color',tab:1,type:'text',data:'str',help:'Shadow Color of the watermark eg. ffffff'},watermark_opacity:array{title:'Watermark Opacity',tab:1,type:'number',data:'int',help:'Enter a number between 1 and 100'},youtube_apikey:array{title:'YouTube Public API key',tab:2,type:'text',data:'str',help:'Used by the Media-Manager Youtube browser. Enter account name. eg. e107inc',writeParms:array{size:'xxlarge',post:''}},youtube_default_account:array{title:'Default YouTube account',tab:2,type:'text',data:'str',help:'Used by the Media-Manager Youtube browser. Enter account name. eg. e107inc',writeParms:array{size:'xxlarge',post:''}},youtube_rel:array{title:'Show Related Videos',tab:2,type:'boolean',data:'int',help:''},youtube_showinfo:array{title:'Show Video Info',tab:2,type:'boolean',data:'int',help:''},youtube_cc_load_policy:array{title:'Show Closed-Captions by default',tab:2,type:'boolean',data:'int',help:''},youtube_modestbranding:array{title:'Use Modest Branding',tab:2,type:'boolean',data:'int',help:''},youtube_bbcode_responsive:array{title:'Make the YouTube bbcode responsive',tab:2,type:'boolean',data:'int',help:''}}
            Open

                    $this->prefs['watermark_pos']['writeParms']         = $wm_pos;    
            Severity: Minor
            Found in e107_admin/image.php by phan

            Assigning array<string></string> to property but \media_admin_ui->fields is array<string>&gt;|array{checkboxes:array{title:'',type:null,data:null,width:'5%',forced:true,thclass:'center',class:'center'},media_id:array{title:'ID',type:'number',data:'int',width:'5%',forced:true,nolist:true},media_preview:array{title:'Preview',type:'method',data:false,forced:true,width:'110px',thclass:'center',class:'center'},media_url:array{title:'Path',type:'text',data:'str',inline:false,thclass:'left',class:'left',width:'auto',writeParms:'size=xxlarge'},media_category:array{title:'Category',type:'comma',inline:false,data:'str',width:'10%',filter:true,batch:true,class:'left'},media_name:array{title:'Title',type:'text',data:'str',inline:true,width:'auto',writeParms:array{size:'xxlarge'}},media_caption:array{title:'Caption',type:'text',data:'str',inline:true,width:'auto',writeParms:array{size:'xxlarge'}},media_sef:array{title:'URL',readonly:1,type:'method',data:false},media_description:array{title:'Description',type:'textarea',data:'str',width:'auto',thclass:'left first',readParms:'truncate=100',writeParms:'size=xxlarge&amp;counter=0'},media_type:array{title:'Mime Type',type:'dropdown',data:'str',filter:true,width:'auto',noedit:true},media_author:array{title:'User',type:'user',data:'int',width:'auto',thclass:'center',class:'center',readParms:'link=1',filter:true,batch:true,noedit:true},media_datestamp:array{title:'Date stamp',type:'datestamp',data:'int',width:'10%',noedit:true},media_size:array{title:'Size',type:'number',data:'int',width:'auto',readonly:2},media_dimensions:array{title:'Dimensions',type:'text',data:'str',width:'5%',readonly:true,class:'nowrap',noedit:true},media_userclass:array{title:'Userclass',type:'userclass',data:'str',inline:true,width:'10%',thclass:'center',filter:true,batch:true},media_tags:array{title:'Tags/Keywords',type:'tags',inline:true,data:'str',width:'10%',filter:true,batch:true},media_usedby:array{title:'Used by',type:'hidden',data:'text',width:'auto',thclass:'center',class:'center',nolist:true,readonly:true},options:array{title:'Options',type:'method',data:null,forced:true,width:'10%',thclass:'center last',class:'center',batch:true,noedit:true}}</string>
            Open

                    $this->fields['media_description']['nolist'] = true;
            Severity: Minor
            Found in e107_admin/image.php by phan

            Variable $glyphActive is undeclared
            Open

                        $text .= "<li class='{$glyphActive}'><a data-toggle='tab' data-bs-toggle='tab' href='#core-media-glyphs'>"."Glyphs</a></li>\n";
            Severity: Minor
            Found in e107_admin/image.php by phan

            Call to deprecated function \e_media::mediaSelect() defined at /code/e107_handlers/media_class.php:712
            Open

                        $text = e107::getMedia()->mediaSelect($this->getQuery('for'),$this->getQuery('tagid'), $options); // eg. news, news-thumbnail
            Severity: Minor
            Found in e107_admin/image.php by phan

            Invalid offset "high" of array type array{medium:array{url:string}}
            Open

                                $thumbnail = $value['snippet']['thumbnails']['high']['url'];
            Severity: Minor
            Found in e107_admin/image.php by phan

            Call to deprecated function \e_media::mediaSelect() defined at /code/e107_handlers/media_class.php:712
            Open

                    echo e107::getMedia()->mediaSelect($for,$tag,$bbcodeMode);
            Severity: Minor
            Found in e107_admin/image.php by phan

            Assigning array<string right left></string> to property but \media_admin_ui->prefs is array{image_post:array{title:'Enable image display',tab:0,type:'boolean',data:'int',writeParms:'help=IMALAN_2'},image_post_class:array{title:'Image display class',type:'userclass',data:'int',writeParms:'help=IMALAN_11&classlist=public,guest,nobody,member,admin,main,classes'},image_post_disabled_method:array{title:'Disabled image method',type:'boolean',writeParms:'enabled=IMALAN_15&disabled=IMALAN_14'},resize_method:array{title:'Resize method',type:'method',data:'str'},thumbnail_quality:array{title:'Thumbnail Quality',type:'number',data:'int',writeParms:'',help:'Set this as low as possible before quality loss is apparent. Max. 100'},convert_to_jpeg:array{title:'Convert to jpeg during import',type:'boolean',data:'int',writeParms:'',help:'PNG and GIF files will be automatically converted to jpeg format. \x28icons excluded\x29'},convert_to_webp:array{title:'Convert to webp during import',type:'boolean',data:'int',writeParms:'',help:'JPEG, PNG and GIF files will be automatically converted to webp format. \x28icons excluded\x29'},thumb_to_webp:array{title:'Convert to webp during render',type:'boolean',data:'int',writeParms:'',help:'JPEG, PNG and GIF files will be automatically converted to webp format. \x28icons excluded\x29'},im_width:array{title:'Avatar Width',type:'number',data:'int',writeParms:'',help:'Avatar images will be constrained to these dimensions \x28in pixels\x29'},im_height:array{title:'Avatar Height',type:'number',data:'int',writeParms:'',help:'Avatar images will be constrained to these dimensions \x28in pixels\x29'},resize_dimensions:array{title:'Default Image Sizes',type:'method',data:'str'},watermark_activate:array{title:'Watermark Activation',tab:1,type:'number',data:'str',help:'All images with a width or height greater than this value will be given a watermark during resizing.'},watermark_text:array{title:'Watermark Text',tab:1,type:'text',data:'str',help:'Optional Watermark Text'},watermark_font:array{title:'Watermark Font',tab:1,type:'dropdown',data:'str',help:'Optional Watermark Font. Upload more .ttf fonts to the /fonts folder in your theme directory.'},watermark_size:array{title:'Watermark Size',tab:1,type:'number',data:'int',help:'Size of the font in pts'},watermark_pos:array{title:'Watermark Position',tab:1,type:'dropdown',data:'str',help:'Watermark Position'},watermark_margin:array{title:'Watermark Margin',tab:1,type:'number',data:'int',help:'The distance that watermark will appear from the edge of the image.'},watermark_color:array{title:'Watermark Color',tab:1,type:'text',data:'str',help:'Color of the watermark eg. 000000'},watermark_shadowcolor:array{title:'Watermark Shadow-Color',tab:1,type:'text',data:'str',help:'Shadow Color of the watermark eg. ffffff'},watermark_opacity:array{title:'Watermark Opacity',tab:1,type:'number',data:'int',help:'Enter a number between 1 and 100'},youtube_apikey:array{title:'YouTube Public API key',tab:2,type:'text',data:'str',help:'Used by the Media-Manager Youtube browser. Enter account name. eg. e107inc',writeParms:array{size:'xxlarge',post:''}},youtube_default_account:array{title:'Default YouTube account',tab:2,type:'text',data:'str',help:'Used by the Media-Manager Youtube browser. Enter account name. eg. e107inc',writeParms:array{size:'xxlarge',post:''}},youtube_rel:array{title:'Show Related Videos',tab:2,type:'boolean',data:'int',help:''},youtube_showinfo:array{title:'Show Video Info',tab:2,type:'boolean',data:'int',help:''},youtube_cc_load_policy:array{title:'Show Closed-Captions by default',tab:2,type:'boolean',data:'int',help:''},youtube_modestbranding:array{title:'Use Modest Branding',tab:2,type:'boolean',data:'int',help:''},youtube_bbcode_responsive:array{title:'Make the YouTube bbcode responsive',tab:2,type:'boolean',data:'int',help:''}}
            Open

                    $this->prefs['watermark_pos']['readParms']             = $wm_pos;    
            Severity: Minor
            Found in e107_admin/image.php by phan

            Call to undeclared method \e_admin_form_ui::resizeImages
            Open

                            $frm->resizeImages($ids,$type);
            Severity: Critical
            Found in e107_admin/image.php by phan

            Assigning array<string></string> to property but \media_admin_ui->fields is array{checkboxes:array{title:'',type:null,data:null,width:'5%',forced:true,thclass:'center',class:'center'},media_id:array{title:'ID',type:'number',data:'int',width:'5%',forced:true,nolist:true},media_preview:array{title:'Preview',type:'method',data:false,forced:true,width:'110px',thclass:'center',class:'center'},media_url:array{title:'Path',type:'text',data:'str',inline:false,thclass:'left',class:'left',width:'auto',writeParms:'size=xxlarge'},media_category:array{title:'Category',type:'comma',inline:false,data:'str',width:'10%',filter:true,batch:true,class:'left'},media_name:array{title:'Title',type:'text',data:'str',inline:true,width:'auto',writeParms:array{size:'xxlarge'}},media_caption:array{title:'Caption',type:'text',data:'str',inline:true,width:'auto',writeParms:array{size:'xxlarge'}},media_sef:array{title:'URL',readonly:1,type:'method',data:false},media_description:array{title:'Description',type:'textarea',data:'str',width:'auto',thclass:'left first',readParms:'truncate=100',writeParms:'size=xxlarge&counter=0'},media_type:array{title:'Mime Type',type:'dropdown',data:'str',filter:true,width:'auto',noedit:true},media_author:array{title:'User',type:'user',data:'int',width:'auto',thclass:'center',class:'center',readParms:'link=1',filter:true,batch:true,noedit:true},media_datestamp:array{title:'Date stamp',type:'datestamp',data:'int',width:'10%',noedit:true},media_size:array{title:'Size',type:'number',data:'int',width:'auto',readonly:2},media_dimensions:array{title:'Dimensions',type:'text',data:'str',width:'5%',readonly:true,class:'nowrap',noedit:true},media_userclass:array{title:'Userclass',type:'userclass',data:'str',inline:true,width:'10%',thclass:'center',filter:true,batch:true},media_tags:array{title:'Tags/Keywords',type:'tags',inline:true,data:'str',width:'10%',filter:true,batch:true},media_usedby:array{title:'Used by',type:'hidden',data:'text',width:'auto',thclass:'center',class:'center',nolist:true,readonly:true},options:array{title:'Options',type:'method',data:null,forced:true,width:'10%',thclass:'center last',class:'center',batch:true,noedit:true}}
            Open

                    $this->fields['media_type']['nolist'] = true;
            Severity: Minor
            Found in e107_admin/image.php by phan

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

                    if(getperms('A|A1') && ($this->getQuery('bbcode') !== 'video' && $this->getQuery('bbcode') !== 'glyph'))
            Severity: Minor
            Found in e107_admin/image.php by phan

            Call to undeclared method \e_db::db_getList
            Open

                    $search_users = $sql->db_getList('ALL', FALSE, FALSE, 'user_id');
            Severity: Critical
            Found in e107_admin/image.php by phan

            Argument 3 (att) is string but \e_media::mediaSelect() takes null defined at /code/e107_handlers/media_class.php:712
            Open

                    echo e107::getMedia()->mediaSelect($for,$tag,$bbcodeMode);
            Severity: Minor
            Found in e107_admin/image.php by phan

            Assigning array<string></string> to property but \media_admin_ui->fields is array{checkboxes:array{title:'',type:null,data:null,width:'5%',forced:true,thclass:'center',class:'center'},media_id:array{title:'ID',type:'number',data:'int',width:'5%',forced:true,nolist:true},media_preview:array{title:'Preview',type:'method',data:false,forced:true,width:'110px',thclass:'center',class:'center'},media_url:array{title:'Path',type:'text',data:'str',inline:false,thclass:'left',class:'left',width:'auto',writeParms:'size=xxlarge'},media_category:array{title:'Category',type:'comma',inline:false,data:'str',width:'10%',filter:true,batch:true,class:'left'},media_name:array{title:'Title',type:'text',data:'str',inline:true,width:'auto',writeParms:array{size:'xxlarge'}},media_caption:array{title:'Caption',type:'text',data:'str',inline:true,width:'auto',writeParms:array{size:'xxlarge'}},media_sef:array{title:'URL',readonly:1,type:'method',data:false},media_description:array{title:'Description',type:'textarea',data:'str',width:'auto',thclass:'left first',readParms:'truncate=100',writeParms:'size=xxlarge&counter=0'},media_type:array{title:'Mime Type',type:'dropdown',data:'str',filter:true,width:'auto',noedit:true},media_author:array{title:'User',type:'user',data:'int',width:'auto',thclass:'center',class:'center',readParms:'link=1',filter:true,batch:true,noedit:true},media_datestamp:array{title:'Date stamp',type:'datestamp',data:'int',width:'10%',noedit:true},media_size:array{title:'Size',type:'number',data:'int',width:'auto',readonly:2},media_dimensions:array{title:'Dimensions',type:'text',data:'str',width:'5%',readonly:true,class:'nowrap',noedit:true},media_userclass:array{title:'Userclass',type:'userclass',data:'str',inline:true,width:'10%',thclass:'center',filter:true,batch:true},media_tags:array{title:'Tags/Keywords',type:'tags',inline:true,data:'str',width:'10%',filter:true,batch:true},media_usedby:array{title:'Used by',type:'hidden',data:'text',width:'auto',thclass:'center',class:'center',nolist:true,readonly:true},options:array{title:'Options',type:'method',data:null,forced:true,width:'10%',thclass:'center last',class:'center',batch:true,noedit:true}}
            Open

                    $this->fields['media_category']['writeParms'] = $this->cats;
            Severity: Minor
            Found in e107_admin/image.php by phan

            Assigning array<string></string> to property but \media_admin_ui->fields is array<string>&gt;|array{checkboxes:array{title:'',type:null,data:null,width:'5%',forced:true,thclass:'center',class:'center'},media_id:array{title:'ID',type:'number',data:'int',width:'5%',forced:true,nolist:true},media_preview:array{title:'Preview',type:'method',data:false,forced:true,width:'110px',thclass:'center',class:'center'},media_url:array{title:'Path',type:'text',data:'str',inline:false,thclass:'left',class:'left',width:'auto',writeParms:'size=xxlarge'},media_category:array{title:'Category',type:'comma',inline:false,data:'str',width:'10%',filter:true,batch:true,class:'left'},media_name:array{title:'Title',type:'text',data:'str',inline:true,width:'auto',writeParms:array{size:'xxlarge'}},media_caption:array{title:'Caption',type:'text',data:'str',inline:true,width:'auto',writeParms:array{size:'xxlarge'}},media_sef:array{title:'URL',readonly:1,type:'method',data:false},media_description:array{title:'Description',type:'textarea',data:'str',width:'auto',thclass:'left first',readParms:'truncate=100',writeParms:'size=xxlarge&amp;counter=0'},media_type:array{title:'Mime Type',type:'dropdown',data:'str',filter:true,width:'auto',noedit:true},media_author:array{title:'User',type:'user',data:'int',width:'auto',thclass:'center',class:'center',readParms:'link=1',filter:true,batch:true,noedit:true},media_datestamp:array{title:'Date stamp',type:'datestamp',data:'int',width:'10%',noedit:true},media_size:array{title:'Size',type:'number',data:'int',width:'auto',readonly:2},media_dimensions:array{title:'Dimensions',type:'text',data:'str',width:'5%',readonly:true,class:'nowrap',noedit:true},media_userclass:array{title:'Userclass',type:'userclass',data:'str',inline:true,width:'10%',thclass:'center',filter:true,batch:true},media_tags:array{title:'Tags/Keywords',type:'tags',inline:true,data:'str',width:'10%',filter:true,batch:true},media_usedby:array{title:'Used by',type:'hidden',data:'text',width:'auto',thclass:'center',class:'center',nolist:true,readonly:true},options:array{title:'Options',type:'method',data:null,forced:true,width:'10%',thclass:'center last',class:'center',batch:true,noedit:true}}</string>
            Open

                    $this->fields['options']['type'] = 'method';
            Severity: Minor
            Found in e107_admin/image.php by phan

            Assigning array<string></string> to property but \media_admin_ui->fields is array<string>&gt;|array{checkboxes:array{title:'',type:null,data:null,width:'5%',forced:true,thclass:'center',class:'center'},media_id:array{title:'ID',type:'number',data:'int',width:'5%',forced:true,nolist:true},media_preview:array{title:'Preview',type:'method',data:false,forced:true,width:'110px',thclass:'center',class:'center'},media_url:array{title:'Path',type:'text',data:'str',inline:false,thclass:'left',class:'left',width:'auto',writeParms:'size=xxlarge'},media_category:array{title:'Category',type:'comma',inline:false,data:'str',width:'10%',filter:true,batch:true,class:'left'},media_name:array{title:'Title',type:'text',data:'str',inline:true,width:'auto',writeParms:array{size:'xxlarge'}},media_caption:array{title:'Caption',type:'text',data:'str',inline:true,width:'auto',writeParms:array{size:'xxlarge'}},media_sef:array{title:'URL',readonly:1,type:'method',data:false},media_description:array{title:'Description',type:'textarea',data:'str',width:'auto',thclass:'left first',readParms:'truncate=100',writeParms:'size=xxlarge&amp;counter=0'},media_type:array{title:'Mime Type',type:'dropdown',data:'str',filter:true,width:'auto',noedit:true},media_author:array{title:'User',type:'user',data:'int',width:'auto',thclass:'center',class:'center',readParms:'link=1',filter:true,batch:true,noedit:true},media_datestamp:array{title:'Date stamp',type:'datestamp',data:'int',width:'10%',noedit:true},media_size:array{title:'Size',type:'number',data:'int',width:'auto',readonly:2},media_dimensions:array{title:'Dimensions',type:'text',data:'str',width:'5%',readonly:true,class:'nowrap',noedit:true},media_userclass:array{title:'Userclass',type:'userclass',data:'str',inline:true,width:'10%',thclass:'center',filter:true,batch:true},media_tags:array{title:'Tags/Keywords',type:'tags',inline:true,data:'str',width:'10%',filter:true,batch:true},media_usedby:array{title:'Used by',type:'hidden',data:'text',width:'auto',thclass:'center',class:'center',nolist:true,readonly:true},options:array{title:'Options',type:'method',data:null,forced:true,width:'10%',thclass:'center last',class:'center',batch:true,noedit:true}}</string>
            Open

                    $this->fields['media_userclass']['nolist'] = true;
            Severity: Minor
            Found in e107_admin/image.php by phan

            Assigning array<string></string> to property but \media_admin_ui->fields is array{checkboxes:array{title:'',type:null,data:null,width:'5%',forced:true,thclass:'center',class:'center'},media_id:array{title:'ID',type:'number',data:'int',width:'5%',forced:true,nolist:true},media_preview:array{title:'Preview',type:'method',data:false,forced:true,width:'110px',thclass:'center',class:'center'},media_url:array{title:'Path',type:'text',data:'str',inline:false,thclass:'left',class:'left',width:'auto',writeParms:'size=xxlarge'},media_category:array{title:'Category',type:'comma',inline:false,data:'str',width:'10%',filter:true,batch:true,class:'left'},media_name:array{title:'Title',type:'text',data:'str',inline:true,width:'auto',writeParms:array{size:'xxlarge'}},media_caption:array{title:'Caption',type:'text',data:'str',inline:true,width:'auto',writeParms:array{size:'xxlarge'}},media_sef:array{title:'URL',readonly:1,type:'method',data:false},media_description:array{title:'Description',type:'textarea',data:'str',width:'auto',thclass:'left first',readParms:'truncate=100',writeParms:'size=xxlarge&counter=0'},media_type:array{title:'Mime Type',type:'dropdown',data:'str',filter:true,width:'auto',noedit:true},media_author:array{title:'User',type:'user',data:'int',width:'auto',thclass:'center',class:'center',readParms:'link=1',filter:true,batch:true,noedit:true},media_datestamp:array{title:'Date stamp',type:'datestamp',data:'int',width:'10%',noedit:true},media_size:array{title:'Size',type:'number',data:'int',width:'auto',readonly:2},media_dimensions:array{title:'Dimensions',type:'text',data:'str',width:'5%',readonly:true,class:'nowrap',noedit:true},media_userclass:array{title:'Userclass',type:'userclass',data:'str',inline:true,width:'10%',thclass:'center',filter:true,batch:true},media_tags:array{title:'Tags/Keywords',type:'tags',inline:true,data:'str',width:'10%',filter:true,batch:true},media_usedby:array{title:'Used by',type:'hidden',data:'text',width:'auto',thclass:'center',class:'center',nolist:true,readonly:true},options:array{title:'Options',type:'method',data:null,forced:true,width:'10%',thclass:'center last',class:'center',batch:true,noedit:true}}
            Open

                    $this->fields['media_dimensions']['nolist'] = true;
            Severity: Minor
            Found in e107_admin/image.php by phan

            Assigning array<string></string> to property but \media_admin_ui->fields is array{checkboxes:array{title:'',type:null,data:null,width:'5%',forced:true,thclass:'center',class:'center'},media_id:array{title:'ID',type:'number',data:'int',width:'5%',forced:true,nolist:true},media_preview:array{title:'Preview',type:'method',data:false,forced:true,width:'110px',thclass:'center',class:'center'},media_url:array{title:'Path',type:'text',data:'str',inline:false,thclass:'left',class:'left',width:'auto',writeParms:'size=xxlarge'},media_category:array{title:'Category',type:'comma',inline:false,data:'str',width:'10%',filter:true,batch:true,class:'left'},media_name:array{title:'Title',type:'text',data:'str',inline:true,width:'auto',writeParms:array{size:'xxlarge'}},media_caption:array{title:'Caption',type:'text',data:'str',inline:true,width:'auto',writeParms:array{size:'xxlarge'}},media_sef:array{title:'URL',readonly:1,type:'method',data:false},media_description:array{title:'Description',type:'textarea',data:'str',width:'auto',thclass:'left first',readParms:'truncate=100',writeParms:'size=xxlarge&counter=0'},media_type:array{title:'Mime Type',type:'dropdown',data:'str',filter:true,width:'auto',noedit:true},media_author:array{title:'User',type:'user',data:'int',width:'auto',thclass:'center',class:'center',readParms:'link=1',filter:true,batch:true,noedit:true},media_datestamp:array{title:'Date stamp',type:'datestamp',data:'int',width:'10%',noedit:true},media_size:array{title:'Size',type:'number',data:'int',width:'auto',readonly:2},media_dimensions:array{title:'Dimensions',type:'text',data:'str',width:'5%',readonly:true,class:'nowrap',noedit:true},media_userclass:array{title:'Userclass',type:'userclass',data:'str',inline:true,width:'10%',thclass:'center',filter:true,batch:true},media_tags:array{title:'Tags/Keywords',type:'tags',inline:true,data:'str',width:'10%',filter:true,batch:true},media_usedby:array{title:'Used by',type:'hidden',data:'text',width:'auto',thclass:'center',class:'center',nolist:true,readonly:true},options:array{title:'Options',type:'method',data:null,forced:true,width:'10%',thclass:'center last',class:'center',batch:true,noedit:true}}
            Open

                    $this->fields['media_description']['nolist'] = true;
            Severity: Minor
            Found in e107_admin/image.php by phan

            Invalid offset "from" of array type array{bbcode:'glyph'}|array{bbcode:'img'}|array{bbcode:'video'}|array{bbcode:false}
            Open

                        $options['from'] .= (int) $_GET['from'];
            Severity: Minor
            Found in e107_admin/image.php by phan

            Argument 3 (omit) is null but \e_file::get_files() takes string defined at /code/e107_handlers/file_class.php:245
            Open

                    $avFiles = e107::getFile()->get_files(e_MEDIA. 'avatars/', '.jpg|.png|.gif|.jpeg|.JPG|.GIF|.PNG',null,2);
            Severity: Minor
            Found in e107_admin/image.php by phan

            Argument 2 (mode) is 'rel' but \e_parse::createConstants() takes int defined at /code/e107_handlers/e_parse_class.php:3255
            Open

                                'media_url'            => $tp->createConstants($newpath,'rel'),
            Severity: Minor
            Found in e107_admin/image.php by phan

            Argument 2 (options) is 'w=800' but \e_parse::thumbUrl() takes array defined at /code/e107_handlers/e_parse_class.php:2531
            Open

                        $large = e107::getParser()->thumbUrl($f['path'].$f['fname'], 'w=800', true);
            Severity: Minor
            Found in e107_admin/image.php by phan

            Variable $pref is undeclared
            Open

                $allowedWidth = (int) $pref['im_width'];
            Severity: Minor
            Found in e107_admin/image.php by phan

            Argument 2 (newvalue) is 1 but \ini_set() takes string
            Open

                    ini_set('gd.jpeg_ignore_warning', 1);
            Severity: Minor
            Found in e107_admin/image.php by phan

            Assigning array<string></string> to property but \media_admin_ui->fields is array{checkboxes:array{title:'',type:null,data:null,width:'5%',forced:true,thclass:'center',class:'center'},media_id:array{title:'ID',type:'number',data:'int',width:'5%',forced:true,nolist:true},media_preview:array{title:'Preview',type:'method',data:false,forced:true,width:'110px',thclass:'center',class:'center'},media_url:array{title:'Path',type:'text',data:'str',inline:false,thclass:'left',class:'left',width:'auto',writeParms:'size=xxlarge'},media_category:array{title:'Category',type:'comma',inline:false,data:'str',width:'10%',filter:true,batch:true,class:'left'},media_name:array{title:'Title',type:'text',data:'str',inline:true,width:'auto',writeParms:array{size:'xxlarge'}},media_caption:array{title:'Caption',type:'text',data:'str',inline:true,width:'auto',writeParms:array{size:'xxlarge'}},media_sef:array{title:'URL',readonly:1,type:'method',data:false},media_description:array{title:'Description',type:'textarea',data:'str',width:'auto',thclass:'left first',readParms:'truncate=100',writeParms:'size=xxlarge&counter=0'},media_type:array{title:'Mime Type',type:'dropdown',data:'str',filter:true,width:'auto',noedit:true},media_author:array{title:'User',type:'user',data:'int',width:'auto',thclass:'center',class:'center',readParms:'link=1',filter:true,batch:true,noedit:true},media_datestamp:array{title:'Date stamp',type:'datestamp',data:'int',width:'10%',noedit:true},media_size:array{title:'Size',type:'number',data:'int',width:'auto',readonly:2},media_dimensions:array{title:'Dimensions',type:'text',data:'str',width:'5%',readonly:true,class:'nowrap',noedit:true},media_userclass:array{title:'Userclass',type:'userclass',data:'str',inline:true,width:'10%',thclass:'center',filter:true,batch:true},media_tags:array{title:'Tags/Keywords',type:'tags',inline:true,data:'str',width:'10%',filter:true,batch:true},media_usedby:array{title:'Used by',type:'hidden',data:'text',width:'auto',thclass:'center',class:'center',nolist:true,readonly:true},options:array{title:'Options',type:'method',data:null,forced:true,width:'10%',thclass:'center last',class:'center',batch:true,noedit:true}}
            Open

                        $this->fields['media_url']['inline'] = true;
            Severity: Minor
            Found in e107_admin/image.php by phan

            Argument 2 (mode) is 'rel' but \e_parse::createConstants() takes int defined at /code/e107_handlers/e_parse_class.php:3255
            Open

                            $img_data['media_url'] = $tp->createConstants($newpath, 'rel');
            Severity: Minor
            Found in e107_admin/image.php by phan

            Argument 2 (options) is 'w=100' but \e_parse::thumbUrl() takes array defined at /code/e107_handlers/e_parse_class.php:2531
            Open

                        $url = e107::getParser()->thumbUrl($f['path'].$f['fname'], 'w=100', true);
            Severity: Minor
            Found in e107_admin/image.php by phan

            Call to deprecated function \avatar() defined at /code/e107_handlers/avatar_handler.php:23
            Open

                            $avname = avatar($search_users[$uid]['user_image']);
            Severity: Minor
            Found in e107_admin/image.php by phan

            Invalid offset "writeParms" of array type array{title:'Owner',type:'dropdown',width:'auto',thclass:'left',readonly:false}
            Open

                    if(!count($this->fields['media_cat_owner']['writeParms'])) 
            Severity: Minor
            Found in e107_admin/image.php by phan

            Assigning array<string></string> to property but \media_admin_ui->fields is array{checkboxes:array{title:'',type:null,data:null,width:'5%',forced:true,thclass:'center',class:'center'},media_id:array{title:'ID',type:'number',data:'int',width:'5%',forced:true,nolist:true},media_preview:array{title:'Preview',type:'method',data:false,forced:true,width:'110px',thclass:'center',class:'center'},media_url:array{title:'Path',type:'text',data:'str',inline:false,thclass:'left',class:'left',width:'auto',writeParms:'size=xxlarge'},media_category:array{title:'Category',type:'comma',inline:false,data:'str',width:'10%',filter:true,batch:true,class:'left'},media_name:array{title:'Title',type:'text',data:'str',inline:true,width:'auto',writeParms:array{size:'xxlarge'}},media_caption:array{title:'Caption',type:'text',data:'str',inline:true,width:'auto',writeParms:array{size:'xxlarge'}},media_sef:array{title:'URL',readonly:1,type:'method',data:false},media_description:array{title:'Description',type:'textarea',data:'str',width:'auto',thclass:'left first',readParms:'truncate=100',writeParms:'size=xxlarge&counter=0'},media_type:array{title:'Mime Type',type:'dropdown',data:'str',filter:true,width:'auto',noedit:true},media_author:array{title:'User',type:'user',data:'int',width:'auto',thclass:'center',class:'center',readParms:'link=1',filter:true,batch:true,noedit:true},media_datestamp:array{title:'Date stamp',type:'datestamp',data:'int',width:'10%',noedit:true},media_size:array{title:'Size',type:'number',data:'int',width:'auto',readonly:2},media_dimensions:array{title:'Dimensions',type:'text',data:'str',width:'5%',readonly:true,class:'nowrap',noedit:true},media_userclass:array{title:'Userclass',type:'userclass',data:'str',inline:true,width:'10%',thclass:'center',filter:true,batch:true},media_tags:array{title:'Tags/Keywords',type:'tags',inline:true,data:'str',width:'10%',filter:true,batch:true},media_usedby:array{title:'Used by',type:'hidden',data:'text',width:'auto',thclass:'center',class:'center',nolist:true,readonly:true},options:array{title:'Options',type:'method',data:null,forced:true,width:'10%',thclass:'center last',class:'center',batch:true,noedit:true}}
            Open

                    $this->fields['media_type']['writeParms'] = $mimeTypes;
            Severity: Minor
            Found in e107_admin/image.php by phan

            Assigning array<string></string> to property but \media_admin_ui->fields is array<string>&gt;|array{checkboxes:array{title:'',type:null,data:null,width:'5%',forced:true,thclass:'center',class:'center'},media_id:array{title:'ID',type:'number',data:'int',width:'5%',forced:true,nolist:true},media_preview:array{title:'Preview',type:'method',data:false,forced:true,width:'110px',thclass:'center',class:'center'},media_url:array{title:'Path',type:'text',data:'str',inline:false,thclass:'left',class:'left',width:'auto',writeParms:'size=xxlarge'},media_category:array{title:'Category',type:'comma',inline:false,data:'str',width:'10%',filter:true,batch:true,class:'left'},media_name:array{title:'Title',type:'text',data:'str',inline:true,width:'auto',writeParms:array{size:'xxlarge'}},media_caption:array{title:'Caption',type:'text',data:'str',inline:true,width:'auto',writeParms:array{size:'xxlarge'}},media_sef:array{title:'URL',readonly:1,type:'method',data:false},media_description:array{title:'Description',type:'textarea',data:'str',width:'auto',thclass:'left first',readParms:'truncate=100',writeParms:'size=xxlarge&amp;counter=0'},media_type:array{title:'Mime Type',type:'dropdown',data:'str',filter:true,width:'auto',noedit:true},media_author:array{title:'User',type:'user',data:'int',width:'auto',thclass:'center',class:'center',readParms:'link=1',filter:true,batch:true,noedit:true},media_datestamp:array{title:'Date stamp',type:'datestamp',data:'int',width:'10%',noedit:true},media_size:array{title:'Size',type:'number',data:'int',width:'auto',readonly:2},media_dimensions:array{title:'Dimensions',type:'text',data:'str',width:'5%',readonly:true,class:'nowrap',noedit:true},media_userclass:array{title:'Userclass',type:'userclass',data:'str',inline:true,width:'10%',thclass:'center',filter:true,batch:true},media_tags:array{title:'Tags/Keywords',type:'tags',inline:true,data:'str',width:'10%',filter:true,batch:true},media_usedby:array{title:'Used by',type:'hidden',data:'text',width:'auto',thclass:'center',class:'center',nolist:true,readonly:true},options:array{title:'Options',type:'method',data:null,forced:true,width:'10%',thclass:'center last',class:'center',batch:true,noedit:true}}</string>
            Open

                    $this->fields['media_url']['nolist'] = true;
            Severity: Minor
            Found in e107_admin/image.php by phan

            Call to deprecated function \media_admin_ui::imageTab() defined at /code/e107_admin/image.php:1878
            Open

                        $text .= $this->imageTab($type,$options);
            Severity: Minor
            Found in e107_admin/image.php by phan

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

                        return array('caption'=>EMESSLAN_TITLE_INFO, 'text'=>$text);
            Severity: Minor
            Found in e107_admin/image.php by phan

            Argument 2 (mode) is 'rel' but \e_parse::createConstants() takes int defined at /code/e107_handlers/e_parse_class.php:3255
            Open

                        'media_url'            => e107::getParser()->createConstants($path, 'rel'),
            Severity: Minor
            Found in e107_admin/image.php by phan

            Assigning array<string>|array{}}&gt;</string> to property but \media_cat_ui->fields is array{media_cat_id:array{title:'ID',type:'number',width:'5%',nolist:true,forced:true,readonly:true},media_cat_image:array{title:'Image',type:'image',data:'str',width:'100px',thclass:'center',class:'center',readParms:'thumb=60&thumb_urlraw=0&thumb_aw=60',readonly:false,batch:false,filter:false},media_cat_owner:array{title:'Owner',type:'dropdown',width:'auto',thclass:'left',readonly:false},media_cat_type:array{title:'Type',type:'radio',data:false,width:'auto',thclass:'left',validate:true,nolist:true},media_cat_category:array{title:'Category',type:'text',data:'str',width:'auto',thclass:'left',readonly:true},media_cat_title:array{title:'Title',type:'text',width:'auto',thclass:'left',readonly:false,validate:true,writeParms:array{size:'xxlarge'}},media_cat_sef:array{title:'SEF URL',type:'text',width:'auto',thclass:'left',readonly:false,writeParms:array{size:'xxlarge',sef:'media_cat_title'}},media_cat_diz:array{title:'Description',type:'bbarea',width:'30%',readParms:'expand=...&truncate=150&bb=1',readonly:false},media_cat_class:array{title:'Visibility',type:'userclass',width:'auto',data:'int'},media_cat_order:array{title:'Order',type:'text',width:'5%',thclass:'right',class:'right'},options:array{title:'Options',type:'method',noedit:true,width:'10%',forced:true,thclass:'center last',class:'center'}}
            Open

                        $this->fields['media_cat_owner']['writeParms'] = $this->restricted;
            Severity: Minor
            Found in e107_admin/image.php by phan

            Argument 1 (parm) is array{search:array|bool|string} but \media_admin_ui::youtubeTab() takes string defined at /code/e107_admin/image.php:2413
            Open

                                echo $this->youtubeTab($parm);
            Severity: Minor
            Found in e107_admin/image.php by phan

            Assigning array<string></string> to property but \media_admin_ui->fields is array<string>&gt;|array{checkboxes:array{title:'',type:null,data:null,width:'5%',forced:true,thclass:'center',class:'center'},media_id:array{title:'ID',type:'number',data:'int',width:'5%',forced:true,nolist:true},media_preview:array{title:'Preview',type:'method',data:false,forced:true,width:'110px',thclass:'center',class:'center'},media_url:array{title:'Path',type:'text',data:'str',inline:false,thclass:'left',class:'left',width:'auto',writeParms:'size=xxlarge'},media_category:array{title:'Category',type:'comma',inline:false,data:'str',width:'10%',filter:true,batch:true,class:'left'},media_name:array{title:'Title',type:'text',data:'str',inline:true,width:'auto',writeParms:array{size:'xxlarge'}},media_caption:array{title:'Caption',type:'text',data:'str',inline:true,width:'auto',writeParms:array{size:'xxlarge'}},media_sef:array{title:'URL',readonly:1,type:'method',data:false},media_description:array{title:'Description',type:'textarea',data:'str',width:'auto',thclass:'left first',readParms:'truncate=100',writeParms:'size=xxlarge&amp;counter=0'},media_type:array{title:'Mime Type',type:'dropdown',data:'str',filter:true,width:'auto',noedit:true},media_author:array{title:'User',type:'user',data:'int',width:'auto',thclass:'center',class:'center',readParms:'link=1',filter:true,batch:true,noedit:true},media_datestamp:array{title:'Date stamp',type:'datestamp',data:'int',width:'10%',noedit:true},media_size:array{title:'Size',type:'number',data:'int',width:'auto',readonly:2},media_dimensions:array{title:'Dimensions',type:'text',data:'str',width:'5%',readonly:true,class:'nowrap',noedit:true},media_userclass:array{title:'Userclass',type:'userclass',data:'str',inline:true,width:'10%',thclass:'center',filter:true,batch:true},media_tags:array{title:'Tags/Keywords',type:'tags',inline:true,data:'str',width:'10%',filter:true,batch:true},media_usedby:array{title:'Used by',type:'hidden',data:'text',width:'auto',thclass:'center',class:'center',nolist:true,readonly:true},options:array{title:'Options',type:'method',data:null,forced:true,width:'10%',thclass:'center last',class:'center',batch:true,noedit:true}}</string>
            Open

                    $this->fields['media_sef']['nolist'] = true;
            Severity: Minor
            Found in e107_admin/image.php by phan

            Argument 1 (data) is ?array<int>|?array{}|?string</int> but \e_media::browserCarousel() takes array|string defined at /code/e107_handlers/media_class.php:1773
            Open

                    $text = e107::getMedia()->browserCarousel($items, $parms);
            Severity: Minor
            Found in e107_admin/image.php by phan

            Returning type void but settingsPage() is declared to return bool|false
            Open

                        return;
            Severity: Minor
            Found in e107_admin/image.php by phan

            Assigning array<string></string> to property but \media_admin_ui->fields is array<string>&gt;|array{checkboxes:array{title:'',type:null,data:null,width:'5%',forced:true,thclass:'center',class:'center'},media_id:array{title:'ID',type:'number',data:'int',width:'5%',forced:true,nolist:true},media_preview:array{title:'Preview',type:'method',data:false,forced:true,width:'110px',thclass:'center',class:'center'},media_url:array{title:'Path',type:'text',data:'str',inline:false,thclass:'left',class:'left',width:'auto',writeParms:'size=xxlarge'},media_category:array{title:'Category',type:'comma',inline:false,data:'str',width:'10%',filter:true,batch:true,class:'left'},media_name:array{title:'Title',type:'text',data:'str',inline:true,width:'auto',writeParms:array{size:'xxlarge'}},media_caption:array{title:'Caption',type:'text',data:'str',inline:true,width:'auto',writeParms:array{size:'xxlarge'}},media_sef:array{title:'URL',readonly:1,type:'method',data:false},media_description:array{title:'Description',type:'textarea',data:'str',width:'auto',thclass:'left first',readParms:'truncate=100',writeParms:'size=xxlarge&amp;counter=0'},media_type:array{title:'Mime Type',type:'dropdown',data:'str',filter:true,width:'auto',noedit:true},media_author:array{title:'User',type:'user',data:'int',width:'auto',thclass:'center',class:'center',readParms:'link=1',filter:true,batch:true,noedit:true},media_datestamp:array{title:'Date stamp',type:'datestamp',data:'int',width:'10%',noedit:true},media_size:array{title:'Size',type:'number',data:'int',width:'auto',readonly:2},media_dimensions:array{title:'Dimensions',type:'text',data:'str',width:'5%',readonly:true,class:'nowrap',noedit:true},media_userclass:array{title:'Userclass',type:'userclass',data:'str',inline:true,width:'10%',thclass:'center',filter:true,batch:true},media_tags:array{title:'Tags/Keywords',type:'tags',inline:true,data:'str',width:'10%',filter:true,batch:true},media_usedby:array{title:'Used by',type:'hidden',data:'text',width:'auto',thclass:'center',class:'center',nolist:true,readonly:true},options:array{title:'Options',type:'method',data:null,forced:true,width:'10%',thclass:'center last',class:'center',batch:true,noedit:true}}</string>
            Open

                    $this->fields['media_category']['data'] = 'str'; //XXX Quick fix for 'comma' incompatibility in Db-Update routines. 
            Severity: Minor
            Found in e107_admin/image.php by phan

            Assigning array<string></string> to property but \media_cat_ui->fields is array{media_cat_id:array{title:'ID',type:'number',width:'5%',nolist:true,forced:true,readonly:true},media_cat_image:array{title:'Image',type:'image',data:'str',width:'100px',thclass:'center',class:'center',readParms:'thumb=60&thumb_urlraw=0&thumb_aw=60',readonly:false,batch:false,filter:false},media_cat_owner:array{title:'Owner',type:'dropdown',width:'auto',thclass:'left',readonly:false},media_cat_type:array{title:'Type',type:'radio',data:false,width:'auto',thclass:'left',validate:true,nolist:true},media_cat_category:array{title:'Category',type:'text',data:'str',width:'auto',thclass:'left',readonly:true},media_cat_title:array{title:'Title',type:'text',width:'auto',thclass:'left',readonly:false,validate:true,writeParms:array{size:'xxlarge'}},media_cat_sef:array{title:'SEF URL',type:'text',width:'auto',thclass:'left',readonly:false,writeParms:array{size:'xxlarge',sef:'media_cat_title'}},media_cat_diz:array{title:'Description',type:'bbarea',width:'30%',readParms:'expand=...&truncate=150&bb=1',readonly:false},media_cat_class:array{title:'Visibility',type:'userclass',width:'auto',data:'int'},media_cat_order:array{title:'Order',type:'text',width:'5%',thclass:'right',class:'right'},options:array{title:'Options',type:'method',noedit:true,width:'10%',forced:true,thclass:'center last',class:'center'}}
            Open

                                $this->fields['media_cat_owner']['writeParms'][$own] = $own;    
            Severity: Minor
            Found in e107_admin/image.php by phan

            Call to undeclared method \e_admin_form_ui::convertImagesToJpeg
            Open

                            $frm->convertImagesToJpeg($ids,'all');
            Severity: Critical
            Found in e107_admin/image.php by phan

            Assigning array<string></string> to property but \media_admin_ui->fields is array{checkboxes:array{title:'',type:null,data:null,width:'5%',forced:true,thclass:'center',class:'center'},media_id:array{title:'ID',type:'number',data:'int',width:'5%',forced:true,nolist:true},media_preview:array{title:'Preview',type:'method',data:false,forced:true,width:'110px',thclass:'center',class:'center'},media_url:array{title:'Path',type:'text',data:'str',inline:false,thclass:'left',class:'left',width:'auto',writeParms:'size=xxlarge'},media_category:array{title:'Category',type:'comma',inline:false,data:'str',width:'10%',filter:true,batch:true,class:'left'},media_name:array{title:'Title',type:'text',data:'str',inline:true,width:'auto',writeParms:array{size:'xxlarge'}},media_caption:array{title:'Caption',type:'text',data:'str',inline:true,width:'auto',writeParms:array{size:'xxlarge'}},media_sef:array{title:'URL',readonly:1,type:'method',data:false},media_description:array{title:'Description',type:'textarea',data:'str',width:'auto',thclass:'left first',readParms:'truncate=100',writeParms:'size=xxlarge&counter=0'},media_type:array{title:'Mime Type',type:'dropdown',data:'str',filter:true,width:'auto',noedit:true},media_author:array{title:'User',type:'user',data:'int',width:'auto',thclass:'center',class:'center',readParms:'link=1',filter:true,batch:true,noedit:true},media_datestamp:array{title:'Date stamp',type:'datestamp',data:'int',width:'10%',noedit:true},media_size:array{title:'Size',type:'number',data:'int',width:'auto',readonly:2},media_dimensions:array{title:'Dimensions',type:'text',data:'str',width:'5%',readonly:true,class:'nowrap',noedit:true},media_userclass:array{title:'Userclass',type:'userclass',data:'str',inline:true,width:'10%',thclass:'center',filter:true,batch:true},media_tags:array{title:'Tags/Keywords',type:'tags',inline:true,data:'str',width:'10%',filter:true,batch:true},media_usedby:array{title:'Used by',type:'hidden',data:'text',width:'auto',thclass:'center',class:'center',nolist:true,readonly:true},options:array{title:'Options',type:'method',data:null,forced:true,width:'10%',thclass:'center last',class:'center',batch:true,noedit:true}}
            Open

                    $this->fields['media_url']['nolist'] = true;
            Severity: Minor
            Found in e107_admin/image.php by phan

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

                    if(getperms('A|A1'))
            Severity: Minor
            Found in e107_admin/image.php by phan

            Assigning array<string></string> to property but \media_admin_ui->fields is array<string>&gt;|array{checkboxes:array{title:'',type:null,data:null,width:'5%',forced:true,thclass:'center',class:'center'},media_id:array{title:'ID',type:'number',data:'int',width:'5%',forced:true,nolist:true},media_preview:array{title:'Preview',type:'method',data:false,forced:true,width:'110px',thclass:'center',class:'center'},media_url:array{title:'Path',type:'text',data:'str',inline:false,thclass:'left',class:'left',width:'auto',writeParms:'size=xxlarge'},media_category:array{title:'Category',type:'comma',inline:false,data:'str',width:'10%',filter:true,batch:true,class:'left'},media_name:array{title:'Title',type:'text',data:'str',inline:true,width:'auto',writeParms:array{size:'xxlarge'}},media_caption:array{title:'Caption',type:'text',data:'str',inline:true,width:'auto',writeParms:array{size:'xxlarge'}},media_sef:array{title:'URL',readonly:1,type:'method',data:false},media_description:array{title:'Description',type:'textarea',data:'str',width:'auto',thclass:'left first',readParms:'truncate=100',writeParms:'size=xxlarge&amp;counter=0'},media_type:array{title:'Mime Type',type:'dropdown',data:'str',filter:true,width:'auto',noedit:true},media_author:array{title:'User',type:'user',data:'int',width:'auto',thclass:'center',class:'center',readParms:'link=1',filter:true,batch:true,noedit:true},media_datestamp:array{title:'Date stamp',type:'datestamp',data:'int',width:'10%',noedit:true},media_size:array{title:'Size',type:'number',data:'int',width:'auto',readonly:2},media_dimensions:array{title:'Dimensions',type:'text',data:'str',width:'5%',readonly:true,class:'nowrap',noedit:true},media_userclass:array{title:'Userclass',type:'userclass',data:'str',inline:true,width:'10%',thclass:'center',filter:true,batch:true},media_tags:array{title:'Tags/Keywords',type:'tags',inline:true,data:'str',width:'10%',filter:true,batch:true},media_usedby:array{title:'Used by',type:'hidden',data:'text',width:'auto',thclass:'center',class:'center',nolist:true,readonly:true},options:array{title:'Options',type:'method',data:null,forced:true,width:'10%',thclass:'center last',class:'center',batch:true,noedit:true}}</string>
            Open

                    $this->fields['media_url']['noedit']         = TRUE;
            Severity: Minor
            Found in e107_admin/image.php by phan

            Call to undeclared method \e_object::loadBatch
            Open

                    $this->getTreeModel()->setParam('db_query', $this->_modifyListQry(false, false, false, false, $this->listQry))->loadBatch();
            Severity: Critical
            Found in e107_admin/image.php by phan

            Argument 1 (var) is null but \count() takes \Countable|array
            Open

                    if(!count($this->fields['media_cat_owner']['writeParms'])) 
            Severity: Minor
            Found in e107_admin/image.php by phan

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

                    $data = $sql->retrieve('core_media', 'media_id,media_url', $insert."(media_type = 'image/png' OR media_type = 'image/gif') ", true, true);
            Severity: Minor
            Found in e107_admin/image.php by phan

            Call to deprecated function \e_media::mediaSelect() defined at /code/e107_handlers/media_class.php:712
            Open

                    echo e107::getMedia()->mediaSelect($this->getQuery('for'),$this->getQuery('tagid'),$bbcodeMode); // eg. news, news-thumbnail    
            Severity: Minor
            Found in e107_admin/image.php by phan

            Call to undeclared method \e_object::loadBatch
            Open

                    $this->getTreeModel()->setParam('db_query', $this->_modifyListQry(false, false, 0, false, $this->listQry))->loadBatch();
            Severity: Critical
            Found in e107_admin/image.php by phan

            Assigning array<string></string> to property but \media_admin_ui->fields is array{checkboxes:array{title:'',type:null,data:null,width:'5%',forced:true,thclass:'center',class:'center'},media_id:array{title:'ID',type:'number',data:'int',width:'5%',forced:true,nolist:true},media_preview:array{title:'Preview',type:'method',data:false,forced:true,width:'110px',thclass:'center',class:'center'},media_url:array{title:'Path',type:'text',data:'str',inline:false,thclass:'left',class:'left',width:'auto',writeParms:'size=xxlarge'},media_category:array{title:'Category',type:'comma',inline:false,data:'str',width:'10%',filter:true,batch:true,class:'left'},media_name:array{title:'Title',type:'text',data:'str',inline:true,width:'auto',writeParms:array{size:'xxlarge'}},media_caption:array{title:'Caption',type:'text',data:'str',inline:true,width:'auto',writeParms:array{size:'xxlarge'}},media_sef:array{title:'URL',readonly:1,type:'method',data:false},media_description:array{title:'Description',type:'textarea',data:'str',width:'auto',thclass:'left first',readParms:'truncate=100',writeParms:'size=xxlarge&counter=0'},media_type:array{title:'Mime Type',type:'dropdown',data:'str',filter:true,width:'auto',noedit:true},media_author:array{title:'User',type:'user',data:'int',width:'auto',thclass:'center',class:'center',readParms:'link=1',filter:true,batch:true,noedit:true},media_datestamp:array{title:'Date stamp',type:'datestamp',data:'int',width:'10%',noedit:true},media_size:array{title:'Size',type:'number',data:'int',width:'auto',readonly:2},media_dimensions:array{title:'Dimensions',type:'text',data:'str',width:'5%',readonly:true,class:'nowrap',noedit:true},media_userclass:array{title:'Userclass',type:'userclass',data:'str',inline:true,width:'10%',thclass:'center',filter:true,batch:true},media_tags:array{title:'Tags/Keywords',type:'tags',inline:true,data:'str',width:'10%',filter:true,batch:true},media_usedby:array{title:'Used by',type:'hidden',data:'text',width:'auto',thclass:'center',class:'center',nolist:true,readonly:true},options:array{title:'Options',type:'method',data:null,forced:true,width:'10%',thclass:'center last',class:'center',batch:true,noedit:true}}
            Open

                    $this->fields['options']['type'] = 'method';
            Severity: Minor
            Found in e107_admin/image.php by phan

            Assigning array<string></string> to property but \media_admin_ui->fields is array<string>&gt;|array{checkboxes:array{title:'',type:null,data:null,width:'5%',forced:true,thclass:'center',class:'center'},media_id:array{title:'ID',type:'number',data:'int',width:'5%',forced:true,nolist:true},media_preview:array{title:'Preview',type:'method',data:false,forced:true,width:'110px',thclass:'center',class:'center'},media_url:array{title:'Path',type:'text',data:'str',inline:false,thclass:'left',class:'left',width:'auto',writeParms:'size=xxlarge'},media_category:array{title:'Category',type:'comma',inline:false,data:'str',width:'10%',filter:true,batch:true,class:'left'},media_name:array{title:'Title',type:'text',data:'str',inline:true,width:'auto',writeParms:array{size:'xxlarge'}},media_caption:array{title:'Caption',type:'text',data:'str',inline:true,width:'auto',writeParms:array{size:'xxlarge'}},media_sef:array{title:'URL',readonly:1,type:'method',data:false},media_description:array{title:'Description',type:'textarea',data:'str',width:'auto',thclass:'left first',readParms:'truncate=100',writeParms:'size=xxlarge&amp;counter=0'},media_type:array{title:'Mime Type',type:'dropdown',data:'str',filter:true,width:'auto',noedit:true},media_author:array{title:'User',type:'user',data:'int',width:'auto',thclass:'center',class:'center',readParms:'link=1',filter:true,batch:true,noedit:true},media_datestamp:array{title:'Date stamp',type:'datestamp',data:'int',width:'10%',noedit:true},media_size:array{title:'Size',type:'number',data:'int',width:'auto',readonly:2},media_dimensions:array{title:'Dimensions',type:'text',data:'str',width:'5%',readonly:true,class:'nowrap',noedit:true},media_userclass:array{title:'Userclass',type:'userclass',data:'str',inline:true,width:'10%',thclass:'center',filter:true,batch:true},media_tags:array{title:'Tags/Keywords',type:'tags',inline:true,data:'str',width:'10%',filter:true,batch:true},media_usedby:array{title:'Used by',type:'hidden',data:'text',width:'auto',thclass:'center',class:'center',nolist:true,readonly:true},options:array{title:'Options',type:'method',data:null,forced:true,width:'10%',thclass:'center last',class:'center',batch:true,noedit:true}}</string>
            Open

                    $this->fields['media_dimensions']['nolist'] = true;
            Severity: Minor
            Found in e107_admin/image.php by phan

            Argument #1 of this call to \str_replace is typically a literal or constant but isn't, but argument #3 (which is typically a variable) is a literal or constant. The arguments may be in the wrong order.
            Open

                                $text = str_replace($srch,$repl,IMALAN_108);
            Severity: Minor
            Found in e107_admin/image.php by phan

            Assigning array<string>|array{0:'None'}}&gt;</string> to property but \media_admin_ui->prefs is array{image_post:array{title:'Enable image display',tab:0,type:'boolean',data:'int',writeParms:'help=IMALAN_2'},image_post_class:array{title:'Image display class',type:'userclass',data:'int',writeParms:'help=IMALAN_11&classlist=public,guest,nobody,member,admin,main,classes'},image_post_disabled_method:array{title:'Disabled image method',type:'boolean',writeParms:'enabled=IMALAN_15&disabled=IMALAN_14'},resize_method:array{title:'Resize method',type:'method',data:'str'},thumbnail_quality:array{title:'Thumbnail Quality',type:'number',data:'int',writeParms:'',help:'Set this as low as possible before quality loss is apparent. Max. 100'},convert_to_jpeg:array{title:'Convert to jpeg during import',type:'boolean',data:'int',writeParms:'',help:'PNG and GIF files will be automatically converted to jpeg format. \x28icons excluded\x29'},convert_to_webp:array{title:'Convert to webp during import',type:'boolean',data:'int',writeParms:'',help:'JPEG, PNG and GIF files will be automatically converted to webp format. \x28icons excluded\x29'},thumb_to_webp:array{title:'Convert to webp during render',type:'boolean',data:'int',writeParms:'',help:'JPEG, PNG and GIF files will be automatically converted to webp format. \x28icons excluded\x29'},im_width:array{title:'Avatar Width',type:'number',data:'int',writeParms:'',help:'Avatar images will be constrained to these dimensions \x28in pixels\x29'},im_height:array{title:'Avatar Height',type:'number',data:'int',writeParms:'',help:'Avatar images will be constrained to these dimensions \x28in pixels\x29'},resize_dimensions:array{title:'Default Image Sizes',type:'method',data:'str'},watermark_activate:array{title:'Watermark Activation',tab:1,type:'number',data:'str',help:'All images with a width or height greater than this value will be given a watermark during resizing.'},watermark_text:array{title:'Watermark Text',tab:1,type:'text',data:'str',help:'Optional Watermark Text'},watermark_font:array{title:'Watermark Font',tab:1,type:'dropdown',data:'str',help:'Optional Watermark Font. Upload more .ttf fonts to the /fonts folder in your theme directory.'},watermark_size:array{title:'Watermark Size',tab:1,type:'number',data:'int',help:'Size of the font in pts'},watermark_pos:array{title:'Watermark Position',tab:1,type:'dropdown',data:'str',help:'Watermark Position'},watermark_margin:array{title:'Watermark Margin',tab:1,type:'number',data:'int',help:'The distance that watermark will appear from the edge of the image.'},watermark_color:array{title:'Watermark Color',tab:1,type:'text',data:'str',help:'Color of the watermark eg. 000000'},watermark_shadowcolor:array{title:'Watermark Shadow-Color',tab:1,type:'text',data:'str',help:'Shadow Color of the watermark eg. ffffff'},watermark_opacity:array{title:'Watermark Opacity',tab:1,type:'number',data:'int',help:'Enter a number between 1 and 100'},youtube_apikey:array{title:'YouTube Public API key',tab:2,type:'text',data:'str',help:'Used by the Media-Manager Youtube browser. Enter account name. eg. e107inc',writeParms:array{size:'xxlarge',post:''}},youtube_default_account:array{title:'Default YouTube account',tab:2,type:'text',data:'str',help:'Used by the Media-Manager Youtube browser. Enter account name. eg. e107inc',writeParms:array{size:'xxlarge',post:''}},youtube_rel:array{title:'Show Related Videos',tab:2,type:'boolean',data:'int',help:''},youtube_showinfo:array{title:'Show Video Info',tab:2,type:'boolean',data:'int',help:''},youtube_cc_load_policy:array{title:'Show Closed-Captions by default',tab:2,type:'boolean',data:'int',help:''},youtube_modestbranding:array{title:'Use Modest Branding',tab:2,type:'boolean',data:'int',help:''},youtube_bbcode_responsive:array{title:'Make the YouTube bbcode responsive',tab:2,type:'boolean',data:'int',help:''}}
            Open

                    $this->prefs['watermark_font']['readParms']         = $fonts;    
            Severity: Minor
            Found in e107_admin/image.php by phan

            Call to deprecated function \media_admin_ui::mediaSelectUpload() defined at /code/e107_admin/image.php:1572
            Open

                        echo $this->mediaSelectUpload('video');
            Severity: Minor
            Found in e107_admin/image.php by phan

            Call to deprecated function \e_form::selectbox() defined at /code/e107_handlers/form_handler.php:3304
            Open

                                    <td>' .$frm->selectbox('float', array('default' =>LAN_DEFAULT, 'left' =>IMALAN_139, 'right' =>IMALAN_138)). '</td>
            Severity: Minor
            Found in e107_admin/image.php by phan

            Variable $ns is undeclared
            Open

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

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

                if(!getperms('A') && !getperms('A1'))
            Severity: Minor
            Found in e107_admin/image.php by phan

            Assigning array<string></string> to property but \media_cat_ui->fields is array{media_cat_id:array{title:'ID',type:'number',width:'5%',nolist:true,forced:true,readonly:true},media_cat_image:array{title:'Image',type:'image',data:'str',width:'100px',thclass:'center',class:'center',readParms:'thumb=60&thumb_urlraw=0&thumb_aw=60',readonly:false,batch:false,filter:false},media_cat_owner:array{title:'Owner',type:'dropdown',width:'auto',thclass:'left',readonly:false},media_cat_type:array{title:'Type',type:'radio',data:false,width:'auto',thclass:'left',validate:true,nolist:true},media_cat_category:array{title:'Category',type:'text',data:'str',width:'auto',thclass:'left',readonly:true},media_cat_title:array{title:'Title',type:'text',width:'auto',thclass:'left',readonly:false,validate:true,writeParms:array{size:'xxlarge'}},media_cat_sef:array{title:'SEF URL',type:'text',width:'auto',thclass:'left',readonly:false,writeParms:array{size:'xxlarge',sef:'media_cat_title'}},media_cat_diz:array{title:'Description',type:'bbarea',width:'30%',readParms:'expand=...&truncate=150&bb=1',readonly:false},media_cat_class:array{title:'Visibility',type:'userclass',width:'auto',data:'int'},media_cat_order:array{title:'Order',type:'text',width:'5%',thclass:'right',class:'right'},options:array{title:'Options',type:'method',noedit:true,width:'10%',forced:true,thclass:'center last',class:'center'}}
            Open

                        $this->fields['media_cat_type']['noedit'] = true;
            Severity: Minor
            Found in e107_admin/image.php by phan

            Argument 2 (mode) is 'rel' but \e_parse::createConstants() takes int defined at /code/e107_handlers/e_parse_class.php:3255
            Open

                        $id = $tp->createConstants($f['path'].$f['fname'],'rel');
            Severity: Minor
            Found in e107_admin/image.php by phan

            Assigning array<string></string> to property but \media_admin_ui->fields is array{checkboxes:array{title:'',type:null,data:null,width:'5%',forced:true,thclass:'center',class:'center'},media_id:array{title:'ID',type:'number',data:'int',width:'5%',forced:true,nolist:true},media_preview:array{title:'Preview',type:'method',data:false,forced:true,width:'110px',thclass:'center',class:'center'},media_url:array{title:'Path',type:'text',data:'str',inline:false,thclass:'left',class:'left',width:'auto',writeParms:'size=xxlarge'},media_category:array{title:'Category',type:'comma',inline:false,data:'str',width:'10%',filter:true,batch:true,class:'left'},media_name:array{title:'Title',type:'text',data:'str',inline:true,width:'auto',writeParms:array{size:'xxlarge'}},media_caption:array{title:'Caption',type:'text',data:'str',inline:true,width:'auto',writeParms:array{size:'xxlarge'}},media_sef:array{title:'URL',readonly:1,type:'method',data:false},media_description:array{title:'Description',type:'textarea',data:'str',width:'auto',thclass:'left first',readParms:'truncate=100',writeParms:'size=xxlarge&counter=0'},media_type:array{title:'Mime Type',type:'dropdown',data:'str',filter:true,width:'auto',noedit:true},media_author:array{title:'User',type:'user',data:'int',width:'auto',thclass:'center',class:'center',readParms:'link=1',filter:true,batch:true,noedit:true},media_datestamp:array{title:'Date stamp',type:'datestamp',data:'int',width:'10%',noedit:true},media_size:array{title:'Size',type:'number',data:'int',width:'auto',readonly:2},media_dimensions:array{title:'Dimensions',type:'text',data:'str',width:'5%',readonly:true,class:'nowrap',noedit:true},media_userclass:array{title:'Userclass',type:'userclass',data:'str',inline:true,width:'10%',thclass:'center',filter:true,batch:true},media_tags:array{title:'Tags/Keywords',type:'tags',inline:true,data:'str',width:'10%',filter:true,batch:true},media_usedby:array{title:'Used by',type:'hidden',data:'text',width:'auto',thclass:'center',class:'center',nolist:true,readonly:true},options:array{title:'Options',type:'method',data:null,forced:true,width:'10%',thclass:'center last',class:'center',batch:true,noedit:true}}
            Open

                    $this->fields['media_sef']['nolist'] = true;
            Severity: Minor
            Found in e107_admin/image.php by phan

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

                    if(getperms('A|A1'))
            Severity: Minor
            Found in e107_admin/image.php by phan

            Argument 2 (options) is 'w=800' but \e_parse::thumbUrl() takes array defined at /code/e107_handlers/e_parse_class.php:2531
            Open

                        $large = e107::getParser()->thumbUrl($f['path'].$f['fname'], 'w=800', true);
            Severity: Minor
            Found in e107_admin/image.php by phan

            Assigning array<string></string> to property but \media_admin_ui->fields is array<string>&gt;|array{checkboxes:array{title:'',type:null,data:null,width:'5%',forced:true,thclass:'center',class:'center'},media_id:array{title:'ID',type:'number',data:'int',width:'5%',forced:true,nolist:true},media_preview:array{title:'Preview',type:'method',data:false,forced:true,width:'110px',thclass:'center',class:'center'},media_url:array{title:'Path',type:'text',data:'str',inline:false,thclass:'left',class:'left',width:'auto',writeParms:'size=xxlarge'},media_category:array{title:'Category',type:'comma',inline:false,data:'str',width:'10%',filter:true,batch:true,class:'left'},media_name:array{title:'Title',type:'text',data:'str',inline:true,width:'auto',writeParms:array{size:'xxlarge'}},media_caption:array{title:'Caption',type:'text',data:'str',inline:true,width:'auto',writeParms:array{size:'xxlarge'}},media_sef:array{title:'URL',readonly:1,type:'method',data:false},media_description:array{title:'Description',type:'textarea',data:'str',width:'auto',thclass:'left first',readParms:'truncate=100',writeParms:'size=xxlarge&amp;counter=0'},media_type:array{title:'Mime Type',type:'dropdown',data:'str',filter:true,width:'auto',noedit:true},media_author:array{title:'User',type:'user',data:'int',width:'auto',thclass:'center',class:'center',readParms:'link=1',filter:true,batch:true,noedit:true},media_datestamp:array{title:'Date stamp',type:'datestamp',data:'int',width:'10%',noedit:true},media_size:array{title:'Size',type:'number',data:'int',width:'auto',readonly:2},media_dimensions:array{title:'Dimensions',type:'text',data:'str',width:'5%',readonly:true,class:'nowrap',noedit:true},media_userclass:array{title:'Userclass',type:'userclass',data:'str',inline:true,width:'10%',thclass:'center',filter:true,batch:true},media_tags:array{title:'Tags/Keywords',type:'tags',inline:true,data:'str',width:'10%',filter:true,batch:true},media_usedby:array{title:'Used by',type:'hidden',data:'text',width:'auto',thclass:'center',class:'center',nolist:true,readonly:true},options:array{title:'Options',type:'method',data:null,forced:true,width:'10%',thclass:'center last',class:'center',batch:true,noedit:true}}</string>
            Open

                    $this->fields['media_type']['nolist'] = true;
            Severity: Minor
            Found in e107_admin/image.php by phan

            Argument 2 (options) is 'aw=200&ah=200' but \e_parse::thumbUrl() takes array defined at /code/e107_handlers/e_parse_class.php:2531
            Open

                                $img_path = $tp->thumbUrl(e_MEDIA_ABS. 'avatars/' .$image_name,$attr);
            Severity: Minor
            Found in e107_admin/image.php by phan

            Variable $pref is undeclared
            Open

                $allowedHeight = (int) $pref['im_width'];
            Severity: Minor
            Found in e107_admin/image.php by phan

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

            if (!getperms('A') && ($_GET['action'] !== 'dialog') && ($_GET['action'] !== 'youtube'))
            Severity: Minor
            Found in e107_admin/image.php by phan

            Argument 2 (tagid) is array|bool|false|string but \e_media::mediaSelect() takes null defined at /code/e107_handlers/media_class.php:712
            Open

                    echo e107::getMedia()->mediaSelect($for,$tag,$bbcodeMode);
            Severity: Minor
            Found in e107_admin/image.php by phan

            Argument 3 (dep) is 'jquery' but \e107::css() takes null defined at /code/e107_handlers/e107_class.php:2692
            Open

            e107::css('core', 'plupload/jquery.plupload.queue/css/jquery.plupload.queue.css', 'jquery');
            Severity: Minor
            Found in e107_admin/image.php by phan

            Call to undeclared method \e_admin_form_ui::convertImagesToJpeg
            Open

                            $frm->convertImagesToJpeg($ids);
            Severity: Critical
            Found in e107_admin/image.php by phan

            Assigning array<string></string> to property but \media_cat_ui->fields is array{media_cat_id:array{title:'ID',type:'number',width:'5%',nolist:true,forced:true,readonly:true},media_cat_image:array{title:'Image',type:'image',data:'str',width:'100px',thclass:'center',class:'center',readParms:'thumb=60&thumb_urlraw=0&thumb_aw=60',readonly:false,batch:false,filter:false},media_cat_owner:array{title:'Owner',type:'dropdown',width:'auto',thclass:'left',readonly:false},media_cat_type:array{title:'Type',type:'radio',data:false,width:'auto',thclass:'left',validate:true,nolist:true},media_cat_category:array{title:'Category',type:'text',data:'str',width:'auto',thclass:'left',readonly:true},media_cat_title:array{title:'Title',type:'text',width:'auto',thclass:'left',readonly:false,validate:true,writeParms:array{size:'xxlarge'}},media_cat_sef:array{title:'SEF URL',type:'text',width:'auto',thclass:'left',readonly:false,writeParms:array{size:'xxlarge',sef:'media_cat_title'}},media_cat_diz:array{title:'Description',type:'bbarea',width:'30%',readParms:'expand=...&truncate=150&bb=1',readonly:false},media_cat_class:array{title:'Visibility',type:'userclass',width:'auto',data:'int'},media_cat_order:array{title:'Order',type:'text',width:'5%',thclass:'right',class:'right'},options:array{title:'Options',type:'method',noedit:true,width:'10%',forced:true,thclass:'center last',class:'center'}}
            Open

                        $this->fields['media_cat_category']['noedit'] = true;
            Severity: Minor
            Found in e107_admin/image.php by phan

            Argument 3 (att) is string but \e_media::mediaSelect() takes null defined at /code/e107_handlers/media_class.php:712
            Open

                    echo e107::getMedia()->mediaSelect($this->getQuery('for'),$this->getQuery('tagid'),$bbcodeMode); // eg. news, news-thumbnail    
            Severity: Minor
            Found in e107_admin/image.php by phan

            Variable $glyphActive is undeclared
            Open

                        $text .= "<div class='tab-pane clearfix {$glyphActive}' id='core-media-glyphs'>";
            Severity: Minor
            Found in e107_admin/image.php by phan

            Argument 3 (attributes) is null but \media_cat_form_ui::renderValue() takes array defined at /code/e107_handlers/form_handler.php:5354
            Open

                        return $this->renderValue('options',$value,null,$id);
            Severity: Minor
            Found in e107_admin/image.php by phan

            Argument 3 (att) is array<string>|array<string>|array{w:int}</string></string> but \e_media::mediaSelect() takes null defined at /code/e107_handlers/media_class.php:712
            Open

                        $text = e107::getMedia()->mediaSelect($this->getQuery('for'),$this->getQuery('tagid'), $options); // eg. news, news-thumbnail
            Severity: Minor
            Found in e107_admin/image.php by phan

            Call to deprecated function \media_admin_ui::mediaSelectUpload() defined at /code/e107_admin/image.php:1572
            Open

                        echo $this->mediaSelectUpload('file');
            Severity: Minor
            Found in e107_admin/image.php by phan

            Argument 3 (att) is array|array{w:int} but \e_media::mediaSelect() takes null defined at /code/e107_handlers/media_class.php:712
            Open

                        $text = e107::getMedia()->mediaSelect($this->getQuery('for'),$this->getQuery('tagid'), $options); // eg. news, news-thumbnail
            Severity: Minor
            Found in e107_admin/image.php by phan

            Assigning array<string></string> to property but \media_admin_ui->fields is array{checkboxes:array{title:'',type:null,data:null,width:'5%',forced:true,thclass:'center',class:'center'},media_id:array{title:'ID',type:'number',data:'int',width:'5%',forced:true,nolist:true},media_preview:array{title:'Preview',type:'method',data:false,forced:true,width:'110px',thclass:'center',class:'center'},media_url:array{title:'Path',type:'text',data:'str',inline:false,thclass:'left',class:'left',width:'auto',writeParms:'size=xxlarge'},media_category:array{title:'Category',type:'comma',inline:false,data:'str',width:'10%',filter:true,batch:true,class:'left'},media_name:array{title:'Title',type:'text',data:'str',inline:true,width:'auto',writeParms:array{size:'xxlarge'}},media_caption:array{title:'Caption',type:'text',data:'str',inline:true,width:'auto',writeParms:array{size:'xxlarge'}},media_sef:array{title:'URL',readonly:1,type:'method',data:false},media_description:array{title:'Description',type:'textarea',data:'str',width:'auto',thclass:'left first',readParms:'truncate=100',writeParms:'size=xxlarge&counter=0'},media_type:array{title:'Mime Type',type:'dropdown',data:'str',filter:true,width:'auto',noedit:true},media_author:array{title:'User',type:'user',data:'int',width:'auto',thclass:'center',class:'center',readParms:'link=1',filter:true,batch:true,noedit:true},media_datestamp:array{title:'Date stamp',type:'datestamp',data:'int',width:'10%',noedit:true},media_size:array{title:'Size',type:'number',data:'int',width:'auto',readonly:2},media_dimensions:array{title:'Dimensions',type:'text',data:'str',width:'5%',readonly:true,class:'nowrap',noedit:true},media_userclass:array{title:'Userclass',type:'userclass',data:'str',inline:true,width:'10%',thclass:'center',filter:true,batch:true},media_tags:array{title:'Tags/Keywords',type:'tags',inline:true,data:'str',width:'10%',filter:true,batch:true},media_usedby:array{title:'Used by',type:'hidden',data:'text',width:'auto',thclass:'center',class:'center',nolist:true,readonly:true},options:array{title:'Options',type:'method',data:null,forced:true,width:'10%',thclass:'center last',class:'center',batch:true,noedit:true}}
            Open

                    $this->fields['media_userclass']['nolist'] = true;
            Severity: Minor
            Found in e107_admin/image.php by phan

            Call to deprecated function \e_form::selectbox() defined at /code/e107_handlers/form_handler.php:3304
            Open

                                    ".IMALAN_123. ' ' .$frm->selectbox('batch_category',$this->cats, $tp->filter($_POST['batch_category']));
            Severity: Minor
            Found in e107_admin/image.php by phan

            Argument 2 (value) is 1 but \e_form::admin_button() takes string defined at /code/e107_handlers/form_handler.php:4016
            Open

                            <td style='text-align:left'>".$frm->admin_button('upload_remote_url',1,'create',IMALAN_149). '</td>
            Severity: Minor
            Found in e107_admin/image.php by phan

            Call to deprecated function \e107::getDateConvert() defined at /code/e107_handlers/e107_class.php:1948
            Open

                            <td>' .e107::getDateConvert()->convert_date($f['modified'])."</td>
            Severity: Minor
            Found in e107_admin/image.php by phan

            Variable $tp is undeclared
            Open

                        $image_todb = $tp->toDB($image_name);
            Severity: Minor
            Found in e107_admin/image.php by phan

            Variable $frm is undeclared
            Open

                            ' .$frm->admin_button('uncheck_all', LAN_UNCHECKALL, 'action'). '
            Severity: Minor
            Found in e107_admin/image.php by phan

            Assigning array<string></string> to property but \media_cat_ui->fields is array{media_cat_id:array{title:'ID',type:'number',width:'5%',nolist:true,forced:true,readonly:true},media_cat_image:array{title:'Image',type:'image',data:'str',width:'100px',thclass:'center',class:'center',readParms:'thumb=60&thumb_urlraw=0&thumb_aw=60',readonly:false,batch:false,filter:false},media_cat_owner:array{title:'Owner',type:'dropdown',width:'auto',thclass:'left',readonly:false},media_cat_type:array{title:'Type',type:'radio',data:false,width:'auto',thclass:'left',validate:true,nolist:true},media_cat_category:array{title:'Category',type:'text',data:'str',width:'auto',thclass:'left',readonly:true},media_cat_title:array{title:'Title',type:'text',width:'auto',thclass:'left',readonly:false,validate:true,writeParms:array{size:'xxlarge'}},media_cat_sef:array{title:'SEF URL',type:'text',width:'auto',thclass:'left',readonly:false,writeParms:array{size:'xxlarge',sef:'media_cat_title'}},media_cat_diz:array{title:'Description',type:'bbarea',width:'30%',readParms:'expand=...&truncate=150&bb=1',readonly:false},media_cat_class:array{title:'Visibility',type:'userclass',width:'auto',data:'int'},media_cat_order:array{title:'Order',type:'text',width:'5%',thclass:'right',class:'right'},options:array{title:'Options',type:'method',noedit:true,width:'10%',forced:true,thclass:'center last',class:'center'}}
            Open

                    $this->fields['media_cat_type']['writeParms'] = array('image' => IMALAN_143, 'file' => IMALAN_144, 'video' => IMALAN_163);
            Severity: Minor
            Found in e107_admin/image.php by phan

            Call to deprecated function \e_form::selectbox() defined at /code/e107_handlers/form_handler.php:3304
            Open

                    return $frm->selectbox('resize_method',$options,$curval)."<div class='field-help'>".IMALAN_4. '</div>';
            Severity: Minor
            Found in e107_admin/image.php by phan

            Assigning array<string target="\'_blank\'" href="%5C'https://console.cloud.google.com/marketplace/product/google/youtube.googleapis.com%5C'%5Cx3eMore..%5Cx3c/a%5Cx3e'%7D%7D"></string> to property but \media_admin_ui->prefs is array{image_post:array{title:'Enable image display',tab:0,type:'boolean',data:'int',writeParms:'help=IMALAN_2'},image_post_class:array{title:'Image display class',type:'userclass',data:'int',writeParms:'help=IMALAN_11&classlist=public,guest,nobody,member,admin,main,classes'},image_post_disabled_method:array{title:'Disabled image method',type:'boolean',writeParms:'enabled=IMALAN_15&disabled=IMALAN_14'},resize_method:array{title:'Resize method',type:'method',data:'str'},thumbnail_quality:array{title:'Thumbnail Quality',type:'number',data:'int',writeParms:'',help:'Set this as low as possible before quality loss is apparent. Max. 100'},convert_to_jpeg:array{title:'Convert to jpeg during import',type:'boolean',data:'int',writeParms:'',help:'PNG and GIF files will be automatically converted to jpeg format. \x28icons excluded\x29'},convert_to_webp:array{title:'Convert to webp during import',type:'boolean',data:'int',writeParms:'',help:'JPEG, PNG and GIF files will be automatically converted to webp format. \x28icons excluded\x29'},thumb_to_webp:array{title:'Convert to webp during render',type:'boolean',data:'int',writeParms:'',help:'JPEG, PNG and GIF files will be automatically converted to webp format. \x28icons excluded\x29'},im_width:array{title:'Avatar Width',type:'number',data:'int',writeParms:'',help:'Avatar images will be constrained to these dimensions \x28in pixels\x29'},im_height:array{title:'Avatar Height',type:'number',data:'int',writeParms:'',help:'Avatar images will be constrained to these dimensions \x28in pixels\x29'},resize_dimensions:array{title:'Default Image Sizes',type:'method',data:'str'},watermark_activate:array{title:'Watermark Activation',tab:1,type:'number',data:'str',help:'All images with a width or height greater than this value will be given a watermark during resizing.'},watermark_text:array{title:'Watermark Text',tab:1,type:'text',data:'str',help:'Optional Watermark Text'},watermark_font:array{title:'Watermark Font',tab:1,type:'dropdown',data:'str',help:'Optional Watermark Font. Upload more .ttf fonts to the /fonts folder in your theme directory.'},watermark_size:array{title:'Watermark Size',tab:1,type:'number',data:'int',help:'Size of the font in pts'},watermark_pos:array{title:'Watermark Position',tab:1,type:'dropdown',data:'str',help:'Watermark Position'},watermark_margin:array{title:'Watermark Margin',tab:1,type:'number',data:'int',help:'The distance that watermark will appear from the edge of the image.'},watermark_color:array{title:'Watermark Color',tab:1,type:'text',data:'str',help:'Color of the watermark eg. 000000'},watermark_shadowcolor:array{title:'Watermark Shadow-Color',tab:1,type:'text',data:'str',help:'Shadow Color of the watermark eg. ffffff'},watermark_opacity:array{title:'Watermark Opacity',tab:1,type:'number',data:'int',help:'Enter a number between 1 and 100'},youtube_apikey:array{title:'YouTube Public API key',tab:2,type:'text',data:'str',help:'Used by the Media-Manager Youtube browser. Enter account name. eg. e107inc',writeParms:array{size:'xxlarge',post:''}},youtube_default_account:array{title:'Default YouTube account',tab:2,type:'text',data:'str',help:'Used by the Media-Manager Youtube browser. Enter account name. eg. e107inc',writeParms:array{size:'xxlarge',post:''}},youtube_rel:array{title:'Show Related Videos',tab:2,type:'boolean',data:'int',help:''},youtube_showinfo:array{title:'Show Video Info',tab:2,type:'boolean',data:'int',help:''},youtube_cc_load_policy:array{title:'Show Closed-Captions by default',tab:2,type:'boolean',data:'int',help:''},youtube_modestbranding:array{title:'Use Modest Branding',tab:2,type:'boolean',data:'int',help:''},youtube_bbcode_responsive:array{title:'Make the YouTube bbcode responsive',tab:2,type:'boolean',data:'int',help:''}}
            Open

                    $this->prefs['youtube_apikey']['writeParms']['post'] = " <a target='_blank' href='https://console.cloud.google.com/marketplace/product/google/youtube.googleapis.com'>".LAN_MORE. '</a>';
            Severity: Minor
            Found in e107_admin/image.php by phan

            Assigning array<string>|array{0:'None'}}&gt;</string> to property but \media_admin_ui->prefs is array{image_post:array{title:'Enable image display',tab:0,type:'boolean',data:'int',writeParms:'help=IMALAN_2'},image_post_class:array{title:'Image display class',type:'userclass',data:'int',writeParms:'help=IMALAN_11&classlist=public,guest,nobody,member,admin,main,classes'},image_post_disabled_method:array{title:'Disabled image method',type:'boolean',writeParms:'enabled=IMALAN_15&disabled=IMALAN_14'},resize_method:array{title:'Resize method',type:'method',data:'str'},thumbnail_quality:array{title:'Thumbnail Quality',type:'number',data:'int',writeParms:'',help:'Set this as low as possible before quality loss is apparent. Max. 100'},convert_to_jpeg:array{title:'Convert to jpeg during import',type:'boolean',data:'int',writeParms:'',help:'PNG and GIF files will be automatically converted to jpeg format. \x28icons excluded\x29'},convert_to_webp:array{title:'Convert to webp during import',type:'boolean',data:'int',writeParms:'',help:'JPEG, PNG and GIF files will be automatically converted to webp format. \x28icons excluded\x29'},thumb_to_webp:array{title:'Convert to webp during render',type:'boolean',data:'int',writeParms:'',help:'JPEG, PNG and GIF files will be automatically converted to webp format. \x28icons excluded\x29'},im_width:array{title:'Avatar Width',type:'number',data:'int',writeParms:'',help:'Avatar images will be constrained to these dimensions \x28in pixels\x29'},im_height:array{title:'Avatar Height',type:'number',data:'int',writeParms:'',help:'Avatar images will be constrained to these dimensions \x28in pixels\x29'},resize_dimensions:array{title:'Default Image Sizes',type:'method',data:'str'},watermark_activate:array{title:'Watermark Activation',tab:1,type:'number',data:'str',help:'All images with a width or height greater than this value will be given a watermark during resizing.'},watermark_text:array{title:'Watermark Text',tab:1,type:'text',data:'str',help:'Optional Watermark Text'},watermark_font:array{title:'Watermark Font',tab:1,type:'dropdown',data:'str',help:'Optional Watermark Font. Upload more .ttf fonts to the /fonts folder in your theme directory.'},watermark_size:array{title:'Watermark Size',tab:1,type:'number',data:'int',help:'Size of the font in pts'},watermark_pos:array{title:'Watermark Position',tab:1,type:'dropdown',data:'str',help:'Watermark Position'},watermark_margin:array{title:'Watermark Margin',tab:1,type:'number',data:'int',help:'The distance that watermark will appear from the edge of the image.'},watermark_color:array{title:'Watermark Color',tab:1,type:'text',data:'str',help:'Color of the watermark eg. 000000'},watermark_shadowcolor:array{title:'Watermark Shadow-Color',tab:1,type:'text',data:'str',help:'Shadow Color of the watermark eg. ffffff'},watermark_opacity:array{title:'Watermark Opacity',tab:1,type:'number',data:'int',help:'Enter a number between 1 and 100'},youtube_apikey:array{title:'YouTube Public API key',tab:2,type:'text',data:'str',help:'Used by the Media-Manager Youtube browser. Enter account name. eg. e107inc',writeParms:array{size:'xxlarge',post:''}},youtube_default_account:array{title:'Default YouTube account',tab:2,type:'text',data:'str',help:'Used by the Media-Manager Youtube browser. Enter account name. eg. e107inc',writeParms:array{size:'xxlarge',post:''}},youtube_rel:array{title:'Show Related Videos',tab:2,type:'boolean',data:'int',help:''},youtube_showinfo:array{title:'Show Video Info',tab:2,type:'boolean',data:'int',help:''},youtube_cc_load_policy:array{title:'Show Closed-Captions by default',tab:2,type:'boolean',data:'int',help:''},youtube_modestbranding:array{title:'Use Modest Branding',tab:2,type:'boolean',data:'int',help:''},youtube_bbcode_responsive:array{title:'Make the YouTube bbcode responsive',tab:2,type:'boolean',data:'int',help:''}}
            Open

                    $this->prefs['watermark_font']['writeParms']         = $fonts;    
            Severity: Minor
            Found in e107_admin/image.php by phan

            Assigning array<string></string> to property but \media_admin_ui->fields is array{checkboxes:array{title:'',type:null,data:null,width:'5%',forced:true,thclass:'center',class:'center'},media_id:array{title:'ID',type:'number',data:'int',width:'5%',forced:true,nolist:true},media_preview:array{title:'Preview',type:'method',data:false,forced:true,width:'110px',thclass:'center',class:'center'},media_url:array{title:'Path',type:'text',data:'str',inline:false,thclass:'left',class:'left',width:'auto',writeParms:'size=xxlarge'},media_category:array{title:'Category',type:'comma',inline:false,data:'str',width:'10%',filter:true,batch:true,class:'left'},media_name:array{title:'Title',type:'text',data:'str',inline:true,width:'auto',writeParms:array{size:'xxlarge'}},media_caption:array{title:'Caption',type:'text',data:'str',inline:true,width:'auto',writeParms:array{size:'xxlarge'}},media_sef:array{title:'URL',readonly:1,type:'method',data:false},media_description:array{title:'Description',type:'textarea',data:'str',width:'auto',thclass:'left first',readParms:'truncate=100',writeParms:'size=xxlarge&counter=0'},media_type:array{title:'Mime Type',type:'dropdown',data:'str',filter:true,width:'auto',noedit:true},media_author:array{title:'User',type:'user',data:'int',width:'auto',thclass:'center',class:'center',readParms:'link=1',filter:true,batch:true,noedit:true},media_datestamp:array{title:'Date stamp',type:'datestamp',data:'int',width:'10%',noedit:true},media_size:array{title:'Size',type:'number',data:'int',width:'auto',readonly:2},media_dimensions:array{title:'Dimensions',type:'text',data:'str',width:'5%',readonly:true,class:'nowrap',noedit:true},media_userclass:array{title:'Userclass',type:'userclass',data:'str',inline:true,width:'10%',thclass:'center',filter:true,batch:true},media_tags:array{title:'Tags/Keywords',type:'tags',inline:true,data:'str',width:'10%',filter:true,batch:true},media_usedby:array{title:'Used by',type:'hidden',data:'text',width:'auto',thclass:'center',class:'center',nolist:true,readonly:true},options:array{title:'Options',type:'method',data:null,forced:true,width:'10%',thclass:'center last',class:'center',batch:true,noedit:true}}
            Open

                    $this->fields['media_category']['nolist'] = true;
            Severity: Minor
            Found in e107_admin/image.php by phan

            Invalid offset "from" of array type array{bbcode:false|mixed}
            Open

                        $options['from'] .= (int) $_GET['from'];
            Severity: Minor
            Found in e107_admin/image.php by phan

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

                        $pref['upload_storagetype'] = '1';
            Severity: Info
            Found in e107_admin/image.php by phan

            Call to deprecated function \avatar() defined at /code/e107_handlers/avatar_handler.php:23
            Open

                        $avname=avatar($row['user_image']);
            Severity: Minor
            Found in e107_admin/image.php by phan

            Variable $frm is undeclared
            Open

                            ' .$frm->admin_button('submit_avdelete_multi', LAN_DELCHECKED, 'delete')."
            Severity: Minor
            Found in e107_admin/image.php by phan

            There are no issues that match your filters.

            Category
            Status