1
ShaunR
PHP Global Variables redirect to Xoops
  • 2005/1/16 15:05

  • ShaunR

  • Just popping in

  • Posts: 1

  • Since: 2005/1/16


For example on my server I have in my htaccess file

DirectoryIndex main.php index.php

Main.php being my file
Index.php being XOOPS default file

I want to be able to paste shorer urls, for example http://www.myurl.com/?c=flash
to load up my XOOPS flash article page.

I have the correct PHP script in place, example:
if ($c == "downloads")
{
include("http://www.myurl.com/modules/wfflash");
}


But XOOPS says:

Sorry, you don't have the permission to access this area.
If the page does not automatically reload, please click here

Then redirects me to the login box, when logged in after entering my username and password it does redirect to the desired page.

Any ideas how to make this actually work without asking for a user/pass for an unprotected page?

Thanks in advance.

2
Herko
Re: PHP Global Variables redirect to Xoops
  • 2005/1/16 17:08

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


If XOOPS is asking for a username/password, then there's a check in the page you want to redirect to that checks if the page needs to be accessible for members, admins, or all. Make sure that you have given the proper access rights in the system admin, groups section to the specific module.

Herko

Login

Who's Online

274 user(s) are online (227 user(s) are browsing Support Forums)


Members: 0


Guests: 274


more...

Donat-O-Meter

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

Latest GitHub Commits