Like PHP's htmlentities()/htmlspecialchars() functions, JavaScript is easy to implement it.
/**
<?xml version="1.0" encoding="UTF-8" ?> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title> | |
<data:blog.pageTitle/> | |
</title> | |
<b:skin><![CDATA[]]></b:skin> | |
</head> | |
<body> |
Like PHP's htmlentities()/htmlspecialchars() functions, JavaScript is easy to implement it.
/**
<?php | |
// Define a 32-byte (64 character) hexadecimal encryption key | |
// Note: The same encryption key used to encrypt the data must be used to decrypt the data | |
define('ENCRYPTION_KEY', 'd0a7e7997b6d5fcd55f4b5c32611b87cd923e88837b63bf2941ef819dc8ca282'); | |
// Encrypt Function | |
function mc_encrypt($encrypt, $key){ | |
$encrypt = serialize($encrypt); | |
$iv = mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_CBC), MCRYPT_DEV_URANDOM); | |
$key = pack('H*', $key); |
/* | |
* http://www.myersdaily.org/joseph/javascript/md5-text.html | |
*/ | |
(function (global) { | |
var md5cycle = function (x, k) { | |
var a = x[0], | |
b = x[1], | |
c = x[2], | |
d = x[3]; |
<?php | |
/** | |
* author : forecho <caizhenghai@gmail.com> | |
* createTime : 2015/12/29 15:33 | |
* description: | |
*/ | |
namespace common\components; | |
use yii\base\InvalidParamException; |
#!/bin/sh | |
# toggle touch pad | |
device=`xinput list --name-only | grep -i touchpad` | |
isOn=`xinput list-props "$device" | grep -i enabled | tail -c 2` | |
iconEnabled='input-touchpad-symbolic' | |
iconDisabled='touchpad-disabled-symbolic' | |
case "$isOn" in | |
0) |
<?php | |
require("Services/Twilio.php"); | |
require("database.php"); | |
// require POST request | |
if ($_SERVER['REQUEST_METHOD'] != "POST") die; | |
// generate "random" 6-digit verification code | |
$code = rand(100000, 999999); |
<html> | |
<head> | |
<style> | |
.item {width:300px; display: inline-block; } | |
.item .itemtitle {font-weight:bold; font-size:2em;} | |
.hidden {display:none;} | |
</style> | |
</head> | |
<body> | |
<h1>Amalgam Comics Characters</h1> |
#AND | |
<b:if cond='data:blog.pageType == "index"'> | |
<b:if cond='data:blog.searchQuery'> | |
<!--search_page AND index_page--> | |
</b:if> | |
</b:if> | |
#OR |