Login   Register  
PHP Classes
elePHPant
Icontem

File: hn_urlrewrite.class.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Horst Nogajski  >  HN URL Rewrite  >  hn_urlrewrite.class.php  
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
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

You need to be a registered user and login to get this file.

Login Immediately with your account on:

Facebook ConnectGmail or other Google AccountHotmail or Microsoft Windows LiveStackOverflowGitHubYahoo