Code: Select all
<?php
/**
*
* @package - Board3portal
* @version $Id: portal.php 325 2008-08-17 18:59:40Z kevin74 $
* @copyright (c) kevin / saint ( www.board3.de/ ), (c) Ice, (c) nickvergessen ( www.flying-bits.org/ ), (c) redbull254 ( www.digitalfotografie-foren.de ), (c) Christian_N ( www.phpbb-projekt.de )
* @based on: phpBB3 Portal by Sevdin Filiz, www.phpbb3portal.com
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
define('IN_PHPBB', true);
define('IN_PORTAL', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
include($phpbb_root_path . 'portal/includes/functions.'.$phpEx);
include_once($phpbb_root_path . 'includes/functions_user.' . $phpEx);
$portal_config = obtain_portal_config();
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup('mods/lang_portal');
// zu überprüfende Gruppen ID ( Beispiel Gruppen ID 5 )
$gruppen_id = 5;
// zu überprüfender User ( Beispiel: Der User, der diese Seite aufgerufen hat )
$benutzer_id = $user->data['user_id'];
// Nun erfolgt die eigentliche Prüfung:
$is_in_group = group_memberships($gruppen_id, $benutzer_id , true);
*Haufen CODE*
$template->assign_vars(array(
'PORTAL_LEFT_COLUMN' => $portal_config['portal_left_column_width'],
'PORTAL_RIGHT_COLUMN' => $portal_config['portal_right_column_width'],
));
if ($is_in_group == true)
{
// Teile dem Template System mit, das die Variable "S_IN_GROUP" den Wert TRUE bekommt
$template->assign_var('S_IN_GROUP', true);
}
page_header($user->lang['PORTAL']);
$template->set_filenames(array(
'body' => '/portal/portal_body.html'
));
make_jumpbox(append_sid("{$phpbb_root_path}viewforum.$phpEx"));
page_footer();
?>
Code: Select all
<!-- IF $S_IN_GROUP -->
<!-- IF S_DISPLAY_POLL -->
<!-- INCLUDE portal/block/poll.html -->
<!-- ENDIF -->
<!-- ENDIF -->