Strict Standards: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /homepages/34/d258180810/htdocs/phpAR/viewtopic.php on line 954

Strict Standards: getdate(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /homepages/34/d258180810/htdocs/phpAR/viewtopic.php on line 954
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2088: Array to string conversion
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2088: Array to string conversion
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2088: Array to string conversion
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2088: Array to string conversion
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2088: Array to string conversion
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2088: Array to string conversion
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2088: Array to string conversion
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2088: Array to string conversion
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2088: Array to string conversion
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3778: Cannot modify header information - headers already sent by (output started at /viewtopic.php:954)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3780: Cannot modify header information - headers already sent by (output started at /viewtopic.php:954)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3781: Cannot modify header information - headers already sent by (output started at /viewtopic.php:954)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3782: Cannot modify header information - headers already sent by (output started at /viewtopic.php:954)
Arcade Room • View topic - newscore.php Games Fixed

newscore.php Games Fixed

Get support for phpAR here.

Moderator: Support Team

Forum rules
Support will NOT be giving for 0.6.9 however you can get support for 0.6.9b and later releases.

newscore.php Games Fixed

Postby patrikStar » Tue Jan 27, 2009 12:54 pm

in response to this post viewtopic.php?f=3&t=175

ok i would like to inform you all that i found a solution that is really simple

thinking about http referer i came up with this to cleverly get the proper game_id

Code: Select all
print $_SERVER['HTTP_REFERER'];


inside of the newscore.php file and this is what printed out

Code: Select all
http://127.0.0.1/forums/viewgame.php?g=80&sid=24cc90ac9e7a033e22bf68f05ba2f910


now you see that there ?g=80 i can extract the referring url's g value and use it as the game_id

i see saw some other ways like using sessions or cookies but you could easily open an easy and a hard game and get it to use the cookie from the hard game but play the easy game and have the easy game score submitted to the hard game

anyways here is the corrected newscore.php file
newscore.zip
(1.14 KiB) Downloaded 449 times


anyways on another note if anyone can get me a vbulletin arcade game and each of the different ibpro games i would be really great that way i can see how they are submitting its scores
User avatar
patrikStar
Site Admin
Site Admin
 
Posts: 244
Cash: 442
Donate
Joined: Tue Sep 16, 2008 8:17 am
Location: Phoenix, AZ

Trophies

gold: 5
silver: 4
bronze: 2

Re: newscore.php Games Fixed

Postby t527duck » Tue Jan 27, 2009 4:26 pm

Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you
Image
User avatar
t527duck
Game Creator
Game Creator
 
Posts: 34
Cash: 68
Donate
Joined: Sat Sep 20, 2008 11:29 am

Trophies

gold: 5
silver: 5
bronze: 10

Re: newscore.php Games Fixed

Postby Waqu » Mon Feb 02, 2009 6:54 am

Cool thank you.
Waqu
New Member
New Member
 
Posts: 4
Cash: 5
Donate
Joined: Fri Sep 19, 2008 12:54 pm

Trophies

gold: 6
silver: 8
bronze: 3

Re: newscore.php Games Fixed

Postby Waqu » Sat Feb 07, 2009 4:16 am

I think the database wont convert the scores from old style to "new" style now..... still stuck at few trophys on my board when i should have lots more.
Waqu
New Member
New Member
 
Posts: 4
Cash: 5
Donate
Joined: Fri Sep 19, 2008 12:54 pm

Trophies

gold: 6
silver: 8
bronze: 3


Return to Support

Who is online

Users browsing this forum: No registered users and 0 guests

cron