Skip to content

Commit

Permalink
Revert "miniorange patch (#881)"
Browse files Browse the repository at this point in the history
This reverts commit a7dab19.
  • Loading branch information
jaspercroome committed Apr 9, 2024
1 parent b390740 commit 58c1726
Show file tree
Hide file tree
Showing 244 changed files with 21,908 additions and 16,504 deletions.
166 changes: 83 additions & 83 deletions plugins/miniorange-oauth-oidc-single-sign-on/_autoload.php
Original file line number Diff line number Diff line change
@@ -1,123 +1,123 @@
<?php


if (defined("\x41\x42\123\x50\101\x54\110")) {
goto z6Q;
if (defined("\x41\x42\x53\x50\x41\x54\x48")) {
goto AbF;
}
exit;
z6Q:
define("\x4d\x4f\x43\x5f\x44\111\122", plugin_dir_path(__FILE__));
define("\115\117\x43\x5f\x55\122\114", plugin_dir_url(__FILE__));
define("\x4d\x4f\x5f\125\111\x44", "\x44\x46\x38\x56\x4b\112\x4f\x35\106\x44\110\132\101\x52\102\122\x35\x5a\x44\x53\x32\x56\x35\x4a\x36\x36\125\62\x4e\x44\122");
define("\x56\x45\122\123\111\117\x4e", "\155\x6f\137\x65\x6e\164\x65\x72\160\162\x69\x73\x65\x5f\166\x65\x72\163\x69\157\x6e");
mo_oauth_include_file(MOC_DIR . "\57\x63\154\141\x73\163\145\x73\x2f\x63\x6f\155\x6d\x6f\x6e");
mo_oauth_include_file(MOC_DIR . "\x2f\x63\x6c\x61\163\x73\145\163\57\106\162\x65\145");
mo_oauth_include_file(MOC_DIR . "\57\143\x6c\141\163\x73\145\x73\x2f\123\164\141\x6e\144\141\162\x64");
mo_oauth_include_file(MOC_DIR . "\x2f\x63\x6c\x61\163\x73\x65\163\57\x50\162\x65\155\151\165\x6d");
mo_oauth_include_file(MOC_DIR . "\x2f\143\154\141\x73\163\x65\x73\57\x45\x6e\x74\145\x72\x70\162\151\163\145");
function mo_oauth_get_dir_contents($O2, &$hz = array())
AbF:
define("\x4d\117\103\x5f\104\x49\122", plugin_dir_path(__FILE__));
define("\115\x4f\103\137\x55\x52\x4c", plugin_dir_url(__FILE__));
define("\115\117\x5f\x55\x49\104", "\104\106\70\126\113\112\117\65\x46\104\x48\x5a\101\122\x42\122\x35\132\104\x53\x32\126\x35\x4a\66\x36\x55\x32\116\x44\122");
define("\126\x45\122\123\111\x4f\x4e", "\155\157\x5f\155\165\x6c\164\151\163\151\x74\x65\137\145\156\164\145\162\160\x72\x69\163\145\137\x76\145\162\x73\151\x6f\156");
mo_oauth_include_file(MOC_DIR . "\57\x63\154\141\163\163\x65\x73\x2f\x63\157\155\155\157\x6e");
mo_oauth_include_file(MOC_DIR . "\x2f\143\154\141\163\163\145\x73\57\106\x72\x65\x65");
mo_oauth_include_file(MOC_DIR . "\x2f\x63\154\141\x73\x73\145\x73\x2f\123\164\x61\156\x64\x61\x72\144");
mo_oauth_include_file(MOC_DIR . "\x2f\143\154\x61\163\163\x65\x73\57\120\162\145\155\151\165\x6d");
mo_oauth_include_file(MOC_DIR . "\x2f\143\x6c\141\163\163\145\163\57\105\x6e\164\145\162\160\x72\151\163\x65");
function mo_oauth_get_dir_contents($xk, &$Um = array())
{
foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator($O2, RecursiveDirectoryIterator::KEY_AS_PATHNAME), RecursiveIteratorIterator::CHILD_FIRST) as $aS => $Ws) {
if (!($Ws->isFile() && $Ws->isReadable())) {
goto NFU;
foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator($xk, RecursiveDirectoryIterator::KEY_AS_PATHNAME), RecursiveIteratorIterator::CHILD_FIRST) as $BB => $eD) {
if (!($eD->isFile() && $eD->isReadable())) {
goto wDX;
}
$hz[$aS] = realpath($Ws->getPathname());
NFU:
gIV:
$Um[$BB] = realpath($eD->getPathname());
wDX:
uGA:
}
vMj:
return $hz;
gyf:
return $Um;
}
function mo_oauth_get_sorted_files($O2)
function mo_oauth_get_sorted_files($xk)
{
$wo = mo_oauth_get_dir_contents($O2);
$xr = array();
$OC = array();
foreach ($wo as $aS => $lx) {
if (!(strpos($lx, "\x2e\160\150\x70") !== false)) {
goto T5o;
$Lr = mo_oauth_get_dir_contents($xk);
$Fh = array();
$w1 = array();
foreach ($Lr as $BB => $iW) {
if (!(strpos($iW, "\56\x70\150\160") !== false)) {
goto fod;
}
if (strpos($lx, "\x49\156\164\x65\x72\x66\141\x63\x65") !== false) {
goto iyv;
if (strpos($iW, "\x49\156\164\145\162\x66\x61\143\145") !== false) {
goto miU;
}
$OC[$aS] = $lx;
goto k8g;
iyv:
$xr[$aS] = $lx;
k8g:
T5o:
C00:
$w1[$BB] = $iW;
goto DCc;
miU:
$Fh[$BB] = $iW;
DCc:
fod:
CuX:
}
D3R:
return array("\151\x6e\164\x65\x72\x66\x61\143\x65\163" => $xr, "\x63\x6c\x61\x73\163\145\163" => $OC);
YfA:
return array("\x69\156\164\145\162\x66\x61\x63\145\x73" => $Fh, "\143\x6c\141\163\163\x65\163" => $w1);
}
function mo_oauth_include_file($O2)
function mo_oauth_include_file($xk)
{
if (is_dir($O2)) {
goto vCk;
if (is_dir($xk)) {
goto SAF;
}
return;
vCk:
$O2 = mo_oauth_sane_dir_path($O2);
$pI = realpath($O2);
if (!(false !== $pI && !is_dir($O2))) {
goto yXz;
SAF:
$xk = mo_oauth_sane_dir_path($xk);
$F9 = realpath($xk);
if (!(false !== $F9 && !is_dir($xk))) {
goto fn0;
}
return;
yXz:
$FD = mo_oauth_get_sorted_files($O2);
mo_oauth_require_all($FD["\151\x6e\164\145\162\146\x61\143\x65\163"]);
mo_oauth_require_all($FD["\x63\154\x61\x73\x73\x65\x73"]);
fn0:
$tN = mo_oauth_get_sorted_files($xk);
mo_oauth_require_all($tN["\151\156\x74\x65\x72\146\x61\143\145\x73"]);
mo_oauth_require_all($tN["\x63\154\x61\x73\x73\145\x73"]);
}
function mo_oauth_require_all($wo)
function mo_oauth_require_all($Lr)
{
foreach ($wo as $aS => $lx) {
require_once $lx;
Zva:
foreach ($Lr as $BB => $iW) {
require_once $iW;
W_C:
}
i1q:
cbU:
}
function mo_oauth_is_valid_file($aO)
function mo_oauth_is_valid_file($D9)
{
return '' !== $aO && "\x2e" !== $aO && "\56\56" !== $aO;
return '' !== $D9 && "\x2e" !== $D9 && "\x2e\56" !== $D9;
}
function mo_oauth_get_valid_html($z5 = array())
function mo_oauth_get_valid_html($uo = array())
{
$KJ = array("\x73\x74\x72\157\x6e\x67" => array(), "\x65\x6d" => array(), "\x62" => array(), "\x69" => array(), "\141" => array("\x68\x72\145\146" => array(), "\x74\x61\x72\x67\x65\164" => array()));
if (empty($z5)) {
goto JZ3;
$QN = array("\163\x74\x72\157\156\x67" => array(), "\x65\x6d" => array(), "\x62" => array(), "\x69" => array(), "\141" => array("\x68\162\x65\146" => array(), "\x74\x61\x72\x67\145\164" => array()));
if (empty($uo)) {
goto HML;
}
return array_merge($z5, $KJ);
JZ3:
return $KJ;
return array_merge($uo, $QN);
HML:
return $QN;
}
function mo_oauth_get_version_number()
{
$Wd = get_file_data(MOC_DIR . "\x2f\x6d\x6f\x5f\157\x61\x75\164\150\x5f\x73\x65\x74\164\151\156\147\x73\x2e\x70\x68\x70", ["\x56\x65\x72\x73\x69\x6f\156"], "\160\154\x75\147\151\156");
$Xm = isset($Wd[0]) ? $Wd[0] : '';
return $Xm;
$BC = get_file_data(MOC_DIR . "\57\x6d\x6f\137\x6f\x61\x75\x74\150\137\x73\x65\164\x74\151\156\x67\x73\56\x70\x68\x70", ["\x56\x65\x72\x73\151\x6f\x6e"], "\x70\154\x75\x67\x69\156");
$st = isset($BC[0]) ? $BC[0] : '';
return $st;
}
function mo_oauth_sane_dir_path($O2)
function mo_oauth_sane_dir_path($xk)
{
return str_replace("\x2f", DIRECTORY_SEPARATOR, $O2);
return str_replace("\57", DIRECTORY_SEPARATOR, $xk);
}
if (!function_exists("\155\x6f\137\x6f\141\x75\164\150\137\x69\x73\x5f\162\145\x73\x74")) {
if (!function_exists("\x6d\157\137\x6f\141\x75\x74\150\137\151\163\x5f\162\x65\x73\164")) {
function mo_oauth_is_rest()
{
$Lh = rest_get_url_prefix();
if (!(defined("\x52\105\123\124\137\122\x45\121\125\x45\x53\x54") && REST_REQUEST || isset($_GET["\162\145\163\x74\137\x72\x6f\x75\x74\145"]) && strpos(trim($_GET["\x72\x65\x73\164\137\162\x6f\165\x74\145"], "\x5c\57"), $Lh, 0) === 0)) {
goto FQk;
$NO = rest_get_url_prefix();
if (!(defined("\122\105\x53\124\x5f\122\x45\x51\x55\105\x53\x54") && REST_REQUEST || isset($_GET["\x72\145\163\164\137\162\x6f\x75\x74\x65"]) && strpos(trim(sanitize_text_field(wp_unslash($_GET["\162\x65\x73\164\x5f\162\157\x75\164\145"])), "\134\57"), $NO, 0) === 0)) {
goto nnB;
}
return true;
FQk:
global $pm;
if (!($pm === null)) {
goto uzU;
nnB:
global $JT;
if (!($JT === null)) {
goto hpo;
}
$pm = new WP_Rewrite();
uzU:
$O_ = wp_parse_url(trailingslashit(rest_url()));
$w2 = wp_parse_url(add_query_arg(array()));
return strpos($w2["\x70\141\164\x68"], $O_["\160\x61\164\150"], 0) === 0;
$JT = new WP_Rewrite();
hpo:
$yO = wp_parse_url(trailingslashit(rest_url()));
$qr = wp_parse_url(add_query_arg(array()));
return strpos($qr["\160\141\x74\150"], $yO["\160\x61\x74\x68"], 0) === 0;
}
}
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
<?php


function emit_analytics_tab($pr)
use MoOauthClient\MO_Oauth_Debug;
function emit_analytics_tab($VE)
{
global $Uj;
$Kn = $Uj->get_plugin_config()->get_current_config();
if (!(!isset($Kn["\x61\143\164\151\x76\141\x74\x65\x5f\165\163\145\x72\137\141\156\141\154\171\x74\151\x63\163"]) || !boolval($Kn["\x61\x63\x74\151\x76\x61\x74\x65\x5f\165\x73\145\x72\137\x61\x6e\141\154\171\x74\151\x63\163"]))) {
goto Os;
global $Yh;
$Wb = $Yh->get_plugin_config()->get_current_config();
if (!(!isset($Wb["\141\x63\x74\x69\166\x61\x74\x65\137\x75\163\x65\x72\x5f\x61\156\141\x6c\171\164\x69\143\163"]) || !boolval($Wb["\x61\x63\164\x69\166\141\164\x65\x5f\165\163\x65\162\x5f\141\156\x61\154\171\x74\x69\143\163"]))) {
goto P0;
}
return;
Os:
echo "\x9\74\x61\40\x63\x6c\x61\163\163\x3d\x22\x6e\x61\166\55\164\x61\x62\x20";
echo "\141\x6e\141\x6c\171\x74\151\143\x73" === $pr ? "\x6e\x61\166\55\164\x61\x62\x2d\x61\x63\164\151\x76\x65" : '';
echo "\42\40\x68\162\x65\x66\75\42\141\x64\155\x69\156\56\x70\150\160\77\x70\141\x67\145\75\x6d\157\x5f\x6f\141\165\164\150\x5f\x73\145\164\x74\151\156\147\163\x26\x74\x61\x62\x3d\x61\156\141\x6c\x79\164\151\x63\163\x22\x3e\x55\x73\145\162\x20\101\x6e\x61\154\171\x74\151\x63\x73\x3c\57\x61\76\xd\12\11";
P0:
echo "\x9\x3c\141\x20\143\154\x61\x73\x73\x3d\42\x6e\141\166\55\x74\x61\x62\x20";
echo "\x61\156\141\x6c\171\164\x69\x63\163" === $VE ? "\156\x61\166\x2d\164\141\x62\55\x61\x63\164\x69\166\x65" : '';
echo "\42\40\150\x72\x65\x66\75\42\x61\144\155\151\x6e\x2e\160\150\x70\77\160\141\147\x65\x3d\x6d\157\x5f\x6f\x61\165\164\150\137\163\145\164\164\x69\156\x67\163\46\x74\141\142\x3d\141\156\x61\x6c\x79\x74\151\143\163\x22\x3e\125\163\145\162\40\101\x6e\x61\x6c\x79\x74\x69\x63\163\x3c\x2f\141\76\15\xa\11";
}
add_action("\x6d\x6f\137\x6f\x61\x75\164\150\x5f\x63\154\x69\x65\x6e\x74\x5f\x61\144\x64\137\156\x61\x76\137\164\141\142\x73\x5f\x75\151\x5f\151\x6e\164\x65\x72\156\141\154", "\145\155\151\164\137\141\156\141\154\171\x74\x69\143\163\x5f\x74\x61\142", 10, 1);
add_action("\155\x6f\x5f\157\141\x75\164\150\x5f\x63\x6c\x69\x65\x6e\x74\x5f\x61\144\x64\x5f\x6e\x61\166\137\164\x61\x62\x73\x5f\x75\151\x5f\151\156\x74\x65\x72\x6e\141\x6c", "\x65\155\151\x74\x5f\x61\156\141\x6c\171\x74\x69\x63\x73\x5f\x74\141\142", 10, 1);
Loading

0 comments on commit 58c1726

Please sign in to comment.