ImpressCMS/impresscms

View on GitHub
htdocs/misc.php

Summary

Maintainability
A
3 hrs
Test Coverage

File misc.php has 260 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
// $Id: misc.php 12399 2014-01-25 17:02:01Z skenow $
//  ------------------------------------------------------------------------ //
//                XOOPS - PHP Content Management System                      //
//                    Copyright (c) 2000 XOOPS.org                           //
Severity: Minor
Found in htdocs/misc.php - About 2 hrs to fix

    Consider simplifying this complex logical expression.
    Open

                        if (!isset($yname) || trim($yname) == '' || $ymail == ''
                            || !isset($fname) || trim($fname) == ''
                            || !isset($fmail) || trim($fmail) == '') {
                            redirect_header(ICMS_URL.'/misc.php?action=showpopups&amp;type=friend&amp;op=sendform',2,_MSC_NEEDINFO);
                        }
    Severity: Major
    Found in htdocs/misc.php - About 1 hr to fix

      Call to method getSmileys from undeclared class \icms_core_DataFilter
      Open

                      $smiles = icms_core_DataFilter::getSmileys(1);
      Severity: Critical
      Found in htdocs/misc.php by phan

      Call to method stripSlashesGPC from undeclared class \icms_core_DataFilter
      Open

                          $fname = icms_core_DataFilter::stripSlashesGPC(trim($_POST['fname']));
      Severity: Critical
      Found in htdocs/misc.php by phan

      Call to method setTemplate from undeclared class \icms_messaging_Handler
      Open

                          $xoopsMailer->setTemplate('tellfriend.tpl');
      Severity: Critical
      Found in htdocs/misc.php by phan

      Invalid offset "anonymous" of array type array{startpage:,template_set:mixed}
      Open

                              echo '<td>&nbsp;</td><td>'.$icmsConfig['anonymous'];
      Severity: Minor
      Found in htdocs/misc.php by phan

      Reference to undeclared constant \_MSC_ENTERYNAME
      Open

                                  alert("<?php echo _MSC_ENTERYNAME;?>");
      Severity: Minor
      Found in htdocs/misc.php by phan

      Reference to undeclared constant \_IMAGE
      Open

                      <tr class="head"><td>'._MSC_CODE.'</td><td>'._MSC_EMOTION.'</td><td>'._IMAGE.'</td></tr>';
      Severity: Minor
      Found in htdocs/misc.php by phan

      Call to method __construct from undeclared class \icms_db_criteria_Item
      Open

                      $modules =& $module_handler->getList(new icms_db_criteria_Item('isactive', 1));
      Severity: Critical
      Found in htdocs/misc.php by phan

      Call to method getVar from undeclared class \icms_member_user_Object
      Open

                              $avatar = $onlineUsers[$i]['user']->getVar('user_avatar')
      Severity: Critical
      Found in htdocs/misc.php by phan

      Variable $target is undeclared
      Open

                      var currentMessage = window.opener.xoopsGetElementById(\"".$target."\").value;
      Severity: Minor
      Found in htdocs/misc.php by phan

      Reference to undeclared constant \_MSC_EMOTION
      Open

                      <tr class="head"><td>'._MSC_CODE.'</td><td>'._MSC_EMOTION.'</td><td>'._IMAGE.'</td></tr>';
      Severity: Minor
      Found in htdocs/misc.php by phan

      Call to method handler from undeclared class \icms
      Open

                      $avatar_handler = icms::handler('icms_data_avatar');
      Severity: Critical
      Found in htdocs/misc.php by phan

      Reference to undeclared constant \_MSC_FRIENDNAMEC
      Open

                              <tr><td class='head'>"._MSC_FRIENDNAMEC."</td>
      Severity: Minor
      Found in htdocs/misc.php by phan

      Call to method assign from undeclared class \icms_messaging_Handler
      Open

                          $xoopsMailer->assign('SITEURL', ICMS_URL.'/');
      Severity: Critical
      Found in htdocs/misc.php by phan

      Call to method __construct from undeclared class \icms_db_criteria_Compo
      Open

                      $criteria = new icms_db_criteria_Compo();
      Severity: Critical
      Found in htdocs/misc.php by phan

      Call to method handler from undeclared class \icms
      Open

                      $module_handler = icms::handler('icms_module');
      Severity: Critical
      Found in htdocs/misc.php by phan

      Call to method __construct from undeclared class \icms_member_user_Object
      Open

                              $onlineUsers[$i]['user'] = new icms_member_user_Object($onlines[$i]['online_uid']);
      Severity: Critical
      Found in htdocs/misc.php by phan

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

                              $onlineUsers[$i]['user'] = new icms_member_user_Object($onlines[$i]['online_uid']);
      Severity: Info
      Found in htdocs/misc.php by phan

      Reference to undeclared constant \_MSC_RECOMMENDSITE
      Open

                          echo '<form action="'.ICMS_URL.'/misc.php" method="post" onsubmit="return checkForm();"><table  width="100%" class="outer" cellspacing="1"><tr><th colspan="2">'._MSC_RECOMMENDSITE.'</th></tr>';
      Severity: Minor
      Found in htdocs/misc.php by phan

      Reference to undeclared constant \_MSC_SMILIES
      Open

                      <tr><th colspan="3">'._MSC_SMILIES.'</th></tr>
      Severity: Minor
      Found in htdocs/misc.php by phan

      Call to method stripSlashesGPC from undeclared class \icms_core_DataFilter
      Open

                              $ymail = isset($ymail) ? icms_core_DataFilter::stripSlashesGPC(trim($ymail)) : '';
      Severity: Critical
      Found in htdocs/misc.php by phan

      Call to method stripSlashesGPC from undeclared class \icms_core_DataFilter
      Open

                          $yname = icms_core_DataFilter::stripSlashesGPC(trim($_POST['yname']));
      Severity: Critical
      Found in htdocs/misc.php by phan

      Invalid offset "sitename" of array type array{startpage:,template_set:mixed}
      Open

                          $xoopsMailer->setSubject(sprintf(_MSC_INTSITE,$icmsConfig['sitename']));
      Severity: Minor
      Found in htdocs/misc.php by phan

      Argument 2 (vars) is null but \sprintf() takes float|int|string
      Open

                          $xoopsMailer->setSubject(sprintf(_MSC_INTSITE,$icmsConfig['sitename']));
      Severity: Minor
      Found in htdocs/misc.php by phan

      Call to method __construct from undeclared class \icms_messaging_Handler
      Open

                          $xoopsMailer = new icms_messaging_Handler();
      Severity: Critical
      Found in htdocs/misc.php by phan

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

                              $onlineUsers[$i]['user'] = '';
      Severity: Info
      Found in htdocs/misc.php by phan

      Suspicious type null of a variable or expression used to build a string. (Expected type to be able to cast to a string)
      Open

                              echo '<td>&nbsp;</td><td>'.$icmsConfig['anonymous'];
      Severity: Minor
      Found in htdocs/misc.php by phan

      Call to method getVar from undeclared class \icms_member_user_Object
      Open

                                  . $onlineUsers[$i]['user']->getVar('uname')."</a>";
      Severity: Critical
      Found in htdocs/misc.php by phan

      Reference to static property user from undeclared class \icms
      Open

                          if (icms::$user->isAdmin()) {
      Severity: Critical
      Found in htdocs/misc.php by phan

      Reference to static property user from undeclared class \icms
      Open

                          echo sprintf(_US_LOGGINGU, icms::$user->getVar('uname'));
      Severity: Critical
      Found in htdocs/misc.php by phan

      Reference to static property user from undeclared class \icms
      Open

                              $ymail = icms::$user->getVar('email', 'e');
      Severity: Critical
      Found in htdocs/misc.php by phan

      Reference to undeclared constant \_MSC_INTSITE
      Open

                          $xoopsMailer->setSubject(sprintf(_MSC_INTSITE,$icmsConfig['sitename']));
      Severity: Minor
      Found in htdocs/misc.php by phan

      Call to method getVar from undeclared class \icms_member_user_Object
      Open

                                  . $onlineUsers[$i]['user']->getVar('uid')."';window.close();\">"
      Severity: Critical
      Found in htdocs/misc.php by phan

      Reference to undeclared constant \_MSC_ENTERFMAIL
      Open

                                  alert("<?php echo _MSC_ENTERFMAIL;?>");
      Severity: Minor
      Found in htdocs/misc.php by phan

      Call to method checkVarArray from undeclared class \icms_core_DataFilter
      Open

          $clean_GET = icms_core_DataFilter::checkVarArray($_GET, $filter_get, FALSE);
      Severity: Critical
      Found in htdocs/misc.php by phan

      Reference to undeclared constant \_MSC_CODE
      Open

                      <tr class="head"><td>'._MSC_CODE.'</td><td>'._MSC_EMOTION.'</td><td>'._IMAGE.'</td></tr>';
      Severity: Minor
      Found in htdocs/misc.php by phan

      Reference to static property user from undeclared class \icms
      Open

                          if (icms::$user) {
      Severity: Critical
      Found in htdocs/misc.php by phan

      Call to method assign from undeclared class \icms_messaging_Handler
      Open

                          $xoopsMailer->assign('YOUR_NAME', $yname);
      Severity: Critical
      Found in htdocs/misc.php by phan

      Call to method setToEmails from undeclared class \icms_messaging_Handler
      Open

                          $xoopsMailer->setToEmails($fmail);
      Severity: Critical
      Found in htdocs/misc.php by phan

      Reference to undeclared constant \_MSC_YOURNAMEC
      Open

                          echo _MSC_YOURNAMEC."</td>
      Severity: Minor
      Found in htdocs/misc.php by phan

      Reference to undeclared constant \_MSC_YOUREMAILC
      Open

                              <tr><td class='head'>"._MSC_YOUREMAILC."</td><td class='odd'>
      Severity: Minor
      Found in htdocs/misc.php by phan

      Variable $target is undeclared
      Open

                      window.opener.xoopsGetElementById(\"".$target."\").value=currentMessage+addSmilie;
      Severity: Minor
      Found in htdocs/misc.php by phan

      Call to method setFromEmail from undeclared class \icms_messaging_Handler
      Open

                          $xoopsMailer->setFromEmail($ymail);
      Severity: Critical
      Found in htdocs/misc.php by phan

      Reference to static property user from undeclared class \icms
      Open

                              $yname = icms::$user->getVar('uname', 'e');
      Severity: Critical
      Found in htdocs/misc.php by phan

      Reference to static property user from undeclared class \icms
      Open

                              $ymail = icms::$user->getVar('email');
      Severity: Critical
      Found in htdocs/misc.php by phan

      Call to method setSubject from undeclared class \icms_messaging_Handler
      Open

                          $xoopsMailer->setSubject(sprintf(_MSC_INTSITE,$icmsConfig['sitename']));
      Severity: Critical
      Found in htdocs/misc.php by phan

      Reference to undeclared constant \_MSC_INVALIDEMAIL1
      Open

                              $errormessage = _MSC_INVALIDEMAIL1.'<br />'._MSC_INVALIDEMAIL2.'';
      Severity: Minor
      Found in htdocs/misc.php by phan

      Call to method setStart from undeclared class \icms_db_criteria_Compo
      Open

                      $criteria->setStart($start);
      Severity: Critical
      Found in htdocs/misc.php by phan

      Reference to undeclared constant \_MSC_INVALIDEMAIL2
      Open

                              $errormessage = _MSC_INVALIDEMAIL1.'<br />'._MSC_INVALIDEMAIL2.'';
      Severity: Minor
      Found in htdocs/misc.php by phan

      Call to method getVar from undeclared class \icms_member_user_Object
      Open

                                  ? '<img src="'.ICMS_UPLOAD_URL.'/'.$onlineUsers[$i]['user']->getVar('user_avatar').'" alt="" />' : '&nbsp;';
      Severity: Critical
      Found in htdocs/misc.php by phan

      Invalid offset "sitename" of array type array{startpage:,template_set:mixed}
      Open

                          $xoopsMailer->assign('SITENAME', $icmsConfig['sitename']);
      Severity: Minor
      Found in htdocs/misc.php by phan

      Reference to undeclared constant \_CLOSE
      Open

                              <input class="formButton" value="'._CLOSE.'" type="button" onclick="window.opener.location.reload();window.close();" />
      Severity: Minor
      Found in htdocs/misc.php by phan

      Reference to undeclared constant \_MSC_REFERENCESENT
      Open

                          else {echo '<div><h4>'._MSC_REFERENCESENT.'</h4></div>';}
      Severity: Minor
      Found in htdocs/misc.php by phan

      Invalid offset "use_ssl" of array type array{startpage:,template_set:mixed}
      Open

                      if ($icmsConfig['use_ssl'] && isset($_POST[$icmsConfig['sslpost_name']]) && is_object(icms::$user)) {
      Severity: Minor
      Found in htdocs/misc.php by phan

      Reference to undeclared constant \_MSC_AVAVATARS
      Open

                  <h4><?php echo _MSC_AVAVATARS;?></h4>
      Severity: Minor
      Found in htdocs/misc.php by phan

      Reference to static property user from undeclared class \icms
      Open

                          if (icms::$user) {
      Severity: Critical
      Found in htdocs/misc.php by phan

      Reference to undeclared constant \_MSC_FRIENDEMAILC
      Open

                              <tr><td class='head'>"._MSC_FRIENDEMAILC."</td>
      Severity: Minor
      Found in htdocs/misc.php by phan

      Call to method send from undeclared class \icms_messaging_Handler
      Open

                          if (!$xoopsMailer->send()) {echo $xoopsMailer->getErrors();}
      Severity: Critical
      Found in htdocs/misc.php by phan

      Reference to static property user from undeclared class \icms
      Open

                      if ($icmsConfig['use_ssl'] && isset($_POST[$icmsConfig['sslpost_name']]) && is_object(icms::$user)) {
      Severity: Critical
      Found in htdocs/misc.php by phan

      Call to method stripSlashesGPC from undeclared class \icms_core_DataFilter
      Open

                          $fmail = icms_core_DataFilter::stripSlashesGPC(trim($_POST['fmail']));
      Severity: Critical
      Found in htdocs/misc.php by phan

      Call to method assign from undeclared class \icms_messaging_Handler
      Open

                          $xoopsMailer->assign('ADMINMAIL', $icmsConfig['adminmail']);
      Severity: Critical
      Found in htdocs/misc.php by phan

      Call to method assign from undeclared class \icms_messaging_Handler
      Open

                          $xoopsMailer->assign('SITENAME', $icmsConfig['sitename']);
      Severity: Critical
      Found in htdocs/misc.php by phan

      Call to method assign from undeclared class \icms_messaging_Handler
      Open

                          $xoopsMailer->assign('FRIEND_NAME', $fname);
      Severity: Critical
      Found in htdocs/misc.php by phan

      Call to method setLimit from undeclared class \icms_db_criteria_Compo
      Open

                      $criteria->setLimit($limit);
      Severity: Critical
      Found in htdocs/misc.php by phan

      Call to method renderNav from undeclared class \icms_view_PageNav
      Open

                          echo '<div style="text-align: right;">'.$nav->renderNav().'</div>';
      Severity: Critical
      Found in htdocs/misc.php by phan

      Invalid offset "sslpost_name" of array type array{startpage:,template_set:mixed}
      Open

                      if ($icmsConfig['use_ssl'] && isset($_POST[$icmsConfig['sslpost_name']]) && is_object(icms::$user)) {
      Severity: Minor
      Found in htdocs/misc.php by phan

      Call to method checkVarArray from undeclared class \icms_core_DataFilter
      Open

          $clean_POST = icms_core_DataFilter::checkVarArray($_POST, $filter_post, FALSE);
      Severity: Critical
      Found in htdocs/misc.php by phan

      Reference to undeclared constant \_MSC_CLICKASMILIE
      Open

                      echo '</table>'._MSC_CLICKASMILIE;
      Severity: Minor
      Found in htdocs/misc.php by phan

      Reference to static property security from undeclared class \icms
      Open

                          echo "<div class='errorMsg'>".implode('<br />', icms::$security->getErrors())."</div>";
      Severity: Critical
      Found in htdocs/misc.php by phan

      Reference to undeclared constant \_SELECT
      Open

                              <input name="myimage" type="button" value="'._SELECT.'" onclick="myimage_onclick('.$counter.')" />
      Severity: Minor
      Found in htdocs/misc.php by phan

      Reference to undeclared constant \_MSC_NEEDINFO
      Open

                              redirect_header(ICMS_URL.'/misc.php?action=showpopups&amp;type=friend&amp;op=sendform',2,_MSC_NEEDINFO);
      Severity: Minor
      Found in htdocs/misc.php by phan

      Reference to static property security from undeclared class \icms
      Open

                      if (!icms::$security->check() || !isset($op) || $op == 'sendform') {
      Severity: Critical
      Found in htdocs/misc.php by phan

      Call to method checkVar from undeclared class \icms_core_DataFilter
      Open

                          if (!icms_core_DataFilter::checkVar($fmail, 'email') || !icms_core_DataFilter::checkVar($ymail, 'email') || preg_match('/[\\0-\\31]/', $yname)) {
      Severity: Critical
      Found in htdocs/misc.php by phan

      Reference to static property security from undeclared class \icms
      Open

                              . icms::$security->getTokenHTML()."</td></tr>
      Severity: Critical
      Found in htdocs/misc.php by phan

      Call to method setFromName from undeclared class \icms_messaging_Handler
      Open

                          $xoopsMailer->setFromName($yname);
      Severity: Critical
      Found in htdocs/misc.php by phan

      Call to method handler from undeclared class \icms
      Open

                      $online_handler = icms::handler('icms_core_Online');
      Severity: Critical
      Found in htdocs/misc.php by phan

      Call to method getErrors from undeclared class \icms_messaging_Handler
      Open

                          if (!$xoopsMailer->send()) {echo $xoopsMailer->getErrors();}
      Severity: Critical
      Found in htdocs/misc.php by phan

      Call to method __construct from undeclared class \icms_view_PageNav
      Open

                          $nav = new icms_view_PageNav($online_total, 20, $start, 'start', 'action=showpopups&amp;type=online');
      Severity: Critical
      Found in htdocs/misc.php by phan

      Reference to undeclared constant \_US_LOGGINGU
      Open

                          echo sprintf(_US_LOGGINGU, icms::$user->getVar('uname'));
      Severity: Minor
      Found in htdocs/misc.php by phan

      Reference to undeclared constant \_SEND
      Open

                              <input type='submit' value='"._SEND."' />&nbsp;
      Severity: Minor
      Found in htdocs/misc.php by phan

      Invalid offset "adminmail" of array type array{startpage:,template_set:mixed}
      Open

                          $xoopsMailer->assign('ADMINMAIL', $icmsConfig['adminmail']);
      Severity: Minor
      Found in htdocs/misc.php by phan

      Reference to undeclared constant \_CLOSE
      Open

                              <input class="formButton" value="'._CLOSE.'" type="button" onclick="javascript:window.close();" />
      Severity: Minor
      Found in htdocs/misc.php by phan

      Reference to undeclared constant \_MSC_ENTERFNAME
      Open

                                  alert("<?php echo _MSC_ENTERFNAME;?>");
      Severity: Minor
      Found in htdocs/misc.php by phan

      Variable $target is undeclared
      Open

                  if ($target == '' || !preg_match('/^[0-9a-z_]*$/i', $target)) {} else {
      Severity: Minor
      Found in htdocs/misc.php by phan

      Reference to undeclared constant \_CLOSE
      Open

                              <input value='"._CLOSE."' type='button' onclick='javascript:window.close();' />"
      Severity: Minor
      Found in htdocs/misc.php by phan

      Reference to undeclared constant \_WHOSONLINE
      Open

                      echo '<table  width="100%" cellspacing="1" class="outer"><tr><th colspan="3">'._WHOSONLINE.'</th></tr>';
      Severity: Minor
      Found in htdocs/misc.php by phan

      Terminating statement must be indented to the same level as the CASE body
      Open

                      break;
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
      Open

          $clean_GET = icms_core_DataFilter::checkVarArray($_GET, $filter_get, FALSE);
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
      Open

          $clean_POST = icms_core_DataFilter::checkVarArray($_POST, $filter_post, FALSE);
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Terminating statement must be indented to the same level as the CASE body
      Open

                      break;
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Terminating statement must be indented to the same level as the CASE body
      Open

                      break;
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Terminating statement must be indented to the same level as the CASE body
      Open

                      break;
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Terminating statement must be indented to the same level as the CASE body
      Open

                      break;
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Inline control structures are not allowed
      Open

          if (isset($_GET['filter_post'])) unset ($_GET['filter_post']);
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Line indented incorrectly; expected 4 tabs, found 5
      Open

                          }
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Line indented incorrectly; expected 4 tabs, found 5
      Open

                          }
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Closing brace indented incorrectly; expected 0 spaces, found 12
      Open

                  }
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Expected 1 space after closing brace; newline found
      Open

                      }
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Newline required after opening brace
      Open

                          if (!$xoopsMailer->send()) {echo $xoopsMailer->getErrors();}
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Line indented incorrectly; expected 3 tabs, found 4
      Open

                      for ($i = 0; $i < $count; $i++) {
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Line indented incorrectly; expected 4 tabs, found 5
      Open

                          if (is_object($onlineUsers[$i]['user'])) {
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Expected 1 space after closing parenthesis; found 5
      Open

          switch($type)
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Line indented incorrectly; expected 4 tabs, found 5
      Open

                          } else {
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Line indented incorrectly; expected 4 tabs, found 5
      Open

                          }
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Line indented incorrectly; expected 4 tabs, found 5
      Open

                          }
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Line indented incorrectly; expected 4 tabs, found 5
      Open

                          } else {
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Line indented incorrectly; expected 4 tabs, found 5
      Open

                          if (!icms_core_DataFilter::checkVar($fmail, 'email') || !icms_core_DataFilter::checkVar($ymail, 'email') || preg_match('/[\\0-\\31]/', $yname)) {
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Line indented incorrectly; expected 1 tabs, found 4
      Open

                      }
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Line indented incorrectly; expected 0 tabs, found 3
      Open

                  }
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Line indented incorrectly; expected 0 tabs, found 3
      Open

                  }
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Newline required after opening brace
      Open

                      else {echo 'Could not retrieve data from the database.';}
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Line indented incorrectly; expected 2 tabs, found 3
      Open

                  case 'friend':
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Line indented incorrectly; expected 4 tabs, found 5
      Open

                          if (icms::$user) {
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Line indented incorrectly; expected 4 tabs, found 5
      Open

                          if (!$xoopsMailer->send()) {echo $xoopsMailer->getErrors();}
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Expected 1 space after closing brace; newline found
      Open

                          if (!$xoopsMailer->send()) {echo $xoopsMailer->getErrors();}
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Closing brace must be on a line by itself
      Open

                          else {echo '<div><h4>'._MSC_REFERENCESENT.'</h4></div>';}
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Line indented incorrectly; expected 3 tabs, found 4
      Open

                      }
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Line indented incorrectly; expected 3 tabs, found 4
      Open

                      }
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      No space found after comma in function call
      Open

                              redirect_header(ICMS_URL.'/misc.php?action=showpopups&amp;type=friend&amp;op=sendform',2,_MSC_NEEDINFO);
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      No space found after comma in function call
      Open

                              redirect_header(ICMS_URL.'/misc.php?action=showpopups&amp;type=friend&amp;op=sendform',2,$errormessage);
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Line indented incorrectly; expected 2 tabs, found 3
      Open

                  case 'ssllogin':
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Expected 1 space after closing parenthesis; found 21
      Open

                          for ($i = 0; $i < $count; $i++)
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Line indented incorrectly; expected 4 tabs, found 5
      Open

                          if (!isset($yname) || trim($yname) == '' || $ymail == ''
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      No space found after comma in function call
      Open

                          $xoopsMailer->setSubject(sprintf(_MSC_INTSITE,$icmsConfig['sitename']));
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Expected 1 space after SWITCH keyword; 0 found
      Open

          switch($type)
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Line indented incorrectly; expected 2 tabs, found 3
      Open

                  default:
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Line indented incorrectly; expected 1 tabs, found 4
      Open

                      if ($closebutton) {
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Line indented incorrectly; expected 4 tabs, found 5
      Open

                          if (icms::$user) {
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Line indented incorrectly; expected 4 tabs, found 5
      Open

                          } else {
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Line indented incorrectly; expected 2 tabs, found 3
      Open

                  case 'online':
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Line indented incorrectly; expected 3 tabs, found 4
      Open

                      if ($icmsConfig['use_ssl'] && isset($_POST[$icmsConfig['sslpost_name']]) && is_object(icms::$user)) {
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Line indented incorrectly; expected 3 tabs, found 4
      Open

                      } elseif ($op == 'sendsite') {
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Line indented incorrectly; expected 4 tabs, found 5
      Open

                          }
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Closing brace must be on a line by itself
      Open

                          if (!$xoopsMailer->send()) {echo $xoopsMailer->getErrors();}
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Line indented incorrectly; expected 4 tabs, found 5
      Open

                          if (icms::$user->isAdmin()) {
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Line indented incorrectly; expected 4 tabs, found 5
      Open

                          }
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Closing brace indented incorrectly; expected 4 spaces, found 16
      Open

                      }
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Line indented incorrectly; expected 3 tabs, found 4
      Open

                      if (!icms::$security->check() || !isset($op) || $op == 'sendform') {
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Line indented incorrectly; expected 3 tabs, found 4
      Open

                      }
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Line indented incorrectly; expected 4 tabs, found 5
      Open

                          } else {
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Expected 1 space after closing parenthesis; found 17
      Open

                      if ($count > 0)
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Expected 1 space after closing parenthesis; found 17
      Open

                      foreach ($avatarslist as $file => $name)
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Newline required after opening brace
      Open

                          else {echo '<div><h4>'._MSC_REFERENCESENT.'</h4></div>';}
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Line indented incorrectly; expected 3 tabs, found 4
      Open

                      }
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Line indented incorrectly; expected 0 tabs, found 3
      Open

                  function printCheckForm() {
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Space before opening parenthesis of function call prohibited
      Open

          if (isset($_GET['filter_post'])) unset ($_GET['filter_post']);
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Newline required after opening brace
      Open

                  if ($target == '' || !preg_match('/^[0-9a-z_]*$/i', $target)) {} else {
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      No space found after comma in function call
      Open

                              redirect_header(ICMS_URL.'/misc.php?action=showpopups&amp;type=friend&amp;op=sendform',2,$errormessage);
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Line indented incorrectly; expected 4 tabs, found 5
      Open

                          else {echo '<div><h4>'._MSC_REFERENCESENT.'</h4></div>';}
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Line indented incorrectly; expected 3 tabs, found 4
      Open

                      }
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Closing brace must be on a line by itself
      Open

                  if ($target == '' || !preg_match('/^[0-9a-z_]*$/i', $target)) {} else {
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Closing brace must be on a line by itself
      Open

                      else {echo 'Could not retrieve data from the database.';}
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Expected 1 space after closing parenthesis; found 21
      Open

                          if ($cntavs > 8)
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Line indented incorrectly; expected 4 tabs, found 5
      Open

                          if ($onlines[$i]['online_uid'] == 0) {
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Line indented incorrectly; expected 3 tabs, found 4
      Open

                      for ($i = 0; $i < $count; $i++) {
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Line indented incorrectly; expected 3 tabs, found 4
      Open

                      if ($online_total > 20) {
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      No space found after comma in function call
      Open

                              redirect_header(ICMS_URL.'/misc.php?action=showpopups&amp;type=friend&amp;op=sendform',2,_MSC_NEEDINFO);
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Line indented incorrectly; expected 4 tabs, found 5
      Open

                          }
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      Line indented incorrectly; expected 1 tabs, found 4
      Open

                      }
      Severity: Minor
      Found in htdocs/misc.php by phpcodesniffer

      There are no issues that match your filters.

      Category
      Status