PDA

View Full Version : HELP!!!!!! Problems with Permissions


Michael Morris
11-03-2004, 08:41 AM
I'm working on a customized version of the newthread.php file that will handle posts destined for a specific forum. In addition to the normal thread handling tasks the file will need to post data to a seperate table.

I want the script to ignore the incoming forum direction (i.e. the f=X in the URL) and lock onto it's own forum.

I can get it to work with the URL newspell.php?do=newthread&f=6

But I want to get rid of the f=6 and if the do isn't specified I want to default to new thread, making it possible for the URL to simply be newspell.php

However, I can't get past the permissions system. I get no permissions errors, sorry the forum isn't accepting new posts and all sorts of related garbaage. I *can* disable the permission system of course, but I fear that could create a security whole especially since I may at some point want to limit new posting priveledges to specific usergroups.

HELP. I'm getting incredibly fustrated here.

Colin F
11-03-2004, 09:47 AM
what if you just do an

if(!isset$_REQUEST['do'])
{
$_REQUEST['do'] = 'newthread';
}

at the very beginning of the file?

Michael Morris
11-03-2004, 02:03 PM
That brings up the "Sorry, this forum isn't accepting new posts" error :(

Michael Morris
11-03-2004, 02:08 PM
Got it!

$_GET['f'] = '6';

Odd. Get works, but not Request.

Has to be set b4 the backend is called.

Colin F
11-03-2004, 02:34 PM
Something else that might help someone once:

f, t, p and all those short variables are all converted to their respective name, in the init.php I think (i.e. forumid, threadid, postid)

Michael Morris
11-03-2004, 02:58 PM
I know - but ironically if the init doesn't do the conversion then it'll throw a fit (Or at least I think it will. I got it working now - not too willing to tamper with it).