旅舍更新日志 卷六
日期: 4.21.’06.
- 修正 Selima::FormFunc 模组,移除不用的 select_url() 及 select_text() 函式,及不用的引用 URI::Escape 、 Selima::HTTPS 、 Selima::RelURI 、 Selima::ShortCut 与 Selima::DataVars 的 :requri 。
- 修正 Selima::wov::HTML::html_title() 函式,移除不必要的 alt= 与 title= 文字代换。
- 修正 logout.cgi ,将 login.php 改正为 login.cgi (虽然现在其实还没有 login.cgi 就是了。)
- 修正 Selima::HTTP::http_400() 函式,当传入值 0 时,当成网址格式错乱,改依 Apache 记录的格式记录。
- 因为现在输出最后都会使用 page2rel() 转换,所以不需要在输出中途用 reluri() 了:修正 Selima::*::HTML 、 Selima::*::List::Search 、 logout.cgi 、 Selima::List 、 Selima::Form 、 Selima::Form::LinkCat 、 Selima::List::Public::Guestbook 、 Selima::AltLang 、 Selima::Picture ,移除使用 reluri() 的地方,及对 Selima::RelURI 的引用。
- 修正 Selima::Page2Rel::Converter 类别的 cnvtattr() 方法中,引用 absuri() 未加括弧的地方,加上括弧。
- 修正 Selima::HTTP 模组,加上 http_410() 及 http_503() 两个函式,调整统一记录讯息。
- 更新 Selima::imacat::List::LiteralZh 及 Selima::imacat::List::LtZhPoem 类别,加上 $self->{"COLS_BRIEF"} 。
- 加上 Selima::imacat::Form::LiteralZh 、 Selima::imacat::Form::LtZhPoem 、 Selima::imacat::Checker::LiteralZh 、 Selima::imacat::Checker::LtZhPoem 、 Selima::imacat::Processor::LiteralZh 及 Selima::imacat::Processor::LtZhPoem 。
- 修正 Selima::wov::Form::Newslet ,移除 $coltitle 及 $colauthor 不必要的 h_abbr() 。
- 修正 Selima::Form::MetaCols 类别的 _out_attrs() 方法,在检查 $$_{"name"} 是否为 charset 前先检查 $$_{"name"} 的值是否已定义。
日期: 4.20.’06.
- 停用 $MULTILINGUAL 变数,改用 @ALL_LINGUAS 变数判断多语与否;修正 Selima::Processor 、 Selima::PageFunc 、 Selima::Destroy 、 Selima::UserName 、 Selima::Checker 、 Selima::List 、 Selima::Links 、 Selima::DataVars 、 Selima::LastModf 、 Selima::HTTP 、 Selima::GetLang 、 Selima::Init 及 Selima::imacat::HTML 。
- 将 literlzh 改名为 literalzh :修正资料库, literlzh 资料表改名为 literalzh ; literlzh.cgi 程式改名为 literalzh.cgi 程式; Selima::imacat::List::LiterlZh 类别改名为 Selima::imacat::List::LiteralZh 。
- 修正女声电子报管理,移除使用 arts 阵列,改用 artcount 变数:修正 newslets.cgi ,移除 $CURRENT{"arts"} ;修正 Selima::wov::Form::Newslet 类别的 _html_col_arts() 方法,使用 $current->param("artcount") ;修正 Selima::wov::Checker::Newslet 类别的 _check_arts() 方法,移除加上 $form->param("arts") 的部份。
- 修正 Selima::A2HTML ,加上行首空白的正确处理。
- 修正 Selima::HTTP::http_500() 函式,直接使用 @callers 依所处情况处理:停用 $trace , @callers 存入整个呼叫环境;剔除没意义的 /dev/null 及 Apache::Registry ;网页显示时以 <samp>…</samp> 标示显示;邮寄通知时加上换行;错误记录时不加上换行。
- 修正 Selima::HTTP::http_400() 及 Selima::HTTP::http_403() 函式,改用 <!-- errmsg --> ;可能的话加记录错误原因。
- 修正 Selima::HTTP::http_3??() 函式,停用 $url_r 与 $url_h ,改统一用 h($url) 代换,反正后来还需要作 page2rel() ,没有太大的差别;将连结文字原来的网址改为有意义的文字,以符合无障碍网页规范。
- 修正 Selima::HTTP::http_405() 函式,停用 $allowd 及 $allowed_h ,改统一用 join() 及常规表示法代换,并正确标示 <samp>…</samp> 。
- 修正 Selima::HTTP::http_???() 函式,将 if (defined $html) 简化为 if (!defined $html) 。现在已经没有必要特别代换了。
- 修正 Selima::PageFunc::outpage() ,原用 hcref_encode() 改用 page_encode() 。
- 修正 Selima::*::HTML::html_links_register() 函式,取消 E-mail 编码。
- 修正 Selima::wov::HTML::html_nl_index() 函式,全文检索程式的路径改为绝对路径。
- 修正 Selima::XHTML ,移除 set_xhtml_content_type() 函式,将 check_xhtml_content_type() 函式改名为 xhtml_content_type() ;修正 Selima::HTTP 及 Selima::Destroy 中引用 check_xhtml_content_type() 的地方。
- 修正 Selima::HTTP ,停用不必要的 $charset 变数,直接取得档案类型及字集。
- 字集改由输出时再代换:修正 Selima::*::HTML 、 Selima::List 、 Selima::Form 、 Selima::List::ActLog ,停用 $charset 变数,改为 <!--selima:charset--> ;修正 Selima::Destroy ,输出时 hcref_encode() 改用 page_encode() ;修正 Selima::Form::MetaCols 类别的 _out_attrs() 方法,栏位名称为 charset 时,作特殊处理。
日期: 4.19.’06.
- 修正 Selima::Unicode::is_charset() 及 Selima::Mail::b64hdr_encode() ,在 eval {} 中加上 local $SIG{"__DIE__"}; ,以避免呼叫 http_500() 。
日期: 4.19.’06.
- 修正 Selima::HTTP 处理字集的方式,内部全部将字集代换成代号,以便输出时统一设定字集:修正 get_custom_status_message() ,将页面出现的字集部份代换为 <!--selima:charset--> ,以备后续代换工作;修正 Selima::Unicode::page_encode() ,加上把 <!--selima:charset--> 代换为字集名称;修正 http_???() ,将使用 to_iso88591() 及 hcref_encode() 之处改用 page_encode() ;移除 to_iso88591() 。
- 解决 Big5 和 Big5-Common 两个名字间转换的问题:修正 Selima::SetL10N ,用 Encode::Alias::define_alias() 将 Big5 重订为 Big5-Common ;修正 Selima::*::HTML 、 Selima::imacat::Processor::Public::Guestbook 、 Selima::SetL10N 、 Selima::Destroy 、 Selima::List::ActLog 、 Selima::Form 、 Selima::DecForm 、 Selima::List 、 Selima::HTTP 、 Selima::Unicode 、 Selima::LnInfo 、 Selima::GetLang ,移除不必要的 Big5-Common 转换程式码。
- 修正 Selima::DecForm 整理候选字集的部份,用较正确的方式剔除重复的字集,在 Big5 字集加上 Big5-ETen ,并将 Big5-HKSCS 分开处理。
- 解决每次异动翻译文字,都要重开 Apache 的问题:修正 Selima::SetL10N ,加上自动按 MO 档的修改时间,判断呼叫 reload_text() 重读 MO 档的功能;修正 Selima::Cache ,加上 %SetL10N_checked 。
日期: 4.18.’06.
- 加上 literlzh 与 ltzhpoem 两个资料表;加上 Selima::imacat::List::LiterlZh 与 Selima::imacat::List::LtZhPoem 两个类别,及 literlzh.cgi 与 ltzhpoem.cgi 两支程式,以处理中文诗。
- 修正错误处理函式的设计:在每个程式最前方加上 local $SIG{"__DIE__"} = \&http_500; ,以在 mod_perl 每一次执行做 eval() ,都会设定区域性的错误处理函式;修正 startup.pl ,取消没有用处的 local $SIG{"__DIE__"} = \&http_500; 。
- 修正 Selima::HTTP ,用 caller() 显示每一层呼叫的位置,以利侦错。
日期: 4.13.’06.
- 修正 Selima::PageFunc 模组的 rebuildtype_options() 函式,改用 Devel::Symdump 取得重制网页的函式清单,并改用 map() 、 grep() 及 sort() 函式简化一次处理。
- 修正 Selima::XHTML 模组,加上 check_xhtml_content_type() 函式,以替代 set_xhtml_content_type() 函式,由使用者的浏览器资料,判断应送出的 MIME 格式;停用 set_xhtml_content_type() 函式;修正 Selima::Destroy 模组,改用 check_xhtml_content_type() 函式,并依纯文字或 HTML 做出较细致的输出前后置处理;修正 Selima::HTTP 模组,改用 check_xhtml_content_type() 函式。
日期: 4.13.’06.
- 修正 Selima::List 模组,加上 html_title() 方法以备用。
目录 |
第一页 |
前一页 |
4 |
5 |
6 |
7 |
8 |
下一页 |
最末页