ImpressCMS/impresscms

View on GitHub
htdocs/modules/system/admin/smilies/main.php

Summary

Maintainability
A
0 mins
Test Coverage

Variable $smile_display is undeclared
Open

            $smile_display_single = empty($smile_display[$i]) ? 0 : 1;

Call to method confirm from undeclared class \icms_core_Message
Open

            icms_core_Message::confirm(array('fct' => 'smilies', 'op' => 'SmilesDelOk', 'id' => $id), 'admin.php', _AM_WAYSYWTDTS);

Call to method fetchMedia from undeclared class \icms_file_MediaUploadHandler
Open

        if ($uploader->fetchMedia($xoops_upload_file[0])) {

Call to method getErrors from undeclared class \icms_file_MediaUploadHandler
Open

                $err = $uploader->getErrors();

Call to method setPrefix from undeclared class \icms_file_MediaUploadHandler
Open

        $uploader->setPrefix('smil');

Variable $icmsModule is undeclared
Open

if (!is_object(icms::$user) || !is_object($icmsModule) || !icms::$user->isAdmin($icmsModule->getVar('mid'))) {

Reference to static property security from undeclared class \icms
Open

            redirect_header('admin.php?fct=smilies', 3, implode('<br />', icms::$security->getErrors()));

Call to method setPrefix from undeclared class \icms_file_MediaUploadHandler
Open

            $uploader->setPrefix('smil');

Call to method error from undeclared class \icms_core_Message
Open

            icms_core_Message::error($err);

Variable $smile_display is undeclared
Open

            $sql = sprintf("UPDATE %s SET code = %s, emotion = %s, display = '%d' WHERE id = '%d'", $db->prefix('smiles'), $db->quoteString($smile_code), $db->quoteString($smile_desc), $smile_display, $id);

Call to method __construct from undeclared class \icms_file_MediaUploadHandler
Open

            $uploader = new icms_file_MediaUploadHandler(ICMS_UPLOAD_PATH, array('image/gif', 'image/jpeg', 'image/pjpeg', 'image/x-png'), 100000, 120, 120);

Call to method instance from undeclared class \icms_db_Factory
Open

        $db = &icms_db_Factory::instance();

Variable $old_smile is undeclared
Open

                        $oldsmile_path = str_replace("\\", "/", realpath(ICMS_UPLOAD_PATH . '/' . trim($old_smile)));

Call to method checkVarArray from undeclared class \icms_core_DataFilter
Open

    $clean_GET = icms_core_DataFilter::checkVarArray($_GET, $filter_get, false);

Call to method checkVarArray from undeclared class \icms_core_DataFilter
Open

    $clean_POST = icms_core_DataFilter::checkVarArray($_POST, $filter_post, false);

Call to method __construct from undeclared class \icms_file_MediaUploadHandler
Open

        $uploader = new icms_file_MediaUploadHandler(ICMS_UPLOAD_PATH, array('image/gif', 'image/jpeg', 'image/pjpeg', 'image/x-png'), 100000, 120, 120);

Call to method upload from undeclared class \icms_file_MediaUploadHandler
Open

            if (!$uploader->upload()) {

Call to method getErrors from undeclared class \icms_file_MediaUploadHandler
Open

                $err = $uploader->getErrors();

Call to method getSavedFileName from undeclared class \icms_file_MediaUploadHandler
Open

                $smile_url = $uploader->getSavedFileName();

Call to method getErrors from undeclared class \icms_file_MediaUploadHandler
Open

                    $err = $uploader->getErrors();

Call to method instance from undeclared class \icms_db_Factory
Open

        $db = &icms_db_Factory::instance();

Call to method getErrors from undeclared class \icms_file_MediaUploadHandler
Open

            $err = $uploader->getErrors();

Variable $smile_display is undeclared
Open

                    if (!$db->query(sprintf("UPDATE %s SET code = %s, smile_url = %s, emotion = %s, display = %d WHERE id = '%d'", $db->prefix('smiles'), $db->quoteString($smile_code), $db->quoteString($smile_url), $db->quoteString($smile_desc), $smile_display, $id))) {

Call to method instance from undeclared class \icms_db_Factory
Open

        $db = &icms_db_Factory::instance();

Reference to static property security from undeclared class \icms
Open

            redirect_header('admin.php?fct=smilies', 3, implode('<br />', icms::$security->getErrors()));

Reference to static property security from undeclared class \icms
Open

        if (!icms::$security->check()) {

Reference to static property security from undeclared class \icms
Open

        if (!icms::$security->check()) {

Variable $smile_display is undeclared
Open

                $sql = sprintf("INSERT INTO %s (id, code, smile_url, emotion, display) VALUES ('%d', %s, %s, %s, '%d')", $db->prefix('smiles'), (int) $newid, $db->quoteString($smile_code), $db->quoteString($smile_url), $db->quoteString($smile_desc), $smile_display);

Call to method fetchMedia from undeclared class \icms_file_MediaUploadHandler
Open

            if ($uploader->fetchMedia($xoops_upload_file[0])) {

Call to method getSavedFileName from undeclared class \icms_file_MediaUploadHandler
Open

                    $smile_url = $uploader->getSavedFileName();

Reference to static property security from undeclared class \icms
Open

            redirect_header('admin.php?fct=smilies', 3, implode('<br />', icms::$security->getErrors()));

Reference to static property user from undeclared class \icms
Open

if (!is_object(icms::$user) || !is_object($icmsModule) || !icms::$user->isAdmin($icmsModule->getVar('mid'))) {

Reference to static property security from undeclared class \icms
Open

        if ($id <= 0 | !icms::$security->check()) {

Call to method instance from undeclared class \icms_db_Factory
Open

        $db = &icms_db_Factory::instance();

Reference to static property security from undeclared class \icms
Open

            redirect_header('admin.php?fct=smilies', 3, implode('<br />', icms::$security->getErrors()));

Call to method upload from undeclared class \icms_file_MediaUploadHandler
Open

                if (!$uploader->upload()) {

Call to method error from undeclared class \icms_core_Message
Open

            icms_core_Message::error($err);

Reference to static property security from undeclared class \icms
Open

        if ($id <= 0 || !icms::$security->check()) {

Space found before closing bracket of FOR loop
Open

        for ($i = 0; $i < $count; $i++ ) {

Expected 0 spaces before closing bracket; 1 found
Open

        for ($i = 0; $i < $count; $i++ ) {

Inline control structures are not allowed
Open

    if (isset($_GET['filter_post'])) unset($_GET['filter_post']);

Unexpected trailing spaces found.
Open

            

There are no issues that match your filters.

Category
Status