1
ludoo
Re: Use REQUEST_URI instead of PHP_SELF generally? (Core problem)
  • 2007/5/29 13:10

  • ludoo

  • Just popping in

  • Posts: 4

  • Since: 2005/3/7 1


got the same problem if XOOPS is in sub-directory like mydomain.com/xoops

I use this :
$submit_page $_SERVER['PHP_SELF'];
        
$pos strpos($submit_page,"/modules/");
        if(
$pos>=0$submit_page "/xoops".substr($submit_page,$pos);


Base on "/modules" detection, if coming from rewriting, i had
"/xoops" or not (i know "/xoops" is hardcoded ;-( , but i prefer waiting for an official patch/upgrade)

LudoO




TopTop



Login

Who's Online

111 user(s) are online (53 user(s) are browsing Support Forums)


Members: 0


Guests: 111


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits