This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
3556
Features / Re: New revs - Public comments
« on April 27th, 2012, 05:58 PM »
Oh, it's quite geek orientated to do properly.
Consider that everything you do has a callback function. Want a DB query? Issue the query and handle content in a callback. Want to do another query as a consequence of that one? In that callback, issue the next one and deal with the response in another callback.
It quickly gets... interesting.
Consider that everything you do has a callback function. Want a DB query? Issue the query and handle content in a callback. Want to do another query as a consequence of that one? In that callback, issue the next one and deal with the response in another callback.
It quickly gets... interesting.
3557
Features / Re: Multiple default skins?
« on April 27th, 2012, 05:55 PM »
It certainly feels a bit more natural, especially with the quick edit button there as well. Though having quite a dark line either side of it does break up the post + action bar + signature a bit much.
The problem with the checkbox where it is right now, it seems like it's just random and out of place.
The problem with the checkbox where it is right now, it seems like it's just random and out of place.
3558
Archived fixes / Re: (SMF bug) Admin registering a user, email does not send a link to the forum
« on April 27th, 2012, 05:54 PM »
I've made the change locally, will commit it next time I do a commit :)
3559
Bug reports / Re: Pretty URL remarks
« on April 27th, 2012, 05:53 PM »Well, I guess FTP'ing the whole stuff is the only solution then. What's the issue with security? Why not use your SFTP component if available?
Scenario 1: the www-data user owns the files. They're writable from Wedge. They're also writable by definition from ANYTHING ELSE that's web-based on the server. That means any rogue process can infect any Wedge file or plugin file with code. This, really, is the risk vector that we're talking about.
Scenario 2: the proper user account owns the files. Then they make everything 777 (and experience says they won't put them back to 644), so Wedge can write the files. Same problem: they're still writable by any other code that's executed via PHP from web requests, which will all be run as www-data.
Scenario 3: we do it as I'm thinking, with FTP. That means we upload it to the server or otherwise obtain it, it'll be in a temporary folder somewhere. Exactly where is irrelevant, because however we get it, the same thing has to occur: it goes to a temporary place. Here's where it gets complicated: whatever we do, we really then have to get into unzipping that file. [1] Whatever we do, we've unpacked the file and we then have to upload it file by file over FTP. For any sizeable package, this is not going to be a quick process, especially if we're talking about a major upgrade. It's likely to then fall foul of the 30 second timeout, amongst other things.
These are the alternatives as I see them, and I don't like any of them that much :/
| 1. | We end up dumping it all into system-wide temporary folder, where it's also at risk, though there's no guarantee the files will actually be left available over any period of time. It's really a side concern though. |
3560
Features / Re: Multiple default skins?
« on April 27th, 2012, 05:44 PM »
I won't be looking at it this weekend, I'm using what time I have to get other stuff done, seems like I'm always chasing the clock :/ It's also code I'm not that familiar with.
3561
Features / Re: Moving topics, you can now send a PM
« on April 27th, 2012, 05:43 PM »
Well, mostly. There's already a list of boards built for id_board IN (...) that makes query_see_board. That array of boards itself is actually cached too in Load.php, meaning that you only need to update that array so that it's never allowed in the first place in that list, if that makes sense.
3562
Bug reports / Re: Pretty URL remarks
« on April 27th, 2012, 05:41 PM »
Sadly, it wasn't because you rock, it's because SMF was creating the file by the webserver user itself, meaning that it was implicitly writable by the webserver, and indeed by any other user on the server, which is really no better than the file being owned by the proper account holder but being 777.
The whole point of faffing with FTP/SFTP the way I mention is so that the webserver owner explicitly does NOT own the files, but the FTP user account does (i.e. the user's own account). That way you leave them at the standard 644 and they're not writable, and thus not at risk from tainting.
The whole point of faffing with FTP/SFTP the way I mention is so that the webserver owner explicitly does NOT own the files, but the FTP user account does (i.e. the user's own account). That way you leave them at the standard 644 and they're not writable, and thus not at risk from tainting.
3563
Features / Re: Moving topics, you can now send a PM
« on April 27th, 2012, 05:37 PM »
I know sites that have hundreds of boards, though it is certainly rare.
But if the test is integrated into the underlying list of boards to exclude before it's turned into SQL, it should be OK.
But if the test is integrated into the underlying list of boards to exclude before it's turned into SQL, it should be OK.
3564
Features / Re: Multiple default skins?
« on April 27th, 2012, 05:34 PM »
That's exactly it - if the user wants to indicate that they're using a mobile site, it can be handled as a preference, and done infinitely better than the old ?wap / ?wap2 / ?imode
I seem to recall that was in no small part how Dragooon's theme worked.
I seem to recall that was in no small part how Dragooon's theme worked.
3565
Bug reports / Re: Pretty URL remarks
« on April 27th, 2012, 05:31 PM »
Do you know why you never had a problem with them?
3566
Features / Re: Moving topics, you can now send a PM
« on April 27th, 2012, 05:31 PM »
*nods* Something like that, yes, it's pretty complicated :/
3567
Archived fixes / Re: Time offset (auto detect)
« on April 27th, 2012, 05:31 PM »
Only if the server is UTC. It just returns the system time, really.
3568
Features / Re: Multiple default skins?
« on April 27th, 2012, 05:30 PM »
I don't. However, there is an entirely separate, justified use case available for 'remembering user preferences', and the example given by markham of how it can be done is really quite neat.
3569
Bug reports / Re: Pretty URL remarks
« on April 27th, 2012, 05:28 PM »
Did you ever do automatic updates for SMF?
How many people are screwed because automatic updates don't work for them? (The number of 1.1.11 updates that failed was pretty vicious, btw)
Note that if someone can show me a robust method for doing it that doesn't require making things insecure by default, I'm more than willing to entertain the idea. But the sheer mechanics of doing it considering the usual mess that is hosts + permissions means I'd rather avoid it entirely, just because that's actually better for the user.
How many people are screwed because automatic updates don't work for them? (The number of 1.1.11 updates that failed was pretty vicious, btw)
Note that if someone can show me a robust method for doing it that doesn't require making things insecure by default, I'm more than willing to entertain the idea. But the sheer mechanics of doing it considering the usual mess that is hosts + permissions means I'd rather avoid it entirely, just because that's actually better for the user.
3570
Archived fixes / Re: Preparsing adds url bbc where it shouldn't
« on April 27th, 2012, 05:27 PM »
Well, try it, play around with it and if it breaks, we'll fix it, but it seems to work right now :)