assignInclude('header', 'templates/header.tpl'); $tpl->assignInclude('footer', 'templates/footer.tpl'); $tpl->prepare(); include 'includes/config.inc.php'; include 'includes/ubb.inc.php'; if ( !is_numeric($_GET['user']) ) header('Location: index.php'); if($_GET['user'] == 1) header('Location: index.php'); $profiel_query = $Sql->Query("SELECT l.*, g.groep_naam, groep_kleur FROM dt_leden l, dt_groepen g WHERE l.id = '".$_GET['user']."' && g.groep_id = l.status"); $profiel = mysql_fetch_array($profiel_query); if( $Sql->Count($profiel_query) == 0) header('Location: index.php'); $user_nickname = htmlspecialchars(stripslashes($profiel['nickname'])); $user_naam = htmlspecialchars(stripslashes($profiel['naam'])); $user_woonplaats = htmlspecialchars(stripslashes($profiel['woonplaats'])); $user_website = htmlspecialchars(stripslashes($profiel['website'])); if( !empty($user_website) && substr($user_website, 0, 7) != 'http://') $user_website = 'http://'.$user_website; $user_regdatum = date('d-m-Y / H:i', $profiel['regdatum']); $user_uitgebreid_profiel = nl2br(htmlspecialchars(stripslashes($profiel['profiel']))); set_ubb_forum($user_uitgebreid_profiel); if($profiel['show_email'] == 0) $user_email = 'Verborgen'; elseif ($profiel['show_email'] > 0) $user_email = htmlspecialchars(stripslashes($profiel['email'])); $user_regmail = htmlspecialchars(stripslashes($profiel['regmail'])); $user_msn = htmlspecialchars(stripslashes($profiel['msn'])); $user_icq = htmlspecialchars(stripslashes($profiel['icq'])); $user_ipadres = $profiel['ip']; $groep_naam = htmlspecialchars(stripslashes($profiel['groep_naam'])); $groep_kleur = htmlspecialchars(stripslashes($profiel['groep_kleur'])); $tpl->assign('user_userid', $profiel['id']); $tpl->assign('user_nickname', $user_nickname); $tpl->assign('user_naam', $user_naam); $tpl->assign('user_woonplaats', $user_woonplaats); $tpl->assign('user_website', $user_website); if ($forumstatus > 0){ $tpl->newBlock('admin_profiel_opties'); $tpl->assign('user_regmail', $user_regmail); $tpl->assign('user_ipadres', $user_ipadres); $tpl->GotoBlock('_ROOT'); } $tpl->assign('user_email', $user_email); $tpl->assign('user_msn', $user_msn); $tpl->assign('user_icq', $user_icq); if( !empty($user_uitgebreid_profiel) ){ $tpl->newBlock('uitgebreid_profiel'); $tpl->assign('user_uitgebreid_profiel', $user_uitgebreid_profiel); $tpl->GotoBlock('_ROOT'); } $forum_online_query = $Sql->Query("SELECT DISTINCT id FROM dt_online WHERE id = '".$profiel['id']."'"); if ( $Sql->Count($forum_online_query) == 0) $user_online = 'Offline'; elseif ( $Sql->Count($forum_online_query) > 0) $user_online = 'Online'; $tpl->assign('groep_naam', $groep_naam); $tpl->assign('groep_kleur', $groep_kleur); $tpl->assign('user_posts', $profiel['posts']); $tpl->assign('user_regdatum', $user_regdatum); $tpl->assign('user_online', $user_online); $tpl->PrintToScreen(); ?>