summaryrefslogtreecommitdiff
path: root/includes/sys_user.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/sys_user.php')
-rw-r--r--includes/sys_user.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/includes/sys_user.php b/includes/sys_user.php
index ccf5da6c..be3be3d1 100644
--- a/includes/sys_user.php
+++ b/includes/sys_user.php
@@ -19,6 +19,11 @@ $tshirt_sizes = array (
'XL-G' => "XL Girl"
);
+function user_reset_ical_key($user) {
+ $user['ical_key'] = md5($user['Nick'] . time() . rand());
+ sql_query("UPDATE `User` SET `ical_key`='" . sql_escape($user['ical_key']) . "' WHERE `UID`='" . sql_escape($user['UID']) . "' LIMIT 1");
+}
+
function UID2Nick($UID) {
if ($UID > 0)
$SQL = "SELECT Nick FROM `User` WHERE UID='" . sql_escape($UID) . "'";