The online racing simulator
Searching in All forums
(96 results)
D34N0
S3 licensed
Quote from Dygear :No, this will be the last update ... added support for php4.

http://www.TheNZ.org/PHP/LFSWTeamStats.zip

I know you said this is the last update but I have an issue with the line sleep(5).
This will only work if you are using Internet Explorer or when using LFSW Premium Stats and by adding the LFSW IDKey and premium stats options to the line getting the stats and commenting the line Sleep(5).
When using Mozilla/FireFox it has a timeout of 30 seconds therfore only allowing for the retrieval of 6 members and would never complete and create the cache file. T7R has 20 but luckily we use premium stats.
I'm not sure if there is a workaround for this as I would like to incorporate this into my Setup Station. My PHP is limited so would appreciate some help.

Regards
Dean
D34N0
S3 licensed
I have made a minor change to the setups required file that will decrease the load time a little. The file can downloaded from the first post and the zip file has also been updated with this file.

Dean
D34N0
S3 licensed
Quote from PaulC2K :
Couldn't get hostlist. Click to retry...

Also the
PB is : No Time Found HL is : No Time Found WR is : No Time Found

Is that correct, not yet implemented, or is this something else that needs some input at my end?

Have you got an Ident Key from LFS World and added it to page.class.php file as described on page 5 of the Manual in the documentatiion folder?
D34N0
S3 licensed
New Version in the first Post with new features.

v0.970 - BETA
- Language now set via the user profile. Login page and guest login will still be in the native language
- Added Icelandic and Croatian translations will not translate phpMyEdit application
- Amended Required/Missing setups and Quick Find pages to show only Cars & Tracks with coloured background
- Amended table css formatting to be more consistant in a number of files
- Moved the CheckUserLevel function from the login page to the page.class file
- Fixed Errors in files within the install folder
- Tidied up the CSS file
- Documentation Updated
D34N0
S3 licensed
Quote from PaulC2K :Something a little odd going on for me atm.

I've gone with admin : admin and that just ignores me (dont blame it!), doesnt kick up an error message saying theres something wrong though.
If i enable guests then in IE i can now get in as a guest, but not as admin, and Firefox just doesnt give a hoot, however a mate says hes in as guest (in FF) but he couldnt log in as admin when i asked him moments earlier.

It could be a long shot, and im not all that clued up on this MD5 lark, but if my understanding of it is correct, then according to the database *your* password must be 'admin' cos its the identical 'code' to what should translate to 'admin'.
Guessing this is just another silly db mistake thats found a way to mess things up, they have an amazing tendancy to do that hehe

Hi

Sorry for the problems this has been caused by the wrong files in the install Folder.

EDIT: Correct files have now been added to the file in the first post
Last edited by D34N0, .
D34N0
S3 licensed
Quote from Bean0 :I'm a fool . It did exist, but something must have gone wrong uploading as it was 0 bytes.

All working now.

No problem - These things are sent to try us

I will maybe look at creating another userlevel (4) and that one can have access to add fuel data only on that page.
D34N0
S3 licensed
Quote from Bean0 :I get this error when clicking the green ticks from the Quick Find page

Fatal error: Class 'zipfile' not found in /var/www/virtual/bean0.com/htdocs/setups/includes/general.class.php on line 234

Also, could you make it so that level 3 users can add fuel data, but not delete ?

Strange one that I am unable to replicate it.
Does zip.class.php exist in includes folder?.
What version of php are you running?
Are you using something like XAMMP ?
It's as if it cannot find the class within the zip.class file.
I will upload a new version to my webspace to see if I can replicate it.
D34N0
S3 licensed
New Version in the First Post.

Thanks To HorsePower for the Ideas that lead to this mini glut of updates

v0.963 - BETA
- Amended setups required page. Added row of car headings to the bottom of the table. Tag added to tick image to show combo
- Thanks to "HorsePower" for the Ideas of Guest login, Quick Find and the above.
- Amended quick find page argument handling and the title of the display table
- Amended the way the member status page changes from LFS colour codes to HTML codes. Using code supplied by Victor
If using dark background on website look in general.class.php and change "case 7 : $type = "#808080"; return $type; Break; "
- Documentation updated
D34N0
S3 licensed
New version uploaded to the first post.

v0.960 - BETA
- Added Quick Find function. It uses the Required/Missing sets page. Clicking on a Tick shows setups for that combo
- Moved the code for creating zip files and showing users pubstats to general class file
- Amended the find setups page to use the code moved to the general class file
- Amended language files to include Quick Find
- Documentation updated
D34N0
S3 licensed
First Post updated with new version fixing the issue poined out by HorsePower.

v0.954 - BETA
- Fixed bug where userlevel 3 would logout when clicking the change profile link
D34N0
S3 licensed
Hi HorsePower
Quote :Ok, maybe an additional menu button "quick find setups" with this inferno-like table would be a good solution. So each user can decide which page he wants to use for the search.

In the find setups page you are able to read the comments, which is nice. But you have to do 2 selections to specify a certain combo. In the quick finder you will be able to access a combo with 1 click (but not read any comment until after that click). This click should then lead you to the usual find setup page but with the combo selected in the search criteria.

OK. how about the Quick Find link takes you to the required/missing sets page and when you click on a tick then it displays the sets for that combo in a new page, as described in my last post about me creating a new page when this version is stable

Your english is very good.
Dean
D34N0
S3 licensed
Hi HorsePower
Quote :#1) The inferno-like table doesn't show the track names, only the cars.

