Esempio n. 1
0
 /**
  * Setting links up in my account
  */
 function setting_up_collections()
 {
     global $userquery, $Cbucket;
     $per = $userquery->get_user_level(userid());
     // Adding My Account Links
     if (isSectionEnabled('collections')) {
         $userquery->user_account[lang('Collections')] = array(lang('add_new_collection') => "manage_collections.php?mode=add_new", lang('manage_collections') => "manage_collections.php", lang('manage_favorite_collections') => "manage_collections.php?mode=favorite");
     }
     // Adding Search Type
     if (isSectionEnabled('collections')) {
         $Cbucket->search_types['collections'] = "cbcollection";
     }
     // Adding Collection links in Admin Area
     $menu = array('title' => lang('Collections Manager'), 'icon' => 'icon-th', 'id' => 'collections-manager', 'access' => 'collection_moderation');
     $sub_menu = array('collections-manager' => array(array('title' => lang('Manage Collections'), 'link' => 'collection_manager.php'), array('title' => lang('Manage Categories'), 'link' => 'collection_category.php'), array('title' => lang('Flagged Collections'), 'link' => 'flagged_collections.php')));
     add_admin_menu($menu);
     add_admin_sub_menus($sub_menu);
     // Adding Collection links in Cbucket Class
     $Cbucket->links['collections'] = array('collections.php', 'collections/');
     $Cbucket->links['manage_collections'] = array('manage_collections.php', 'manage_collections.php');
     $Cbucket->links['edit_collection'] = array('manage_collections.php?mode=edit_collection&cid=', 'manage_collections.php?mode=edit_collection&cid=');
     $Cbucket->links['manage_items'] = array('manage_collections.php?mode=manage_items&cid=%s&type=%s', 'manage_collections.php?mode=manage_items&cid=%s&type=%s');
     $Cbucket->links['user_collections'] = array('user_content.php?object_group=content&object=collections&user='******'user_content.php?object_group=content&object=collections&user='******'user_fav_collections'] = array('user_content.php?object_group=content&object=collections&content_type=favorite&user='******'user_content.php?object_group=content&object=collections&content_type=favorite&user=');
 }
Esempio n. 2
0
 /**
  * Create Admin Area menu for photos
  */
 function photos_admin_menu()
 {
     global $Cbucket, $cbcollection, $userquery;
     $am = $Cbucket->AdminMenu;
     $per = $userquery->get_user_level(userid());
     $menu = array('title' => lang('Photos Manager'), 'icon' => 'icon-picture', 'id' => 'photos-manager', 'access' => 'photos_moderation');
     $sub_menu = array('photos-manager' => array(array('title' => lang('Photo Manager'), 'link' => 'photo_manager.php'), array('title' => lang('Photo Tags Manager'), 'link' => 'tags_manager.php'), array('title' => lang('Flagged Photos'), 'link' => 'flagged_photos.php'), array('title' => lang('Orphan Photos'), 'link' => 'orphan_photos.php'), array('title' => lang('Photo Settings'), 'link' => 'photo_settings.php'), array('title' => lang('Watermark Settings'), 'link' => 'photo_settings.php?mode=watermark_settings'), array('title' => lang('Recreate Thumbs'), 'link' => 'recreate_thumbs.php?mode=mass')));
     add_admin_menu($menu);
     add_admin_sub_menus($sub_menu);
 }
Esempio n. 3
0
<?php

/**
 * @Author  Arslan Hassan
 * @since v3.0
 * @package ClipBucket
 * 
 * Creates Admin and Front Menu
 */
