2008-11-27, 08:29 PM
Hello all,
I have a question in regards to two points inside the patch text.
The first part states:
Am I right in understanding that the final result should look like this:
The second is in regards to part two of the patch text which is in regards to the templates. I do not understand it. What should I do here? Can anyone explain it to me?
Regards,
Martin
I have a question in regards to two points inside the patch text.
The first part states:
Find:
--
// Begin!
switch($mybb->input['action'])
{
--
ADD BEFORE:
--
if($mybb->request_method != "post" && $mybb->input['action'] != "getip")
{
error_no_permission();
}
Am I right in understanding that the final result should look like this:
// Check if this forum is password protected and we have a valid password
check_forum_password($forum['fid']);
}
if($mybb->user['uid'] != 0)
{
eval("\$loginbox = \"".$templates->get("changeuserbox")."\";");
}
else
{
eval("\$loginbox = \"".$templates->get("loginbox")."\";");
}
if($mybb->request_method != "post" && $mybb->input['action'] != "getip")
{
error_no_permission();
}
// Begin!
switch($mybb->input['action'])
{
// Open or close a thread
The second is in regards to part two of the patch text which is in regards to the templates. I do not understand it. What should I do here? Can anyone explain it to me?
Regards,
Martin