Digirunt Posted July 26, 2003 Posted July 26, 2003 I'm thinking of creating a site to promote web standards among web sites in Wales. Users can add their sites to a directory and can display a good4wales button if they're site is Valid [W3] and offers bilingual content and contains no unsuitable content etc. Thus creating a good4wales site directory. Is this something I can do off my own back or will I need to recieve authority from another organisation to do this? I know there are a lot of sites that have schemes like this [none that I can find for Wales specifically]. I would appreciate any feedback as to wether this a reasonable idea or is it something only major organisations can do? Thumbs Up Quote
borfast Posted July 26, 2003 Posted July 26, 2003 I don't think you'd have any legal problems with that and I find it a pretty cool idea! Quote
Digirunt Posted July 26, 2003 Author Posted July 26, 2003 Thanks Borfast. By the way I've meaning to ask. . . Do you manually change your Avatar on a regular basis or have you someother clever way of doing it. Quote
borfast Posted July 26, 2003 Posted July 26, 2003 I change it every 10 minutes. If you pay attention, you'll see that there are times when it doesn't change - that's when I'm not home, so I can't change it. OK, I'm just kidding, of course! It's a script on my webserver. I know I posted how to do it somewhere here on the forums, in response to someone's question about PHP and generating text in images. Let me try to find it........ got it: http://www.totalchoicehosting.com/forums/i...?showtopic=3042 Quote
Digirunt Posted July 26, 2003 Author Posted July 26, 2003 OK, just to see if understood all that. Your avatar is a PHP file with an image extension. The PHP file contains the necessary info to write one of a selection of random images. Hey presto, a random iamge is written by the PHP. And another Borfast passport pic pops up. Quote
Digirunt Posted July 26, 2003 Author Posted July 26, 2003 P.S. Does this not pose any security risks on a board like this. Allowing people to execute scripts in a thread? Quote
borfast Posted July 26, 2003 Posted July 26, 2003 Yep, that's it. Quite easy and provides a neat effect, doesn't it? As for security, I suppose it does pose a bit of a risc. Still, the only thing you could exploit would be a bug in the browser's image handling code, because the script URL is inside an <img /> tag, so the browser should interpret whatever comes from there as an image and nothing else. On the other hand, you can make the script send a different MIME type in the HTTP headers, tricking the browser into thinking the file is not an image but some other kind of file... I don't know how a browser reacts to this because it's a contradiction: the HTML <img /> tag tells the browser that the file is an image but then the HTTP header tells it that it's another kind of file but I don't think it will crash or anything like that. It will probably just ignore the file and move on. Of course there may be some exceptions, like MS' lovely Internet Explorer, which, if I'm recalling correctly, suffered from such a bug, some time ago... Quote
Digirunt Posted July 26, 2003 Author Posted July 26, 2003 Kerpowww!!!!!!!! That would probably be IE's reaction. Quote
borfast Posted July 26, 2003 Posted July 26, 2003 OK, you beat me to it: I edited my post but you had already replied Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.