You can try and you will see that no high scores recorded! I tried to read many topics about this but can't find any solutions, please help!
khoaitaychienvn Xbox-HQ Newbie
Joined: Oct 20, 2005 Posts: 3
Posted: Thu Oct 20, 2005 2:44 pm Post subject:
As I read in another topic about the code in mainfile.php. I try to replace this
Code:
if ($_SERVER['REQUEST_METHOD'] == "POST") {
if (isset($_SERVER['HTTP_REFERER'])) {
if (!stripos_clone($_SERVER['HTTP_REFERER'], $_SERVER['HTTP_HOST'])) {
die('Posting from another server not allowed!');
}
} else {
die($posttags);
}
}
with this
Code:
/*
if ($_SERVER['REQUEST_METHOD'] == "POST") {
if (isset($_SERVER['HTTP_REFERER'])) {
if (!stripos_clone($_SERVER['HTTP_REFERER'], $_SERVER['HTTP_HOST'])) {
die('Posting from another server not allowed!');
}
} else {
die($posttags);
}
}
*/
And it worked! Well, also in the mainfile.php, it shows that that code is used for against posting from other sites!
Any ideas? Is it risky?
forahobby Administrator
Joined: May 22, 2003 Posts: 23948 Location: NSW, Australia
Posted: Sun Oct 30, 2005 7:19 pm Post subject:
what version of phpnuke are your running??
I bet you are running pHPNUKE 7.8 or 7.9..
I have been receiving error reports that it hasnt been saving scores.
That is probably why hehehh elol
Can you reply and let me know your setup and phpnuke version please.
btw.. since you have turned off that feature that means that anyone can post data to your website from anywhere.. Not a suggestion to turn it off but you may have to before the scores will save.
As I read in another topic about the code in mainfile.php. I try to replace this
Code:
if ($_SERVER['REQUEST_METHOD'] == "POST") {
if (isset($_SERVER['HTTP_REFERER'])) {
if (!stripos_clone($_SERVER['HTTP_REFERER'], $_SERVER['HTTP_HOST'])) {
die('Posting from another server not allowed!');
}
} else {
die($posttags);
}
}
with this
Code:
/*
if ($_SERVER['REQUEST_METHOD'] == "POST") {
if (isset($_SERVER['HTTP_REFERER'])) {
if (!stripos_clone($_SERVER['HTTP_REFERER'], $_SERVER['HTTP_HOST'])) {
die('Posting from another server not allowed!');
}
} else {
die($posttags);
}
}
*/
And it worked! Well, also in the mainfile.php, it shows that that code is used for against posting from other sites!
Any ideas? Is it risky?
hello, i´m from spain and i have the same problem.. any solution??
forahobby Administrator
Joined: May 22, 2003 Posts: 23948 Location: NSW, Australia
Posted: Wed Nov 09, 2005 1:20 am Post subject:
i will be testing the pnFlashGames module on all version of phpnuke from phpnuke 7.7 to phpnuke 7.9 over the next couple of weeks.. hang in there guys.. Im sure its something simple.
It works on all other phpnuke installs including platinum etc etc.
It may just be your server config maybe or like i said early something has changes in the main backened of phpnuke to stop scores being save.
a tip:
try to play ms.pacman and or frogger as they use old component to save scores.. If you play some of the newer games they may not work.. Atleast we will see what is going on.
The problem was the old component!! now I fixed it! thanks forahobby!
forahobby Administrator
Joined: May 22, 2003 Posts: 23948 Location: NSW, Australia
Posted: Thu Nov 24, 2005 9:17 am Post subject:
sweet. thanks for the feedback dude..
It will help others who are having the same probs.
I know the code works fine.. I wrote it from scratch and tested alot..
Joined: May 22, 2003 Posts: 23948 Location: NSW, Australia
Posted: Tue Jan 17, 2006 3:37 am Post subject:
hi wibbers,
with the latest version of nuke im sure they must have implemented some new code which stops any informtion being POSTED to the homepage.
I havent had the time just yet but hopefully soon will install the latest phpnuke and fix the bugs for you all. I do know that other have fixed it but im not sure if they have shared how.
My guess is somewhere in the MAINFILE.php file it is stopping POSTS.
Keep searching through the forums.. As soon as i get more time ill test myself.
In a file oldcomponent.php already there is a line
Code:
global $user, $cookie, $prefix, $db, $dbi, $user_prefix, $REQUEST_URI;
but Hi-score were not kept
PHP-Nuke-7.9_3.1_Rus_NY
forahobby Administrator
Joined: May 22, 2003 Posts: 23948 Location: NSW, Australia
Posted: Wed Feb 01, 2006 11:56 pm Post subject:
Quote:
but Hi-score were not kept Sad
PHP-Nuke-7.9_3.1_Rus_NY
Thanks.. I havent tested 7.9 so obviously something has changed..
Cheers for replying and letting the other guys know what the problem was.. Is everything working fine for you now..
I hope you enjoy all my hard work, sweat and tears.
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 vote in polls in this forum You can attach files in this forum You can download files in this forum