discuz_plugin: code reform