Microstats - load times, server loads, queries, uncached templates
آخرین زمان حضور: Feb 2017
This is a derivative of Erwin's microstats hack for vBulletin 3.5.0's plugin system. The main difference is that by default it shows the page generation time and query count to the public. Server loads and Uncached Queries are shown only to administrators.
Installation is very simple. Just import the product in the Admin Control Panel and you're done.
Mod này sẽ hiện dòng Page generated in x seconds with y queries cho thành viên, còn admin thì sẽ thấy lun server load và uncached templates. Cài này là plugin của 3.5 nhưng những version sau đều sử dụng đc. Để install chỉ cần inport product vào admincp là xong
Optional config.php Variables
Setting this variable will make microstats place its data before any instance of whatever you set this variable to. Be careful with this as you might see microstats in mutiple places. My suggestion is to use a unique comment in the HTML source to prevent any issues.
E.g. $config['Microstats']['replacementvariable'] = '<!-- display microstats here -->';
Setting this variable to anything will make microstats display itself only to administrators.
E.g. $config['Microstats']['adminonly'] = true;
Product File: Uploaded a product file that replaced the plugin file.
Version 1.2.1: Fixed a bug that broke optional config.php settings
Version 1.2.0: Added OpenBSD, FreeBSD and NetBSD support; added Replacement variable setting in config.php; added Display only to Administrators Setting in config.php; fixed bug affecting Linux/Unix servers that have exec('uptime') support and not /proc/loadavg support
Version 1.1.0: Added names of uncached templates, included a bugfix for people who don't have proc avaliable on their system and made the code look a little nicer as well
Version 1.0.1: Bugfix for Windows users, sanitized the code to make it look nicer
Version 1.0.0: Initial Release