PDA

View Full Version : HELP! Having trouble with the permissions system (I think)


Michael Morris
10-21-2004, 06:27 PM
I'm setting up a thread based database for spells - basically each spell is one thread. Extra spell data is to be stored in a seperate table.

I'm having trouble writing the spell editor. I need to be able to reach it simply by going to newspell.php. The file can be identical to newthread.php (that's what I'm starting with), but I need to hard code the forum the file works with. Also, I need alter newthread.php so that if someone tries to use it to modify this forum's threads it will bump the user over to newspell.php

I tried this...


if (empty($_REQUEST['do']))
{
$_REQUEST['do'] = 'newthread';
$_REQUEST['forumid'] = '7';
}


Didn't work... So help, please?

Colin F
10-21-2004, 08:29 PM
I'm setting up a thread based database for spells - basically each spell is one thread. Extra spell data is to be stored in a seperate table.

I'm having trouble writing the spell editor. I need to be able to reach it simply by going to newspell.php. The file can be identical to newthread.php (that's what I'm starting with), but I need to hard code the forum the file works with. Also, I need alter newthread.php so that if someone tries to use it to modify this forum's threads it will bump the user over to newspell.php

I tried this...


if (empty($_REQUEST['do']))
{
$_REQUEST['do'] = 'newthread';
$_REQUEST['forumid'] = '7';
}


Didn't work... So help, please?
Well you can take $_REQUEST['forumid'] = 7; out of that if clause, as you want it to be 7 no matter what.

Michael Morris
10-21-2004, 08:51 PM
Well you can take $_REQUEST['forumid'] = 7; out of that if clause, as you want it to be 7 no matter what.

If the forum isn't specified, the script returns the error (No file specified). With the $_REQUEST['forumid'] = 7; I get the error "Forum isn't accepting posts."

What do I need to do?