• 当前位置: 首页 > 站长学院 > 常见问题

    帝国cms跳转地址转码加密base64的方法

    时间:2023-07-04 | 栏目:常见问题 | 围观热度:213

    帝国cms跳转地址转码加密base64的方法:

    <?php if($navinfor[weburl]==''){ ?>
    <?php }else{ $weburl="\/url.php?url=".base64_encode($navinfor[weburl]); ?>
    <a href="<?=$weburl?>" rel="external nofollow"  class="btn-all btn-blue" target="_blank" rel="nofollow"><span>查看演示</a>
    <?php } ?>
    
    <? 
    header("Content-type: text/html; charset=utf-8"); 
    $url=$_GET["url"];
    if($url==''){echo "暂无演示";}
    $urll=base64_decode($url);
    header("Location:".$urll);?>