HQ NETWORK:   XBOX ONE |  XBOX 360 |  AIDELUXE HQ Network: 13,362 | Guests: 7977 | Members: 0 


   Current Location: Forums New google drive   |   Which modchip is this?   |   Anyone here capable or interested in restarting XBConnect?   |   Error code 05   |   original xbox with 0 memory   |   Why cell damage is low with ratings   |   New Game - Fursan al-Aqsa - Knights of al-Aqsa Mosque   |   Xbox-Hq.Com VIP Member Testimonials   |   XBHD: A Full-Featured Original Xbox Adapter from EON Gaming,   |   Best place for XBox ROMS?   |   
  Home | Active Topics | CD/DVD Media | Downloads | Forums | Feedback | Games | HardDrives | Homebrew | My Profile | ModChips | Reviews | Search | SoftMods | Tutorials

Xbox Forums

Discuss all aspects of the original Xbox Console in our Interactive Xbox Forums..

Get Xbox Game Pass Ultimate
Xbox-Hq.Com :: View topic - Score Upload Problem
Xbox-Hq.Com Forum Index -> pnFlashGames Project
Post new topic Reply to topic    
 Score Upload Problem View previous topic :: View next topic  
 
 
 
 
melihkry
Xbox-HQ User
Xbox-HQ User



Joined: Jun 24, 2005
Posts: 11

Post Posted: Thu Apr 19, 2007 12:51 pm   
Post subject: Score Upload Problem
Reply with quote
 
i have vip version of pnflashgames, and php nuke and thats my index.php files first lines,


require_once("mainfile.php");
// Save Score for Old pnFlashGames Component
include("modules/Flash_Games/includes/oldcomponent.php");

global $prefix, $db, $admin_file;


if ($op == "ad_click" AND isset($bid)) {

$bid = intval($bid);
$sql = "SELECT clickurl FROM ".$prefix."_banner WHERE bid='$bid'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$db->sql_query("UPDATE ".$prefix."_banner SET clicks=clicks+1 WHERE bid='$bid'");
update_points(21);
Header("Location: $row[clickurl]");
die();

}

$modpath = '';
define('MODULE_FILE', true);
$_SERVER['SCRIPT_NAME'] = "modules.php";

$row = $db->sql_fetchrow($db->sql_query("SELECT main_module from ".$prefix."_main"));
$name = $row['main_module'];
$home = 1;

if (isset($url) AND is_admin($admin)) {
echo "<meta http-equiv=\"refresh\" content=\"0; url=$url\">";
die();
}

if ($httpref==1) {

$referer = $_SERVER["HTTP_REFERER"];
$referer = check_html($referer, nohtml);
if ($referer=="" OR eregi("^unknown", $referer) OR substr("$referer",0,strlen($nukeurl))==$nukeurl OR eregi("^bookmark",$referer)) {

} else {

$result = $db->sql_query("INSERT INTO ".$prefix."_referer VALUES (NULL, '$referer')");

}


my phpnuke version is 7.8 i think, but i had added a security patch, i dont know if it will disable the hiscores, by the way

frogger works fine...
pingu works fine

ms pacman doesnt upload scores, and blocks game doesnt upload scores,

im waiting for a reply, thanks


View user's profile Send private message
 
 
 
 
melihkry
Xbox-HQ User
Xbox-HQ User



Joined: Jun 24, 2005
Posts: 11

Post Posted: Thu Apr 19, 2007 3:32 pm   
Post subject: solved the problem
Reply with quote
 
hi friends, php 5 , vip version 4++ , phpnuke 7.8 ..


add index.php file (phpnuke) include oldcomponent line , and all the things are working without any problem...

i had a problem and i had installed some security patches... i just recopied the original phpnuke 7.8 files to the server and now all the games are working well.. see you Smile


View user's profile Send private message
 
Display posts from previous:   
  Post new topic  
 
  Reply to topic  
|
 All times are GMT | Page 1 of 1
Jump to:  
 

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
 


Get Xbox Game Pass Ultimate