Codice: Seleziona tutto
<?php
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
page_header('Classifica ITS');
$sql = ("SELECT pf_its_pin From PROFILE_FIELDS_DATA_TABLE WHERE pf_its_pin = 'valore' ");
$template->assign_vars(array(
'PIN_COR' => $row->data['pf_its_pin'],
'USERNAME_COR' => $user->data['username'],
));
$template->set_filenames(array(
'body' => 'its_body.html',
));
make_jumpbox(append_sid("{$phpbb_root_path}viewforum.$phpEx"));
page_footer();
?>
Template html :
Codice: Seleziona tutto
<!-- INCLUDE overall_header.html -->
<h2>Classifica ITS</h2>
<div class="panel">
<div class="inner"><span class="corners-top"><span></span></span>
<div class="content">
<p>
Benvenuto {USERNAME_COR}, il tuo PIN è {USER_COR}
</p>
<iframe src="http://www.infinitythegame.com/tournament/puntos_pais.php?pais=Italy" width="910" height="900" frameborder="0">
</iframe>
</div>
<span class="corners-bottom"><span></span></span></div>
</div>
<!-- INCLUDE jumpbox.html -->
<!-- INCLUDE overall_footer.html -->
Grazie per l'aiuto, sei gentilissimo