// Add description as navigation point
ADD_DESCR("admin", __FILE__);
-if ((!empty($_POST['uid'])) && (!empty($_POST['id'])))
-{
+if ((!empty($_POST['uid'])) && (!empty($_POST['id']))) {
// Update database...
// First user's account
- $result = SQL_QUERY_ESC("UPDATE `"._MYSQL_PREFIX."_user_data` SET nl_until='".time()."+nl_timespan', nl_receive='N', nl_timespan='0' WHERE userid=%s LIMIT 1",
- array(bigintval($_POST['uid'])), __FILE__, __LINE__);
+ SQL_QUERY_ESC("UPDATE `"._MYSQL_PREFIX."_user_data` SET nl_until=(UNIX_TIMESTAMP() + nl_timespan), nl_receive='N', nl_timespan=0 WHERE userid=%s LIMIT 1",
+ array(bigintval($_POST['uid'])), __FILE__, __LINE__);
// Next the task system...
RUN_FILTER('solve_task', bigintval($_POST['id']));
// Output message to admin
LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_NL_MEMBER_DONE);
-}
- else
-{
- // Currently under construction!
+} else {
+ // @TODO Currently under construction!
LOAD_TEMPLATE("admin_settings_saved", false, UNDER_CONSTRUCTION);
}
+
//
?>