Archive for February, 2010

Ecshop会员整合

Sunday, February 28th, 2010

ECSHOP后台会员整合,只允许整合一个应用。
如果想整合多个应用,就需要先和UCenter整合,之后再通过UCenter去整合更多的应用。

整合之后工作流程:

1.首先在ini.php文件中使用 ini_user()函数来判断整合插件名称,此函数定义在lib_common.php文件中。
并生成相应的插件对象,方便以后调用。

$user = new $ini_user();
(more…)

ECSHOP 会员整合功能分析

Friday, February 26th, 2010

ECSHOP后台会员整合,只允许整合一个应用。
如果想整合多个应用,就需要先和UCenter整合,之后再通过UCenter去整合更多的应用。

整合之后工作流程:

1.首先在ini.php文件中使用 ini_user()函数来判断整合插件名称,此函数定义在lib_common.php文件中。
并生成相应的插件对象,方便以后调用。
(more…)

wordpress 和 Drupal 在 lighttpd下的rewrite(伪静态)规则

Friday, February 26th, 2010

以前IDSOO一直运行在Apache下,这次服务商发邮件说CPU超限,于是继续折腾,转移到了Lighttpd下,下面是Druap在lighttpd下开启clean url的规则,附送wordpress的。

Drupal:
url.rewrite = (
“^/system/test/(.*)$” => “/index.php?q=system/test/$1″,
“^/system/test-clean-url/(.*)$” => “/index.php?q=system/test-clean-url/$1″,
“/rss.xml$” => “/index.php?q=rss.xml”,
“^/search/(.*)$” => “/index.php?q=search/$1″,
“^/([^.?]*)\?(.*)$” => “/index.php?q=$1&$2″,
“^/([^.?]*)$” => “/index.php?q=$1″,
)

Wordpress:
url.rewrite = (
“^/?$” => “/index.php”,
“^/(?.*)$” => “/index.php$1″,
“^/(wp-.+)$” => “$0″,
“^/([^.]+)/?$” => “/index.php?$1″,
)