|
|
|
 |

October 25th, 2003, 12:13 AM
|
 |
Major General
|
|
Join Date: May 2002
Location: Linghem, Östergötland, Sweden
Posts: 2,255
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Ruatha: PBW Alternate Scripts
How stupid can I be allowed to be???
Instead of making PHP start the download I can make PHP make a dynamic HREF link to the newest gamefile to the "get turn" button, it's so easy!!
Why didn't I see it?
I've made the script but can't upload it until I get home from work tomorrow, will incorporate your News section then Fyron.
This means that Upload.php is scrapped totally and incorporated into index.php.
Databases, have never used any, always made my own.
I'll make PHP files to include variables instead of txt files next though.
[ October 24, 2003, 23:24: Message edited by: Ruatha ]
|

October 25th, 2003, 12:20 AM
|
 |
Shrapnel Fanatic
|
|
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
|
|
Re: Ruatha: PBW Alternate Scripts
I started on some of the php for the newer Version.  I took the liberty of renaming some of the variables to have better names.
http://pbw.spaceempires.net/betafiles.zip
So far, I have a gameinfo.php and deadline.php. I did not put news in there, as I would rather see news handled via its own HTML file included in main.php.
Edit:
Email them to me and I can post them.
[ October 24, 2003, 23:28: Message edited by: Imperator Fyron ]
|

October 25th, 2003, 12:26 AM
|
 |
Major General
|
|
Join Date: May 2002
Location: Linghem, Östergötland, Sweden
Posts: 2,255
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Ruatha: PBW Alternate Scripts
Ok, the only new file is the index.php
Will mail it to you as soon as the patient I'm waiting for have come and gone.
(Will have to go to another computer in another room)
Will download the gameinfo and work out of that, thanx.
It's good that you change the variables, I'm usually sloppy about the varaible names.
This will be a total rewrite of the site so it's good to start fresh.
(my variables usually ends up having names like "trash1, trash2, trash3" etc but in swedish....)
[ October 24, 2003, 23:30: Message edited by: Ruatha ]
|

October 25th, 2003, 12:29 AM
|
 |
Shrapnel Fanatic
|
|
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
|
|
Re: Ruatha: PBW Alternate Scripts
Added deadline.php, though I have no idea what you wanted with "Date in Central European time, altered to the set timezone when displayed in each game."...
|

October 25th, 2003, 12:33 AM
|
 |
Major General
|
|
Join Date: May 2002
Location: Linghem, Östergötland, Sweden
Posts: 2,255
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Ruatha: PBW Alternate Scripts
It just means that all deadlines will be stored in the same timezone, doesn't matter wich.
But when it is displayed on the web page it is changed to the timezone that the host has defined for that particular game (add or subtract hours)
.
The player will be able to press a button to have it converted to all the other time zones, to see his/hers local deadline time.
EDIT: Should the design be similar to PBW or should it be radically different?
EDIT2:
I really like the variable files. I'm thinking of counting the player names until the first "SN" name and checking that against $numplayers.
In deadline.php I'll change $date to $timezone
Edit 3.5: Mail is on the way.
Won't be able to check this site or mail for some 6-7 hours, work work work...
[ October 25, 2003, 00:04: Message edited by: Ruatha ]
|

October 25th, 2003, 01:01 AM
|
 |
Shrapnel Fanatic
|
|
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
|
|
Re: Ruatha: PBW Alternate Scripts
I am working on and have uploaded a main.php (in that same betafiles.zip). But, I am having some problems with it... check out this test site to see what they are  :
http://pbw.spaceempires.net/test/main.php
http://pbw.spaceempires.net/betafiles.zip
I am attempting to move all the plr file checking to a new file called "playerupload.php" to keep main uncluttered.
[ October 25, 2003, 00:03: Message edited by: Imperator Fyron ]
|

October 25th, 2003, 04:16 AM
|
 |
Major General
|
|
Join Date: May 2002
Location: Linghem, Östergötland, Sweden
Posts: 2,255
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Ruatha: PBW Alternate Scripts
I've made a deadline_check.php that checks the deadline.php in the $game directory against current time, displays this and what timezone is being used (So far only what the variable $timezone is, up to the host to define it so far) and a countdown in hours.
Also a link to a world timezone web page (External).
This is meant to be included in the Main.php
INCLUDE "deadline_check.php"
|
Thread Tools |
|
Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
|
|