htdocs/modules/system/admin/avatars/main.php
Call to method __construct
from undeclared class \icms_form_elements_Label
Open
Open
$form->addElement(new icms_form_elements_Label(_MD_RESTRICTIONS, $restrictions));
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
Open
$form->addElement(new icms_form_elements_Label(_MD_RESTRICTIONS, $restrictions));
- Exclude checks
Reference to undeclared constant \_IMAGENAME
Open
Open
. '" alt="" /></td><td class="head">' . _IMAGENAME, '</td><td class="even"><input type="hidden" name="avatar_id[]" value="'
- Exclude checks
Variable $avatar_id
is undeclared Open
Open
$count = count($avatar_id);
- Exclude checks
Variable $avatar_id
is undeclared Open
Open
$error[] = sprintf(_FAILSAVEIMG, $avatar_id[$i]);
- Exclude checks
Argument 4 (addredirect)
is string
but \redirect_header()
takes bool|true
defined at /code/htdocs/include/functions.php:188
Open
Open
redirect_header('admin.php?fct=avatars', 1, 3, implode('<br />', icms::$security->getErrors()));
- Exclude checks
Reference to static property security
from undeclared class \icms
Open
Open
redirect_header('admin.php?fct=avatars', 1, 3, implode('<br />', icms::$security->getErrors()));
- Exclude checks
Variable $avatar_id
is undeclared Open
Open
$avatar_id = (int) ($avatar_id);
- Exclude checks
Reference to undeclared constant \_NUMIMAGES
Open
Open
. _MD_CSTAVATARS . ' (' . sprintf(_NUMIMAGES, '<strong>' . icms_conv_nr2local($cavatar_count) . '</strong>')
- Exclude checks
Reference to undeclared constant \_IMGDISPLAY
Open
Open
$form->addElement(new icms_form_elements_Radioyn(_IMGDISPLAY, 'avatar_display', 1, _YES, _NO));
- Exclude checks
Variable $icmsConfigUser
is undeclared Open
Open
$restrictions .= _MD_AM_AVATARH . ": ". $icmsConfigUser['avatar_height']. "px";
- Exclude checks
Call to method handler
from undeclared class \icms
Open
Open
$avt_handler = icms::handler('icms_data_avatar');
- Exclude checks
Reference to undeclared constant \_DELETE
Open
Open
. $id . '">' . _DELETE . '</a></td></tr></table><br />';
- Exclude checks
Call to method __construct
from undeclared class \icms_file_MediaUploadHandler
Open
Open
$uploader = new icms_file_MediaUploadHandler(ICMS_UPLOAD_PATH, array('image/gif', 'image/jpeg', 'image/pjpeg', 'image/x-png', 'image/png'), $icmsConfigUser['avatar_maxsize'], $icmsConfigUser['avatar_width'], $icmsConfigUser['avatar_height']);
- Exclude checks
Call to method error
from undeclared class \icms_core_Message
Open
Open
icms_core_Message::error(sprintf(_MD_FAILDEL, $avatar->getVar('avatar_id')));
- Exclude checks
Call to method __construct
from undeclared class \icms_db_criteria_Item
Open
Open
$savatar_count = $avt_handler->getCount(new icms_db_criteria_Item('avatar_type', 'S'));
- Exclude checks
Call to method __construct
from undeclared class \icms_form_Theme
Open
Open
$form = new icms_form_Theme(_MD_ADDAVT, 'avatar_form', 'admin.php', "post", TRUE);
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Text
Open
Open
$form->addElement(new icms_form_elements_Text(_IMAGENAME, 'avatar_name', 50, 255), TRUE);
- Exclude checks
Reference to undeclared constant \_IMAGEFILE
Open
Open
$form->addElement(new icms_form_elements_File(_IMAGEFILE, 'avatar_file', $icmsConfigUser['avatar_maxsize']));
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Button
Open
Open
$form->addElement(new icms_form_elements_Button('', 'avt_button', _SUBMIT, 'submit'));
- Exclude checks
Call to method upload
from undeclared class \icms_file_MediaUploadHandler
Open
Open
if (!$uploader->upload()) {
- Exclude checks
Call to method handler
from undeclared class \icms
Open
Open
$avt_handler = icms::handler('icms_data_avatar');
- Exclude checks
Reference to undeclared constant \_FAILSAVEIMG
Open
Open
$err[] = sprintf(_FAILSAVEIMG, $avatar->getVar('avatar_name'));
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
Open
$form->addElement(new icms_form_elements_Hidden('fct', 'avatars'));
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
Open
$form->addElement(new icms_form_elements_Button('', 'avt_button', _SUBMIT, 'submit'));
- Exclude checks
Call to method handler
from undeclared class \icms
Open
Open
$avt_handler = icms::handler('icms_data_avatar');
- Exclude checks
Reference to undeclared constant \_NUMIMAGES
Open
Open
. _MD_SYSAVATARS . ' (' . sprintf(_NUMIMAGES, '<strong>' . icms_conv_nr2local($savatar_count) . '</strong>')
- Exclude checks
Call to method setExtra
from undeclared class \icms_form_Theme
Open
Open
$form->setExtra('enctype="multipart/form-data"');
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Text
Open
Open
$form->addElement(new icms_form_elements_Text(_IMGWEIGHT, 'avatar_weight', 3, 4, 0));
- Exclude checks
Reference to undeclared constant \_IMAGENAME
Open
Open
. '" alt="" /></td><td class="head">' . _IMAGENAME, '</td><td class="even"><a href="'
- Exclude checks
Reference to static property security
from undeclared class \icms
Open
Open
. icms::$security->getTokenHTML()
- Exclude checks
Reference to undeclared constant \_LIST
Open
Open
. ') [<a href="admin.php?fct=avatars&op=listavt&type=C">' . _LIST
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_File
Open
Open
$form->addElement(new icms_form_elements_File(_IMAGEFILE, 'avatar_file', $icmsConfigUser['avatar_maxsize']));
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
Open
$form->addElement(new icms_form_elements_Text(_IMGWEIGHT, 'avatar_weight', 3, 4, 0));
- Exclude checks
Reference to undeclared constant \_NO
Open
Open
$form->addElement(new icms_form_elements_Radioyn(_IMGDISPLAY, 'avatar_display', 1, _YES, _NO));
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Hidden
Open
Open
$form->addElement(new icms_form_elements_Hidden('op', 'addfile'));
- Exclude checks
Reference to undeclared constant \_IMAGEMIME
Open
Open
. _IMAGEMIME . '</td><td class="odd">' . $avatars[$i]->getVar('avatar_mimetype') . '</td></tr><tr><td class="head">' . _MD_USERS . '</td><td class="even">'
- Exclude checks
Reference to undeclared constant \_MD_AM_DBUPDATED
Open
Open
redirect_header('admin.php?fct=avatars', 2, _MD_AM_DBUPDATED);
- Exclude checks
Reference to undeclared constant \_MD_AM_DBUPDATED
Open
Open
redirect_header('admin.php?fct=avatars', 2, _MD_AM_DBUPDATED);
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
Open
$form->addElement(new icms_form_elements_Radioyn(_IMGDISPLAY, 'avatar_display', 1, _YES, _NO));
- Exclude checks
Call to method __construct
from undeclared class \icms_view_PageNav
Open
Open
$nav = new icms_view_PageNav($avtcount, 10, $start, 'start', 'fct=avatars&type=' . $type . '&op=listavt');
- Exclude checks
Variable $avatar_display
is undeclared Open
Open
$avatar_display[$i] = empty($avatar_display[$i]) ? 0 : 1;
- Exclude checks
Reference to static property security
from undeclared class \icms
Open
Open
if (!icms::$security->check()) {
- Exclude checks
Variable $icmsModule
is undeclared Open
Open
if (!is_object(icms::$user) || !is_object($icmsModule) || !icms::$user->isAdmin($icmsModule->getVar('mid'))) {
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
Open
$form->addElement(new icms_form_elements_Text(_IMAGENAME, 'avatar_name', 50, 255), TRUE);
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
Open
$form->addElement(new icms_form_elements_File(_IMAGEFILE, 'avatar_file', $icmsConfigUser['avatar_maxsize']));
- Exclude checks
Reference to undeclared constant \_YES
Open
Open
$form->addElement(new icms_form_elements_Radioyn(_IMGDISPLAY, 'avatar_display', 1, _YES, _NO));
- Exclude checks
Reference to undeclared constant \_SUBMIT
Open
Open
$form->addElement(new icms_form_elements_Button('', 'avt_button', _SUBMIT, 'submit'));
- Exclude checks
Reference to undeclared constant \_IMGDISPLAY
Open
Open
. _IMGDISPLAY . '</td><td class="even"><input type="checkbox" name="avatar_display[]" value="1"';
- Exclude checks
Reference to undeclared constant \_DELETE
Open
Open
. _DELETE . '</a></td></tr></table><br />';
- Exclude checks
Call to method fetchMedia
from undeclared class \icms_file_MediaUploadHandler
Open
Open
if ($uploader->fetchMedia($_POST['xoops_upload_file'][0])) {
- Exclude checks
Variable $icmsConfigUser
is undeclared Open
Open
$restrictions .= _MD_AM_AVATARW . ": " . $icmsConfigUser['avatar_width'] . "px<br />";
- Exclude checks
Reference to static property security
from undeclared class \icms
Open
Open
if (!icms::$security->check()) {
- Exclude checks
Call to method confirm
from undeclared class \icms_core_Message
Open
Open
icms_core_Message::confirm(array('op' => 'delfileok', 'avatar_id' => (int) ($_GET['avatar_id']), 'fct' => 'avatars', 'user_id' => $user_id), 'admin.php', _MD_RUDELIMG);
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Radioyn
Open
Open
$form->addElement(new icms_form_elements_Radioyn(_IMGDISPLAY, 'avatar_display', 1, _YES, _NO));
- Exclude checks
Variable $icmsConfigUser
is undeclared Open
Open
$restrictions = _MD_AM_AVATARMAX . ": " . $icmsConfigUser['avatar_maxsize'] . "<br />";
- Exclude checks
Reference to undeclared constant \_FAILGETIMG
Open
Open
$error[] = sprintf(_FAILGETIMG, $avatar_id[$i]);
- Exclude checks
Call to method getMediaType
from undeclared class \icms_file_MediaUploadHandler
Open
Open
$avatar->setVar('avatar_mimetype', $uploader->getMediaType());
- Exclude checks
Reference to undeclared constant \_LIST
Open
Open
. ') [<a href="admin.php?fct=avatars&op=listavt&type=S">' . _LIST . '</a>]</li><li>'
- Exclude checks
Call to method display
from undeclared class \icms_form_Theme
Open
Open
$form->display();
- Exclude checks
Call to method __construct
from undeclared class \icms_db_criteria_Item
Open
Open
$criteria = new icms_db_criteria_Item('avatar_type', $type);
- Exclude checks
Call to method setStart
from undeclared class \icms_db_criteria_Item
Open
Open
$criteria->setStart($start);
- Exclude checks
Call to method renderImageNav
from undeclared class \icms_view_PageNav
Open
Open
echo '<div style="text-align:' . _GLOBAL_RIGHT . ';">' . $nav->renderImageNav() . '</div>';
- Exclude checks
Call to method setPrefix
from undeclared class \icms_file_MediaUploadHandler
Open
Open
$uploader->setPrefix('savt');
- Exclude checks
Reference to static property xoopsDB
from undeclared class \icms
Open
Open
icms::$xoopsDB->query("UPDATE " . icms::$xoopsDB->prefix('users') . " SET user_avatar='blank.gif' WHERE user_avatar='" . $file . "'");
- Exclude checks
Reference to undeclared constant \_MD_AM_DBUPDATED
Open
Open
redirect_header('admin.php?fct=avatars', 2, _MD_AM_DBUPDATED);
- Exclude checks
Reference to undeclared constant \_IMAGEMIME
Open
Open
. '</a></td></tr><tr><td class="head">' . _IMAGEMIME
- Exclude checks
Call to method handler
from undeclared class \icms
Open
Open
$avt_handler = icms::handler('icms_data_avatar');
- Exclude checks
Reference to undeclared constant \_IMAGENAME
Open
Open
$form->addElement(new icms_form_elements_Text(_IMAGENAME, 'avatar_name', 50, 255), TRUE);
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
Open
$form->addElement(new icms_form_elements_Hidden('op', 'addfile'));
- Exclude checks
Variable $avatar_id
is undeclared Open
Open
$error[] = sprintf(_FAILGETIMG, $avatar_id[$i]);
- Exclude checks
Reference to static property security
from undeclared class \icms
Open
Open
redirect_header('admin.php?fct=avatars', 3, implode('<br />', icms::$security->getErrors()));
- Exclude checks
Call to method handler
from undeclared class \icms
Open
Open
$avt_handler = icms::handler('icms_data_avatar');
- Exclude checks
Reference to static property xoopsDB
from undeclared class \icms
Open
Open
icms::$xoopsDB->query("UPDATE " . icms::$xoopsDB->prefix('users') . " SET user_avatar='blank.gif' WHERE uid='". (int) ($user_id) . "'");
- Exclude checks
Call to method __construct
from undeclared class \icms_db_criteria_Item
Open
Open
$cavatar_count = $avt_handler->getCount(new icms_db_criteria_Item('avatar_type', 'C'));
- Exclude checks
Reference to static property security
from undeclared class \icms
Open
Open
if (!icms::$security->check()) {
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Hidden
Open
Open
$form->addElement(new icms_form_elements_Hidden('fct', 'avatars'));
- Exclude checks
Reference to undeclared constant \_IMGWEIGHT
Open
Open
. _IMGWEIGHT . '</td><td class="odd"><input type="text" name="avatar_weight[]" value="'
- Exclude checks
Call to method getSavedFileName
from undeclared class \icms_file_MediaUploadHandler
Open
Open
$avatar->setVar('avatar_file', $uploader->getSavedFileName());
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
Open
if (!is_object(icms::$user) || !is_object($icmsModule) || !icms::$user->isAdmin($icmsModule->getVar('mid'))) {
- Exclude checks
Call to method getErrors
from undeclared class \icms_file_MediaUploadHandler
Open
Open
$err = array_merge($err, $uploader->getErrors(FALSE));
- Exclude checks
Reference to undeclared constant \_IMGWEIGHT
Open
Open
$form->addElement(new icms_form_elements_Text(_IMGWEIGHT, 'avatar_weight', 3, 4, 0));
- Exclude checks
Argument 3 (message)
is 3
but \redirect_header()
takes string
defined at /code/htdocs/include/functions.php:188
Open
Open
redirect_header('admin.php?fct=avatars', 1, 3, implode('<br />', icms::$security->getErrors()));
- Exclude checks
Call to method setLimit
from undeclared class \icms_db_criteria_Item
Open
Open
$criteria->setLimit(10);
- Exclude checks
Reference to undeclared constant \_SUBMIT
Open
Open
. '<input type="submit" name="submit" value="' . _SUBMIT . '" />'
- Exclude checks
Reference to static property security
from undeclared class \icms
Open
Open
redirect_header('admin.php?fct=avatars', 3, implode('<br />', icms::$security->getErrors()));
- Exclude checks
Reference to undeclared constant \_FAILSAVEIMG
Open
Open
$error[] = sprintf(_FAILSAVEIMG, $avatar_id[$i]);
- Exclude checks
Call to method getErrors
from undeclared class \icms_file_MediaUploadHandler
Open
Open
$err[] = $uploader->getErrors();
- Exclude checks
Call to method error
from undeclared class \icms_core_Message
Open
Open
icms_core_Message::error($err);
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" Open
Open
$form = new icms_form_Theme(_MD_ADDAVT, 'avatar_form', 'admin.php', "post", TRUE);
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" Open
Open
icms_loadLanguageFile('system', 'preferences', TRUE);
- Exclude checks
Blank line found at start of control structure Open
Open
if ($type == 'S') {
- Exclude checks
Blank line found at start of control structure Open
Open
if (isset($user_id) && $avatar->getVar('avatar_type') == 'C') {
- Exclude checks
Blank line found at end of control structure Open
Open
- Exclude checks
Blank line found at end of control structure Open
Open
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" Open
Open
$avatars =& $avt_handler->getObjects($criteria, TRUE);
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE" Open
Open
$err = array_merge($err, $uploader->getErrors(FALSE));
- Exclude checks
Blank line found at end of control structure Open
Open
- Exclude checks
Blank line found at start of control structure Open
Open
} else {
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" Open
Open
$form->addElement(new icms_form_elements_Text(_IMAGENAME, 'avatar_name', 50, 255), TRUE);
- Exclude checks
Inline control structures are not allowed Open
Open
if (!empty($_POST)) foreach ($_POST as $k => $v) ${$k} = StopXSS($v);
- Exclude checks
Inline control structures are not allowed Open
Open
if (!empty($_GET)) foreach ($_GET as $k => $v) ${$k} = StopXSS($v);
- Exclude checks
Newline required after opening brace Open
Open
if (!empty($_GET)) foreach ($_GET as $k => $v) ${$k} = StopXSS($v);
- Exclude checks
Closing brace must be on a line by itself Open
Open
if (!empty($_POST)) foreach ($_POST as $k => $v) ${$k} = StopXSS($v);
- Exclude checks
Expected 1 space after closing parenthesis; found " $" Open
Open
if (!empty($_POST)) foreach ($_POST as $k => $v) ${$k} = StopXSS($v);
- Exclude checks
Newline required after opening brace Open
Open
if (!empty($_POST)) foreach ($_POST as $k => $v) ${$k} = StopXSS($v);
- Exclude checks
Expected 1 space after closing parenthesis; found " $" Open
Open
if (!empty($_GET)) foreach ($_GET as $k => $v) ${$k} = StopXSS($v);
- Exclude checks
Closing brace must be on a line by itself Open
Open
if (!empty($_GET)) foreach ($_GET as $k => $v) ${$k} = StopXSS($v);
- Exclude checks