I will look into it but works fine on my machine. Please check the track short name data has been added to the stn_tracks table field.
Quote :#2) User with level 3 get logged out when they try to change their profile.

I will check this also looks like I haven't updated the access rights on that page.
Quote :The inferno-like table could also be used to quickly select the setups, one is searching for.

I had thought of that but the program phpMyEdit does not allow filtering of pages from external links. I will need to create a different page to do this without using phpMyEdit, once this version has become stable.
Quote :Maybe an additional menu point "quick find" or something like that would do it. Or just a link next to the "download all setups"-link.

I do not understand what u mean as once in the find setups page you can quickly search by using the query button.

All Ideas are welcome and are considered for inclusion.
Regards
Dean
D34N0
S3 licensed
Updated version of the setup station in the first Post
- Added Guest login facility. Can be enabled/disabled see manual
- Added New userlevel 3. This allows view, upload sets and profile change
- Change the Required/Missing setup page to view in one table similar idea to Team Inferno
- CSS file updated for new Required/Missing setup page
- New images added to images folder
- Documentation updated
D34N0
S3 licensed
Hi HorsePower

1)
Quote :is it possible to implement the possibility of a guest account?

It is certainly possible. I will look into implementing it.

2)
Quote :In the german translation, the logout-link was commented out. Why?

I must have forgot to remove the comment when working in a different version. Will correct in next update.

3)
Quote :I noticed, that every user (admin or not) can change/rename/delete every uploaded setup. I would like to allow some people to upload their sets, but not change anything in the database (except their own profile).
I think this could be easily achieved by introducing a new user level.

Again possible and will look at adding the extra userlevel rather than the more complicated option.

4)
Quote :The menu "missing setups" could contain a inferno-like table. That would be a lot easier to check than this endlessly long table.

Nice Idea and again I will look at adding this.

Thanks for the sugesstions
Dean
D34N0
S3 licensed
Quote from joen :You mean his last race information? The one on april 24th?

Just realised and updated my last post... oops too eager lol
D34N0
S3 licensed
Quote from GP4Flo :I doubt very much that this will be a physic update. A compatible patch is more likely because it's still "U".

I agree but are they also adding those hideous fins on the BF1 and testing.
Last edited by D34N0, .
D34N0
S3 licensed
A new version has been uploaded in the first post.

v0.94 - BETA
- Added check for SQL Injection in trigger files
- Added a blank index.html to folders to stop direct acces to them

Any other problems please let me know.

Dean
D34N0
S3 licensed
A new version has been uploaded in the first post.
This corrects the issue spotted by St4Lk3R in the post of 25th June and also changes the way the version number is displayed.

Any other problems please let me know.

Dean
D34N0
S3 licensed
Quote from duke_toaster :Nothing, it just wasn't in the list. Doh.

BTW, I haven't installed it yet as the hosting hasn't got the MySQL database yet.

OK. The reason it is not in the list is because most teams will use only the main tracks, even Team Inferno do not include BL3 in their list
I will think about including it it the next update.
D34N0
S3 licensed
Quote from duke_toaster :I ment autocross, as in the car park.

Whats stopping you adding the track?

Code = BL3
LFSW Pubstats Code = 020 (IIRC)
Name = Blackwood Car Park
Last edited by D34N0, .
D34N0
S3 licensed
Quote from duke_toaster :I'll put an OSR one up when our hosts (Race Sim Central) pop a MySQL database on our bit of the server.

Please could we have codes for the drag strip and autocross in the system?

The track AU4 should already be in and all the rallyX tracks are there. If you want to add these tracks to your version then you can. Use the admin pages. See the manual. Track Table menu option
D34N0
S3 licensed
St4Lk3R Thanks for spotting that. Both PME and I have different language files. I should have realised that the triggers would use the PME language fileillepall . I left my laptop at work so will look at resolving this over the next couple of days. It shouldn't be that hard I know where to get the file from and use the correct translated words

Many Thanks
Dean
Last edited by D34N0, .
D34N0
S3 licensed
Quote from Bean0 :I got a different error with the new file, but have managed to solve it myself I think.

I looked at the other files and changed line 11 from
$PageClass->CheckUserLevel("0"); // Zero = all levels

to
CheckUserLevel("0"); // Zero = all levels

And it seems to be working ok now.

I'm new to this php lark, so if thats going to cause any issues please could you let me know

Thats fine , Well spotted and thank you for posting it. I forgot I had moved the function (Doh)

Files have been Updated again

Regards
Dean
Last edited by D34N0, .
D34N0
S3 licensed
Quote from Bean0 :Have found a small problem...

When you try and rename a setup, it requires a file 'check_access.php' which isn't included in the download

Thanks Bean0
My mistake illepall Thats what you get for having 3 versions (I was testing a different user group validation)

Attached is the corrected file. To all those who have downloaded the setupstation please update using this file.

I have also updated the first post zip file with the corrected file.

Regards
Dean

EDIT: File updated in First post and post below
Last edited by D34N0, .
D34N0
S3 licensed
Quote from HorsePower :The database is setup correctly and all the options are set, but when I try to login for the first time as admin, the login screen just reloads and nothing else happens. No error messages occur.

Beause the Login page reloads it appears to be querying the database, and it is at this point it is redirecting to another page. I had the same problem when it was not able to find the page redirecting too. Try using Firefox and it should tell you the page being redirected to may not load.

Is the istallation of XAMPP using PHP 5.x? If so then I know version 5 handles classes differently. The station has been tested on version 4.3 to 4.4.1 as this range is used by alot of ISP's.

Dean
FGED GREDG RDFGDR GSFDG