預備昇級 Apache 2 + mod_perl 2 。
- 修正 Selima::DataVars 模組,加上 $IS_MP2 ,偵測 mod_perl 的版本是否為第二版。
- 修正 Selima::HTTP 模組和 Selima::AuthDig 類別,原先由 Apache::Constants 匯入常數,改依 $IS_MP2 判斷,由 Apache::Constants 或 Apache2::Const 匯入常數。
- 修正 Selima::CallForm 模組、 Selima::DecForm 模組、 Selima::FormFunc 模組、 Selima::GeoIP 模組、 Selima::HTTP 模組、 Selima::Init 模組、 Selima::LogIn 模組、 Selima::LogOut 模組、 Selima::Logging 模組、 Selima::RemoHost 模組、 Selima::ReqURI 模組、 Selima::XHTML 模組、 Selima::Destroy 類別、 Selima::List 類別、 Selima::ListPref 類別、 Selima::Mail 類別、 Selima::Session 類別、 Selima::*::Processor::Public::Guestbook 類別和 Selima::imacat::Processor::Public::Garbage 類別,原先使用 Apache->request() 物件,改依 $IS_MP2 判斷,使用 Apache->request() 或 Apache2::RequestUtil->request() 物件。
- 修正 startup.pl 程式,只在 mod_perl 1 下載入 Selima::AuthDig 類別。我暫時找不到 mod_perl 2 下用的 Digest 登入模組,暫時回歸使用密碼檔的舊方式。
- 修正 Selima::GeoIP 模組、 Selima::HTTP 模組、 Selima::LogIn 模組、 Selima::Logging 模組、 Selima::RemoHost 模組、 Selima::Mail 類、 Selima::Session 類別及showenv.cgi 程式,若在 mod_perl 2 下,則載入 Apache2::Connection 類別。
- 修正 Selima::DecForm 模組、 Selima::Init 模組、 Selima::LogOut 模組、 Selima::XHTML 模組及 Selima::ListPref 類別,原用 $r->header_in() 方法,改用 $r->headers_in()->get() 方法、 $r->headers_in()->add() 方法及 $r->headers_in()->set() 方法。
- 修正 showenv.cgi 程式,加上在 mod_perl 2 下載入 Apache2::ServerRec 類別,並修正在 mod_perl 2 下時,顯示的 $r->connection() 和 $r->server() 下的方法名稱;顯示方法名稱時,顯示的方法符號 -> 修正為 -> 。
- 修正 Selima::RemoHost 模組,原用 $r->get_remote_host() 方法,修正為依 $IS_MP2 判斷,使用 $r->connection()->get_remote_host() 方法或 $r->get_remote_host() 方法。