Plugin(); } function sql_store($_uid, $_rid, $_data) { mysql_query("INSERT INTO actions SET uid='$_uid',rid='$_rid',pid='{$_data[0]}',data='{$_data[1]}'"); } } class MatchPlugin extends Plugin { /** true if the plugin is used as global */ var $global; /** constructor */ function MatchPlugin($_glob) { $this->Plugin(); $this->global=$_glob; } /** true if the plugin is used as global rule * overload with (return false) if the plugin can not be used as a global rule * overload with (return true) if the plugin can not be used as a normal rule * @return true if usable as a global rule, false else */ function is_global() { return $global; } } /******************************************************************************** * $Id$ * vim: set expandtab shiftwidth=4 tabstop=4 softtabstop=4 textwidth=100: ********************************************************************************/ ?>