From: Paul L. <pa...@sq...> - 2006-10-09 04:35:40
|
On 10/8/06, Paul Lesniewski <pa...@sq...> wrote: > On 10/6/06, Alexandros Vellis <av...@no...> wrote: > > And here's how the main patch *roughly* looks like. > > > > Yes, the part where sqimap_login grabs the authz from session is ugly. > > But it works, we have been using it here for quite some time. Ideally, > > it should be in the function's arguments, but that would mean rewriting > > all its calls, unless the argument was placed in the end with a default > > empty value. > > > > I am also attaching the corresponding plugin. Also, can you please start using the <plugin>_info() function in setup.php? It's just been added to plugin specs, FYI. Keep the <plugin>_version() function... here is the easiest way to do all this: /** * Returns info about this plugin * */ function authz_info() { return array( 'version' => '1.0-1.5.2', ); } /** * Returns version info about this plugin * */ function authz_version() { $info = vlogin_info(); return $info['version']; } |