speedTest.php 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. // PLUGIN INFORMATION
  3. $GLOBALS['plugins'][]['SpeedTest'] = array( // Plugin Name
  4. 'name' => 'SpeedTest', // Plugin Name
  5. 'author' => 'CauseFX', // Who wrote the plugin
  6. 'category' => 'Utilities', // One to Two Word Description
  7. 'link' => 'https://github.com/PHPMailer/PHPMailer', // Link to plugin info
  8. 'license' => 'personal,business', // License Type use , for multiple
  9. 'idPrefix' => 'SPEEDTEST', // html element id prefix
  10. 'configPrefix' => 'SPEEDTEST', // config file prefix for array items without the hypen
  11. 'version' => '1.0.0', // SemVer of plugin
  12. 'image' => 'plugins/images/speedtest.png', // 1:1 non transparent image for plugin
  13. 'settings' => true, // does plugin need a settings page? true or false
  14. 'homepage' => false // Is plugin for use on homepage? true or false
  15. );
  16. class SpeedTest extends Organizr
  17. {
  18. public function speedTestGetSettings()
  19. {
  20. return array(
  21. 'Options' => array(
  22. array(
  23. 'type' => 'select',
  24. 'name' => 'SPEEDTEST-Auth-include',
  25. 'label' => 'Minimum Authentication',
  26. 'value' => $this->config['SPEEDTEST-Auth-include'],
  27. 'options' => $this->groupSelect()
  28. )
  29. )
  30. );
  31. }
  32. }