]> 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 68c63569675123aaac3a406c1463eb930d4c02d2..11d8eee412eadd013fb2b0197b825803db8baa2c 100644 (file)
@@ -19,11 +19,11 @@ function user_allow($hash)
        $a = get_app();
 
        $register = q("SELECT * FROM `register` WHERE `hash` = '%s' LIMIT 1",
-               dbesc($hash)
+               DBA::escape($hash)
        );
 
 
-       if (!DBA::is_result($register)) {
+       if (!DBA::isResult($register)) {
                return false;
        }
 
@@ -31,12 +31,12 @@ function user_allow($hash)
                intval($register[0]['uid'])
        );
 
-       if (!DBA::is_result($user)) {
+       if (!DBA::isResult($user)) {
                killme();
        }
 
        $r = q("DELETE FROM `register` WHERE `hash` = '%s'",
-               dbesc($register[0]['hash'])
+               DBA::escape($register[0]['hash'])
        );
 
 
@@ -47,7 +47,7 @@ function user_allow($hash)
        $r = q("SELECT * FROM `profile` WHERE `uid` = %d AND `is-default` = 1",
                intval($user[0]['uid'])
        );
-       if (DBA::is_result($r) && $r[0]['net-publish']) {
+       if (DBA::isResult($r) && $r[0]['net-publish']) {
                $url = System::baseUrl() . '/profile/' . $user[0]['nickname'];
                if ($url && strlen(Config::get('system', 'directory'))) {
                        Worker::add(PRIORITY_LOW, "Directory", $url);
@@ -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,10 +78,10 @@ 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::is_result($register)) {
+       if (!DBA::isResult($register)) {
                return false;
        }