e107_admin/admin.php
Avoid deeply nested control flow statements. Open
Open
if (!array_key_exists(strtolower($fext),$this->allowed_types) )
{
if ($file == 'index.html' || $file == "null.txt")
{
if (filesize($dir.'/'.$file))
Variable $potential
was undeclared, but array fields are being added to it. Open
Open
$potential[] = str_replace('../', '', $dir).'/'.$file;
- Exclude checks
Variable $potential
was undeclared, but array fields are being added to it. Open
Open
$potential[] = str_replace('../', '', $dir).'/'.$file;
- Exclude checks
Call to deprecated function \getperms()
defined at /code/class2.php:1322
Open
Open
if(!getperms("1") && $adminPref == 1)
- Exclude checks
Call to deprecated function \getperms()
defined at /code/class2.php:1322
Open
Open
if(getperms('0'))
- Exclude checks
Call to deprecated function \getperms()
defined at /code/class2.php:1322
Open
Open
if(e_AJAX_REQUEST || !getperms('0') || varset($_GET['mode']) === 'customize') // don't display this tuff to regular admins only main admin.
- Exclude checks
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
Open
echo e107::getMessage()->setTitle(ADLAN_190,E_MESSAGE_INFO)->addInfo("<p>".str_replace($srch,$repl,ADLAN_192)."</p>")->render();
- Exclude checks
Found a return statement with a value in the implementation of the magic method \admin_start::__construct,
expected void return type Open
Open
function __construct()
- Exclude checks
Call to undeclared method \e_db::isTable
Open
Open
if(!e107::getDb()->isTable('admin_log')) // Upgrade from v1.x to v2.x required.
- Exclude checks
Argument 1 (title)
is null
but \eMessage::setTitle()
takes string
defined at /code/e107_handlers/message_handler.php:398
Open
Open
e107::getMessage()->setTitle(null,E_MESSAGE_INFO);
- Exclude checks
Argument 2 (extensions)
is 'jpg,gif,png,jpeg'
but \e_file::scandir()
takes null
defined at /code/e107_handlers/file_class.php:1558
Open
Open
$files = e107::getFile()->scandir(e_IMAGE."avatars",'jpg,gif,png,jpeg');
- Exclude checks
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
Open
$message = str_replace($srch,$repl,ADLAN_191);
- Exclude checks
Variable $pref
was undeclared, but array fields are being added to it. Open
Open
$pref['adminstyle'] = 'infopanel';
- Exclude checks
Variable $pref
is undeclared Open
Open
if (varset($pref['adminstyle'])=='cascade' || varset($pref['adminstyle'])=='beginner') // Deprecated Admin-include.
- Exclude checks
Call to deprecated function \getperms()
defined at /code/class2.php:1322
Open
Open
$width = (getperms('0')) ? "33%" : "50%";
- Exclude checks