summaryrefslogtreecommitdiff
path: root/menu_sort.php
diff options
context:
space:
mode:
authorbitweaver.org <bitweaver@users.sourceforge.net>2005-06-19 04:57:03 +0000
committerbitweaver.org <bitweaver@users.sourceforge.net>2005-06-19 04:57:03 +0000
commit2608b4b3f9d1e5cf430a6c03019f24b9f136c4d5 (patch)
treeaa8478622110f4ee1df73bba4541a40120bf1f2d /menu_sort.php
downloadnexus-2608b4b3f9d1e5cf430a6c03019f24b9f136c4d5.tar.gz
nexus-2608b4b3f9d1e5cf430a6c03019f24b9f136c4d5.tar.bz2
nexus-2608b4b3f9d1e5cf430a6c03019f24b9f136c4d5.zip
IMPORT TikiPro CLYDE FINAL
Diffstat (limited to 'menu_sort.php')
-rw-r--r--menu_sort.php37
1 files changed, 37 insertions, 0 deletions
diff --git a/menu_sort.php b/menu_sort.php
new file mode 100644
index 0000000..403792b
--- /dev/null
+++ b/menu_sort.php
@@ -0,0 +1,37 @@
+<?php
+require_once( '../bit_setup_inc.php' );
+global $gBitSystem;
+require_once( NEXUS_PKG_PATH.'Nexus.php');
+include_once( NEXUS_PKG_PATH.'menu_lookup_inc.php' );
+
+$gBitSystem->verifyPermission( 'bit_p_create_nexus_menus' );
+
+if( empty( $_REQUEST['menu_id'] ) ) {
+ header( 'Location:'.NEXUS_PKG_URL.'index.php' );
+}
+
+// if someone wants to move and item, move it.
+if( isset( $_REQUEST['move_item'] ) && isset( $_REQUEST['item_id'] ) ) {
+ if( $_REQUEST['move_item'] == 'w' ) {
+ $gNexus->moveItemWest( $_REQUEST['item_id'] );
+ } elseif( $_REQUEST['move_item'] == 'n' ) {
+ $gNexus->moveItemNorth( $_REQUEST['item_id'] );
+ } elseif( $_REQUEST['move_item'] == 's' ) {
+ $gNexus->moveItemSouth( $_REQUEST['item_id'] );
+ } elseif( $_REQUEST['move_item'] == 'e' ) {
+ $gNexus->moveItemEast( $_REQUEST['item_id'] );
+ }
+ header( 'Location: '.NEXUS_PKG_URL.'menu_sort.php?menu_id='.$_REQUEST['sort_menu'].'&tab='.$_REQUEST['tab'] );
+ die;
+}
+
+if( isset( $_REQUEST['tab'] ) ) {
+ $smarty->assign( $_REQUEST['tab'].'TabSelect', 'tdefault' );
+}
+
+// this is the module filename
+$smarty->assign( 'nexus_file', strtolower( 'mod_'.preg_replace( "/ /", "_", $gNexus->mInfo['title'] ).'_'.$gNexus->mInfo['menu_id'].'.tpl' ) );
+
+$gBitSystem->setBrowserTitle( 'Nexus Menus' );
+$gBitSystem->display( 'bitpackage:nexus/menu_sort.tpl' );
+?>