]> git.mxchange.org Git - friendica.git/blobdiff - mod/regmod.php
Get PHP Configuration for upload limit and display in /admin summary site
[friendica.git] / mod / regmod.php
index 7380056536db24b5eb98558dba52fccc1d873847..11d8eee412eadd013fb2b0197b825803db8baa2c 100644 (file)
@@ -19,7 +19,7 @@ function user_allow($hash)
        $a = get_app();
 
        $register = q("SELECT * FROM `register` WHERE `hash` = '%s' LIMIT 1",
-               dbesc($hash)
+               DBA::escape($hash)
        );
 
 
@@ -36,7 +36,7 @@ function user_allow($hash)
        }
 
        $r = q("DELETE FROM `register` WHERE `hash` = '%s'",
-               dbesc($register[0]['hash'])
+               DBA::escape($register[0]['hash'])
        );
 
 
@@ -61,7 +61,8 @@ function user_allow($hash)
                Config::get('config', 'sitename'),
                System::baseUrl(),
                $user[0]['username'],
-               $register[0]['password']);
+               $register[0]['password'],
+               $user[0]);
 
        L10n::popLang();
 
@@ -77,7 +78,7 @@ function user_allow($hash)
 function user_deny($hash)
 {
        $register = q("SELECT * FROM `register` WHERE `hash` = '%s' LIMIT 1",
-               dbesc($hash)
+               DBA::escape($hash)
        );
 
        if (!DBA::isResult($register)) {