form_textarea('comment', _("Did you help at former CCC events and which tasks have you performed then?"), $comment),
// form_textarea('comment', _("Did you help at former CCC events and which tasks have you performed then?"), $comment),
form_checkboxes('angel_types', _("What do you want to do?") . sprintf("<br>(<ahref=\"https://events.ccc.de/congress/2012/wiki/Volunteers#What_kind_of_volunteers_are_needed.3F\">%s</a>)", _("Description of job types")), $angel_types, $selected_angel_types),
form_info("", _("Restricted angel types need will be confirmed later by an archangel. You can change your selection in the options section.")),
form_password('password', _("Password") . "*"),
@ -171,7 +171,6 @@ function guest_logout() {
function guest_login() {
global $user;
$msg = "";
$nick = "";
unset($_SESSION['uid']);
@ -187,19 +186,19 @@ function guest_login() {
if (isset($_REQUEST['password'])) {
if (! verify_password($_REQUEST['password'], $login_user['Passwort'], $login_user['UID'])) {
$ok = false;
$msg .= error(_("Your password is incorrect. Please try it again."), true);
error(_("Your password is incorrect. Please try it again."));
}
} else {
$ok = false;
$msg .= error(_("Please enter a password."), true);
error(_("Please enter a password."));
}
} else {
$ok = false;
$msg .= error(_("No user was found with that Nickname. Please try again. If you are still having problems, ask an Dispatcher."), true);
error(_("No user was found with that Nickname. Please try again. If you are still having problems, ask an Dispatcher."));
}
} else {
$ok = false;
$msg .= error(_("Please enter a nickname."), true);
error(_("Please enter a nickname."));
}
if ($ok) {
@ -210,7 +209,6 @@ function guest_login() {
}
return page(array(
$msg,
msg(),
_("Resistance is futile! Your biological and physical parameters will be added to our collectiv! Assimilating angel:"),
@ -10,7 +10,7 @@ function user_unread_messages() {
$new_messages = sql_num_query("SELECT * FROM `Messages` WHERE isRead='N' AND `RUID`=" . sql_escape($user['UID']));
if ($new_messages > 0)
return sprintf('<pclass="info"><ahref="%s">%s</a></p><hr/>', page_link_to("user_messages"), sprintf(_("You have %s new messages.", $new_messages)));
return sprintf('<pclass="info"><ahref="%s">%s</a></p><hr/>', page_link_to("user_messages"), sprintf(ngettext("You have %s new message.", "You have %s new messages.", $new_messages), $new_messages));
}
return "";
@ -23,7 +23,7 @@ function user_messages() {
$users = sql_select("SELECT * FROM `User` WHERE NOT `UID`=" . sql_escape($user['UID']) . " ORDER BY `Nick`");
error(sprintf(_("Do you want to delete the shift %s from %s to %s?"), $shift['name'], date("Y-m-d H:i", $shift['start']), date("H:i", $shift['end'])), true),
'task_notice' => '<sup>1</sup>' . _("The tasks shown here are influenced by the preferences you defined in your settings! <ahref=\"https://events.ccc.de/congress/2012/wiki/Volunteers#What_kind_of_volunteers_are_needed.3F\">Description of the jobs</a>."),
'task_notice' => '<sup>1</sup>' . _("The tasks shown here are influenced by the preferences you defined in your settings!") . "<ahref=\"https://events.ccc.de/congress/2013/wiki/Volunteers#What_kind_of_volunteers_are_needed.3F\">" . _("Description of the jobs.") . "</a>",
'new_style_checkbox' => '<label><inputtype="checkbox"name="new_style"value="1"'.($_SESSION['user_shifts']['new_style']?'checked':'').'> Use new style if possible</label>',
'shifts_table' => $shifts_table,
'ical_text' => sprintf(_("Export of shown shifts. <ahref=\"%s\">iCal format</a> or <ahref=\"%s\">JSON format</a> available (please keep secret, otherwise <ahref=\"%s\">reset the api key</a>)."), page_link_to_absolute('ical') . '&key=' . $user['api_key'], page_link_to_absolute('shifts_json_export') . '&key=' . $user['api_key'], page_link_to('user_myshifts') . '&reset'),
'filter' => _("Filter")
'ical_text' => '<h2>' . _("iCal export") . '</h2><p>' . sprintf(_("Export of shown shifts. <ahref=\"%s\">iCal format</a> or <ahref=\"%s\">JSON format</a> available (please keep secret, otherwise <ahref=\"%s\">reset the api key</a>)."), page_link_to_absolute('ical') . '&key=' . $user['api_key'], page_link_to_absolute('shifts_json_export') . '&key=' . $user['api_key'], page_link_to('user_myshifts') . '&reset') . '</p>',