Missing birthday elements added, missing config added
authorRoland Häder <roland@mxchange.org>
Tue, 25 Aug 2009 22:19:14 +0000 (22:19 +0000)
committerRoland Häder <roland@mxchange.org>
Tue, 25 Aug 2009 22:19:14 +0000 (22:19 +0000)
- Missing birth_day, birth_month and birth_year added to registration and
  profile command class
- A lot missing configuration entries added
- Some more double quotes converted to single quotes

application/ship-simu/config.php
application/ship-simu/main/commands/web/class_WebShipsimuProfileCommand.php
application/ship-simu/main/controller/web/class_WebCompanyController.php
application/ship-simu/main/login/class_ShipSimuGuestLogin.php
application/ship-simu/main/login/class_ShipSimuUserLogin.php
application/ship-simu/main/registration/class_ShipSimuRegistration.php

index 363450b..b3197bc 100644 (file)
@@ -181,6 +181,12 @@ $cfg->setConfigEntry('logout_done_relogin_action_url', 'index.php?app={?app_shor
 // CFG: LOGIN-REGISTER-ACTION-URL
 $cfg->setConfigEntry('login_register_action_url', 'index.php?app={?app_short_name?}&amp;page=register');
 
+// CFG: CONFIRM-DIRECT-LOGIN-ACTION-URL
+$cfg->setConfigEntry('confirm_direct_login_action_url', 'index.php?app={?app_short_name?}&amp;page=login_area');
+
+// CFG: WEB-CMD-USER-IS-NULL-URL
+$cfg->setConfigEntry('web_cmd_user_is_null_url', 'index.php?app={?app_short_name?}&amp;page=problem&amp;problem=user_null');
+
 // CFG: NEWS-READER-HOME-CLASS
 $cfg->setConfigEntry('news_reader_home_class', 'DefaultNewsReader');
 
@@ -457,6 +463,24 @@ $cfg->setConfigEntry('web_cmd_government_failed_resolver_class', 'WebGovernmentF
 // CFG: WEB-CMD-COMPANY-RESOLVER-CLASS
 $cfg->setConfigEntry('web_cmd_company_resolver_class', 'WebCompanyCommandResolver');
 
+// CFG: WEB-CMD-HOME-RESOLVER-CLASS
+$cfg->setConfigEntry('web_cmd_home_resolver_class', 'WebCommandResolver');
+
+// CFG: WEB-CMD-REGISTER-RESOLVER-CLASS
+$cfg->setConfigEntry('web_cmd_register_resolver_class', 'WebCommandResolver');
+
+// CFG: WEB-CMD-DO-FORM-RESOLVER-CLASS
+$cfg->setConfigEntry('web_cmd_do_form_resolver_class', 'WebCommandResolver');
+
+// CFG: WEB-CMD-LOGIN-AREA-RESOLVER-CLASS
+$cfg->setConfigEntry('web_cmd_login_area_resolver_class', 'WebCommandResolver');
+
+// CFG: WEB-CMD-CONFIRM-RESOLVER-CLASS
+$cfg->setConfigEntry('web_cmd_confirm_resolver_class', 'WebCommandResolver');
+
+// CFG: WEB-CMD-PROBLEM-RESOLVER-CLASS
+$cfg->setConfigEntry('web_cmd_problem_resolver_class', 'WebCommandResolver');
+
 // CFG: REFILL-REQUEST-CURRENCY-PAYMENT-TYPE
 $cfg->setConfigEntry('refill_request_currency_payment_type', 'test');
 
index 995ebf7..1e37e8c 100644 (file)
@@ -43,7 +43,10 @@ class WebShipsimuProfileCommand extends BaseCommand implements Commandable {
                'yahoo',
                'aol',
                'msn',
-               'rules'
+               'rules',
+               'birth_day',
+               'birth_month',
+               'birth_year'
        );
 
        /**
index 6cd2c44..6e19673 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * Controller for failed government requests
+ * Controller for company requests
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
index 1b3522b..96eed36 100644 (file)
@@ -25,7 +25,7 @@ class ShipSimuGuestLogin extends BaseFrameworkSystem implements LoginableUser {
        /**
         * The hashed password
         */
-       private $hashedPassword = "";
+       private $hashedPassword = '';
 
        /**
         * Protected constructor
index c5d6448..70c32e8 100644 (file)
@@ -25,7 +25,7 @@ class ShipSimuUserLogin extends BaseFrameworkSystem implements LoginableUser {
        /**
         * The hashed password
         */
-       private $hashedPassword = "";
+       private $hashedPassword = '';
 
        /**
         * Protected constructor
@@ -81,7 +81,6 @@ class ShipSimuUserLogin extends BaseFrameworkSystem implements LoginableUser {
                // Is the password correct?
                if ($userInstance->ifPasswordHashMatches($requestInstance) === false) {
                        // Mismatching password
-                       $userInstance->debugInstance();
                        throw new UserPasswordMismatchException(array($this, $userInstance), BaseUser::EXCEPTION_USER_PASS_MISMATCH);
                } // END - if
 
index 8b5398e..e870c00 100644 (file)
@@ -43,7 +43,10 @@ class ShipSimuRegistration extends BaseRegistration implements UserRegister {
                'jabber',
                'yahoo',
                'aol',
-               'msn'
+               'msn',
+               'birth_day',
+               'birth_month',
+               'birth_year'
        );
 
        /**
@@ -171,9 +174,15 @@ class ShipSimuRegistration extends BaseRegistration implements UserRegister {
                        if (is_string($alias)) {
                                // Yes, so use it
                                $criteriaInstance->addCriteria($alias, $this->getRequestInstance()->getRequestElement($element));
+
+                               // Debug message
+                               //* DEBUG: */ $this->debugOutput('ALIAS: alias='.$alias.',element='.$element.'='.$this->getRequestInstance()->getRequestElement($element));
                        } else {
                                // No, default entry
                                $criteriaInstance->addCriteria($element, $this->getRequestInstance()->getRequestElement($element));
+
+                               // Debug message
+                               //* DEBUG: */ $this->debugOutput('DEFAULT: element='.$element.'='.$this->getRequestInstance()->getRequestElement($element));
                        }
 
                        // Is this a guest account?