PDA

View Full Version : phpbb games. Is this do-able with this script ? Check Example Code


dizzy100
03-30-2006, 04:44 AM
I used an arcade for SMF (simple machines) and they wrote i script to parse the scores from phpbb arcade into the database.

Phpbb games call the newscore.php file with the folloowing (modyfied for simple machines) :-

<?php

$game_name = (($HTTP_POST_VARS['game_name'])) ? $HTTP_POST_VARS['game_name'] : $_POST['game_name'];
$score = (($HTTP_POST_VARS['score'])) ? $HTTP_POST_VARS['score'] : $_POST['score'];

echo '<form method="post" name="re_direct" action="index.php?action=arcade">
<input type="hidden" name="score" value="'. $score .'">
<input type="hidden" name="game" value="'. $game_name .'">
</form>
<script type="text/javascript">
window.onload = function(){document.re_direct.submit()}</script>';
exit();

?>


Now i'm wondering if this could be modified to allow us to use phpbb games with ibProArcade ? From what i see would it not just be changing the variables and where it calls the hi-score form ?