On Tue, Oct 12, 2004 at 09:14:53PM +0100, Rowan Collins wrote:
On Tue, 12 Oct 2004 17:04:47 +0200, Arvalux arvalux@yahoo.de wrote:
$dbw->query("delete from cur"); would show better how useful your plugin
is. I cannot accress $dbw. A "global $dbw;" doesn't help. How to access variables like $dbw?
I guess you should count yourself lucky: your hack is less insecure than it looks, and can't access global variables. I'm not too sure what it *might* be able to do though.
$dbw is no global. Use $dbw =& wfGetDB( DB_MASTER ); to initialize $dbw.
Regards,
jens