protected function not_found($uri, $env, $r) { if ($m = Core_Regexps::match_with_results('{^([^?]+)\\?}', $uri)) { $uri = $m[1]; } if ($m = Core_Regexps::match_with_results('{^/digital-protect/(.*)}', $uri)) { Core::load('CMS.Protect'); CMS_Protect::draw($m[1]); die; } if ($m = Core_Regexps::match_with_results('{^/check-digital-protect/([^/]+)/(.*)}', $uri)) { Core::load('CMS.Protect'); CMS_Protect::check($m[1], $m[2]); die; } return $r; }