Sure, stick global $blog_id; near the top before you ask for $blog_id, and away you go.
Access to plugin upload is by user level. plugins are shared across the *entire system*.
Permissions are associated with user role/capability not blog_id so enabling the manage plugin menu will still keep it hidden from those users who don’t have activate_plugins capabilities. Further, specifically the Plugins menu requires menu permission defined at SuperAdmin->Options->Menus Settings. Can’t enable it while that switch is off.
I may have misread you op. I was thinking…
global $blog_id;
if($blog_id == 1234) my_add_my_plugin_page_function();
Sorry, i made a mistake in my last post. I try to explane it:
On /wp-admin/ms-options.php i diabled the option Enable administration menus (because i dont want to give plugin-access to my users), but i want that some special blogs can still access the plugin-managment. Now i want to write a plugin where i can list all $blog_id´s and give them access like:
if($blog_id == 1234 || $blog_id == 1235 || $blog_id == 1236) function_to_allow_plugin_access();
Is there a core function for this, or can i overwrite the setting´s from /wp-admin/ms-options.php
Best regards and thanks for your help!
You won’t be able to keep the network setting to disable the Plugins Menu and allow some users/blogs access to plugin admin at the same time – not without editing the core file, which I won’t suggest.
I do suggest:
http://firestats.cc/wiki/WPMUPluginCommander
Have you kicked the tires of the Plugin Commander? It does something similar, I think.
It keeps the default Plugin menu disabled but enables(creates) a new plugin administration page to manage plugins per site.