Quote:
Originally Posted by deathemperor
WRONG, if it's only if (!$permissions['articlepermissions'] & CANFEATURE) then this is totally incorrect, it is never going to work, it MUST be: if (!($permissions['articlepermissions'] & CANFEATURE))
I've spent half a day to fix all issues by myself and fortunately yet disappointedly I found alot of bugs. It looks like this hack was coded very carelessly and uncompleted. and I wonder why this could be a HoTM (!?!)
this is a fix done by me, I don't know if there're still any but without these any board installed this can terribly be hacked I believe.
|
Awesome!
One problem though. I can't find this at all:
Code:
FIND IN article_display:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
<if condition="(($article['articleuserid'] == $bbuserinfo['userid']) AND ($permissions['articlepermissions'] & CANEDOWNART)) OR (($article['articleuserid'] != $bbuserinfo['userid']) AND ($permissions['articlepermissions'] & CANEDOTHART))">
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
This is the closest one to it I could find:
Code:
<if condition="(($article['articleuserid'] == $bbuserinfo['userid']) AND ($permissions['articlepermissions'] & CANEDOWNART)) OR ($permissions['articlepermissions'] & CANEDOTHART)
Is that the one you're talking about?
PS: Thanks for updating us with a more secure script.