]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-mydata.php
More rewrites, and output-mode fixed (we should documentate this)
[mailer.git] / inc / modules / member / what-mydata.php
index 17a435539a2faba819d62c536e24445c9687b91c..adbd169537aa0b8ac910311360359708a7a2faf4 100644 (file)
@@ -85,19 +85,19 @@ switch ($mode) {
 
                // Translate some things
                $content['gender']      = translateGender($content['gender']);
 
                // Translate some things
                $content['gender']      = translateGender($content['gender']);
-               $content['last_update'] = generateDateTime($content['last_update'], '0');
+               $content['last_update'] = generateDateTime($content['last_update'], 0);
 
                // How far is last change on his profile away from now?
                if ((($content['last_update'] + getConfig('profile_lock')) > time()) && (!isAdmin()) && (getConfig('profile_lock') > 0)) {
                        // You cannot change your account
 
                // How far is last change on his profile away from now?
                if ((($content['last_update'] + getConfig('profile_lock')) > time()) && (!isAdmin()) && (getConfig('profile_lock') > 0)) {
                        // You cannot change your account
-                       $content['change'] = loadTemplate('admin_settings_saved', true, "<div class=\"member_failed\">".sprintf(getMessage('MEMBER_PROFILE_LOCKED'), generateDateTime($content['last_update'] + getConfig('profile_lock'), '0'))."</div>");
+                       $content['change'] = loadTemplate('admin_settings_saved', true, "<div class=\"member_failed\">".sprintf(getMessage('MEMBER_PROFILE_LOCKED'), generateDateTime($content['last_update'] + getConfig('profile_lock'), 0))."</div>");
                } else {
                        // He is allowed to change his profile
                        $content['change'] = loadTemplate('member_mydata_button', true);
                }
 
                } else {
                        // He is allowed to change his profile
                        $content['change'] = loadTemplate('member_mydata_button', true);
                }
 
-               if (strlen($content['birth_day'])   == 1) $content['birth_day']   = '0' . $content['birth_day'];
-               if (strlen($content['birth_month']) == 1) $content['birth_month'] = '0' . $content['birth_month'];
+               if (strlen($content['birth_day'])   == 1) $content['birth_day']   = 0 . $content['birth_day'];
+               if (strlen($content['birth_month']) == 1) $content['birth_month'] = 0 . $content['birth_month'];
 
                switch (getLanguage()) {
                        case 'de': $content['dob'] = $content['birth_day']   . '.' . $content['birth_month'] . '.' . $content['birth_year']; break;
 
                switch (getLanguage()) {
                        case 'de': $content['dob'] = $content['birth_day']   . '.' . $content['birth_month'] . '.' . $content['birth_year']; break;
@@ -144,7 +144,7 @@ LIMIT 1",
 
                // How far is last change on his profile away from now?
                if (($content['update_check'] > time()) && (!isAdmin()) && (getConfig('profile_lock') > 0)) {
 
                // How far is last change on his profile away from now?
                if (($content['update_check'] > time()) && (!isAdmin()) && (getConfig('profile_lock') > 0)) {
-                       $content['update_check'] = generateDateTime($content['update_check'] + getConfig('profile_lock'), '0');
+                       $content['update_check'] = generateDateTime($content['update_check'] + getConfig('profile_lock'), 0);
                        // You cannot change your account
                        loadTemplate('member_mydata_locked', false, $content);
                } else {
                        // You cannot change your account
                        loadTemplate('member_mydata_locked', false, $content);
                } else {
@@ -215,7 +215,7 @@ LIMIT 1",
 
                // How far is last change on his profile away from now?
                if (($content['last_change'] > time()) && (!isAdmin()) && (getConfig('profile_lock') > 0)) {
 
                // How far is last change on his profile away from now?
                if (($content['last_change'] > time()) && (!isAdmin()) && (getConfig('profile_lock') > 0)) {
-                       $content['last_change'] = generateDateTime($content['last_change'] + getConfig('profile_lock'), '0');
+                       $content['last_change'] = generateDateTime($content['last_change'] + getConfig('profile_lock'), 0);
                        // You cannot change your account
                        loadTemplate('member_mydata_locked');
                } elseif ((!isEmailValid(postRequestElement('email'))) && (!isAdmin())) {
                        // You cannot change your account
                        loadTemplate('member_mydata_locked');
                } elseif ((!isEmailValid(postRequestElement('email'))) && (!isAdmin())) {