It is currently Fri Apr 19, 2024 10:52 pm

All times are UTC






Post new topic Reply to topic  [ 278 posts ] 


Author Message
PostPosted: Sat Jan 02, 2010 1:12 am 
Offline
Offline
User avatar

Joined: Fri Nov 06, 2009 12:48 am
Posts: 6227
Images: 1729
Because I can't be bothered to get my webspace reactivated until my parsing code is working, I've been testing my scripts on a test area I set up on the Ukastle server temporarily.

After many many long nights and hours just thinking about it, the parser script FINALLY WORKS!! The parsing bit where some code is replaced by other code worked from the start, however when a page was requested, the page contents needed to be converted into a "string" whereby the page becomes part of the code, so that some parts of the code could be replaced with other bits of specified new code... and this "file-to-string" wasn't working. I got that working after a while and came up with a whole new problem: the php script inside the file that was sent through the parser wasn't being executed. So if I wanted a file to be included at the top of a page, it wouldn't work... I've spent the last 4-6 hours working on it and finally got a working solution. Things aren't totally perfect yet, but I think I'm out of the thick bit of the woods...


This is how an example page now looks normally (note where the TEST LINK to ukastle is)
http://www.ukastle.co.uk/test-area/index.php

And this is how that file looks after being sent through the parser (also try and find the TEST LINK...!)
http://www.ukastle.co.uk/test-area/Page ... =index.php

In that second example, you can only find the TEST LINK if you know how to view the source of a page (in Internet explorer I think you go to the VIEW menu, then down to 'source'), because the page parser sees a direct link without these [  ] around them as being unauthorised, and therefore the link is disabled. Bigger picture: if my home page is hacked and links to porn sites added, the parser will disable them!

--

edit: I am now further improving the power of this script. My site went down before because somebody hacked in and uploaded pages to imitate the Natwest banking site so as to get card and pin information... the webhosts realised and disabled the site.
NOW, the parser script comes into play again. This time, the page won't have the one or two lines of special code in that the parsr is looking for, and so the 'default' value is set... once the script is complete, this will show a warning dialogue about the page that was attempted to be opened, and will contain a link to view the page at the visitor's own risk. If the link is clicked, the page will be shown, but bits will still be parsed if the page is deemed a risk otherwise.
For example, this is one of the pages that somebody uploaded to my site (I have edited it so no details get passed on... it just LOOKS like it will do stuff - it doesn't actually do it)
http://www.ukastle.co.uk/test-area/logon2.html

And this is what happens when the file runs through the Parser (as it will by default)
http://www.ukastle.co.uk/test-area/Page ... ogon2.html
(notice how the security risks get disabled)

_________________
Tesco brings all the mums to the yard...
and they're like "do you have your club card"
Image


Top
 Profile  Personal album 
 
PostPosted: Sat Jan 02, 2010 7:20 pm 
Offline
Site Administration
User avatar

Joined: Mon Nov 09, 2009 5:38 pm
Posts: 3406
Images: 27
Location: Salisbury
After almost 3 months, Simon Cornwell has updated his site, here.


Top
 Profile  Personal album 
 
PostPosted: Sun Jan 03, 2010 1:57 pm 
Offline
Site Administration
User avatar

Joined: Mon Nov 09, 2009 5:38 pm
Posts: 3406
Images: 27
Location: Salisbury
Then there was a flood.. Simon C has documented his (fairly) rare Eleco GR 525.


Top
 Profile  Personal album 
 
PostPosted: Tue Jan 05, 2010 5:45 pm 
Offline
Site Administration
User avatar

Joined: Mon Nov 09, 2009 5:38 pm
Posts: 3406
Images: 27
Location: Salisbury
Latest update is the GEC8285 railway platform fluorescent lantern which must be long extinct and I doubt if any made it into collections.


Top
 Profile  Personal album 
 
PostPosted: Tue Jan 05, 2010 11:41 pm 
Offline
Offline
User avatar

Joined: Fri Nov 06, 2009 12:48 am
Posts: 6227
Images: 1729
A railway platform lantern like this is still one on my "wanted" list. Hull and Scarborough still have a fair few in use.

_________________
Tesco brings all the mums to the yard...
and they're like "do you have your club card"
Image


Top
 Profile  Personal album 
 
PostPosted: Wed Jan 06, 2010 10:34 am 
Offline
Site Administration
User avatar

Joined: Mon Nov 09, 2009 5:38 pm
Posts: 3406
Images: 27
Location: Salisbury
Crumbs, would have thought they were all long gone.  :shock:

Simon has now documented the "more common" GEC8288 railway platform lantern as well as his Thorn Beta 5 with the incrediably rare vertically grooved bowl


Top
 Profile  Personal album 
 
PostPosted: Thu Jan 07, 2010 12:40 am 
Offline
Offline
User avatar

Joined: Fri Nov 06, 2009 12:48 am
Posts: 6227
Images: 1729
I may have confused the issue there! :oops:
I think they're more like the 8288 lantern that are surviving. Anyhow, I still want one! Selby station has some chain-hung lanterns that are so obviously GEC design, as they look just like the top part of an 8288.


The bowl on the Beta 5 looks awfully similar to some that still hide away round the back of Leeds.

_________________
Tesco brings all the mums to the yard...
and they're like "do you have your club card"
Image


Top
 Profile  Personal album 
 
PostPosted: Fri Jan 08, 2010 4:54 pm 
Offline
Site Administration
User avatar

Joined: Mon Nov 09, 2009 5:38 pm
Posts: 3406
Images: 27
Location: Salisbury
Well do you mean the GEC 8290.. ?  ;)


Top
 Profile  Personal album 
 
PostPosted: Sat Jan 09, 2010 1:04 am 
Offline
Offline
User avatar

Joined: Fri Nov 06, 2009 12:48 am
Posts: 6227
Images: 1729
um, yes! :lol:

_________________
Tesco brings all the mums to the yard...
and they're like "do you have your club card"
Image


Top
 Profile  Personal album 
 
PostPosted: Sun Jan 10, 2010 8:36 am 
Offline
Site Administration
User avatar

Joined: Mon Nov 09, 2009 5:38 pm
Posts: 3406
Images: 27
Location: Salisbury
Latest updates from Mr Cornwell are the SKX55/MI80 and the GEC8451.


Top
 Profile  Personal album 
 

Display posts from previous:  Sort by  


Post new topic Reply to topic  [ 278 posts ] 

All times are UTC



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  

Who is online

Users browsing this forum: No registered users and 35 guests



Search for: