修改 inc/common/template.php//url加密function encrypt($urljiami, $key2 = '22ad6h5'){$coded = '';$keylength = strlen($key2);for ($i = 0, $count = strlen($urljiami); $i < $count; $i += $keylength){$coded .= substr($urljiami, $i, $keylength) ^ $key2;}return str_replace('=', '', base64_encode($coded));}$urljiami=$urlpath;$pwdjiami = encrypt($urljiami);//加密结束<?php
//简单解密函数
function decrypt($str, $key = '22ad6h5')
{$coded = '';$keylength = strlen($key);$str = base64_decode($str);for ($i = 0, $count = strlen($str); $i < $count; $i += $keylength){$coded .= substr($str, $i, $keylength) ^ $key;}return $coded;
}$str=$_GET["v"];
$jiemi = decrypt($str);
echo "解密还原:".$jiemi;
文章原创于:https://www.858vod.com/