Ledger Nano X - The secure hardware wallet

MODX OnPageNotFound

krot Mar 21st, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. if($modx->event->name=="OnPageNotFound"){
  3. $alias = $modx->context->getOption('request_param_alias', 'q');
  4. if (!isset($_REQUEST[$alias])) {return false;}
  5. $request = $_REQUEST[$alias];
  6. $url=strtr($request,array('model/'.$_GET['md'].'/'=>''));
  7. if (!$section = $modx->findResource($url))  return false;
  8. $modx->sendForward($section);
  9. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand