OpenSencillo
2016.106
Long live the simplicity of PHP
|
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 | |
Definition at line 12 of file htaccess.generator.htgen.php.
cache | ( | $type, | |
$days | |||
) |
HTACCESS Cache
string | mimetype |
int | days |
Definition at line 21 of file htaccess.generator.htgen.php.
directory | ( | $dir = 'index.php' | ) |
Change default directory page
string |
Definition at line 133 of file htaccess.generator.htgen.php.
errorPages | ( | $errpages | ) |
Error pages path
array | error pages paths |
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
array | banned ip |
array | allowed ip |
Definition at line 167 of file htaccess.generator.htgen.php.
prepare | ( | ) |
Switch generator to write noarray output mode
Definition at line 193 of file htaccess.generator.htgen.php.
prettyUrl | ( | $file = 'index.php' , |
|
$get = 'p' |
|||
) |
Create pretty urls format
string | requested file name |
string | url get variable |
Definition at line 69 of file htaccess.generator.htgen.php.
preventDir | ( | ) |
Prevent directory listings
Definition at line 118 of file htaccess.generator.htgen.php.
preventView | ( | ) |
rewrite | ( | $status = 'on' , |
|
$base = '/' , |
|||
$port = 443 |
|||
) |
Create mod_rewrite configuration
string | on|off |
string | path example: / |
int | page port |
Definition at line 48 of file htaccess.generator.htgen.php.
toWww | ( | ) |
Create relocation page opensencillo.com -> www.opensencillo.com
Definition at line 86 of file htaccess.generator.htgen.php.