Multisite – Show ‘System Report’ only to super admins
-
Hi. Thanks for updating this great plugin.
We use it in a multisite installation. It works great.The only thing that we think posses a security issue, on a multisite installation is that on the Settings page /wp-admin/admin.php?page=ics-calendar the ‘System Report’ section is available also to the sub-site admins and it contains information about the PHP etc from the multisite installation.
A solution for showing this info only to superadmins for multisite installations and to admins for normal WordPress installations is at the /ics-calendar/templates/admin/utilities.php file to add the if statement on line 95.
The only thing that we think posses a security issue, on a multisite installation is that on the Settings page /wp-admin/admin.php?page=ics-calendar the ‘System Report’ section is available also to the sub-site admins and it contains information about the PHP etc from the multisite installation.
A solution for showing this info only to superadmins for multisite installations and to admins for normal WordPress installations is at the /ics-calendar/templates/admin/utilities.php file to add the if statement on line 95.So the code from line 95 would be.
<?php if (is_super_admin()) {?> <hr /> <div id="system-report"> <h3><?php _e('System Report', 'r34ics'); ?></h3> <p><mark class="info"><?php _e('Please copy the following text and include it in your message when emailing support.', 'r34ics'); ?><br /> <?php printf(__('Also please include the %1$s shortcode exactly as you have it entered on the affected page.', 'r34ics'), 'ICS Calendar'); ?></mark></p> <textarea class="diagnostics-window" readonly="readonly" style="cursor: copy;" onclick="this.select(); document.execCommand('copy');"><?php r34ics_system_report(); ?></textarea> </div> <?php }
Thanks in advance.Lena
- The topic ‘Multisite – Show ‘System Report’ only to super admins’ is closed to new replies.