in the file arcade / module / arcade.playgame.php
find this
PHP Code:
$game['game_file'] = "<iframe src=\"/arcade/gamedata/{$game['gname']}/index.html\" gid=\"{$game['gid']}\" tgame=\"0\" gname=\"{$game['gname']}\" gamename=\"{$game['gname']}\" mname=\"{$game['username']}\" width=\"{$game['gwidth']}\" height=\"{$game['gheight']}\" frameborder=\"no\" scrolling=\"no\"></iframe>";
replace with this
PHP Code:
$game['game_file'] = "<iframe src=\"./arcade/gamedata/{$game['gname']}/index.html\" gid=\"{$game['gid']}\" tgame=\"0\" gname=\"{$game['gname']}\" gamename=\"{$game['gname']}\" mname=\"{$game['username']}\" width=\"{$game['gwidth']}\" height=\"{$game['gheight']}\" frameborder=\"no\" scrolling=\"no\"></iframe>";
search
PHP Code:
$game['username'] = $player_name = $this->arcade->user['name'];
$game['checksum'] = $this->pnFlashGames_getChecksum($game['gname']);
$game['domain'] = $this->pnFlashGames_getDomain(); //couldnt get this to work for some reason
replace with
PHP Code:
//$game['username'] = $player_name = $this->arcade->user['name'];
// $game['checksum'] = $this->pnFlashGames_getChecksum($game['gname']);
//$game['domain'] = $this->pnFlashGames_getDomain(); //couldnt get this to work for some reason
in the file arcade / module / arcade_playgame_full.php
find this
PHP Code:
<iframe src ="/arcade/gamedata/{$game['gname']}/index.html" gid="{$game['gid']}" gname="{$game['gname']}" style="overflow: hidden; height: 100%; width: 100%;position: absolute;" frameBorder="no" scrolling="no" allowFullScreen="true" webkitallowfullscreen="true" mozallowfullscreen="true"></iframe>";
replace with this
PHP Code:
<iframe src ="./arcade/gamedata/{$game['gname']}/index.html" gid="{$game['gid']}" gname="{$game['gname']}" style="overflow: hidden; height: 100%; width: 100%;position: absolute;" frameBorder="no" scrolling="no" allowFullScreen="true" webkitallowfullscreen="true" mozallowfullscreen="true"></iframe>";
search
PHP Code:
$game['username'] = $player_name = $this->arcade->user['name'];
$game['checksum'] = $this->pnFlashGames_getChecksum($game['gname']);
$game['domain'] = $this->pnFlashGames_getDomain(); //couldnt get this to work for some reason
replace with
PHP Code:
//$game['username'] = $player_name = $this->arcade->user['name'];
//$game['checksum'] = $this->pnFlashGames_getChecksum($game['gname']);
//$game['domain'] = $this->pnFlashGames_getDomain(); //couldnt get this to work for some reason
in arcade.php
PHP Code:
function pnFlashGames_getChecksum($file){
$file = "arcade/".$file.".swf";
if($fp = fopen($file, 'r')){
$filecontent = fread($fp, filesize($file));
fclose($fp);
return md5($filecontent);
}else{
return false;
}
}
replace with
PHP Code:
//function pnFlashGames_getChecksum($file){
// $file = "arcade/".$file.".swf";
// if($fp = fopen($file, 'r')){
// $filecontent = fread($fp, filesize($file));
// fclose($fp);
// return md5($filecontent);
// }else{
// return false;
// }
//}