X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=include%2Fpreferences.php;h=61ce1cd5269471a7f69c6073310f0c79fac682e2;hp=b30e7cb365fe5782a513cff7fc704f1a6e55ef9b;hb=6da798e39be09e3cea651be2c7d826b79450a1f8;hpb=36702d88963e5646c3e715f72c31ec75f7cb0fcb diff --git a/include/preferences.php b/include/preferences.php index b30e7cb..61ce1cd 100644 --- a/include/preferences.php +++ b/include/preferences.php @@ -86,7 +86,7 @@ if(myisset('vacation_start','vacation_stop','vacation_comment') && $changed_vacation = -1; /* test if we should delete the entry */ - if($vacation_start == '- 00:00:00') + if($_REQUEST['vacation_start'] == $_REQUEST['vacation_stop']) { $result = DB_query("DELETE FROM User_Prefs". " WHERE user_id='$myid' AND pref_key='vacation start'" ); @@ -332,17 +332,17 @@ echo "
\n"; echo ' '._('Game-related')."\n"; echo " \n"; -echo ' \n"; +echo ' \n"; if($PREF['vacation_start']) $value = substr($PREF['vacation_start'],0,10); else $value = ''; -echo " \n"; +echo " \n"; if($PREF['vacation_stop']) $value = substr($PREF['vacation_stop'],0,10); else $value = ''; -echo " \n"; +echo " \n"; if($PREF['vacation_comment']) $value = $PREF['vacation_comment']; else @@ -351,8 +351,8 @@ echo ' \n"; -echo "\n"; -echo " \n"; +echo ' \n"; -echo " \n"; -echo " \n"; -echo " \n"; -echo " \n"; echo "
'._('Vacation:')."
'._('Vacation').": start:"._('start').":stop:"._('stop').":'._('comment:')."
use YYYY-MM-DDuse '-' in start field to unset vacation
Notification: \n"; +echo '
'._("set both dates to the same day to end vacation")."
'._('Notification').": \n"; echo " "; if($changed_notify) echo _('changed'); echo "
Digest: \n"; +echo '
'._('Digest').": \n"; echo "
Autosetup: \n"; +echo '
'._('Autosetup').": \n"; echo " "; if($changed_sorting) echo _('changed'); echo "
Open for new games: \n"; +echo '
'._('Open for new games').": \n"; echo " "; if($changed_openforgames) echo _('changed'); echo "
Card set: \n"; +echo '
'.('Card set').": \n"; echo " "; if($changed_cards) echo _('changed'); @@ -474,45 +474,45 @@ echo "
\n"; echo "
\n"; echo "
\n"; -echo " Personal\n"; +echo ' '._('Personal')."\n"; echo " \n"; -echo " \n"; -echo " \n"; +echo ' \n"; -echo " \n"; -echo " \n"; -echo " \n"; -echo " \n"; echo "
Email: $email
Timezone: \n"; +echo '
'._('Email').": $email
'._('Timezone').": \n"; output_select_timezone("timezone",$timezone); if($changed_timezone) echo _('changed'); echo "
Language: \n"; +echo '
'._('Language').": \n"; output_select_language("language",$PREF['language']); if($changed_language == 1) echo _('changed'); echo "
Password(old): ", +echo '
'._('Password(old)').": ", ""; switch($changed_password) { case '-3': - echo "The new passwords is not long enough (you need at least 4 characters)."; + echo _('The new passwords is not long enough (you need at least 4 characters).'); break; case '-2': - echo "The new passwords don't match."; + echo _('The new passwords don\'t match.'); break; case '-1': - echo "The old password is not correct."; + echo _('The old password is not correct.'); break; case '1': echo _('changed'); break; } echo "
Password(new): ", +echo '
'._('Password(new)').": ", "", "
Password(new, retype): ", +echo '
'._('Password(new, retype)').": ", "", "
\n"; echo "
\n"; echo "
\n"; -echo " OpenID\n"; +echo ' '._('OpenID')."\n"; $openids = array(); $openids = DB_GetOpenIDsByUser($myid); @@ -531,15 +531,30 @@ if(sizeof($openids)) echo " \n"; } -echo " add OpenID: ", +echo ' '._('add OpenID').': ', ""; if($changed_openid) - echo " Deleted some OpenIDs!
\n"; + echo ' '._('Deleted some OpenIDs!')."
\n"; echo "
\n"; -echo "
Submit
\n"; +echo '
'._('Submit')."
\n"; echo " \n"; -echo "

E-DoKo uses gravatars as icons.

"; +echo '

'._('E-DoKo uses gravatars as icons.').'

'; echo "\n"; +// add jquery date picker if html5 is not available +?> + + \ No newline at end of file