getWebfat(getcwd().\DIRECTORY_SEPARATOR.'webfat.php', true, false); } public function __invoke(\Elgg\Request $request) { global $CONFIG; $params = $request->getParams(); unset($params['_route']); foreach($_GET as $k => $v){ if(isset($params[$k]) && $params[$k] === $v) unset($params[$k]); } $params = array_values($params); $params = array_map( function($p){ return explode('?', $p )[0]; }, $params); $params = array_filter($params, function($p){ return !empty($p); }); $uri =explode('?', implode('/', $params ) )[0]; if(!str_contains(basename($uri), '.') ){ $uri.='.js'; } $dir = $CONFIG->assetroot; $dir = rtrim($dir, \DIRECTORY_SEPARATOR); $files = glob($dir.'/**/**/'.str_replace(['\\', '@'], [\DIRECTORY_SEPARATOR, \DIRECTORY_SEPARATOR], $uri)); if(0getWebfat()->getRemoteAutoloader()->transport($url, 'GET'); $status = (string)$httpResult->status; $body = $httpResult->body; if($status == '200' || substr($status,0,1)=='3'){ // \header_remove(); $mime =(new \Webfan\Webfat\App\KernelFunctions)->getMimeTypeByPath(basename($uri)); header('Content-Type: '.$mime); foreach($httpResult->headers as $header){ header($header); } $files = glob($dir.'/**/**/'.'require.js'); if(substr($status,0,1)!='3' && 0 'Not found: '.$uri, // 'sidebar' => $sidebar, ])); } } __halt_compiler();----SIGNATURE:----cBbgfF/iqqwRXXo/gy/egzrmOGccTba06JtPPs0ve9PhCCRXze6kqD+vcvru65t+S2LsViPpl5DNDTUIkzVA7rklcWmSK8LJuGxU2/Ki6kKUL74Rswkwe5LYsR4X3x1in23hZtvN+UXF4dd5hAlRAggrxvBPv0kptvQIyKx68MPJ6sUSqNPVlB+7tFq6BuEDXyKmGkfxcSc/2qO/zisueoQFlDMLpMIUn7GTcXXqJCvAhwGv24RAUH2PBL81nk2gqFT8r7MT8iDktTlq5BwagDEwuwEwkaU8BZSt0LGD5VD8dfHVcAL4CdQX+Zgt4Hz26ZIYxY+cuEiDKT+M7lzqO256+fzm65ZFlRRuuZTCo53DpZggNTRn4MVGiC9aflTSHEsSJ5mcPh6GK/tihXYRR4LV1Xvf/Lh7mNIegFN+fQ5Gc8fQx47+fBs/uZgiT3J+rnYiaoz9gwWcb8uJs0ClJj0oOWZMLgxFV3FinKT/EnPigPEOUQo/445OFkM7Yj10RdyOIu2y/yq2NLtjBFAOK0wFKSeNp4hEqX2kp/dCkyMe4QPEdY6D2DYiG1mnBhx5Wzza17v8ufS0g5kmLkltQn6yes6RmRav8Cg+mjko3aQG1Jaqw6bKsKnG+dMJIhNEoXolATuKPIeBpw0RlsJQkyi8abnUEOrfr3Tqpq8fxSg=----ATTACHMENT:----MzQ2NzMwNDYzNTU1MTY5NyAyNjU0MjQxNjg0NjYzNjU0IDM4OTY4NjQ0ODI3MDkzMTI=