403Webshell
Server IP : 119.59.102.212  /  Your IP : 3.15.182.56
Web Server : Apache/2
System : Linux narin 2.6.32-042stab142.1 #1 SMP Tue Jan 28 23:44:17 MSK 2020 x86_64
User : yangkam ( 1022)
PHP Version : 5.6.40
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/yangkam/domains/yangkam.go.th/public_html/coremain/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/yangkam/domains/yangkam.go.th/public_html/coremain/function_word_sencor.php
<?php

function check_word_sencor($word) {
  return _textfilter($word);
}

function _textfilter($text) {
  $tf = new textfilter();
  return $tf->_textfilter_leave($text);
}

class textfilter {

  var $leaveword;
  var $filterword;
  var $dangerrword;

  function __construct() {
    //this is constructor
    $this->leaveword = file($_SESSION['root_path']."coremain/module/word_censor/leaveword.inc.php")or die('missing data');
    $this->filterword = file($_SESSION['root_path']."coremain/module/word_censor/filterword.inc.php")or die('missing data');
    $this->dangerrword = file($_SESSION['root_path']."coremain/module/word_censor/dangerword.inc.php")or die('missing data');
//    $this->leaveword = file("{$_SERVER['DOCUMENT_ROOT']}/coremain/module/word_censor/leaveword.inc.php")or die('missing data');
//    $this->filterword = file("{$_SERVER['DOCUMENT_ROOT']}/coremain/module/word_censor/filterword.inc.php")or die('missing data');
//    $this->dangerrword = file("{$_SERVER['DOCUMENT_ROOT']}/coremain/module/word_censor/dangerword.inc.php")or die('missing data');
  }

  function _textfilter_leave($text) {
    return $this->_textfilterlib($this->_textleave_decodelib($this->_textfilterlib($this->_textleave_endcodelib($text), $this->filterword)), $this->dangerrword);
  }

  private function _textfilterlib($text, $filterwordinput) {
    $worngword = array();
    $trueword = array();
    for ($i = 0; $i < sizeof($filterwordinput); $i++) {
      $word = explode(',', $filterwordinput[$i]);
      $worngword[$i] = trim($word[0]);
      if (isset($word[1])) {
        $trueword[$i] = "<font color='red'>" . trim($word[1]) . "</font>";
      } else {
        $trueword[$i] = "<font color='red'>*</font>";
      }
    }

    for ($i = 0; $i < sizeof($worngword); $i++) {
      $text = str_replace($worngword[$i], $trueword[$i], $text);
    }
    return $text;
  }

  private function _textleave_endcodelib($text) {
    for ($i = 0; $i < sizeof($this->leaveword); $i++) {
      $_tmptext = trim(($this->leaveword[$i]));
      $text = str_replace($_tmptext, base64_encode($_tmptext), $text);
    }
    return $text;
  }

  private function _textleave_decodelib($text) {
    for ($i = 0; $i < sizeof($this->leaveword); $i++) {
      $_tmptext = trim(($this->leaveword[$i]));
      $text = str_replace(base64_encode($_tmptext), $_tmptext, $text);
    }
    return $text;
  }

}

// #################ʴк Popup ##############
function check_word_sencor_popup($word) {
  return _textfilter1($word);
}

function _textfilter1($text) {
  $tf = new textfilter1();
  return $tf->_textfilter1_leave($text);
}

class textfilter1 {

  var $leaveword;
  var $filterword;
  var $dangerrword;

  function __construct() {
    //this is constructor

    $this->leaveword = file("{$_SERVER['DOCUMENT_ROOT']}/coremain/mainfile/word_censor/leaveword.inc.php")or die('missing data');
    $this->filterword = file("{$_SERVER['DOCUMENT_ROOT']}/coremain/mainfile/word_censor/filterword.inc.php")or die('missing data');
    $this->dangerrword = file("{$_SERVER['DOCUMENT_ROOT']}/coremain/mainfile/word_censor/dangerword.inc.php")or die('missing data');
  }

  function _textfilter1_leave($text) {
    return $this->_textfilter1lib($this->_textleave_decodelib($this->_textfilter1lib($this->_textleave_endcodelib($text), $this->filterword)), $this->dangerrword);
  }

  private function _textfilter1lib($text, $filterwordinput) {
    $worngword = array();
    $trueword = array();
    for ($i = 0; $i < sizeof($filterwordinput); $i++) {
      $word = explode(',', $filterwordinput[$i]);
      $worngword[$i] = trim($word[0]);
      if (isset($word[1])) {
        $trueword[$i] = "<font color='red'>" . trim($word[1]) . "</font>";
      } else {
        $trueword[$i] = "<font color='red'>*</font>";
      }
    }

    for ($i = 0; $i < sizeof($worngword); $i++) {
      $text = str_replace($worngword[$i], $trueword[$i], $text);
    }
    return $text;
  }

  private function _textleave_endcodelib($text) {
    for ($i = 0; $i < sizeof($this->leaveword); $i++) {
      $_tmptext = trim(($this->leaveword[$i]));
      $text = str_replace($_tmptext, base64_encode($_tmptext), $text);
    }
    return $text;
  }

  private function _textleave_decodelib($text) {
    for ($i = 0; $i < sizeof($this->leaveword); $i++) {
      $_tmptext = trim(($this->leaveword[$i]));
      $text = str_replace(base64_encode($_tmptext), $_tmptext, $text);
    }
    return $text;
  }

}

?>

Youez - 2016 - github.com/yon3zu
LinuXploit