summaryrefslogtreecommitdiff
path: root/includes/menu_lookup_inc.php
blob: 0781eb66775dd755dd350f032c20b18301d90faf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
/**
 * @author   xing <xing@synapse.plus.com>
 * @version  $Revision$
 * @package  nexus
 * @subpackage functions
 */
global $gNexus;

use Bitweaver\Nexus\Nexus;
use Bitweaver\BitBase;

if( BitBase::verifyId( $_REQUEST['menu_id'] ?? 0 ) ) {
	$menuId = $_REQUEST['menu_id'];
	$gNexus = new Nexus( $menuId );
} else {
	$gNexus = new Nexus();
	$menuId = null;
}
$gNexus -> load();

$gBitSmarty->assign( 'gNexus', $gNexus );
$gBitSmarty->assign( 'menuId', $menuId );