You mean code injection, right ? I thought about this approach for some things.. but since I rent my panel, I must think in approaches that will work for most of my clients with minimal effort.. so code injection is a very bad idea for my specific case. Since i'd have to keep a list of offsets for usefull functions for every version of PW that my renters would use. I know it don't seem to see that bad/hard, but nowadays most of my clients are using custom rented 1.7.4 version were the owner compiles new versions from time to time and always strips debug informations and protects the binary itself, wich will make everything very complicated to keep offsets up to date for these cases.
Unfortunatelly that's my restriction, I even wanted to fix that forgotten WebTradeSystem that PW has to implement it in my panel, but I get stuck in a very similiar manner, where I need to work as wanmei intended because I can't replicate to my renters very easily any change in source code I make (since most of them will not be using 152 or whatever version with source code)