基于ucms模板伪原创

12 / Jan / 2022 PM Note 240

ucms模板伪原创的方法:自动给页面 HTML 添加唯一 class 让其与网上相同主题区分开来,防止被针对

基于ucms模板伪原创

代码:

<?php

/**
 * @Author: TIM
 * @Date:   2022-01-12 14:31:12
 * @Email:  61468384@qq.com
 * @Blog:   http://www.tim-blog.com
 * @Desc:   简单即是美 Simple is beautiful...
 * @Last Modified by:   1
 * @Last Modified time: 2022-01-12 16:58:06
 */

global $myMatch;
$myMatch = '21554578';//指定随机数字
function num() {
    $GLOBALS['myMatch']++;
    echo substr(md5($GLOBALS['myMatch']),0,5).'-'.substr(md5($GLOBALS['myMatch']),6,3).'-'.substr(md5($GLOBALS['myMatch']),12,5).'-'.substr(md5($GLOBALS['myMatch']),18,6);
}

前端展示:

基于ucms模板伪原创前端展示

发布评论

© TIM All Rights Reserved sitemap

🌈Theme by TIM