/** * Construct * * @access public * @return void */ public function __construct() { parent::__construct(); //File $this->file = APP . '.htaccess'; $this->File = new File($this->file); //Protection $protection = array(); $protection[] = 'AuthType Basic'; $protection[] = 'AuthName "Protected Area"'; $protection[] = 'AuthUserFile ' . $this->Htpasswd->file; $protection[] = 'Require valid-user'; $this->protection = implode("\n", $protection); }
/** * Construct * * @access public * @return void */ public function __construct() { parent::__construct(); $this->file = APP . '.htpasswd'; $this->File = new File($this->file); }