//Adding Main Menus in Admin Panel;
$menus = array('settings' => array('title' => lang('Settings'), 'icon' => 'icon-settings icon-v3', 'id' => 'settings', 'access' => 'admin_access'), 'members' => array('title' => lang('Members Manager'), 'id' => 'members-manager', 'icon' => 'icon-user', 'access' => 'member_moderation'), 'videos' => array('title' => lang('Videos Manager'), 'id' => 'videos-manager', 'icon' => 'icon-film', 'access' => 'video_moderation'), 'groups' => array('title' => lang('Groups Manager'), 'id' => 'groups-manager', 'icon' => 'icon-groups icon-v3', 'access' => 'group_moderation'), 'ads' => array('title' => lang('Ads Manager'), 'id' => 'ads-manager', 'icon' => 'icon-coins icon-v3', 'access' => 'ad_manager_access'), 'templates' => array('title' => lang('Template Manager'), 'id' => 'template-manager', 'icon' => 'icon-adjustment icon-v3', 'access' => 'manage_template_access'), 'plugins' => array('title' => lang('Plugins Manager'), 'id' => 'plugins-manager', 'icon' => 'icon-plugins icon-v3', 'access' => 'plugins_moderation'), 'tools' => array('title' => lang('Tool Box'), 'id' => 'tool-box', 'icon' => 'icon-wrench', 'access' => 'tool_box'), 'misc' => array('title' => lang('Miscellaneous'), 'id' => 'miscellaneous', 'icon' => 'icon-cog', 'access' => 'admin_access'));
add_admin_menus($menus);
$submenus = array('settings' => array(array('title' => lang('Reports'), 'link' => 'reports.php'), array('title' => lang('Settings'), 'link' => 'main.php'), array('title' => lang('Email Settings'), 'link' => 'email_settings.php'), array('title' => lang('Language Settings'), 'link' => 'language_settings.php'), array('title' => lang('Conversion Settings'), 'link' => 'conversion_settings.php')), 'members-manager' => array(array('title' => lang('Manage Members'), 'link' => 'members.php'), array('title' => lang('Add Member'), 'link' => 'add_member.php'), array('title' => lang('Manage categories'), 'link' => 'user_category.php'), array('title' => lang('User Levels'), 'link' => 'user_levels.php'), array('title' => lang('Search Members'), 'link' => 'members.php?view=search'), array('title' => lang('Inactive Only'), 'link' => 'members.php?search=yes&status=ToActivate'), array('title' => lang('Active Only'), 'link' => 'members.php?search=yes&status=Ok'), array('title' => lang('Reported Users'), 'link' => 'flagged_users.php'), array('title' => lang('Mass Email'), 'link' => 'mass_email.php')), 'videos-manager' => array(array('title' => lang('Videos Manager'), 'link' => 'video_manager.php'), array('title' => lang('Manage Categories'), 'link' => 'category.php'), array('title' => lang('List Flagged Videos'), 'link' => 'flagged_videos.php'), array('title' => lang('Upload Videos'), 'link' => 'mass_uploader.php'), array('title' => lang('List Inactive Videos'), 'link' => 'video_manager.php?search=search&active=no')), 'groups-manager' => array(array('title' => lang('Add Group'), 'link' => 'add_group.php'), array('title' => lang('Manage Groups'), 'link' => 'groups_manager.php'), array('title' => lang('Manage Categories'), 'link' => 'group_category.php?view=show_category'), array('title' => lang('View Inactive Groups'), 'link' => 'groups_manager.php?active=no&search=yes'), array('title' => lang('View Reported Groups'), 'link' => 'flagged_groups.php')), 'ads-manager' => array(array('title' => lang('Manage Advertisments'), 'link' => 'ads_manager.php'), array('title' => lang('Manage Placements'), 'link' => 'ads_add_placements.php'), array('title' => lang('icon'), 'link' => 'icon-coins icon-v3')), 'template-manager' => array(array('title' => lang('Templates Manager'), 'link' => 'templates.php'), array('title' => lang('Templates Editor'), 'link' => 'template_editor.php'), array('title' => lang('Players Manager'), 'link' => 'manage_players.php'), array('title' => lang('Player Settings'), 'link' => 'manage_players.php?mode=show_settings'), array('title' => lang('icon'), 'link' => 'icon-adjustment icon-v3')), 'plugins-manager' => array(array('title' => lang('Plugin Manager'), 'link' => 'plugin_manager.php')), 'tool-box' => array(array('title' => lang('PHP Info'), 'link' => 'phpinfo.php'), array('title' => lang('View online users'), 'link' => 'online_users.php'), array('title' => lang('Server Modules Info'), 'link' => 'cb_mod_check.php'), array('title' => lang('Conversion Queue Manager'), 'link' => 'cb_conversion_queue.php'), array('title' => lang('ReIndexer'), 'link' => 'reindex_cb.php'), array('title' => lang('Conversion Lab &alpha;'), 'link' => 'conversion_lab.php'), array('title' => lang('Repair video duration'), 'link' => 'repair_vid_duration.php'), array('title' => lang('Maintenance'), 'link' => 'maintenance.php', 'access' => 'web_config_access')));
add_admin_sub_menus($submenus);
/**
 * Adding Widgets Menu
 */
add_admin_sub_menu(array('title' => lang('Widgets'), 'id' => 'widgets', 'parent_id' => 'template-manager', 'link' => ADMIN_BASEURL . '/widgets.php'));
/**
 * Adding Navigation 
 */
$items = array(array('title' => lang('Home'), 'link' => BASEURL, 'section' => 'home', 'icon' => 'icon-home icon-white'), array('title' => lang('Videos'), 'link' => cblink(array('name' => 'videos')), 'section' => 'videos', 'icon' => 'icon-film icon-white'), array('title' => lang('Members'), 'link' => cblink(array('name' => 'channels')), 'section' => 'channels', 'icon' => 'icon-user icon-white'), array('title' => lang('Groups'), 'link' => cblink(array('name' => 'groups')), 'section' => 'groups', 'icon' => 'icon-th-large icon-white'), array('title' => lang('Photos'), 'link' => cblink(array('name' => 'photos')), 'section' => 'photos', 'icon' => 'icon-white icon-picture'));
add_menu('navigation', $items);
/**
 * Creating user head menu
 */
$items = array(array('title' => lang('Account'), 'link' => cblink(array('name' => 'my_account')), 'section' => 'home', 'icon' => 'icon-home'), array('title' => lang('Videos'), 'link' => cblink(array('name' => 'my_videos')), 'section' => 'home', 'icon' => 'icon-home'), array('title' => lang('Photos'), 'link' => cblink(array('name' => 'my_photos')), 'section' => 'home', 'icon' => 'icon-home'), array('title' => lang('Settings'), 'link' => cblink(array('name' => 'my_photos')), 'section' => 'home', 'icon' => 'icon-home'));
add_menu('user_head_menu', $items);