Code:
<?php
/**
*
* @package phpBB2
* @version $Id: index.php,v 1.99.2.3 2004/07/11 16:46:15 acydburn Exp $
* @copyright (c) 2001 The phpBB Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
* @modified by phpBB Fully Modded
* @version $Id: 6/02/2007 5:59 PM
* @support http://phpbbfm.net
*
*/
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
include($phpbb_root_path . 'lgf-reflog.'.$phpEx);
include($phpbb_root_path . 'includes/functions_selects.'.$phpEx);
//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
//
// End session management
//
//
// Activity
//
$ipb_check = ( isset($HTTP_GET_VARS['act']) ) ? 'Arcade' : '';
$ipb_score = ( isset($HTTP_GET_VARS['do']) ) ? 'newscore' : '';
if ( ($ipb_check) && ($ipb_score) )
{
$game = trim(addslashes(stripslashes($HTTP_POST_VARS['gname'])));
$score = intval($HTTP_POST_VARS['gscore']);
$q = "SELECT game_type
FROM " . iNA_GAMES . "
WHERE game_name = '" . $game . "'";
$r = $db->sql_query($q);
$row = $db->sql_fetchrow($r);
// Only IPB Games Can Use This Format!
if ( $row['game_type'] == 3 )
{
echo '<form method="post" name="ipb" action="newscore.'.$phpEx.'">';
echo '<input type="hidden" name="score" value="' . $score . '">';
echo '<input type="hidden" name="game_name" value="' . $game . '">';
echo '</form>';
echo '<script type="text/javascript">';
echo 'window.onload = function(){document.ipb.submit()}';
echo '</script>';
exit();
}
else
{
redirect(append_sid('activity.'.$phpEx), TRUE);
}
} |