summaryrefslogtreecommitdiff
path: root/includes/pages/guest_login.php
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2011-06-13 19:34:01 +0200
committerPhilip Häusler <msquare@notrademark.de>2011-06-13 19:34:01 +0200
commit3d15b591e3f4196846fff005cc800feb383073c7 (patch)
tree3b4385f7efb6b818485e9e3fbaded249e8607d7e /includes/pages/guest_login.php
parent0b2d976b81195b3d7a2ab50da6f1e0edba59e5ce (diff)
cleanup, security sql fixes
Diffstat (limited to 'includes/pages/guest_login.php')
-rw-r--r--includes/pages/guest_login.php14
1 files changed, 6 insertions, 8 deletions
diff --git a/includes/pages/guest_login.php b/includes/pages/guest_login.php
index db20a207..ecfcde20 100644
--- a/includes/pages/guest_login.php
+++ b/includes/pages/guest_login.php
@@ -3,6 +3,8 @@
// Engel registrieren
function guest_register() {
+ global $SubscribeMailinglist;
+
$html = "";
$success = "none";
@@ -75,15 +77,11 @@ function guest_register() {
} else {
$html .= "<p class=\"success\">" . Get_Text("makeuser_writeOK") . "\n";
- $Erg3 = mysql_query("INSERT INTO `UserGroups` SET `uid`=" . sql_escape(sql_id()) . ", `group_id`=-2");
+ // Assign user-group
+ sql_query("INSERT INTO `UserGroups` SET `uid`=" . sql_escape(sql_id()) . ", `group_id`=-2");
- if ($Erg3 != 1) {
- $html .= "<h1>" . Get_Text("makeuser_error_write2") . "<br />\n";
- $error = sql_error();
- } else {
- $html .= Get_Text("makeuser_writeOK2") . "<br />\n";
- $html .= "<h1>" . Get_Text("makeuser_writeOK3") . "</h1>\n";
- }
+ $html .= Get_Text("makeuser_writeOK2") . "<br />\n";
+ $html .= "<h1>" . Get_Text("makeuser_writeOK3") . "</h1>\n";
$html .= Get_Text("makeuser_writeOK4") . "</p><p></p>\n<br /><br />\n";
$success = "any";