Thinkueditor 1.4.3.1 seems unable to render the following PHP syntax highlighting?

Source: Internet
Author: User
In the ueditor through the syntax to choose PHP, posted to the Web page, can not correctly highlight the following PHP code, who can find the most fundamental problem where?

Ueditor to ' decrypt string ' there, * @return Strin is wrong .... The last g's not coming out.


  +----------------------------------------------------------------------Namespace think\crypt\driver;/** * Crypt Cryptographic implementation class * @category org * @package org * @subpackage Crypt * @author liu21st
  
   
 */class Crypt {/** * Encrypt string * @param string $str String * @param string $key encrypt key * @param integer $EXP Ire valid (seconds) * @return String */public static function Encrypt ($STR, $key, $expire =0) {$expire = Sprin        TF ('%010d ', $expire? $expire + Time (): 0);        $r = MD5 ($key);        $c = 0;        $v = "";        $str = $expire. $str;        $len = strlen ($STR);        $l = strlen ($r);         for ($i =0; $i < $len; $i + +) {if ($c = = $l) $c = 0;             $v. = substr ($r, $c, 1).         (Substr ($str, $i, 1) ^ substr ($r, $c, 1));        $c + +;    } return Self::ed ($v, $key); /** * Decrypt String * @param string $str String * @param string $key Encrypt key * @return String * * Public STA        Tic function Decrypt ($str, $key) {$str = Self::ed ($str, $key);        $v = "";        $len = strlen ($STR);         for ($i =0; $i < $len; $i + +) {$MD 5 = substr ($str, $i, 1);         $i + +;        $v. = (substr ($str, $i, 1) ^ $md 5);      }  $data = $v;        $expire = substr ($data, 0,10);        if ($expire > 0 && $expire < time ()) {return ';        } $data = substr ($data, 10);    return $data;      function Ed ($str, $key) {$r = MD5 ($key);      $c = 0;      $v = "";      $len = strlen ($STR);      $l = strlen ($r);         for ($i =0; $i < $len; $i + +) {if ($c = = $l) $c = 0;         $v. = substr ($str, $i, 1) ^ substr ($r, $c, 1);      $c + +;   } return $v; }}
  

Reply content:

In the ueditor through the syntax to choose PHP, posted to the Web page, can not correctly highlight the following PHP code, who can find the most fundamental problem where?

Ueditor to ' decrypt string ' there, * @return Strin is wrong .... The last g's not coming out.


  +----------------------------------------------------------------------Namespace think\crypt\driver;/** * Crypt Cryptographic implementation class * @category org * @package org * @subpackage Crypt * @author liu21st
  
   
 */class Crypt {/** * Encrypt string * @param string $str String * @param string $key encrypt key * @param integer $EXP Ire valid (seconds) * @return String */public static function Encrypt ($STR, $key, $expire =0) {$expire = Sprin        TF ('%010d ', $expire? $expire + Time (): 0);        $r = MD5 ($key);        $c = 0;        $v = "";        $str = $expire. $str;        $len = strlen ($STR);        $l = strlen ($r);         for ($i =0; $i < $len; $i + +) {if ($c = = $l) $c = 0;             $v. = substr ($r, $c, 1).         (Substr ($str, $i, 1) ^ substr ($r, $c, 1));        $c + +;    } return Self::ed ($v, $key); /** * Decrypt String * @param string $str String * @param string $key Encrypt key * @return String * * Public STA        Tic function Decrypt ($str, $key) {$str = Self::ed ($str, $key);        $v = "";        $len = strlen ($STR);         for ($i =0; $i < $len; $i + +) {$MD 5 = substr ($str, $i, 1);         $i + +;        $v. = (substr ($str, $i, 1) ^ $md 5);      }  $data = $v;        $expire = substr ($data, 0,10);        if ($expire > 0 && $expire < time ()) {return ';        } $data = substr ($data, 10);    return $data;      function Ed ($str, $key) {$r = MD5 ($key);      $c = 0;      $v = "";      $len = strlen ($STR);      $l = strlen ($r);         for ($i =0; $i < $len; $i + +) {if ($c = = $l) $c = 0;         $v. = substr ($str, $i, 1) ^ substr ($r, $c, 1);      $c + +;   } return $v; }}
  
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.