Example #1
0
 public function orderDirective(\HTRouter\Request $request, $line)
 {
     // Funny.. Apache does a strcmp on "allow,deny", so you can't have "allow, deny" spaces in between.
     // So we shouldn't allow it either.
     $utils = new \HTRouter\Utils();
     $value = $utils->fetchDirectiveFlags($line, array("allow,deny" => self::ALLOW_THEN_DENY, "deny,allow" => self::DENY_THEN_ALLOW, "mutual-failure" => self::MUTUAL_FAILURE));
     $this->getConfig()->set("AccessOrder", $value);
 }
Example #2
0
 public function DirectorySlashDirective(\HTRouter\Request $request, $line)
 {
     $utils = new \HTRouter\Utils();
     $value = $utils->fetchDirectiveFlags($line, array("on" => true, "off" => false));
     $this->getConfig()->set("DirectorySlash", $value);
 }
Example #3
0
 public function AuthzUserAuthoritativeDirective(\HTRouter\Request $request, $line)
 {
     $utils = new \HTRouter\Utils();
     $value = $utils->fetchDirectiveFlags($line, array("on" => "on", "off" => "off"));
     $this->getConfig()->set("AuthzUserAuthoritative", $value);
 }
Example #4
0
 public function satisfyDirective(\HTRouter\Request $request, $line)
 {
     $utils = new \HTRouter\Utils();
     $value = $utils->fetchDirectiveFlags($line, array("all" => "all", "any" => "any"));
     $this->getConfig()->set("Satisfy", $value);
 }