Class: parseURL

Source Location: /bblog/libs/parser.php ( Revision Log )

Class parseURL

Property Summary
mixed   $query  
mixed   $real  
mixed   $script  

[ Top ]
Method Summary
parseURL   parseURL()  
string   _findReal()   find real script name
void   _notFound()   this is called, when page is not found - 404
void   _sendHeaders()  
boolean   _splitURL()   split URL into path and query
string   _sql()   attentd sql injection

[ Top ]
Properties
mixed   $query [line 41]

[ Top ]
mixed   $real [line 43]

[ Top ]
mixed   $script [line 42]

[ Top ]
Methods
Constructor parseURL  [line 45]

  parseURL parseURL( )



[ Top ]
_findReal  [line 64]

  string _findReal( string $nice  )

find real script name

Parameters:
string   $nice:  requested page name

API Tags:
Return:  script url


[ Top ]
_notFound  [line 87]

  void _notFound( string $script  )

this is called, when page is not found - 404

Parameters:
string   $script:  requested page name


[ Top ]
_sendHeaders  [line 56]

  void _sendHeaders( )



[ Top ]
_splitURL  [line 77]

  boolean _splitURL( string $url  )

split URL into path and query

Parameters:
string   $url:  $_SERVER["REQUEST_URI"]


[ Top ]
_sql  [line 103]

  string _sql( string $escape  )

attentd sql injection

Parameters:
string   $escape:  sql string from user

API Tags:
Return:  escaped sql string without injection


[ Top ]