Exemple #1
0
 /**
  * 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);
 }
Exemple #2
0
 /**
  * Construct
  *
  * @access public
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     $this->file = APP . '.htpasswd';
     $this->File = new File($this->file);
 }