コード例 #1
0
/**
* Community Builder (TM)
* @version $Id: $
* @package CommunityBuilder
* @copyright (C) 2004-2015 www.joomlapolis.com / Lightning MultiCom SA - and its licensors, all rights reserved
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU/GPL version 2
*/
use CB\Database\Table\PluginTable;
// ensure this file is being included by a parent file
if (!(defined('_VALID_CB') || defined('_JEXEC'))) {
    die('Direct Access to this location is not allowed.');
}
global $_CB_framework, $_CB_Backend_Menu, $_CB_Backend_task, $_PLUGINS;
if (isset($_CB_Backend_Menu->mode)) {
    if (isset($_CB_Backend_Menu->menuItems) && $_CB_Backend_Menu->menuItems) {
        TOOLBAR_usersextras::_PLUGIN_MENU($_CB_Backend_Menu->menuItems);
        // return;		//TODO: This is temporary until we clean-up.
    }
}
switch ($_CB_Backend_task) {
    case "edit":
        TOOLBAR_usersextras::_EDIT();
        break;
    case "new":
        TOOLBAR_usersextras::_NEW();
        break;
    case "emailusers":
        TOOLBAR_usersextras::_EMAIL_USERS();
        break;
    case 'loadSampleData':
    case 'loadCanvasLayout':