Fed up with Actinic

Actinic gave me some trouble this morning. I was reported that Actinic crashed when uploading. My close investigation found that Actinic crashed at the point of checking catalog. No error message was shown on screen. A Catalog_version_number_date_time.dmp was generated but that meant nothing to me. Fortunately, there were not many catalogue changes since last successful… Continue reading Fed up with Actinic

I can’t find a way to assign two handlers to a script

这可能是一个不可能实现的任务。 Actinic 的动态部分是 perl 写的,我不想触及 perl,陆陆续续做了很多 extensions,都是 php 写的。Actinic perl 有很多漏洞,其中一个就是会把我的 php 源码暴露。可能 Actinic 的目标用户都是 htmler,根本没指望 phper 会给它写 extensions(我也是没办法,早就不想干了)。我能做的,就是尽可能地调整 php 的代码方式,做到即使源码暴露了,也不包含机要信息。 我也不打算在 Actinic 浪费时间去研究怎么修改漏洞,只是最近把 apache module 研究了一遍,突然想重提这个历史遗留问题是否可以从 apache 方面给予弥补。漏洞的源头是 Actinic perl 读入我的 php script,当成 html 直接输出。如果能把 handler 再交给 php-cgi,那么 php tag 之间的内容就可以得到解析。 可是 apache 是以后缀推定 handler 的,那么某个后缀怎么可以有两个 cgi handlers?

三人行,必有我师

Actinic是我们公司用了好多年的ecommerce系统,一直没有舍弃,我接触Actinic的日子久了,虽然不喜欢这套软件,但也玩转得很遛了。 我出了趟长差,回来发现有人在Actinic的产品描述里把原来简单的 Box of 500 改成了 !!< Box of 500 <strong>Normal Price <strike>£29.99 </strike> Now</strong> >!! 我知道在我出差期间公司搞了个promotion,下调了几个产品的价格。但是是谁这么厉害,能写出这么厉害的代码?公司里除了我,没人懂html。就算html加粗标签和删除标签不怎么稀奇,稍作咨询就能知道用<strong><strike>,但 !!<和>!!配对声明html代码的开始和结束可是Actinic特有的,当年我是在Actinic专家稀缺的情况下,熟读了Actinic手册才知道的。所以在我想来,能在产品描述里用上 !!<>!!那就是很厉害了。我在Actinic其他地方也会用到!!<>!!,但我的同事不会去翻看前例,即使看到了,也不会明白 !!<>!!是干什么用的。 难道公司里隐藏了一个“高手”? 我问坐我对面的同事,“谁写出了这么复杂的带格式的描述?” 他不以为然,说,“你不在,我就动手改了,喏,这里不是有几个加粗等格式按钮嘛,我就象Word那样操作了一下而已。” 原来如此!我用Actinic这么久,都没注意到那几个格式按钮,所有格式都是我hardcode出来的。不懂Actinic的同事倒给我这个Actinic专家上了一课。