summaryrefslogtreecommitdiff
path: root/includes/pages/user_settings.php
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2014-12-06 18:10:27 +0100
committerPhilip Häusler <msquare@notrademark.de>2014-12-06 18:37:39 +0100
commit57a92dbdcd1ecd27bde621e9a51dbbd11ed82845 (patch)
tree8e4dafbe9375961325d0767bd6f0c6dc778e06ac /includes/pages/user_settings.php
parent191ba6e1b14b94a3a46c16ca488f388c82120bad (diff)
add opt-in bool for shiftinfo mails and remove icq from users
Diffstat (limited to 'includes/pages/user_settings.php')
-rw-r--r--includes/pages/user_settings.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/includes/pages/user_settings.php b/includes/pages/user_settings.php
index 1e593652..d39793ee 100644
--- a/includes/pages/user_settings.php
+++ b/includes/pages/user_settings.php
@@ -16,7 +16,6 @@ function user_settings() {
$dect = $user['DECT'];
$mobile = $user['Handy'];
$mail = $user['email'];
- $icq = $user['ICQ'];
$jabber = $user['jabber'];
$hometown = $user['Hometown'];
$tshirt_size = $user['Size'];
@@ -59,8 +58,6 @@ function user_settings() {
$msg .= error(_("Please enter your e-mail."), true);
}
- if (isset($_REQUEST['icq']))
- $icq = strip_request_item('icq');
if (isset($_REQUEST['jabber']) && strlen(strip_request_item('jabber')) > 0) {
$jabber = strip_request_item('jabber');
if (! check_email($jabber)) {
@@ -97,7 +94,7 @@ function user_settings() {
$hometown = strip_request_item('hometown');
if ($ok) {
- sql_query("UPDATE `User` SET `Nick`='" . sql_escape($nick) . "', `Vorname`='" . sql_escape($prename) . "', `Name`='" . sql_escape($lastname) . "', `Alter`='" . sql_escape($age) . "', `Telefon`='" . sql_escape($tel) . "', `DECT`='" . sql_escape($dect) . "', `Handy`='" . sql_escape($mobile) . "', `email`='" . sql_escape($mail) . "', `ICQ`='" . sql_escape($icq) . "', `jabber`='" . sql_escape($jabber) . "', `Size`='" . sql_escape($tshirt_size) . "', `Hometown`='" . sql_escape($hometown) . "' WHERE `UID`=" . sql_escape($user['UID']));
+ sql_query("UPDATE `User` SET `Nick`='" . sql_escape($nick) . "', `Vorname`='" . sql_escape($prename) . "', `Name`='" . sql_escape($lastname) . "', `Alter`='" . sql_escape($age) . "', `Telefon`='" . sql_escape($tel) . "', `DECT`='" . sql_escape($dect) . "', `Handy`='" . sql_escape($mobile) . "', `email`='" . sql_escape($mail) . "', `jabber`='" . sql_escape($jabber) . "', `Size`='" . sql_escape($tshirt_size) . "', `Hometown`='" . sql_escape($hometown) . "' WHERE `UID`=" . sql_escape($user['UID']));
// Assign angel-types
$user_angel_type_info = array();
@@ -178,7 +175,6 @@ function user_settings() {
form_text('dect', _("DECT"), $dect),
form_text('mobile', _("Mobile"), $mobile),
form_text('mail', _("E-Mail") . "*", $mail),
- form_text('icq', _("ICQ"), $icq),
form_text('jabber', _("Jabber"), $jabber),
form_text('hometown', _("Hometown"), $hometown),
$enable_tshirt_size ? form_select('tshirt_size', _("Shirt size"), $tshirt_sizes, $tshirt_size) : '',