2014012000-1.8.18-remember_me-9a8a433685cf7be9.php 307 B

123456789101112131415161718
  1. <?php
  2. /**
  3. * Elgg 1.8.18 upgrade 2014012000
  4. *
  5. * Resets the remember me codes for admin users
  6. */
  7. $prefix = elgg_get_config('dbprefix');
  8. $query = "
  9. DELETE FROM {$prefix}users_remember_me_cookies
  10. WHERE guid IN (
  11. SELECT guid
  12. FROM {$prefix}users_entity
  13. WHERE admin = 'yes'
  14. )
  15. ";
  16. update_data($query);