plugin.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  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' => '', // 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' => 'api/plugins/speedTest/logo.png', // 1:1 non transparent image for plugin
  13. 'settings' => true, // does plugin need a settings modal?
  14. 'bind' => true, // use default bind to make settings page - true or false
  15. 'api' => 'api/v2/plugins/speedtest/settings', // api route for settings page
  16. 'homepage' => false // Is plugin for use on homepage? true or false
  17. );
  18. class SpeedTest extends Organizr
  19. {
  20. public function speedTestGetSettings()
  21. {
  22. return array(
  23. 'Options' => array(
  24. array(
  25. 'type' => 'select',
  26. 'name' => 'SPEEDTEST-Auth-include',
  27. 'label' => 'Minimum Authentication',
  28. 'value' => $this->config['SPEEDTEST-Auth-include'],
  29. 'options' => $this->groupSelect()
  30. )
  31. )
  32. );
  33. }
  34. }