Note: Save Spy report system

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Note: Save Spy report system

      Mission: modify

      Source Code

      1. //h_log
      2. if ($strInput['rb_spy_report'] == "V2") {
      3. $this->strVersion = "s";
      4. if (strlen($this->strHTMLLog) > MAX_LOG_SIZE / 10) {
      5. LogError("objLog->CheckInput", "Uploaded spy report is too long: " . strlen($this->strHTMLLog) . "/" . MAX_LOG_SIZE / 10);
      6. return false;
      7. }
      8. $this->DeleteBackSplashes();
      9. return true;
      10. }

      Source Code

      1. private function DeleteBackSplashes() {
      2. $this->strHTMLLog = str_replace("\\", "", $this->strHTMLLog);
      3. $this->strRecyclerReport = str_replace("\\", "", $this->strRecyclerReport);
      4. $this->strComment = str_replace("\\", "", $this->strComment);
      5. $this->strCleanUp = str_replace("\\", "", $this->strCleanUp);
      6. return true;
      7. }
    • Source Code

      1. if ($strInput['rb_spy_report'] == "V2") {
      2. $this->strVersion = "s";
      3. if (strlen($this->strHTMLLog) > MAX_LOG_SIZE / 10) {
      4. LogError("objLog->CheckInput", "Uploaded spy report is too long: " . strlen($this->strHTMLLog) . "/" . MAX_LOG_SIZE / 10);
      5. return false;
      6. }
      7. if ($strInput['comment_textarea']) {
      8. $this->strComment = trim($strInput['comment_textarea']);
      9. }
      10. if (strpos($this->strHTMLLog, "showmessage")) {
      11. $this->DeleteLinks();
      12. $this->EditMsg();
      13. } else {
      14. $this->DeleteBackSplashes();
      15. }
      16. return true;
      17. }
      Display All

      Source Code

      1. private function DeleteLinks() {
      2. $this->strHTMLLog = str_replace('</a>', "", $this->strHTMLLog);
      3. $this->strHTMLLog = preg_replace("/<a[^>]+>/", "", $this->strHTMLLog);
      4. return true;
      5. }

      Source Code

      1. private function EditMsg() {
      2. $this->MsgShowMessage();
      3. $this->MsgDel("td", "attack");
      4. $this->strHTMLLog = '<div class="read messagebox">' . $this->strHTMLLog . '<br />' . $this->strComment . '</div>';
      5. $this->DeleteBackSplashes();
      6. return true;
      7. }
      8. private function MsgShowMessage() {
      9. $strTagName = "div";
      10. $arrAttribute['name'] = "class";
      11. $arrAttribute['value'] = "textWrapper";
      12. $arrAttributes[] = $arrAttribute;
      13. $arrTmp = GetInnerHTML($this->strHTMLLog, $strTagName, $arrAttributes);
      14. if (!$arrTmp) {
      15. LogError("objParser->MsgShowMessage", "textWrapper not found");
      16. return -1;
      17. }
      18. $this->strHTMLLog = trim($arrTmp[0]);
      19. return true;
      20. }
      21. private function MsgDel($strTagName, $strClassName) {
      22. $arrAttribute['name'] = "class";
      23. $arrAttribute['value'] = $strClassName;
      24. $arrAttributes[] = $arrAttribute;
      25. $arrTmp = GetInnerHTML($this->strHTMLLog, $strTagName, $arrAttributes);
      26. if (!$arrTmp) {
      27. LogError("objParser->MsgDel", "$strClassName not found");
      28. return -1;
      29. }
      30. $this->strHTMLLog = str_replace(trim($arrTmp[0]), "", $this->strHTMLLog);
      31. return true;
      32. }
      Display All