<?php
$prohibitedUsernames = [
'/', 'tags', 'new', 'spy', 'search', 'buy-tokens', 'unsubscribe', 'user', 'cams', 'top', 'favorites',
'followings', 'friends', 'gold-membership', 'login', 'signup', 'industry', 'forgot-password', 'confirm-email',
'confirm-payment-settings', 'reset-password', 'settings', 'studio', 'model', 'mobile', 'mobile_auth',
'messages', '2257', 'careers', 'copyrights', 'privacy', 'support', 'terms', 'start-broadcasting',
'tokens-history', 'studio-earnings', 'payments-history', 'payments-settings', 'model-news', 'i18n', '*',
];
array_filter(
$prohibitedUsernames,
function ($value) {
return $value != '/' || $value != '*';
}
);
var_dump($prohibitedUsernames);
- Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
- array(41) {
[0]=>
string(1) "/"
[1]=>
string(4) "tags"
[2]=>
string(3) "new"
[3]=>
string(3) "spy"
[4]=>
string(6) "search"
[5]=>
string(10) "buy-tokens"
[6]=>
string(11) "unsubscribe"
[7]=>
string(4) "user"
[8]=>
string(4) "cams"
[9]=>
string(3) "top"
[10]=>
string(9) "favorites"
[11]=>
string(10) "followings"
[12]=>
string(7) "friends"
[13]=>
string(15) "gold-membership"
[14]=>
string(5) "login"
[15]=>
string(6) "signup"
[16]=>
string(8) "industry"
[17]=>
string(15) "forgot-password"
[18]=>
string(13) "confirm-email"
[19]=>
string(24) "confirm-payment-settings"
[20]=>
string(14) "reset-password"
[21]=>
string(8) "settings"
[22]=>
string(6) "studio"
[23]=>
string(5) "model"
[24]=>
string(6) "mobile"
[25]=>
string(11) "mobile_auth"
[26]=>
string(8) "messages"
[27]=>
string(4) "2257"
[28]=>
string(7) "careers"
[29]=>
string(10) "copyrights"
[30]=>
string(7) "privacy"
[31]=>
string(7) "support"
[32]=>
string(5) "terms"
[33]=>
string(18) "start-broadcasting"
[34]=>
string(14) "tokens-history"
[35]=>
string(15) "studio-earnings"
[36]=>
string(16) "payments-history"
[37]=>
string(17) "payments-settings"
[38]=>
string(10) "model-news"
[39]=>
string(4) "i18n"
[40]=>
string(1) "*"
}
- Output for 8.3.5
- Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
array(41) {
[0]=>
string(1) "/"
[1]=>
string(4) "tags"
[2]=>
string(3) "new"
[3]=>
string(3) "spy"
[4]=>
string(6) "search"
[5]=>
string(10) "buy-tokens"
[6]=>
string(11) "unsubscribe"
[7]=>
string(4) "user"
[8]=>
string(4) "cams"
[9]=>
string(3) "top"
[10]=>
string(9) "favorites"
[11]=>
string(10) "followings"
[12]=>
string(7) "friends"
[13]=>
string(15) "gold-membership"
[14]=>
string(5) "login"
[15]=>
string(6) "signup"
[16]=>
string(8) "industry"
[17]=>
string(15) "forgot-password"
[18]=>
string(13) "confirm-email"
[19]=>
string(24) "confirm-payment-settings"
[20]=>
string(14) "reset-password"
[21]=>
string(8) "settings"
[22]=>
string(6) "studio"
[23]=>
string(5) "model"
[24]=>
string(6) "mobile"
[25]=>
string(11) "mobile_auth"
[26]=>
string(8) "messages"
[27]=>
string(4) "2257"
[28]=>
string(7) "careers"
[29]=>
string(10) "copyrights"
[30]=>
string(7) "privacy"
[31]=>
string(7) "support"
[32]=>
string(5) "terms"
[33]=>
string(18) "start-broadcasting"
[34]=>
string(14) "tokens-history"
[35]=>
string(15) "studio-earnings"
[36]=>
string(16) "payments-history"
[37]=>
string(17) "payments-settings"
[38]=>
string(10) "model-news"
[39]=>
string(4) "i18n"
[40]=>
string(1) "*"
}
preferences:
141.74 ms | 405 KiB | 173 Q