Quote:
You are still going to have the same problem using an "internal" method. How can Links SQL know whether you are using the admin script or not?- to ask Alex, to add $ADMIN variable within sub main or just before calling main function (this is how I solved it in Links 2.0).
I simply do not see other solution.
Quote:
No you don't $is_admin would be global.But $is_admin could be only defined, right at the start of a plugin, not earlier (the best would be in admin.cgi, but due to plugin system this is not possible of course). So all plugins will have the /admin\.cgi$/ hard coded text. Therefore I will have to change all references in those plugins, which are used on both admin and site pages.
Best regards,
Webmaster33
Paid Support from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...