?? global.php
字號:
<?php
function random($length,$chars='0123456789')
{
$hash = '';
$chars = '0123456789';
$max = strlen($chars) - 1;
mt_srand((double)microtime() * 1000000);
for($i = 0; $i < $length; $i++) {
$hash .= $chars[mt_rand(0, $max)];
}
return $hash;
}
function phpcms_base64($str,$type='encode',$token='/',$sp='_')
{
//$type: 1=encode 0=decode
$encode = $type == "encode" ? 1 : 0;
$str=trim($str);
if($encode)
{
$str=base64_encode($str);
$str2=str_replace($token,$sp,$str);
}
else
{
$str=str_replace($sp,$token,$str);
$str2=base64_decode($str);
}
return $str2;
}
?>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -