Mercurial > hg > fapweb
comparison register.inc.php @ 183:320d6b68062b
Cosmetics.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 08 Nov 2013 12:08:16 +0200 |
parents | e227e6a3d46b |
children | 1b30c2107e5b |
comparison
equal
deleted
inserted
replaced
182:e227e6a3d46b | 183:320d6b68062b |
---|---|
164 if (hashToAnswer($hash) != intval($answer)) | 164 if (hashToAnswer($hash) != intval($answer)) |
165 stError("Incorrect answer to I.Q. / bot check."); | 165 stError("Incorrect answer to I.Q. / bot check."); |
166 | 166 |
167 if ($errorSet) | 167 if ($errorSet) |
168 { | 168 { |
169 echo "<p>Following errors occured:</p>\n". | 169 echo |
170 "<ul>\n".$errorMsg."</ul>\n"; | 170 "<p>Following errors occured:</p>\n". |
171 "<ul>\n".$errorMsg."</ul>\n"; | |
171 stPrintFormData("Go back"); | 172 stPrintFormData("Go back"); |
172 } | 173 } |
173 else | 174 else |
174 { | 175 { |
175 $sql = stPrepareSQL( | 176 $sql = stPrepareSQL( |
176 "INSERT INTO attendees (regtime,name,groups,oneliner,email) VALUES (%d,%S,%S,%S,%S)", | 177 "INSERT INTO attendees (regtime,name,groups,oneliner,email) VALUES (%d,%S,%S,%S,%S)", |
177 time(), "name", "groups", "oneliner", "email"); | 178 time(), "name", "groups", "oneliner", "email"); |
178 | 179 |
179 if (stExecSQL($sql) !== FALSE) | 180 if (stExecSQL($sql) !== FALSE) |
180 { | 181 { |
181 echo "<h1>Registration successful</h1>\n". | 182 echo stGetSetting("registerPostText"); |
182 stGetSetting("registerPostText"); | |
183 | 183 |
184 if (stChkDataItem("email")) | 184 if (stChkDataItem("email")) |
185 echo stGetSetting("registerPostNoEmail"); | 185 echo stGetSetting("registerPostNoEmail"); |
186 } | 186 } |
187 else | 187 else |
188 { | 188 { |
189 echo "<h1>An error occured.</h1>\n"; | 189 echo |
190 echo "<p>Oh noes! SQL error happenstance!</p>"; | 190 "<h1>An error occured.</h1>\n". |
191 "<p>Oh noes! SQL error happenstance!</p>"; | |
191 } | 192 } |
192 } | 193 } |
193 } | 194 } |
194 ?> | 195 ?> |