diff admajax.php @ 716:e7fbcf4190e6

Add registration host.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 12 Nov 2014 16:31:35 +0200
parents 0fa410eb9bf1
children 5ef230336e67
line wrap: on
line diff
--- a/admajax.php	Wed Nov 12 04:37:50 2014 +0200
+++ b/admajax.php	Wed Nov 12 16:31:35 2014 +0200
@@ -1120,6 +1120,7 @@
           "  <th class=\"regtime\">Registered</th>\n".
           "  <th class=\"oneliner\">Oneliner</th>\n".
           "  <th class=\"email\">E-mail</th>\n".
+          "  <th class=\"reghost\">RegHost</th>\n".
           "  <th>Actions</th>\n".
           " </tr>\n";
 
@@ -1503,10 +1504,7 @@
     else
     if ($type == "attendees" && stValidateRequestUserData(TRUE, FALSE))
     {
-      $sql = stPrepareSQL(
-        "INSERT INTO attendees (regtime,name,groups,oneliner,email) VALUES (%d,%S,%S,%S,%S)",
-        time(), "name", "groups", "oneliner", "email");
-
+      $sql = stGetAttendeeRegistrationSQL();
       stExecSQLCond($sql, "OK, attendee added.");
     }
     else
@@ -1555,6 +1553,7 @@
             "groups" => "S",
             "email" => "S",
             "oneliner" => "S",
+            "reghost" => "S",
           ));
 
         stExecSQLCond($sql, "OK, attendee updated.");