functions.php: minor changes

This commit is contained in:
Silvan Calarco 2024-11-03 12:19:34 +01:00
parent 007e7d35a2
commit be955cc3b7

View File

@ -209,7 +209,7 @@ function openmamba_download_func( $atts ) {
if (strpos(";".$a['archs'].";",$currarch) == false) continue; if (strpos(";".$a['archs'].";",$currarch) == false) continue;
$ret .= openmamba_download_link($milestone,$medium,$currarch,$ext,$langs[$outputlang],$outputlang); $ret .= openmamba_download_link($milestone,$medium,$currarch,$ext,$langs[$outputlang],$outputlang);
} }
$out .= ""; $out = "";
foreach ($langs as $l => $lang) { foreach ($langs as $l => $lang) {
if ($l == $outputlang) continue; if ($l == $outputlang) continue;
reset($archname); reset($archname);
@ -451,7 +451,7 @@ function user_registration_filter($user_id, $email) {
if ($user_id == false) { if ($user_id == false) {
$e1 = explode("@", $email); $e1 = explode("@", $email);
if (in_array($e1[1], array( if (in_array($e1[1], array(
'xtra.ltd','tmobile.agency','btee.online','verizonconnect.online', 'xtra.ltd','tmobile.agency','btee.online','verizonconnect.online','proton.me',
'eduonline.digital','vofadonepro.online','tasktracker.in'))) { 'eduonline.digital','vofadonepro.online','tasktracker.in'))) {
error_log( "user_registration_filter: email=" . $email . " blacklisted domain=" . $e1[1] ); error_log( "user_registration_filter: email=" . $email . " blacklisted domain=" . $e1[1] );
$user_id = 100; $user_id = 100;