File main.php
has 1044 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
// $Id: main.php 12399 2014-01-25 17:02:01Z skenow $
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
// Copyright (c) 2000 XOOPS.org //
Consider simplifying this complex logical expression. Open
if (isset($infoarr[3]) && trim($infoarr[3]) == 'blocks') {
$default =& $tpltpl_handler->find('default', 'block', NULL, trim($infoarr[2]), trim($infoarr[4]));
} elseif ((!isset($infoarr[4]) || trim($infoarr[4]) == '') && $infoarr[1] == 'templates') {
$default =& $tpltpl_handler->find('default', 'module', NULL, trim($infoarr[2]), trim($infoarr[3]));
} elseif ($infoarr[1] == "templates" && $infoarr[2] == "system" && $infoarr[3] == "admin") {
Avoid deeply nested control flow statements. Open
if ($files[$i]->getVar('tpl_type') == 'block') {
$path = $tplset . '/templates/' . $files[$i]->getVar('tpl_module') . '/blocks/' . $files[$i]->getVar('tpl_file');
$xml .= "\r\n <template name=\"" . $files[$i]->getVar('tpl_file') . "\">\r\n <module>" . $files[$i]->getVar('tpl_module') . "</module>\r\n <type>block</type>\r\n <lastModified>" . $files[$i]->getVar('tpl_lastmodified') . "</lastModified>\r\n </template>";
} elseif ($files[$i]->getVar('tpl_type') == 'module') {
$path = $tplset . '/templates/' . $files[$i]->getVar('tpl_module') . '/' . $files[$i]->getVar('tpl_file');
Call to method handler
from undeclared class \icms
Open
$module_handler = icms::handler('icms_module');
- Exclude checks
Argument 1 (string)
is string
but \icms_conv_nr2local()
takes int
defined at /code/htdocs/include/functions.php:1231
Open
. icms_conv_nr2local($filecount) . '</strong>)]</li>';
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Hidden
Open
$form->addElement(new icms_form_elements_Hidden('fct', 'tplsets'));
- Exclude checks
Variable $tplset
is undeclared Open
if ($tplset != 'default') {
- Exclude checks
Variable $moddir
is undeclared Open
. $moddir . '&tplset=' . $tplset . '&op=generatetpl&type=block&file=' . urlencode($nfile) . '"><img src="'. ICMS_IMAGES_SET_URL . '/actions/filenew2.png" alt="' . _MD_GENERATE . '" title="' . _MD_GENERATE . '" /></a></td>
- Exclude checks
Variable $err
was undeclared, but array fields are being added to it. Open
$err[] = 'Selected template (ID: ' . '$id' . ') does not exist';
- Exclude checks
Reference to static property security
from undeclared class \icms
Open
if ($id <= 0 | !icms::$security->check()) {
- Exclude checks
Variable $tplset
is undeclared Open
$tplset = trim($tplset);
- Exclude checks
Variable $theme
is undeclared Open
$msgs[] = '<span style="color:#ff0000;">' . _ERROR . ': ' . sprintf(_MD_TPLSET_FILE_NOTEXIST, $theme) . '</span>';
- Exclude checks
Call to method __construct
from undeclared class \icms_file_ZipDownloader
Open
$downloader = new icms_file_ZipDownloader();
- Exclude checks
Call to method handler
from undeclared class \icms
Open
$tpltpl_handler =& icms::handler('icms_view_template_file');
- Exclude checks
Call to method handler
from undeclared class \icms
Open
$tpltpl_handler =& icms::handler('icms_view_template_file');
- Exclude checks
Reference to undeclared constant \_LIST
Open
. '&moddir=' . $moddir . '">' . _LIST . '</a> (<strong>'
- Exclude checks
Reference to undeclared constant \_DELETE
Open
. '"><img src="'. ICMS_IMAGES_SET_URL . '/actions/editdelete.png" alt="' . _DELETE . '" title="' . _DELETE . '" /></a>';
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
$form->addElement(new icms_form_elements_Hidden('op', 'uploadtar_go'));
- Exclude checks
Reference to undeclared constant \_MD_AM_DBUPDATED
Open
redirect_header('admin.php?fct=tplsets&op=edittpl&id=' . $tplfile->getVar('tpl_id'), 2, _MD_AM_DBUPDATED);
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
$form->addElement(new icms_form_elements_Textarea(_MD_FILEHTML, 'html', $default[0]->getVar('tpl_source'), 25));
- Exclude checks
Call to method download
from undeclared class \icms_file_TarDownloader
Open
echo $downloader->download($tplset, TRUE);
- Exclude checks
Call to method getVar
on non-class type null
Open
redirect_header('admin.php?fct=tplsets&op=listtpl&moddir=' . $newtpl->getVar('tpl_module') . '&tplset=' . urlencode($newtpl->getVar('tpl_tplset')), 2, _MD_AM_DBUPDATED);
- Exclude checks
Reference to undeclared constant \_MD_AM_DBUPDATED
Open
redirect_header('admin.php?fct=tplsets&op=listtpl&moddir=' . $newtpl->getVar('tpl_module') . '&tplset=' . urlencode($newtpl->getVar('tpl_tplset')), 2, _MD_AM_DBUPDATED);
- Exclude checks
Reference to static property security
from undeclared class \icms
Open
if (!icms::$security->check()) {
- Exclude checks
Call to method template_touch
from undeclared class \icms_view_Tpl
Open
$icmsAdminTpl->template_touch($newtpl->getVar('tpl_id'));
- Exclude checks
Call to method getMediaName
from undeclared class \icms_file_MediaUploadHandler
Open
if ($uploader->getMediaName() == '') {
- Exclude checks
Variable $tplset
is undeclared Open
if ($tplset != 'default') {
- Exclude checks
Variable $moddir
is undeclared Open
$notinst_files = array_diff(icms_core_Filesystem::getFileList(ICMS_MODULES_PATH . '/' . $moddir . '/templates/'), $inst_files);
- Exclude checks
Variable $tplset
is undeclared Open
echo '<td style="background-color:' . $bg . ';">' . $last_imported_f . ' <a href="admin.php?fct=tplsets&tplset=' . $tplset . '&op=importtpl&moddir=' . $moddir . '&id=' . $btemplates[$j]->getVar('tpl_id') . '">' . _MD_IMPORT . '</a>]';
- Exclude checks
Variable $icms_admin_handler
is undeclared Open
$tplset_handler = $icms_admin_handler;
- Exclude checks
Reference to undeclared constant \_CLONE
Open
. '"><img src="'. ICMS_IMAGES_SET_URL . '/actions/editcopy.png" alt="' . _CLONE . '" title="' . _CLONE . '" /></a>';
- Exclude checks
Variable $id
is undeclared Open
if ($id <= 0 | !icms::$security->check()) {
- Exclude checks
Call to method handler
from undeclared class \icms
Open
$tplset_handler = icms::handler('icms_view_template_set');
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_File
Open
$form->addElement(new icms_form_elements_File(_MD_CHOOSETAR . '<br /><span style="color:#ff0000;">' . _MD_ONLYTAR . '</span>', 'tpl_upload', 1000000));
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
if (!is_object(icms::$user) || !is_object($icmsModule) || !icms::$user->isAdmin($icmsModule->getVar('mid'))) {
- Exclude checks
Call to method __construct
from undeclared class \icms_form_Theme
Open
$form = new icms_form_Theme(_MD_CLONETHEME, 'template_form', 'admin.php', 'post', TRUE);
- Exclude checks
Reference to undeclared constant \_EDIT
Open
. '<a href="admin.php?fct=tplsets&op=edittpl&id=' . $btemplates[$j]->getVar('tpl_id') . '"><img src="'. ICMS_IMAGES_SET_URL . '/actions/edit.png" alt="' . _EDIT . '" title="' . _EDIT . '" /></a>'
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Hidden
Open
$form->addElement(new icms_form_elements_Hidden('tplset', $tplset));
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
$form->addElement(new icms_form_elements_Text(_MD_NTHEMENAME . '<br /><span style="font-weight:normal;">' . _MD_ENTERTH . '</span>', 'tplset_name', 20, 50));
- Exclude checks
Call to method display
from undeclared class \icms_form_Theme
Open
$form->display();
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Hidden
Open
$form->addElement(new icms_form_elements_Hidden('fct', 'tplsets'));
- Exclude checks
Call to method error
from undeclared class \icms_core_Message
Open
icms_core_Message::error($err);
- Exclude checks
Variable $tplset
is undeclared Open
if ($tplset != 'default') {
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
$form->addElement(new icms_form_elements_Button('', 'tpl_button', _SUBMIT, 'submit'));
- Exclude checks
Reference to static property security
from undeclared class \icms
Open
. '<input type="hidden" name="op" value="update" />' . icms::$security->getTokenHTML()
- Exclude checks
Reference to static property security
from undeclared class \icms
Open
if ($id <= 0 | !icms::$security->check()) {
- Exclude checks
Reference to static property security
from undeclared class \icms
Open
if (!icms::$security->check()) {
- Exclude checks
Call to method clear_cache
from undeclared class \icms_view_Tpl
Open
if (!$xoopsTpl->clear_cache('db:' . $tplfile->getVar('tpl_file'))) {
- Exclude checks
Call to method template_touch
from undeclared class \icms_view_Tpl
Open
$icmsAdminTpl->template_touch($defaulttpl[0]->getVar('tpl_id'), TRUE);
- Exclude checks
Reference to undeclared constant \_LANGCODE
Open
. '" /><meta http-equiv="content-language" content="' . _LANGCODE
- Exclude checks
Reference to static property security
from undeclared class \icms
Open
redirect_header('admin.php?fct=tplsets', 3, implode('<br />', icms::$security->getErrors()));
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
$form->addElement(new icms_form_elements_Button('', 'upload_button', _MD_UPLOAD, 'submit'));
- Exclude checks
Variable $method
is undeclared Open
if ($method == 'tar') {
- Exclude checks
Reference to static property security
from undeclared class \icms
Open
if (!icms::$security->check()) {
- Exclude checks
Variable $tplset
is undeclared Open
$physical_file = ICMS_THEME_PATH . '/' . $tplset . '/templates/' . $moddir . '/' . $nfile;
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Label
Open
$form->addElement(new icms_form_elements_Label(_MD_THEMENAME, $tplset));
- Exclude checks
Reference to undeclared constant \_ERROR
Open
$err = _ERROR . ': ' . sprintf(_MD_TPLSET_INSERT_FAILED, '<strong>' . $tplfile[0]->getVar('tpl_file') . '</strong>');
- Exclude checks
Variable $tplset
is undeclared Open
if ($tplset != 'default') {
- Exclude checks
Reference to undeclared constant \_ERROR
Open
. _ERROR . ': ' . sprintf(_MD_TPLSET_DELETE_FAIL, '<strong>' . $templates[$i]->getVar('tpl_file') . '</strong>')
- Exclude checks
Call to method error
from undeclared class \icms_core_Message
Open
icms_core_Message::error(sprintf(_MD_TPLSET_EXISTS, '<strong>' . $newtheme . '</strong>'));
- Exclude checks
Reference to undeclared constant \_DELETE
Open
. ' <a href="admin.php?fct=tplsets&op=deletetpl&id=' . $btemplates[$j]->getVar('tpl_id') . '"><img src="'. ICMS_IMAGES_SET_URL . '/actions/editdelete.png" alt="' . _DELETE . '" title="' . _DELETE . '" /></a>'
- Exclude checks
Variable $tplset
is undeclared Open
if ($tplset == $icmsConfig['template_set']) {
- Exclude checks
Reference to undeclared constant \_ERROR
Open
$msgs[] = ' <span style="color:#ff0000;">' . _ERROR . ': ' . sprintf(_MD_TPLSET_COPY_FAILED, '<strong>' . $templates[$i]->getVar('tpl_file') . '</strong>')
- Exclude checks
Reference to static property security
from undeclared class \icms
Open
redirect_header('admin.php?fct=tplsets', 3, implode('<br />', icms::$security->getErrors()));
- Exclude checks
Call to method display
from undeclared class \icms_form_Theme
Open
$form->display();
- Exclude checks
Variable $moddir
is undeclared Open
$bnotinst_files = array_diff(icms_core_Filesystem::getFileList(ICMS_MODULES_PATH . '/' . $moddir . '/templates/blocks/'), $binst_files);
- Exclude checks
Call to method __construct
from undeclared class \icms_form_Theme
Open
$form = new icms_form_Theme(_MD_VIEWDEFAULT, 'template_form', 'admin.php');
- Exclude checks
Call to method __construct
from undeclared class \icms_file_MediaUploadHandler
Open
$uploader = new icms_file_MediaUploadHandler(ICMS_UPLOAD_PATH, array(
- Exclude checks
Variable $moddir
is undeclared Open
. '<input type="hidden" name="moddir" value="' . $moddir . '" />'
- Exclude checks
Call to method handler
from undeclared class \icms
Open
$tpltpl_handler =& icms::handler('icms_view_template_file');
- Exclude checks
Variable $id
is undeclared Open
if ($id <= 0 | !icms::$security->check()) {
- Exclude checks
Call to method __construct
from undeclared class \icms_file_TarFileHandler
Open
$tar = new icms_file_TarFileHandler();
- Exclude checks
Call to method error
from undeclared class \icms_core_Message
Open
icms_core_Message::error(_MD_NOZLIB);
- Exclude checks
Call to method template_touch
from undeclared class \icms_view_Tpl
Open
$icmsAdminTpl->template_touch($id);
- Exclude checks
Reference to undeclared constant \_LANGCODE
Open
echo '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="' . _LANGCODE . '" lang="' . _LANGCODE
- Exclude checks
Reference to undeclared constant \_ERROR
Open
echo '<span style="color:#ff0000;">' . _ERROR . ': ' . _MD_TPLSET_INVALID_NAME . '</span><br />';
- Exclude checks
Call to method confirm
from undeclared class \icms_core_Message
Open
icms_core_Message::confirm(array('tplset' => $tplset, 'moddir' => $moddir, 'file' => $file, 'type' => $type, 'op' => 'generatetpl_go', 'fct' => 'tplsets'), 'admin.php', _MD_PLZGENERATE, _MD_GENERATE);
- Exclude checks
Variable $tplset
is undeclared Open
if ($tplset == $icmsConfig['template_set']) {
- Exclude checks
Reference to undeclared constant \_MD_AM_DBUPDATED
Open
. urlencode($tplfile->getVar('tpl_tplset')), 2, _MD_AM_DBUPDATED);
- Exclude checks
Reference to undeclared constant \_ERROR
Open
echo ' <span style="color:#ff0000;">' . _ERROR . ': ' . _MD_TPLSET_IMGSET_CREATE_FAILED . '</span><br />';
- Exclude checks
Variable $tplset
is undeclared Open
$msgs[] = ' ' . sprintf(_MD_TPLSET_DELETE_OK, $tplset);
- Exclude checks
Argument 1 (theme)
is null
but \xoops_getcss()
takes string
defined at /code/htdocs/include/functions.php:277
Open
. xoops_getcss($icmsConfig['theme_set']) . '" />';
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Text
Open
$form->addElement(new icms_form_elements_Text(_MD_NEWNAME, 'newtheme', 30, 50), TRUE);
- Exclude checks
Call to method __construct
from undeclared class \icms_db_criteria_Item
Open
} elseif ($tpltpl_handler->getCount(new icms_db_criteria_Item('tpl_tplset', $newtheme)) > 0) {
- Exclude checks
Call to method confirm
from undeclared class \icms_core_Message
Open
icms_core_Message::confirm(array('tplset' => $tplset, 'op' => 'generatemod_go', 'fct' => 'tplsets', 'moddir' => $moddir), 'admin.php', _MD_PLZGENERATE, _MD_GENERATE);
- Exclude checks
Reference to static property security
from undeclared class \icms
Open
redirect_header('admin.php?fct=tplsets', 3, implode('<br />', icms::$security->getErrors()));
- Exclude checks
Call to method openTar
from undeclared class \icms_file_TarFileHandler
Open
$tar->openTar($uploader->getSavedDestination());
- Exclude checks
Call to method handler
from undeclared class \icms
Open
$tpltpl_handler = icms::handler('icms_view_template_file');
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
$form->addElement(new icms_form_elements_File(_MD_CHOOSETAR . '<br /><span style="color:#ff0000;">' . _MD_ONLYTAR . '</span>', 'tpl_upload', 1000000));
- Exclude checks
Call to method handler
from undeclared class \icms
Open
$tpltpl_handler =& icms::handler('icms_view_template_file');
- Exclude checks
Variable $moddir
is undeclared Open
$physical_file = ICMS_THEME_PATH . '/' . $tplset . '/templates/' . $moddir . '/' . $filename;
- Exclude checks
Variable $moddir
is undeclared Open
. '<a href="admin.php?fct=tplsets&moddir=' . $moddir . '&tplset=' . $tplset_enc
- Exclude checks
Variable $tplset
is undeclared Open
. $moddir . '&tplset=' . $tplset . '&op=generatetpl&type=block&file=' . urlencode($nfile) . '"><img src="'. ICMS_IMAGES_SET_URL . '/actions/filenew2.png" alt="' . _MD_GENERATE . '" title="' . _MD_GENERATE . '" /></a></td>
- Exclude checks
Call to method __construct
from undeclared class \icms_view_Tpl
Open
$xoopsTpl = new icms_view_Tpl();
- Exclude checks
Call to method handler
from undeclared class \icms
Open
$tpltpl_handler =& icms::handler('icms_view_template_file');
- Exclude checks
Reference to undeclared constant \_ERROR
Open
. _ERROR . ': ' . _MD_TPLSET_DEFAULT_NODELETE
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
$form->addElement(new icms_form_elements_Text(_MD_NEWNAME, 'newtheme', 30, 50), TRUE);
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
$form->addElement(new icms_form_elements_Hidden('fct', 'tplsets'));
- Exclude checks
Call to method __construct
from undeclared class \icms_db_criteria_Item
Open
$templates =& $tpltpl_handler->getObjects(new icms_db_criteria_Item('tpl_tplset', $tplset), TRUE);
- Exclude checks
Call to method handler
from undeclared class \icms
Open
$tpltpl_handler =& icms::handler('icms_view_template_file');
- Exclude checks
Call to method __construct
from undeclared class \icms_db_criteria_Item
Open
if ($tplset_handler->getCount(new icms_db_criteria_Item('tplset_name', $tplset_name)) > 0) {
- Exclude checks
Reference to static property security
from undeclared class \icms
Open
if (!icms::$security->check()) {
- Exclude checks
Variable $xoops_upload_file
is undeclared Open
foreach ($xoops_upload_file as $upload_file) {
- Exclude checks
Call to method fetchMedia
from undeclared class \icms_file_MediaUploadHandler
Open
if ($uploader->fetchMedia($upload_file2)) {
- Exclude checks
Call to method __construct
from undeclared class \icms_view_Tpl
Open
$icmsAdminTpl = new icms_view_Tpl();
- Exclude checks
Call to method setExtra
from undeclared class \icms_form_Theme
Open
$form->setExtra('enctype="multipart/form-data"');
- Exclude checks
Call to method handler
from undeclared class \icms
Open
$module_handler = icms::handler('icms_module');
- Exclude checks
Variable $moddir
is undeclared Open
echo '[<a href="admin.php?fct=tplsets&moddir=' . $moddir . '&tplset=' . $tplset_enc . '&op=importtpl&file=' . urlencode($nfile) . '">' . _MD_IMPORT . '</a>]';
- Exclude checks
Reference to undeclared constant \_ERROR
Open
. _ERROR . ': ' . sprintf(_MD_TPLSET_DELETE_FAIL, $tplset)
- Exclude checks
Variable $moddir
is undeclared Open
$physical_file = ICMS_THEME_PATH . '/' . $tplset . '/templates/' . $moddir . '/blocks/' . $filename;
- Exclude checks
Variable $id
is undeclared Open
$tpl =& $tpltpl_handler->get( (int) ($id), TRUE);
- Exclude checks
Reference to static property security
from undeclared class \icms
Open
redirect_header('admin.php?fct=tplsets', 3, implode('<br />', icms::$security->getErrors()));
- Exclude checks
Variable $tplset
is undeclared Open
$physical_file = ICMS_THEME_PATH . '/' . $tplset . '/templates/' . $moddir . '/blocks/' . $filename;
- Exclude checks
Reference to static property security
from undeclared class \icms
Open
if (!icms::$security->check()) {
- Exclude checks
Call to method getErrors
from undeclared class \icms_file_MediaUploadHandler
Open
icms_core_Message::error($uploader->getErrors());
- Exclude checks
Variable $id
is undeclared Open
$err[] = sprintf(_MD_TPLSET_TEMPLATE_NOTEXIST, $id);
- Exclude checks
Call to method getSavedDestination
from undeclared class \icms_file_MediaUploadHandler
Open
$tar->openTar($uploader->getSavedDestination());
- Exclude checks
Reference to undeclared constant \_MD_AM_DBUPDATED
Open
redirect_header('admin.php?fct=tplsets&tplset=' . $tplfile->getVar('tpl_tplset') . '&op=' . trim($redirect), 2, _MD_AM_DBUPDATED);
- Exclude checks
Reference to instance property files
from undeclared class \icms_file_TarFileHandler
Open
foreach ($tar->files as $id => $info) {
- Exclude checks
Reference to undeclared constant \_YES
Open
icms_core_Message::confirm(array('tplset' => $tplset, 'op' => 'delete_go', 'fct' => 'tplsets'), 'admin.php', _MD_RUSUREDELTH, _YES);
- Exclude checks
Call to method getErrors
from undeclared class \icms_file_MediaUploadHandler
Open
$msg[] = $uploader->getErrors();
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Hidden
Open
$form->addElement(new icms_form_elements_Hidden('op', 'uploadtar_go'));
- Exclude checks
Reference to static property security
from undeclared class \icms
Open
if (!icms::$security->check()) {
- Exclude checks
Call to method display
from undeclared class \icms_form_Theme
Open
$form->display();
- Exclude checks
Variable $tplset
is undeclared Open
$filepath = ICMS_THEME_PATH . '/' . $tplset . '/templates/' . $tplfile->getVar('tpl_module') . '/' . $tplfile->getVar('tpl_file');
- Exclude checks
Variable $tplset
is undeclared Open
if ($tplset != 'default' && $tplset != $icmsConfig['template_set']) {
- Exclude checks
Variable $tplset
is undeclared Open
if ($tplset == '') {
- Exclude checks
Variable $icmsModule
is undeclared Open
if (!is_object(icms::$user) || !is_object($icmsModule) || !icms::$user->isAdmin($icmsModule->getVar('mid'))) {
- Exclude checks
Variable $moddir
is undeclared Open
. ' [<a href="admin.php?fct=tplsets&tplset=' . $tplset_enc . '&moddir=' . $moddir
- Exclude checks
Reference to static property security
from undeclared class \icms
Open
redirect_header('admin.php?fct=tplsets', 1, implode('<br />', icms::$security->getErrors()));
- Exclude checks
Variable $moddir
is undeclared Open
echo '<td style="background-color:' . $bg . ';">' . $last_imported_f . ' <a href="admin.php?fct=tplsets&tplset=' . $tplset . '&op=importtpl&moddir=' . $moddir . '&id=' . $btemplates[$j]->getVar('tpl_id') . '">' . _MD_IMPORT . '</a>]';
- Exclude checks
Call to method warning
from undeclared class \icms_core_Message
Open
if ($tcount == 1) icms_core_Message::warning(_MD_TPLSET_CREATE_OWN, "", TRUE);
- Exclude checks
Variable $installed_themes
was undeclared, but array fields are being added to it. Open
$installed_themes[] = $tplsetname;
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Text
Open
$form->addElement(new icms_form_elements_Text(_MD_NTHEMENAME . '<br /><span style="font-weight:normal;">' . _MD_ENTERTH . '</span>', 'tplset_name', 20, 50));
- Exclude checks
Variable $moddir
is undeclared Open
$physical_file = ICMS_THEME_PATH . '/' . $tplset . '/templates/' . $moddir . '/blocks/' . $nfile;
- Exclude checks
Call to method handler
from undeclared class \icms
Open
$tplset_handler = icms::handler('icms_view_template_set');
- Exclude checks
Variable $tplset
is undeclared Open
$tplset_enc = filter_var($tplset, FILTER_SANITIZE_ENCODED);
- Exclude checks
Call to method setPrefix
from undeclared class \icms_file_MediaUploadHandler
Open
$uploader->setPrefix('tmp');
- Exclude checks
Variable $tplset
is undeclared Open
if ($tplset != 'default') {
- Exclude checks
Call to method fetch
from undeclared class \icms_view_Tpl
Open
$lines = preg_split("/(\r\n|\r|\n)( *)/", $xoopsTpl->fetch('file:' . ICMS_CACHE_PATH . '/' . $dummyfile));
- Exclude checks
Variable $tplset
is undeclared Open
echo '[<a href="admin.php?fct=tplsets&moddir=' . $moddir . '&tplset=' . $tplset . '&op=importtpl&file=' . urlencode($nfile) . '">' . _MD_IMPORT . '</a>]';
- Exclude checks
Call to method confirm
from undeclared class \icms_core_Message
Open
icms_core_Message::confirm(array('tplset' => $tplset, 'op' => 'delete_go', 'fct' => 'tplsets'), 'admin.php', _MD_RUSUREDELTH, _YES);
- Exclude checks
Call to method setPrefix
from undeclared class \icms_file_MediaUploadHandler
Open
$uploader->setPrefix('tmp');
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
$form->addElement(new icms_form_elements_Label(_MD_THEMENAME, $tplset));
- Exclude checks
Call to method handler
from undeclared class \icms
Open
$tpltpl_handler =& icms::handler('icms_view_template_file');
- Exclude checks
Call to method error
from undeclared class \icms_core_Message
Open
icms_core_Message::error(_MD_TPLSET_IMPORT_FAILED . ' ' . $filepath);
- Exclude checks
Call to method error
from undeclared class \icms_core_Message
Open
icms_core_Message::error($err);
- Exclude checks
Reference to undeclared constant \_SUBMIT
Open
$form->addElement(new icms_form_elements_Button('', 'tpl_button', _SUBMIT, 'submit'));
- Exclude checks
Reference to undeclared constant \_CHARSET
Open
. '"><head><meta http-equiv="content-type" content="text/html; charset=' . _CHARSET
- Exclude checks
Reference to undeclared constant \_ERROR
Open
$msgs[] = '<span style="color:#ff0000;">' . _ERROR . ': ' . sprintf(_MD_TPLSET_FILE_NOTEXIST, $theme) . '</span>';
- Exclude checks
Call to method addFileData
from undeclared class \icms_file_TarDownloader
Open
$downloader->addFileData($files[$i]->getVar('tpl_source'), $path, $files[$i]->getVar('tpl_lastmodified'));
- Exclude checks
Reference to undeclared constant \_CLOSE
Open
echo '<div style="text-align:center;">[<a href="#" onclick="javascript:window.close();">' . _CLOSE . '</a>]</div></body></html>';
- Exclude checks
Reference to undeclared constant \_ERROR
Open
. _ERROR . ': ' . sprintf(_MD_TPLSET_BLOCK_INSERT_FAILED,'<strong>' . $tplfiles[$i]->getVar('tpl_file') . '</strong>')
- Exclude checks
Call to method __construct
from undeclared class \icms_file_TarDownloader
Open
$downloader = new icms_file_TarDownloader();
- Exclude checks
Reference to undeclared constant \_ERROR
Open
echo '<span style="color:#ff0000;">' . _ERROR . ': ' . sprintf(_MD_TPLSET_EXISTS, '<strong>' . htmlspecialchars($tplset_name, ENT_QUOTES) . '</strong>') . '</span><br />';
- Exclude checks
Call to method __construct
from undeclared class \icms_db_criteria_Item
Open
$files =& $tpltpl_handler->getObjects(new icms_db_criteria_Item('tpl_tplset', $tplset), TRUE);
- Exclude checks
Invalid offset "theme_set"
of array type array{template_set:mixed}
Open
. xoops_getcss($icmsConfig['theme_set']) . '" />';
- Exclude checks
Call to method assign
from undeclared class \icms_view_Tpl
Open
$xoopsTpl->assign('block', $block->buildBlock());
- Exclude checks
Variable $moddir
is undeclared Open
. '<a href="./admin.php?fct=tplsets&op=listtpl&moddir=' . $moddir
- Exclude checks
Call to method handler
from undeclared class \icms
Open
$tpltpl_handler =& icms::handler('icms_view_template_file');
- Exclude checks
Reference to static property security
from undeclared class \icms
Open
if (!icms::$security->check()) {
- Exclude checks
Variable $tplset
is undeclared Open
if ($tplset == $icmsConfig['template_set']) {
- Exclude checks
Variable $files
is undeclared Open
unset($files);
- Exclude checks
Call to method upload
from undeclared class \icms_file_MediaUploadHandler
Open
if (!$uploader->upload()) {
- Exclude checks
Reference to instance property files
from undeclared class \icms_file_TarFileHandler
Open
foreach ($tar->files as $id => $info) {
- Exclude checks
Variable $moddir
is undeclared Open
. '&moddir=' . $moddir . '">' . _MD_AM_BTOTADMIN . '</a>';
- Exclude checks
Reference to static property security
from undeclared class \icms
Open
redirect_header('admin.php?fct=tplsets', 3, implode('<br />', icms::$security->getErrors()));
- Exclude checks
Call to method checkVarArray
from undeclared class \icms_core_DataFilter
Open
$clean_POST = icms_core_DataFilter::checkVarArray($_POST, $filter_post, FALSE);
- Exclude checks
Reference to undeclared constant \_DELETE
Open
. ' <a href="admin.php?fct=tplsets&op=deletetpl&id=' . $templates[$i]->getVar('tpl_id') . '"><img src="'. ICMS_IMAGES_SET_URL . '/actions/editdelete.png" alt="' . _DELETE . '" title="' . _DELETE . '" /></a>'
- Exclude checks
Call to method confirm
from undeclared class \icms_core_Message
Open
icms_core_Message::confirm(array('id' => $id, 'op' => 'deletetpl_go', 'fct' => 'tplsets'), 'admin.php', _MD_RUSUREDELTPL, _YES);
- Exclude checks
Call to method __construct
from undeclared class \icms_db_criteria_Item
Open
$tplsets =& $tplset_handler->getObjects(new icms_db_criteria_Item('tplset_name', $tplset));
- Exclude checks
Reference to undeclared constant \_ERROR
Open
$msgs[] = '<span style="color:#ff0000;">' . _ERROR . ': ' . sprintf(_MD_TPLSET_CREATE_FAILED, '<strong>' . $newtheme . '</strong>') . '</span><br />';
- Exclude checks
Argument 1 (time)
is false|int
but \formatTimestamp()
takes string
defined at /code/htdocs/include/functions.php:1428
Open
$filemodified_date = formatTimestamp($tpl_modified, 'l');
- Exclude checks
Variable $tplset
is undeclared Open
echo '<br />' . sprintf(_MD_TPLSET_TEMPLATE_ADDED, '<strong>' . $tplset . '</strong>')
- Exclude checks
Call to method handler
from undeclared class \icms
Open
$tplset_handler = icms::handler('icms_view_template_set');
- Exclude checks
Call to method getErrors
from undeclared class \icms_file_MediaUploadHandler
Open
$err = implode('<br />', $uploader->getErrors(FALSE));
- Exclude checks
Suspicious type null
of a variable or expression used to build a string. (Expected type to be able to cast to a string) Open
. '" /><title>' . $icmsConfig['sitename'] . '</title>'
- Exclude checks
Reference to static property security
from undeclared class \icms
Open
redirect_header('admin.php?fct=tplsets', 3, implode('<br />', icms::$security->getErrors()));
- Exclude checks
Variable $tplset
is undeclared Open
if ($tplset == $icmsConfig['template_set']) {
- Exclude checks
Call to method handler
from undeclared class \icms
Open
$tplset_handler = icms::handler('icms_view_template_set');
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
$form->addElement(new icms_form_elements_Hidden('fct', 'tplsets'));
- Exclude checks
Variable $tplset
is undeclared Open
if ($tplset != 'default') {
- Exclude checks
Variable $tplset
is undeclared Open
$physical_file = ICMS_THEME_PATH . '/' . $tplset . '/templates/' . $moddir . '/' . $filename;
- Exclude checks
Variable $moddir
is undeclared Open
$physical_file = ICMS_THEME_PATH . '/' . $tplset . '/templates/' . $moddir . '/' . $nfile;
- Exclude checks
Variable $tplset
is undeclared Open
if ($tplset != 'default') {
- Exclude checks
Call to method getFileList
from undeclared class \icms_core_Filesystem
Open
$bnotinst_files = array_diff(icms_core_Filesystem::getFileList(ICMS_MODULES_PATH . '/' . $moddir . '/templates/blocks/'), $binst_files);
- Exclude checks
Variable $tplset
is undeclared Open
$physical_file = ICMS_THEME_PATH . '/' . $tplset . '/templates/' . $moddir . '/blocks/' . $nfile;
- Exclude checks
Variable $id
is undeclared Open
if ($id <= 0) {
- Exclude checks
Variable $id
is undeclared Open
'tpl_id' => $id,
- Exclude checks
Call to method handler
from undeclared class \icms
Open
$tpltpl_handler =& icms::handler('icms_view_template_file');
- Exclude checks
Call to method fetchMedia
from undeclared class \icms_file_MediaUploadHandler
Open
if ($uploader->fetchMedia($xoops_upload_file[0])) {
- Exclude checks
Reference to undeclared constant \_ERROR
Open
echo '<span style="color:#ff0000;">' . _ERROR . ': ' . _MD_TPLSET_NAME_NOT_BLANK . '</span><br />';
- Exclude checks
Call to method fetch
from undeclared class \icms_view_Tpl
Open
$xoopsTpl->assign('content', $xoopsTpl->fetch('file:' . ICMS_CACHE_PATH . '/' . $dummytpl));
- Exclude checks
Call to method __construct
from undeclared class \icms_form_Theme
Open
$form = new icms_form_Theme(_MD_UPLOADTAR, 'tplupload_form', 'admin.php', 'post', TRUE);
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Button
Open
$form->addElement(new icms_form_elements_Button('', 'upload_button', _MD_UPLOAD, 'submit'));
- Exclude checks
Variable $moddir
is undeclared Open
if ($moddir == '') {
- Exclude checks
Reference to undeclared constant \_EDIT
Open
. '<a href="admin.php?fct=tplsets&op=edittpl&id=' . $templates[$i]->getVar('tpl_id') . '"><img src="'. ICMS_IMAGES_SET_URL . '/actions/edit.png" alt="' . _EDIT . '" title="' . _EDIT . '" /></a>'
- Exclude checks
Call to method handler
from undeclared class \icms
Open
$tpltpl_handler =& icms::handler('icms_view_template_file');
- Exclude checks
Call to method is_cached
from undeclared class \icms_view_Tpl
Open
if ($xoopsTpl->is_cached('db:' . $tplfile->getVar('tpl_file'))) {
- Exclude checks
Call to method error
from undeclared class \icms_core_Message
Open
icms_core_Message::error($err);
- Exclude checks
Reference to static property security
from undeclared class \icms
Open
redirect_header('admin.php?fct=tplsets', 1, implode('<br />', icms::$security->getErrors()));
- Exclude checks
Call to method __construct
from undeclared class \icms_db_criteria_Item
Open
$templates =& $tpltpl_handler->getObjects(new icms_db_criteria_Item('tpl_tplset', $tplset));
- Exclude checks
Call to method handler
from undeclared class \icms
Open
$tplset_handler = icms::handler('icms_view_template_set');
- Exclude checks
Call to method addFileData
from undeclared class \icms_file_TarDownloader
Open
$downloader->addFileData($xml, $tplset . '/tplset.xml', time());
- Exclude checks
Call to method error
from undeclared class \icms_core_Message
Open
icms_core_Message::error($err);
- Exclude checks
Reference to undeclared constant \_ERROR
Open
echo '<span style="color:#ff0000;">' . _ERROR . ': ' . sprintf(_MD_TPLSET_CREATE_FAILED, '<strong>' . htmlspecialchars($tplset_name, ENT_QUOTES) . '</strong>') . '</span><br />';
- Exclude checks
Call to method checkVarArray
from undeclared class \icms_core_DataFilter
Open
$clean_GET = icms_core_DataFilter::checkVarArray($_GET, $filter_get, FALSE);
- Exclude checks
Reference to undeclared constant \_ERROR
Open
echo ' <span style="color:#ff0000;">' . _ERROR . ': ' . sprintf(_MD_TPLSET_INSERT_FAILED, '<strong>' . $info['name'] . '</strong>') . '</span><br />';
- Exclude checks
Variable $op
is undeclared Open
if ($op == '') $op = 'list';
- Exclude checks
Call to method stripSlashesGPC
from undeclared class \icms_core_DataFilter
Open
$html = icms_core_DataFilter::stripSlashesGPC($html);
- Exclude checks
Call to method handler
from undeclared class \icms
Open
$tpltpl_handler =& icms::handler('icms_view_template_file');
- Exclude checks
Reference to undeclared constant \_CHARSET
Open
. '<html><head><meta http-equiv="content-type" content="text/html; charset=' . _CHARSET
- Exclude checks
Reference to undeclared constant \_LIST
Open
. '&moddir=' . $ni . '"><img src="'. ICMS_IMAGES_SET_URL . '/actions/view_choose.png" alt="' . _LIST . '" title="' . _LIST . '" /></a> (<span style="color:#ff0000; font-weight: bold;">0</span>)'
- Exclude checks
Call to method __construct
from undeclared class \icms_file_MediaUploadHandler
Open
$uploader = new icms_file_MediaUploadHandler(ICMS_UPLOAD_PATH, array('text/html', 'application/x-cdf'), 200000);
- Exclude checks
Call to method getSavedDestination
from undeclared class \icms_file_MediaUploadHandler
Open
$fsource = @fread($fp, filesize($uploader->getSavedDestination()));
- Exclude checks
Call to method getSavedDestination
from undeclared class \icms_file_MediaUploadHandler
Open
@unlink($uploader->getSavedDestination());
- Exclude checks
Call to method confirm
from undeclared class \icms_core_Message
Open
icms_core_Message::confirm(array('tplset' => $tplset, 'moddir' => $moddir, 'id' => $id, 'op' => 'importtpl_go', 'fct' => 'tplsets'), 'admin.php', _MD_RUSUREIMPT, _MD_IMPORT);
- Exclude checks
Variable $moddir
is undeclared Open
echo '[<a href="admin.php?fct=tplsets&moddir=' . $moddir . '&tplset=' . $tplset . '&op=importtpl&file=' . urlencode($nfile) . '">' . _MD_IMPORT . '</a>]';
- Exclude checks
Call to method getFileList
from undeclared class \icms_core_Filesystem
Open
$notinst_files = array_diff(icms_core_Filesystem::getFileList(ICMS_MODULES_PATH . '/' . $moddir . '/templates/'), $inst_files);
- Exclude checks
Reference to undeclared constant \_YES
Open
icms_core_Message::confirm(array('id' => $id, 'op' => 'deletetpl_go', 'fct' => 'tplsets'), 'admin.php', _MD_RUSUREDELTPL, _YES);
- Exclude checks
Reference to undeclared constant \_MD_AM_DBUPDATED
Open
redirect_header('admin.php?fct=tplsets', 2, _MD_AM_DBUPDATED);
- Exclude checks
Call to method handler
from undeclared class \icms
Open
$tpltpl_handler =& icms::handler('icms_view_template_file');
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
$form->addElement(new icms_form_elements_Hidden('tplset', $tplset));
- Exclude checks
Reference to static property security
from undeclared class \icms
Open
redirect_header('admin.php?fct=tplsets', 1, implode('<br />', icms::$security->getErrors()));
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
$form->addElement(new icms_form_elements_Hidden('op', 'clone_go'));
- Exclude checks
Variable $tplset
is undeclared Open
. _ERROR . ': ' . sprintf(_MD_TPLSET_DELETE_FAIL, $tplset)
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Hidden
Open
$form->addElement(new icms_form_elements_Hidden('op', 'clone_go'));
- Exclude checks
Call to method error
from undeclared class \icms_core_Message
Open
icms_core_Message::error(_MD_TPLSET_UNIQUE_NAME);
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Button
Open
$form->addElement(new icms_form_elements_Button('', 'tpl_button', _SUBMIT, 'submit'));
- Exclude checks
Argument 1 (string)
is null
but \htmlspecialchars()
takes string
Open
. '" /><title>' . htmlspecialchars($icmsConfig['sitename']) . ' Administration' . '</title>'
- Exclude checks
Variable $newtheme
is undeclared Open
$newtheme = trim($newtheme);
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Textarea
Open
$form->addElement(new icms_form_elements_Textarea(_MD_FILEHTML, 'html', $default[0]->getVar('tpl_source'), 25));
- Exclude checks
Invalid offset "sitename"
of array type array{template_set:mixed}
Open
. '" /><title>' . htmlspecialchars($icmsConfig['sitename']) . ' Administration' . '</title>'
- Exclude checks
Call to method display
from undeclared class \icms_form_Theme
Open
$form->display();
- Exclude checks
Call to method handler
from undeclared class \icms
Open
$tpltpl_handler =& icms::handler('icms_view_template_file');
- Exclude checks
Call to method handler
from undeclared class \icms
Open
$tpltpl_handler =& icms::handler('icms_view_template_file');
- Exclude checks
Call to method template_touch
from undeclared class \icms_view_Tpl
Open
$icmsAdminTpl->template_touch($newtpl->getVar('tpl_id'));
- Exclude checks
Reference to undeclared constant \_ERROR
Open
. _ERROR . ': ' . sprintf(_MD_TPLSET_INSERT_FAILED, '<strong>' . $file . '</strong>') . '</span><br />';
- Exclude checks
Variable $tplset
is undeclared Open
echo sprintf(_MD_TPLSET_INSTALLING . $tplset) . '...<br />';
- Exclude checks
Call to method template_touch
from undeclared class \icms_view_Tpl
Open
$icmsAdminTpl->template_touch($newtpl->getVar('tpl_id'));
- Exclude checks
Call to method getSavedDestination
from undeclared class \icms_file_MediaUploadHandler
Open
@unlink($uploader->getSavedDestination());
- Exclude checks
Call to method error
from undeclared class \icms_core_Message
Open
icms_core_Message::error($uploader->getErrors());
- Exclude checks
Reference to undeclared constant \_ERROR
Open
echo ' <span style="color:#ff0000;">' . _ERROR . ': ' . sprintf(_MD_TPLSET_NOT_FOUND, '<strong>' . $info['name'] . '</strong>') . '</span><br />';
- Exclude checks
Call to method handler
from undeclared class \icms
Open
$imageset_handler = icms::handler('icms_image_set');
- Exclude checks
Call to method __construct
from undeclared class \icms_view_Tpl
Open
$xoopsTpl = new icms_view_Tpl();
- Exclude checks
Variable $id
is undeclared Open
$tform = array('tpl_tplset' => $tplset, 'tpl_id' => $id, 'tpl_file' => $tplfile->getVar('tpl_file'), 'tpl_desc' => $tplfile->getVar('tpl_desc'), 'tpl_lastmodified' => $tplfile->getVar('tpl_lastmodified'), 'tpl_source' => htmlspecialchars($html, ENT_QUOTES), 'tpl_module' => $moddir);
- Exclude checks
Reference to undeclared constant \_LANGCODE
Open
. '" /><meta http-equiv="content-language" content="' . _LANGCODE
- Exclude checks
Call to method buildBlock
from undeclared class \icms_view_block_Object
Open
$xoopsTpl->assign('block', $block->buildBlock());
- Exclude checks
Call to method getSavedDestination
from undeclared class \icms_file_MediaUploadHandler
Open
$fp = @fopen($uploader->getSavedDestination(), 'r');
- Exclude checks
Call to method clear_compiled_tpl
from undeclared class \icms_view_Tpl
Open
$xoopsTpl->clear_compiled_tpl('file:' . ICMS_CACHE_PATH . '/' . $dummyfile);
- Exclude checks
Call to method confirm
from undeclared class \icms_core_Message
Open
icms_core_Message::confirm(array('tplset' => $tplset, 'moddir' => $moddir, 'file' => $file, 'op' => 'importtpl_go', 'fct' => 'tplsets'), 'admin.php', _MD_RUSUREIMPT, _MD_IMPORT);
- Exclude checks
Reference to static property security
from undeclared class \icms
Open
if (!icms::$security->check()) {
- Exclude checks
Invalid offset "sitename"
of array type array{template_set:mixed}
Open
. '" /><title>' . $icmsConfig['sitename'] . '</title>'
- Exclude checks
Variable $moddir
is undeclared Open
$tform = array('tpl_tplset' => $tplset, 'tpl_id' => $id, 'tpl_file' => $tplfile->getVar('tpl_file'), 'tpl_desc' => $tplfile->getVar('tpl_desc'), 'tpl_lastmodified' => $tplfile->getVar('tpl_lastmodified'), 'tpl_source' => htmlspecialchars($html, ENT_QUOTES), 'tpl_module' => $moddir);
- Exclude checks
Call to method getErrors
from undeclared class \icms_file_MediaUploadHandler
Open
$msg[] = $uploader->getErrors();
- Exclude checks
Call to method assign
from undeclared class \icms_view_Tpl
Open
$xoopsTpl->assign('content', $xoopsTpl->fetch('file:' . ICMS_CACHE_PATH . '/' . $dummytpl));
- Exclude checks
Call to method upload
from undeclared class \icms_file_MediaUploadHandler
Open
if (!$uploader->upload()) {
- Exclude checks
Variable $tplset
is undeclared Open
$filepath = ICMS_THEME_PATH . '/' . $tplset . '/templates/' . $tplfile->getVar('tpl_module') . '/blocks/' . $tplfile->getVar('tpl_file');
- Exclude checks
Reference to undeclared constant \_MD_AM_DBUPDATED
Open
redirect_header('admin.php?fct=tplsets&op=listtpl&moddir=' . $tplfile->getVar('tpl_module') . '&tplset=' . urlencode($tplfile->getVar('tpl_tplset')), 2, _MD_AM_DBUPDATED);
- Exclude checks
Call to method __construct
from undeclared class \icms_view_block_Object
Open
$block = new icms_view_block_Object($tplfile->getVar('tpl_refid'));
- Exclude checks
Call to method template_touch
from undeclared class \icms_view_Tpl
Open
if ($icmsAdminTpl->template_touch($tpl->getVar('tpl_id'), TRUE)) {
- Exclude checks
Variable $moddir
is undeclared Open
echo '<br /><a href="admin.php?fct=tplsets&op=listtpl&tplset=' . urlencode($tplset) . '&moddir=' . $moddir . '">' . _MD_AM_BTOTADMIN . '</a>';
- Exclude checks
Reference to static property security
from undeclared class \icms
Open
redirect_header('admin.php?fct=tplsets', 3, implode('<br />', icms::$security->getErrors()));
- Exclude checks
Call to method clear_compiled_tpl
from undeclared class \icms_view_Tpl
Open
$xoopsTpl->clear_compiled_tpl('file:' . ICMS_CACHE_PATH . '/' . $dummytpl);
- Exclude checks
Reference to undeclared constant \_ERROR
Open
echo ' <span style="color:#ff0000;">' . _ERROR . ': ' . sprintf(_MD_TPLSET_IMGSET_LINK_FAILED, '<strong>' . htmlspecialchars($tplset_name, ENT_QUOTES) . '</strong>') . '</span><br />';
- Exclude checks
Call to method display
from undeclared class \icms_form_Theme
Open
$form->display();
- Exclude checks
Variable $tplset
is undeclared Open
echo '</code><br /><a href="admin.php?fct=tplsets&op=listtpl&tplset=' . urlencode($tplset)
- Exclude checks
Variable $tplset
is undeclared Open
echo '<br /><a href="admin.php?fct=tplsets&op=listtpl&tplset=' . urlencode($tplset) . '&moddir=' . $moddir . '">' . _MD_AM_BTOTADMIN . '</a>';
- Exclude checks
Call to method handler
from undeclared class \icms
Open
$tpltpl_handler =& icms::handler('icms_view_template_file');
- Exclude checks
Similar blocks of code found in 2 locations. Consider refactoring. Open
echo '</td><td style="vertical-align: middle;">'
. '<a href="admin.php?fct=tplsets&op=edittpl&id=' . $templates[$i]->getVar('tpl_id') . '"><img src="'. ICMS_IMAGES_SET_URL . '/actions/edit.png" alt="' . _EDIT . '" title="' . _EDIT . '" /></a>'
. ' <a href="admin.php?fct=tplsets&op=downloadtpl&id=' . $templates[$i]->getVar('tpl_id') . '"><img src="'. ICMS_IMAGES_SET_URL . '/actions/filesave2.png" alt="' . _MD_DOWNLOAD . '" title="' . _MD_DOWNLOAD . '" /></a>'
. ' <a href="admin.php?fct=tplsets&op=deletetpl&id=' . $templates[$i]->getVar('tpl_id') . '"><img src="'. ICMS_IMAGES_SET_URL . '/actions/editdelete.png" alt="' . _DELETE . '" title="' . _DELETE . '" /></a>'
. '</td><td style="vertical-align: middle;" align="' . _GLOBAL_RIGHT . '"><input type="file" name="' . $filename . '" id="' . $filename . '" />'
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 241.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 2 locations. Consider refactoring. Open
echo '</td><td style="vertical-align: middle;">'
. '<a href="admin.php?fct=tplsets&op=edittpl&id=' . $btemplates[$j]->getVar('tpl_id') . '"><img src="'. ICMS_IMAGES_SET_URL . '/actions/edit.png" alt="' . _EDIT . '" title="' . _EDIT . '" /></a>'
. ' <a href="admin.php?fct=tplsets&op=downloadtpl&id=' . $btemplates[$j]->getVar('tpl_id') . '"><img src="'. ICMS_IMAGES_SET_URL . '/actions/filesave2.png" alt="' . _MD_DOWNLOAD . '" title="' . _MD_DOWNLOAD . '" /></a>'
. ' <a href="admin.php?fct=tplsets&op=deletetpl&id=' . $btemplates[$j]->getVar('tpl_id') . '"><img src="'. ICMS_IMAGES_SET_URL . '/actions/editdelete.png" alt="' . _DELETE . '" title="' . _DELETE . '" /></a>'
. '</td><td style="vertical-align: middle;" align="' . _GLOBAL_RIGHT . '"><input type="file" name="' . $filename . '" id="' . $filename . '" />'
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 241.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 2 locations. Consider refactoring. Open
if (file_exists($physical_file)) {
$mtime = filemtime($physical_file);
if ($last_imported < $mtime) {
if ($mtime > $last_modified) {
$bg = '#ff9999';
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 150.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 2 locations. Consider refactoring. Open
if (file_exists($physical_file)) {
$mtime = filemtime($physical_file);
if ($last_imported < $mtime) {
if ($mtime > $last_modified) {
$bg = '#ff9999';
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 150.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 2 locations. Consider refactoring. Open
if ($tplset != 'default') {
$physical_file = ICMS_THEME_PATH . '/' . $tplset . '/templates/' . $moddir . '/' . $filename;
if (file_exists($physical_file)) {
$mtime = filemtime($physical_file);
if ($last_imported < $mtime) {
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 108.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 2 locations. Consider refactoring. Open
if ($tplset != 'default') {
if (file_exists($physical_file)) {
$mtime = filemtime($physical_file);
if ($last_imported < $mtime) {
if ($mtime > $last_modified) {
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 108.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 2 locations. Consider refactoring. Open
if ($files[$i]->getVar('tpl_type') == 'block') {
$path = $tplset . '/templates/' . $files[$i]->getVar('tpl_module') . '/blocks/' . $files[$i]->getVar('tpl_file');
$xml .= "\r\n <template name=\"" . $files[$i]->getVar('tpl_file') . "\">\r\n <module>" . $files[$i]->getVar('tpl_module') . "</module>\r\n <type>block</type>\r\n <lastModified>" . $files[$i]->getVar('tpl_lastmodified') . "</lastModified>\r\n </template>";
} elseif ($files[$i]->getVar('tpl_type') == 'module') {
$path = $tplset . '/templates/' . $files[$i]->getVar('tpl_module') . '/' . $files[$i]->getVar('tpl_file');
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 105.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 2 locations. Consider refactoring. Open
} elseif ($files[$i]->getVar('tpl_type') == 'module') {
$path = $tplset . '/templates/' . $files[$i]->getVar('tpl_module') . '/' . $files[$i]->getVar('tpl_file');
$xml .= "\r\n <template name=\"" . $files[$i]->getVar('tpl_file') . "\">\r\n <module>" . $files[$i]->getVar('tpl_module') . "</module>\r\n <type>module</type>\r\n <lastModified>" . $files[$i]->getVar('tpl_lastmodified') . "</lastModified>\r\n </template>";
}
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 105.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" Open
if ($tcount == 1) icms_core_Message::warning(_MD_TPLSET_CREATE_OWN, "", TRUE);
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" Open
$tplfile =& $tpltpl_handler->get($id, TRUE);
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" Open
$default =& $tpltpl_handler->find('default', 'block', NULL, trim($infoarr[2]), trim($infoarr[4]));
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" Open
$tplfile =& $tpltpl_handler->find('default', NULL, NULL, $moddir, $upload_file);
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" Open
$form = new icms_form_Theme(_MD_UPLOADTAR, 'tplupload_form', 'admin.php', 'post', TRUE);
- Exclude checks
Blank line found at start of control structure Open
if (count($defaulttpl) > 0) {
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" Open
$form = new icms_form_Theme(_MD_CLONETHEME, 'template_form', 'admin.php', 'post', TRUE);
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" Open
$templates =& $tpltpl_handler->getObjects(new icms_db_criteria_Item('tpl_tplset', $tplset), TRUE);
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" Open
$tpl->setVar('tpl_source', $fsource, TRUE);
- Exclude checks
Blank line found at end of control structure Open
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" Open
$tplfiles =& $tpltpl_handler->find('default', 'module', NULL, $moddir, NULL, TRUE);
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" Open
$tplfiles =& $tpltpl_handler->find('default', 'block', NULL, $moddir, NULL, TRUE);
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" Open
$error = TRUE;
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" Open
$icmsAdminTpl->template_touch($defaulttpl[0]->getVar('tpl_id'), TRUE);
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE" Open
if (FALSE !== extension_loaded('zlib')) {
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE" Open
$clean_POST = icms_core_DataFilter::checkVarArray($_POST, $filter_post, FALSE);
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" Open
$tplfiles =& $tpltpl_handler->find('default', 'module', NULL, $moddir, NULL, TRUE);
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" Open
$tplfiles =& $tpltpl_handler->find('default', 'block', NULL, $moddir, NULL, TRUE);
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" Open
$default =& $tpltpl_handler->find('default', 'module', NULL, trim($infoarr[2]), trim($infoarr[3]));
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE" Open
$err = implode('<br />', $uploader->getErrors(FALSE));
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" Open
$tplfile =& $tpltpl_handler->get($id, TRUE);
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" Open
$tplfiles =& $tpltpl_handler->find('default', NULL, NULL, NULL, trim($file), TRUE);
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" Open
$css =& $tpltpl_handler->find($icmsConfig['template_set'], 'css', 0, NULL, NULL, TRUE);
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" Open
$tplfile->setVar('tpl_source', $filesource, TRUE);
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" Open
$tplfiles =& $tpltpl_handler->find('default', NULL, NULL, NULL, trim($file), TRUE);
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" Open
$css =& $tpltpl_handler->find($icmsConfig['template_set'], 'css', 0, NULL, NULL, TRUE);
- Exclude checks
Blank line found at start of control structure Open
if ($tplfile->getVar('tpl_type') == 'block') {
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" Open
if ($icmsAdminTpl->template_touch($tpl->getVar('tpl_id'), TRUE)) {
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" Open
$tplfiles =& $tpltpl_handler->find('default', NULL, NULL, NULL, trim($file), TRUE);
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE" Open
$clean_GET = icms_core_DataFilter::checkVarArray($_GET, $filter_get, FALSE);
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" Open
$templates =& $tpltpl_handler->find($tplset, 'module', NULL, $moddir);
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" Open
$tplfile =& $tpltpl_handler->get($id, TRUE);
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" Open
$form->addElement(new icms_form_elements_Text(_MD_NEWNAME, 'newtheme', 30, 50), TRUE);
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" Open
$tplfile =& $tpltpl_handler->find('default', NULL, NULL, $moddir, $upload_file);
- Exclude checks
Blank line found at start of control structure Open
if ($tplset == $icmsConfig['template_set']) {
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" Open
$tplfile =& $tpltpl_handler->get($id, TRUE);
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE" Open
if (FALSE !== $fp = fopen($filepath, 'r')) {
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE" Open
$error = FALSE;
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" Open
$defaulttpl =& $tpltpl_handler->find('default', $tplfile->getVar('tpl_type'), $tplfile->getVar('tpl_refid'), NULL, $tplfile->getVar('tpl_file'));
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" Open
$default =& $tpltpl_handler->find('default', 'module', NULL, trim($infoarr[2]), $file);
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" Open
$files =& $tpltpl_handler->getObjects(new icms_db_criteria_Item('tpl_tplset', $tplset), TRUE);
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" Open
$tplfile =& $tpltpl_handler->find('default', $type, NULL, $moddir, $file, TRUE);
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE" Open
if (strrpos($info["name"], "tplset.xml") === FALSE) {
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" Open
$tplfiles =& $tpltpl_handler->find('default', NULL, NULL, NULL, trim($file), TRUE);
- Exclude checks
Blank line found at start of control structure Open
if ($tplset == $icmsConfig['template_set']) {
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" Open
$tplfiles =& $tpltpl_handler->find('default', 'block', NULL, $moddir, NULL, TRUE);
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" Open
echo $downloader->download($tplset, TRUE);
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" Open
$newtpl->setVar('tpl_source', $info['file'], TRUE);
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE" Open
$themefound = FALSE;
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" Open
$tplfiles =& $tpltpl_handler->find('default', 'module', NULL, $moddir, NULL, TRUE);
- Exclude checks
Blank line found at start of control structure Open
if ($tplset == $icmsConfig['template_set']) {
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" Open
$default =& $tpltpl_handler->find('default', $tplfile->getVar('tpl_type'), $tplfile->getVar('tpl_refid'), NULL, $tplfile->getVar('tpl_file'));
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" Open
$tpl =& $tpltpl_handler->get( (int) ($id), TRUE);
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" Open
$tplfile =& $tpltpl_handler->find('default', $type, NULL, $moddir, $file, TRUE);
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" Open
$btemplates =& $tpltpl_handler->find($tplset, 'block', NULL, $moddir);
- Exclude checks
Blank line found at start of control structure Open
if ($tplset == $icmsConfig['template_set']) {
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" Open
$css =& $tpltpl_handler->find($icmsConfig['template_set'], 'css', 0, NULL, NULL, TRUE);
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE" Open
if (FALSE !== $error) {
- Exclude checks
Only one argument is allowed per line in a multi-line function call Open
$uploader = new icms_file_MediaUploadHandler(ICMS_UPLOAD_PATH, array(
- Exclude checks
Inline control structures are not allowed Open
if ($op == '') $op = 'list';
- Exclude checks
Inline control structures are not allowed Open
if (isset($_GET['filter_post'])) unset ($_GET['filter_post']);
- Exclude checks
Inline control structures are not allowed Open
if ($tcount == 1) icms_core_Message::warning(_MD_TPLSET_CREATE_OWN, "", TRUE);
- Exclude checks
No space found after comma in function call Open
} elseif (preg_match('/[' . preg_quote('\/:*?"<>|','/') . ']/', $tplset_name)) {
- Exclude checks
Opening parenthesis of a multi-line function call must be the last content on the line Open
$uploader = new icms_file_MediaUploadHandler(ICMS_UPLOAD_PATH, array(
- Exclude checks
Line indented incorrectly; expected 3 tabs, found 5 Open
if (!$uploader->upload()) {
- Exclude checks
Multi-line function call not indented correctly; expected 8 spaces but found 12 Open
1000000);
- Exclude checks
Closing parenthesis of a multi-line function call must be on a line by itself Open
1000000);
- Exclude checks
Space after opening parenthesis of function call prohibited Open
$tpl =& $tpltpl_handler->get( (int) ($id), TRUE);
- Exclude checks
No space found after comma in function call Open
. _ERROR . ': ' . sprintf(_MD_TPLSET_BLOCK_INSERT_FAILED,'<strong>' . $tplfiles[$i]->getVar('tpl_file') . '</strong>')
- Exclude checks
Closing brace indented incorrectly; expected 20 spaces, found 12 Open
} else {
- Exclude checks
Expected 1 space after ELSEIF keyword; 2 found Open
} elseif (preg_match('/[' . preg_quote('\/:*?"<>|','/') . ']/', $tplset_name)) {
- Exclude checks
Space before opening parenthesis of function call prohibited Open
if (isset($_GET['filter_post'])) unset ($_GET['filter_post']);
- Exclude checks
Unexpected trailing spaces found. Open
- Exclude checks
Unexpected trailing spaces found. Open
- Exclude checks
Unexpected trailing spaces found. Open
- Exclude checks