install.php 775 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /* PHP code to install the plugin
  3. * For example:
  4. *
  5. // To query something to the database
  6. $table = Database::get_main_table(TABLE_MAIN_USER); // TABLE_MAIN_USER is a constant check the main/inc/database.constants.inc.php
  7. $sql = "SELECT firstname, lastname FROM $table_users ";
  8. $users = Database::query($sql);
  9. You can also use the Chamilo classes
  10. $users = UserManager::get_user_list();
  11. */
  12. global $_configuration;
  13. api_add_setting(
  14. @$_configuration['defaults']['customfooter_footer_left'],
  15. 'customfooter_footer_left',
  16. 'customfooter',
  17. 'setting',
  18. 'Plugins'
  19. );
  20. api_add_setting(
  21. @$_configuration['defaults']['customfooter_footer_right'],
  22. 'customfooter_footer_right',
  23. 'customfooter',
  24. 'setting',
  25. 'Plugins'
  26. );