How to check if user is Sysop using Php in Mediawiki?
问题 I am trying to add a div to my sidebar and I only want this block to show to administrators. How can I check if a user is an administrator in php? I am trying to add this to myskin.php file and dont know how to do it. I have been using something like this to check if a user is logged in, <?php if($this->data['loggedin']) { ?> Is there anything similar to that to check if that user is a sysop? 回答1: The code in the answer by *blackops_programmer* checks whether the user can protect pages. Per