| File: |
hn_urlrewrite.class.php |
| Role: |
Class source |
| Content type: |
text/plain |
| Description: |
Classfile |
| Class: |
HN URL Rewrite
Emulate request URL rewriting and redirection |
| Author: |
By Horst Nogajski |
| Last change: |
Attention! High security risk with htaccess password protected scripts!
I've experienced that, if one use rewriting all URLs and there is also
an URL which refers to a htacces-password protected script, the class
bypasses Apaches protection!
So I've added a rewrite_protected_scripts array to configuration.
This is used like the registered_scripts array but exclude its scripts from rewriting.
If you use the registered_scripts array you don't need it.
BUT if you use the DEFAULT MODE (rewriting all URLs) and you _HAVE_
HTACCESS-PASSWORD-PROTECTED files, YOU MUST REGISTER THESE SCRIPTS IN THE
REWRITE_PROTECTED_SCRIPTS ARRAY!
Scripts registered in that array will neither rewritten nor redirected!
The class uses header('Location: ...') if a (also faked) request is send to the
redirect-script!
|
| Date: |
2004-09-17 13:32 |
| Size: |
27,873 bytes |
|
|
|