-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
de8a72e
commit 7b19de3
Showing
244 changed files
with
16,504 additions
and
21,908 deletions.
There are no files selected for viewing
166 changes: 83 additions & 83 deletions
166
plugins/miniorange-oauth-oidc-single-sign-on/_autoload.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,123 +1,123 @@ | ||
<?php | ||
|
||
|
||
if (defined("\x41\x42\x53\x50\x41\x54\x48")) { | ||
goto AbF; | ||
if (defined("\x41\x42\123\x50\101\x54\110")) { | ||
goto z6Q; | ||
} | ||
exit; | ||
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()) | ||
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()) | ||
{ | ||
foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator($xk, RecursiveDirectoryIterator::KEY_AS_PATHNAME), RecursiveIteratorIterator::CHILD_FIRST) as $BB => $eD) { | ||
if (!($eD->isFile() && $eD->isReadable())) { | ||
goto wDX; | ||
foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator($O2, RecursiveDirectoryIterator::KEY_AS_PATHNAME), RecursiveIteratorIterator::CHILD_FIRST) as $aS => $Ws) { | ||
if (!($Ws->isFile() && $Ws->isReadable())) { | ||
goto NFU; | ||
} | ||
$Um[$BB] = realpath($eD->getPathname()); | ||
wDX: | ||
uGA: | ||
$hz[$aS] = realpath($Ws->getPathname()); | ||
NFU: | ||
gIV: | ||
} | ||
gyf: | ||
return $Um; | ||
vMj: | ||
return $hz; | ||
} | ||
function mo_oauth_get_sorted_files($xk) | ||
function mo_oauth_get_sorted_files($O2) | ||
{ | ||
$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; | ||
$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; | ||
} | ||
if (strpos($iW, "\x49\156\164\145\162\x66\x61\143\145") !== false) { | ||
goto miU; | ||
if (strpos($lx, "\x49\156\164\x65\x72\x66\141\x63\x65") !== false) { | ||
goto iyv; | ||
} | ||
$w1[$BB] = $iW; | ||
goto DCc; | ||
miU: | ||
$Fh[$BB] = $iW; | ||
DCc: | ||
fod: | ||
CuX: | ||
$OC[$aS] = $lx; | ||
goto k8g; | ||
iyv: | ||
$xr[$aS] = $lx; | ||
k8g: | ||
T5o: | ||
C00: | ||
} | ||
YfA: | ||
return array("\x69\156\164\145\162\x66\x61\x63\145\x73" => $Fh, "\143\x6c\141\163\163\x65\163" => $w1); | ||
D3R: | ||
return array("\151\x6e\164\x65\x72\x66\x61\143\x65\163" => $xr, "\x63\x6c\x61\x73\163\145\163" => $OC); | ||
} | ||
function mo_oauth_include_file($xk) | ||
function mo_oauth_include_file($O2) | ||
{ | ||
if (is_dir($xk)) { | ||
goto SAF; | ||
if (is_dir($O2)) { | ||
goto vCk; | ||
} | ||
return; | ||
SAF: | ||
$xk = mo_oauth_sane_dir_path($xk); | ||
$F9 = realpath($xk); | ||
if (!(false !== $F9 && !is_dir($xk))) { | ||
goto fn0; | ||
vCk: | ||
$O2 = mo_oauth_sane_dir_path($O2); | ||
$pI = realpath($O2); | ||
if (!(false !== $pI && !is_dir($O2))) { | ||
goto yXz; | ||
} | ||
return; | ||
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"]); | ||
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"]); | ||
} | ||
function mo_oauth_require_all($Lr) | ||
function mo_oauth_require_all($wo) | ||
{ | ||
foreach ($Lr as $BB => $iW) { | ||
require_once $iW; | ||
W_C: | ||
foreach ($wo as $aS => $lx) { | ||
require_once $lx; | ||
Zva: | ||
} | ||
cbU: | ||
i1q: | ||
} | ||
function mo_oauth_is_valid_file($D9) | ||
function mo_oauth_is_valid_file($aO) | ||
{ | ||
return '' !== $D9 && "\x2e" !== $D9 && "\x2e\56" !== $D9; | ||
return '' !== $aO && "\x2e" !== $aO && "\56\56" !== $aO; | ||
} | ||
function mo_oauth_get_valid_html($uo = array()) | ||
function mo_oauth_get_valid_html($z5 = array()) | ||
{ | ||
$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; | ||
$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; | ||
} | ||
return array_merge($uo, $QN); | ||
HML: | ||
return $QN; | ||
return array_merge($z5, $KJ); | ||
JZ3: | ||
return $KJ; | ||
} | ||
function mo_oauth_get_version_number() | ||
{ | ||
$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; | ||
$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; | ||
} | ||
function mo_oauth_sane_dir_path($xk) | ||
function mo_oauth_sane_dir_path($O2) | ||
{ | ||
return str_replace("\57", DIRECTORY_SEPARATOR, $xk); | ||
return str_replace("\x2f", DIRECTORY_SEPARATOR, $O2); | ||
} | ||
if (!function_exists("\x6d\157\137\x6f\141\x75\x74\150\137\151\163\x5f\162\x65\x73\164")) { | ||
if (!function_exists("\155\x6f\137\x6f\141\x75\164\150\137\x69\x73\x5f\162\145\x73\x74")) { | ||
function mo_oauth_is_rest() | ||
{ | ||
$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; | ||
$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; | ||
} | ||
return true; | ||
nnB: | ||
global $JT; | ||
if (!($JT === null)) { | ||
goto hpo; | ||
FQk: | ||
global $pm; | ||
if (!($pm === null)) { | ||
goto uzU; | ||
} | ||
$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; | ||
$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; | ||
} | ||
} |
21 changes: 10 additions & 11 deletions
21
plugins/miniorange-oauth-oidc-single-sign-on/classes/Enterprise/Analytics/actions.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,17 @@ | ||
<?php | ||
|
||
|
||
use MoOauthClient\MO_Oauth_Debug; | ||
function emit_analytics_tab($VE) | ||
function emit_analytics_tab($pr) | ||
{ | ||
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; | ||
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; | ||
} | ||
return; | ||
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"; | ||
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"; | ||
} | ||
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); | ||
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); |
Oops, something went wrong.