function users() { include "settings.php"; # Creer het settings object $settings = SpotSettings::singleton($this->_db, $settings); $spotUserUpgrader = new SpotUserUpgrader($this->_db, $settings); $spotUserUpgrader->update(); } # users
function resetPassword($username) { # Create the settings object $settings = SpotSettings::singleton($this->_db, $this->_phpSettings); $spotUserUpgrader = new SpotUserUpgrader($this->_db, $settings); # retrieve the userid $spotUserUpgrader->resetUserPassword($username, 'spotweb'); }