X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fsettings.php;h=9970d32595a9815a3792b394891790e6ff3d4143;hb=6957069fb7d12fa4c5b1d8cb6be2718cf47e70c0;hp=f13e89cd16be3869c07ee3a24a22f2a5e3f944b1;hpb=f65d6531cafe625d6be011e135d132ae48fc7c06;p=friendica.git diff --git a/mod/settings.php b/mod/settings.php index f13e89cd16..9970d32595 100644 --- a/mod/settings.php +++ b/mod/settings.php @@ -1,6 +1,7 @@ local_user())); } if(strlen($mail_pass)) { $pass = ''; openssl_public_encrypt($mail_pass,$pass,$a->user['pubkey']); - q("UPDATE `mailacct` SET `pass` = '%s' WHERE `uid` = %d", - dbesc(bin2hex($pass)), - intval(local_user()) - ); + dba::update('mailacct', array('pass' => bin2hex($pass)), array('uid' => local_user())); } $r = q("UPDATE `mailacct` SET `server` = '%s', `port` = %d, `ssltype` = '%s', `user` = '%s', `action` = %d, `movetofolder` = '%s', @@ -722,7 +718,7 @@ function settings_content(App $a) { $r = q("DELETE FROM clients WHERE client_id='%s' AND uid=%d", dbesc($a->argv[3]), local_user()); - goaway(App::get_baseurl(true)."/settings/oauth/"); + goaway(System::baseUrl(true)."/settings/oauth/"); return; } @@ -738,7 +734,7 @@ function settings_content(App $a) { $tpl = get_markup_template("settings_oauth.tpl"); $o .= replace_macros($tpl, array( '$form_security_token' => get_form_security_token("settings_oauth"), - '$baseurl' => App::get_baseurl(true), + '$baseurl' => System::baseUrl(true), '$title' => t('Connected Apps'), '$add' => t('Add application'), '$edit' => t('Edit'), @@ -828,7 +824,7 @@ function settings_content(App $a) { /// @TODO Found to much different usage to test empty/non-empty strings (e.g. empty(), trim() == '' ) which is wanted? if ($legacy_contact != "") { - $a->page['htmlhead'] = ''; + $a->page['htmlhead'] = ''; } $settings_connectors .= '