aboutsummaryrefslogtreecommitdiffstats
path: root/mod/menu.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-08-12 03:25:37 -0700
committerfriendica <info@friendica.com>2013-08-12 03:25:37 -0700
commit28a8b821b0586ec430a554c520bc079f9d4dc63f (patch)
tree45a6c34ae4dc63f8bcc0c9b0b787be5ccf7ddf7f /mod/menu.php
parenta7803a8eafa19664e08587596dcebeef7c63b84d (diff)
downloadvolse-hubzilla-28a8b821b0586ec430a554c520bc079f9d4dc63f.tar.gz
volse-hubzilla-28a8b821b0586ec430a554c520bc079f9d4dc63f.tar.bz2
volse-hubzilla-28a8b821b0586ec430a554c520bc079f9d4dc63f.zip
add mod_mitem to manage menu items
Diffstat (limited to 'mod/menu.php')
-rw-r--r--mod/menu.php35
1 files changed, 0 insertions, 35 deletions
diff --git a/mod/menu.php b/mod/menu.php
index aeb885f7d..3198027f4 100644
--- a/mod/menu.php
+++ b/mod/menu.php
@@ -2,10 +2,6 @@
require_once('include/menu.php');
-// probably should split this into two modules - with this being the CRUD module for menu
-// and mod_mitem to do the same for menu_items
-// Currently this file has pieces of both
-
function menu_post(&$a) {
if(! local_user())
@@ -14,41 +10,10 @@ function menu_post(&$a) {
$channel = $a->get_channel();
$menu_id = ((argc() > 1) ? intval(argv(1)) : 0);
-
-
$menu_name = (($_REQUEST['menu_name']) ? $_REQUEST['menu_name'] : '');
$menu_desc = (($_REQUEST['menu_desc']) ? $_REQUEST['menu_desc'] : '');
- $mitem_link = (($_REQUEST['mitem_link']) ? $_REQUEST['menu_link'] : '');
- $mitem_desc = (($_REQUEST['mitem_desc']) ? $_REQUEST['mitem_desc'] : '');
- $mitem_order = (($_REQUEST['mitem_order']) ? intval($_REQUEST['mitem_order']) : 0);
- $mitem_id = (($_REQUEST['mitem_id']) ? intval($_REQUEST['mitem_id']) : 0);
-
- $mitem_flags = (($_REQUEST['mitem_zid']) ? MENU_ITEM_ZID : 0);
-
-
- if ((! $_REQUEST['contact_allow'])
- && (! $_REQUEST['group_allow'])
- && (! $_REQUEST['contact_deny'])
- && (! $_REQUEST['group_deny'])) {
- $str_group_allow = $channel['channel_allow_gid'];
- $str_contact_allow = $channel['channel_allow_cid'];
- $str_group_deny = $channel['channel_deny_gid'];
- $str_contact_deny = $channel['channel_deny_cid'];
- }
- else {
-
- // use the posted permissions
-
- $str_group_allow = perms2str($_REQUEST['group_allow']);
- $str_contact_allow = perms2str($_REQUEST['contact_allow']);
- $str_group_deny = perms2str($_REQUEST['group_deny']);
- $str_contact_deny = perms2str($_REQUEST['contact_deny']);
- }
-
-
-
}