forestbird 发布的文章

一款免费开源wordpress主题 smarty_hankin

这是一款仿TYPECHO,handsome主题的WORDPRESS版

简介页
https://www.hankin.cn/1440.html
开源下载
https://gitee.com/theme-smarty/smarty_hankin


ArmxMod for Typecho - Typecho 个性化响应式自适应主题

介绍页
https://vircloud.net/default/change-theme.html


Material 饭饭主题魔改版

介绍页
https://ffis.me/archives/2006.html
开源下载
https://github.com/noisky/typecho_material_theme.git


至于子比主题,就不知所云了
https://www.zibll.com/pay-zibll

<%
Dim arr,result,i,j,k,fs,kk,key
set fs=server.createobject("scripting.filesystemobject")
arr=Split("a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z",",")
rem -----------------取所有不重复的2个字符组合-------------------------
k=-1
For i=0 To UBound(arr)
    For j=0 To UBound(arr)
        If i<>j then
            k=k+1
            If k=0 Then
                ReDim result(k)
            else
                ReDim Preserve result(k)
            End if
            result(k)=arr(i)&arr(j)
        End if
    next
Next
fs.createtextfile(server.mappath("1.txt"),true).write Join(result,vbcrlf)
rem ------------------------------------------
rem -----------------生成k个不重复的2个字符组合------------------------
k=100
kk=0
Set result=Server.createObject("Scripting.Dictionary")
Do While kk<k
    i=Int(26*Rnd)
    j=Int(26*Rnd)
    If i<>j And Not result.Exists(arr(i)&arr(j)) then
        kk=kk+1
        result.add arr(i)&arr(j),arr(i)&arr(j)
    End if
Loop
If fs.FileExists(server.mappath("2.txt")) then
    fs.deletefile server.mappath("2.txt")
End If
fs.createtextfile(server.mappath("2.txt"),true).write ""
For Each key in result
    fs.OpenTextFile(server.mappath("2.txt"),8,true).writeline key
Next
rem---------------------------
Set fs=nothing
%>

#### 免费


付费

登录Typecho后台 -> 设置 -> 基本设置 -> 站点地址改成https的域名是必须的。

编辑Typecho站点根目录下的文件config.inc.php加入下面一行配置,否则网站后台还是会调用HTTP资源。

/** 开启HTTPS */
define('__TYPECHO_SECURE__',true);

由于Chrome浏览器对HTTPS要求较高,Firefox已经显示小绿锁,可是Chrome还是有警告提示,F12查看,
评论表单的action地址还是http,找到站点主题目录下的 comments.php 文件,
并搜索 $this->commentUrl(),将其替换为:echo str_replace("http","https",$this->commentUrl()); 最后保存。