X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fuimport.php;h=7ed5648d9e2d360de0cef3b85bb885ed9a903d66;hb=ea78f63eaca46402694a2c1aa8162b90f9ccdd17;hp=942268b0ef0a89ac0cd523a70a74ef92c9658320;hpb=4d21671f75e35e7c2880467dddc0936e8c718d8c;p=friendica.git diff --git a/mod/uimport.php b/mod/uimport.php index 942268b0ef..7ed5648d9e 100644 --- a/mod/uimport.php +++ b/mod/uimport.php @@ -5,7 +5,6 @@ require_once("include/uimport.php"); -if(! function_exists('uimport_post')) { function uimport_post(&$a) { switch($a->config['register_policy']) { case REGISTER_OPEN: @@ -28,18 +27,16 @@ function uimport_post(&$a) { $verified = 0; break; } - + if (x($_FILES,'accountfile')){ /// @TODO Pass $blocked / $verified, send email to admin on REGISTER_APPROVE import_account($a, $_FILES['accountfile']); return; } } -} -if(! function_exists('uimport_content')) { function uimport_content(&$a) { - + if((! local_user()) && ($a->config['register_policy'] == REGISTER_CLOSED)) { notice("Permission denied." . EOL); return; @@ -54,8 +51,8 @@ function uimport_content(&$a) { return; } } - - + + if(x($_SESSION,'theme')) unset($_SESSION['theme']); if(x($_SESSION,'mobile-theme')) @@ -74,4 +71,3 @@ function uimport_content(&$a) { ), )); } -}