普通url转thunder
1 2 3 4 5 6 7 8 9 | <?php function ThunderEncode($url) { $thunderPrefix="AA"; $thunderPosix="ZZ"; $thunderTitle="thunder://"; $thunderUrl=$thunderTitle.base64_encode($thunderPrefix.$url.$thunderPosix); return $thunderUrl; } ?> |
thunder转普通url
1 2 3 4 5 6 7 8 9 10 11 | <?php function ThunderDecode($thunderUrl) { $thunderPrefix="AA"; $thunderPosix="ZZ"; $thunderTitle="thunder://"; $url=substr(trim($thunderUrl),10); $url=base64_decode($url); $url=substr($url,2,-2); return $url; } ?> |
原文链接:https://xiaohost.com/1214.html,转载请注明出处。
评论0