為 pLog 加上迴響驗證 (AuthImage) 的功能

這個 AuthImage 的原始構想來自於 Gudlfy 的 WordPress AuthImage Plugin,我另外加上了幾個新的想法:

  • 可變動的驗證碼影像檔前置碼 (AuthImage Prefix)。透過這個前置碼,你可以改變的你的影像命名規則,讓這些智慧型的迴響機器人即使掃瞄到你的驗證碼影像暫存區,也猜不到你的真實驗置碼是多少。
  • 驗證碼的背景圖檔選擇。
  • 自動清理暫存區內過期的驗證碼影像檔。

/

有興趣的人請根據以下步驟將 AutImage Plugin 安裝到你的 pLog 裡面:

  1. 下載 Mark 精心調製的 AuthImage Plugin
  2. 將檔案解壓縮後上傳到 /your-blog 的目錄下
  3. 到設定>>外掛程式中心,看看 authimage 是否安裝成功
  4. 將 /your-blog/authimage 中的 tmp 目錄存取權限改為 777
  5. 修改你的模版。以我的 Marks Place 為例子,我是採用 grey 這個模版,所以我必須把下面的程式加到 /your-blog/templates/grey 中的 commentform.template 這個模版。

若果 gd 版本大過 1.6

把 /authimage/authimage.php
的第 40 行:

ImageGIF($im, $tmpfname);

改為

ImagePNG($im, $tmpfname);

/

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*