Hey one and all, hope some one can help here.
I have a shoutbox that I would like to integrate into my websites css.
To do this I need to read 2 seperate files ThemesList.txt and username.dat and determine what theme is set as default.
NB: The users default theme overides the main default theme.
The contents of ThemesList.txt follow the following format and sets the main default theme:
$theme|$default|$images|$buttons
The contents of a typical file are:
winter||0|0
dark_state||0|0
shades_of_red||1|1
wood|1||1
zZillAfIeD||0|0
In this example wood is the deafult theme so I need to read the file, determine that wood is the default and output this to a variable called $shouttheme
I then need to open the username.dat, the format of the file is:
Password
Hatap
someone@nowhere.com
1
http://www.anysite.co.uk
1
1116774932
winter
1117366561
English
100|100
30|9|17|40|3|10|6|gen|4|7|14|8|12|15|16
20400|1117366561
In this example the members default theme is winter and is on line 26 (0 being the 1st line. This should overide the main theme and therefore update the $shouttheme.
Is this possible?