Open Sencillo  2015.107
Long live the simplicity of PHP
 All Data Structures Namespaces Functions Pages
htgen Class Reference

Public Member Functions

 cache ($type, $days)
 
 rewrite ($status='on', $base='/', $port=443)
 
 prettyUrl ($file='index.php', $get='p')
 
 toWww ()
 
 preventView ()
 
 preventDir ()
 
 directory ($dir='index.php')
 
 errorPages ($errpages)
 
 perm ($banlist, $allowlist=null)
 
 prepare ()
 
 installerScheme ()
 

Protected Attributes

 $gen
 

Detailed Description

Definition at line 12 of file htaccess.generator.htgen.php.

Member Function Documentation

cache (   $type,
  $days 
)

HTACCESS Cache

Parameters
stringmimetype
intdays
Returns
array

Definition at line 21 of file htaccess.generator.htgen.php.

directory (   $dir = 'index.php')

Change default directory page

Parameters
string
Returns
array

Definition at line 133 of file htaccess.generator.htgen.php.

errorPages (   $errpages)

Error pages path

Parameters
arrayerror pages paths
Returns
array

Definition at line 148 of file htaccess.generator.htgen.php.

installerScheme ( )

Default htaccess configuration

Definition at line 206 of file htaccess.generator.htgen.php.

perm (   $banlist,
  $allowlist = null 
)

Block/Allow users by IP

Parameters
arraybanned ip
arrayallowed ip
Returns
array

Definition at line 167 of file htaccess.generator.htgen.php.

prepare ( )

Switch generator to write noarray output mode

Returns
string

Definition at line 193 of file htaccess.generator.htgen.php.

prettyUrl (   $file = 'index.php',
  $get = 'p' 
)

Create pretty urls format

Parameters
stringrequested file name
stringurl get variable
Returns
array

Definition at line 69 of file htaccess.generator.htgen.php.

preventDir ( )

Prevent directory listings

Returns
array

Definition at line 118 of file htaccess.generator.htgen.php.

preventView ( )

Hide htaccess

Returns
array

Definition at line 101 of file htaccess.generator.htgen.php.

rewrite (   $status = 'on',
  $base = '/',
  $port = 443 
)

Create mod_rewrite configuration

Parameters
stringon|off
stringpath example: /
intpage port
Returns
array

Definition at line 48 of file htaccess.generator.htgen.php.

toWww ( )

Create relocation page opensencillo.com -> www.opensencillo.com

Returns
array

Definition at line 86 of file htaccess.generator.htgen.php.


The documentation for this class was generated from the following file: