Location: PHPKode > projects > Content*Builder > contentbuilder/plugins/user_managment/user.inc.php
<?php
	$mainPluginContent = array();
	$mainMessageContent = array();
	
	$query  = mysql_query("SELECT * FROM ".TABLE."_user WHERE name = '$HTTP_SESSION_VARS[user]'");
	$result = mysql_fetch_array($query);
	$userid = $result["userid"];
	$usern  = $result["name"];

	if(file_exists($lang_path.$lang_pf."/plugin/user.lang.php")) {
		include($lang_path.$lang_pf."/plugin/user.lang.php");
	} else {
		include($lang_path."en/plugin/user.lang.php");
	}

	include($pluginLocation.'/plugin.config');

	$tpl->assign( "SUB", $sub);
	$tpl->assign( "userTextMessages", $usr_msg);
	
	$menuSubNav[] = "";
	$menuEntry[]  = $usr_msg["overview"];
	$menuPrefix[] = '<img src="'.$cbDirGfx.'moarrow.gif" width="8" align="middle" height="11" border="0" alt="arrow">&nbsp;';

	$menuSubNav[] = "&sub=usrAdd";
	$menuEntry[]  = $usr_msg["add_user"];
	$menuPrefix[] = '&nbsp;|&nbsp;';

	$menuSubNav[] = "&sub=usrGroup2";
	$menuEntry[]  = $usr_msg["manage_group"];
	$menuPrefix[] = '&nbsp;|&nbsp;';

	$menuSubNav[] = "&showDeactivatedUsers=1";
	$menuEntry[]  = $usr_msg["overviewDeactivated"];
	$menuPrefix[] = '&nbsp;|&nbsp;';

	switch($sub) {
		case "usrAdd":
			  include($pluginLocation."/usrDetails.inc.php");
			  break;
		case "usrDetails":
			  include($pluginLocation."/usrDetails.inc.php");
			  break;
		case "usrPortrait":
			  include($pluginLocation."/usrPortrait.inc.php");
			  break;
		case "usrGroup2":
			  include($pluginLocation."/usrGroup2.inc.php");
			  break;
		case "usrRights":
			  include($pluginLocation."/usrRights.inc.php");
			  break;
		default:
			  include($pluginLocation."/usrManagment.inc.php");
			  break;
	}
	
	$tpl->assign("plugin_menu_data",
		array ( "PRE"       => $menuPrefix,
				"SUBNAV"    => $menuSubNav,
				"MENUENTRY" => $menuEntry
		)
	);
	
	$tpl->assign("pluginContent", $mainPluginContent);
	$tpl->assign("messageContent", $mainMessageContent);
	$tpl->display($config['templates']."plugin.template");
?>
Return current item: Content*Builder