application/ship-simu/main/menu/class_ShipSimuConfirmMenu.php -text
application/ship-simu/main/menu/class_ShipSimuHomeMenu.php -text
application/ship-simu/main/menu/class_ShipSimuLoginAreaMenu.php -text
+application/ship-simu/main/menu/class_ShipSimuLoginFailedMenu.php -text
application/ship-simu/main/menu/class_ShipSimuLoginMenu.php -text
application/ship-simu/main/menu/class_ShipSimuLogoutMenu.php -text
application/ship-simu/main/menu/class_ShipSimuRegisterMenu.php -text
// CFG: LOGIN-FAILED-URL
$cfg->setConfigEntry('login_failed_url', 'index.php?app={?app_short_name?}&page=login_failed');
+// CFG: LOGIN-FAILED-LOGIN-RETRY-ACTION-URL
+$cfg->setConfigEntry('login_failed_login_retry_action_url', 'index.php?app={?app_short_name?}&page=login&note=login_failed');
+
// CFG: LOGOUT-DONE-URL
$cfg->setConfigEntry('logout_done_url', 'index.php?app={?app_short_name?}&page=logout_done');
// CFG: CAPTCHA-REFILL-VERFIER-FILTER
$cfg->setConfigEntry('captcha_refill_verifier_filter', 'GraphicalCodeCaptchaVerifierFilter');
+// CFG: CAPTCHA-GOVERNMENT-VERFIER-FILTER
+$cfg->setConfigEntry('captcha_government_verifier_filter', 'GraphicalCodeCaptchaVerifierFilter');
+
// CFG: CAPTCHA-PROFILE-VERFIER-FILTER
$cfg->setConfigEntry('captcha_profile_verifier_filter', 'GraphicalCodeCaptchaVerifierFilter');
// CFG: HOME-MENU-CLASS
$cfg->setConfigEntry('home_menu_class', 'ShipSimuHomeMenu');
+// CFG: LOGIN-FAILED-MENU-CLASS
+$cfg->setConfigEntry('login_failed_menu_class', 'ShipSimuLoginFailedMenu');
+
// CFG: STATUS-MENU-CLASS
$cfg->setConfigEntry('status_menu_class', 'ShipSimuStatusMenu');
* @todo 0% done
*/
public function execute (Requestable $requestInstance, Responseable $responseInstance) {
- $this->partialStub('Unfinished method.');
+ // Get a wrapper instance
+ $wrapperInstance = ObjectFactory::createObjectByConfiguredName('user_gov_wrapper_class');
+
+ // Register the startup help
+ $wrapperInstance->registerStartupHelpByRequest($requestInstance);
}
/**
$controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('account_password_filter'));
// Verify CAPTCHA code
- $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('captcha_refill_verifier_filter'));
+ $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('captcha_government_verifier_filter'));
}
}
* @todo 0% done
*/
public function execute (Requestable $requestInstance, Responseable $responseInstance) {
- $this->partialStub('Unfinished method.');
+ // Get a wrapper instance
+ $wrapperInstance = ObjectFactory::createObjectByConfiguredName('user_gov_wrapper_class');
+
+ // Register the training
+ $wrapperInstance->registerTrainingByRequest($requestInstance);
}
/**
--- /dev/null
+<?php
+/**
+ * A LoginFailed menu class for Ship-Simu
+ *
+ * @author Roland Haeder <webmaster@ship-simu.org>
+ * @version 0.0.0
+ * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 Ship-Simu Developer Team
+ * @license GNU GPL 3.0 or any newer version
+ * @link http://www.ship-simu.org
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+class ShipSimuLoginFailedMenu extends BaseMenu implements RenderableMenu {
+ /**
+ * Protected constructor
+ *
+ * @return void
+ */
+ protected function __construct () {
+ // Call parent constructor
+ parent::__construct(__CLASS__);
+ }
+
+ /**
+ * Creates an instance of this class
+ *
+ * @return $menuInstance An instance of this class
+ */
+ public final static function createShipSimuLoginFailedMenu () {
+ // Get a new instance
+ $menuInstance = new ShipSimuLoginFailedMenu();
+
+ // Return the prepared instance
+ return $menuInstance;
+ }
+}
+
+// [EOF]
+?>
/**
* Hashed password
*/
- private $hashedPassword = "";
+ private $hashedPassword = '';
/**
* Elements for criteria
$configEntry = 'user_status_unconfirmed';
// Is the confirmation process entirely disabled?
- if ($this->getConfigInstance()->getConfigEntry('confirm_email_enabled') === "N") {
+ if ($this->getConfigInstance()->getConfigEntry('confirm_email_enabled') === 'N') {
// No confirmation of email needed
$configEntry = 'user_status_confirmed';
} // END - if
}
// Is this a guest account?
- if ((($element == "username") || ($alias == "username")) && ($this->getRequestInstance()->getRequestElement($element) == $this->getConfigInstance()->getConfigEntry('guest_login_user'))) {
+ if ((($element == 'username') || ($alias == 'username')) && ($this->getRequestInstance()->getRequestElement($element) == $this->getConfigInstance()->getConfigEntry('guest_login_user'))) {
// Yes, then set the config entry to guest status
$configEntry = 'user_status_guest';
} // END - if
$criteriaInstance->addConfiguredCriteria(UserDatabaseWrapper::DB_COLUMN_USER_STATUS, $configEntry);
// Include registration timestamp
- $criteriaInstance->addCriteria("registered", date("Y-m-d H:i:s", time()));
+ $criteriaInstance->addCriteria('registered', date('Y-m-d H:i:s', time()));
}
}
// Return the instance
return $wrapperInstance;
}
+
+ /**
+ * Registers the given startup help request with the government
+ *
+ * @param $requestInstance A Requestable instance
+ * @return void
+ */
+ public function registerStartupHelpByRequest (Requestable $requestInstance) {
+ $requestInstance->debugInstance();
+ }
}
// [EOF]