TinyPortal 0.8.6 TinyPortal v0.8.6 Bloc http://www.tinyportal.net $boarddir/index.php // Action and board are both empty... BoardIndex! if (empty($board) && empty($topic)) { require_once($sourcedir . '/TPortal.php'); return 'TPortal'; } // Action and board are both empty... maybe the portal page? if (empty($board) && empty($topic) && $settings['TPortal_front_type']!='boardindex') { require_once($sourcedir . '/TPortal.php'); return 'TPortal'; } if (empty($board) && empty($topic) && $settings['TPortal_front_type']=='boardindex' && (isset($_GET['cat']) || isset($_GET['page']))) { require_once($sourcedir . '/TPortal.php'); return 'TPortal'; } // Action and board are still both empty...and no portal startpage - BoardIndex! elseif (empty($board) && empty($topic) && $settings['TPortal_front_type']=='boardindex') { require_once($sourcedir . '/BoardIndex.php'); return 'BoardIndex'; } $themedir/index.template.php * *'; '; // TinyPortal if($context['TPortal']['showtop']) echo '* '; if($context['TPortal']['leftbar']) echo '*'; if($context['TPortal']['rightbar']) echo '*'; // TinyPortal end $sourcedir/Subs.php $context['allow_admin'] = allowedTo(array('admin_forum', 'manage_boards', 'manage_permissions', 'moderate_forum', 'manage_membergroups', 'manage_bans', 'send_mail', 'edit_news', 'manage_attachments', 'manage_smileys')); $context['allow_admin'] = allowedTo(array('admin_forum', 'manage_boards', 'manage_permissions', 'moderate_forum', 'manage_membergroups', 'manage_bans', 'send_mail', 'edit_news', 'manage_attachments', 'manage_smileys','tp_settings','tp_articles','tp_blocks','tp_dlmanager')); // Admin area 'Members'. // TinyPortal if (allowedTo(array('tp_settings', 'tp_blocks', 'tp_articles', 'tp_dlmanager', 'tp_module1', 'tp_module2', 'tp_module3', 'tp_module4', 'tp_module5'))) { $context['admin_areas']['tportal'] = array( 'title' => 'TinyPortal', 'areas' => array() ); if (allowedTo('tp_settings')){ $context['admin_areas']['tportal']['areas']['tp_settings'] = '' . $txt['tp-admin2'] . ''; } if (allowedTo('tp_blocks')){ $context['admin_areas']['tportal']['areas']['tp_blocks'] = '' . $txt['tp-admin5'] . ''; } if (allowedTo('tp_articles')){ $context['admin_areas']['tportal']['areas']['tp_articles'] = '' . $txt['tp-admin8'] . ''; } if (allowedTo('tp_dlmanager')){ $context['admin_areas']['tportal']['areas']['tp_dlmanager'] = '' . $txt['tp-admin9'] . ''; } } // TinyPortal end $sourcedir/ManagePermissions.php 'profile_remote_avatar' => false, ) , // TinyPortal 'tinyportal' => array( 'tp_settings' => false, 'tp_blocks' => false, 'tp_articles' => false, ), 'tinyportal_dl' => array( 'tp_dlmanager' => false, 'tp_dlupload' => false, ), // Tinyportal end $sourcedir/Security.php // Require a user who is logged in. (not a guest.) function is_not_guest($message = '') { global $user_info, $sourcedir, $txt, $context; // TinyPortal TPortal_init();