Файл: upload/install/include/version/3.0.0beta2.php
Строк: 1977
<?php
$aRemove = array ( 0 => array ( 'block_id' => '2', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'core.index-member', 'module_id' => 'core', 'product_id' => 'phpfox', 'component' => 'dashboard', 'location' => '2', 'is_active' => '1', 'ordering' => '11', 'disallow_access' => NULL, 'can_move' => '1', 'version_id' => NULL, ), 1 => array ( 'block_id' => '3', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'core.index-member', 'module_id' => 'core', 'product_id' => 'phpfox', 'component' => 'new', 'location' => '2', 'is_active' => '1', 'ordering' => '13', 'disallow_access' => NULL, 'can_move' => '1', 'version_id' => NULL, ), 2 => array ( 'block_id' => '8', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'admincp.index', 'module_id' => 'core', 'product_id' => 'phpfox', 'component' => 'twitter', 'location' => '3', 'is_active' => '1', 'ordering' => '4', 'disallow_access' => NULL, 'can_move' => '1', 'version_id' => NULL, ), 3 => array ( 'block_id' => '11', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'admincp.index', 'module_id' => 'core', 'product_id' => 'phpfox', 'component' => 'quick-find', 'location' => '1', 'is_active' => '1', 'ordering' => '1', 'disallow_access' => NULL, 'can_move' => '1', 'version_id' => NULL, ), 4 => array ( 'block_id' => '14', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'core.index-visitor', 'module_id' => 'user', 'product_id' => 'phpfox', 'component' => 'featured', 'location' => '4', 'is_active' => '1', 'ordering' => '5', 'disallow_access' => NULL, 'can_move' => '1', 'version_id' => NULL, ), 5 => array ( 'block_id' => '16', 'title' => NULL, 'type_id' => '0', 'm_connection' => '', 'module_id' => 'user', 'product_id' => 'phpfox', 'component' => 'login-block', 'location' => '3', 'is_active' => '1', 'ordering' => '1', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, ), 6 => array ( 'block_id' => '20', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'blog.index', 'module_id' => 'blog', 'product_id' => 'phpfox', 'component' => 'display-options', 'location' => '1', 'is_active' => '1', 'ordering' => '2', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, ), 7 => array ( 'block_id' => '22', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'blog.index', 'module_id' => 'blog', 'product_id' => 'phpfox', 'component' => 'menu', 'location' => '1', 'is_active' => '1', 'ordering' => '1', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, ), 8 => array ( 'block_id' => '23', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'profile.index', 'module_id' => 'comment', 'product_id' => 'phpfox', 'component' => 'display', 'location' => '2', 'is_active' => '1', 'ordering' => '11', 'disallow_access' => NULL, 'can_move' => '1', 'version_id' => NULL, ), 9 => array ( 'block_id' => '24', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'group.view', 'module_id' => 'comment', 'product_id' => 'phpfox', 'component' => 'display', 'location' => '2', 'is_active' => '1', 'ordering' => '8', 'disallow_access' => NULL, 'can_move' => '1', 'version_id' => NULL, ), 10 => array ( 'block_id' => '25', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'profile.index', 'module_id' => 'custom', 'product_id' => 'phpfox', 'component' => 'panel', 'location' => '7', 'is_active' => '1', 'ordering' => '18', 'disallow_access' => NULL, 'can_move' => '1', 'version_id' => NULL, ), 11 => array ( 'block_id' => '26', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'profile.index', 'module_id' => 'custom', 'product_id' => 'phpfox', 'component' => 'display', 'location' => '7', 'is_active' => '1', 'ordering' => '17', 'disallow_access' => NULL, 'can_move' => '1', 'version_id' => NULL, ), 12 => array ( 'block_id' => '31', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'profile.index', 'module_id' => 'event', 'product_id' => 'phpfox', 'component' => 'profile', 'location' => '1', 'is_active' => '1', 'ordering' => '4', 'disallow_access' => NULL, 'can_move' => '1', 'version_id' => NULL, ), 13 => array ( 'block_id' => '33', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'event.view', 'module_id' => 'event', 'product_id' => 'phpfox', 'component' => 'menu', 'location' => '3', 'is_active' => '1', 'ordering' => '4', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, ), 14 => array ( 'block_id' => '34', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'event.index', 'module_id' => 'event', 'product_id' => 'phpfox', 'component' => 'filter', 'location' => '1', 'is_active' => '1', 'ordering' => '3', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, ), 15 => array ( 'block_id' => '39', 'title' => 'Activity Feed', 'type_id' => '0', 'm_connection' => 'core.index-visitor', 'module_id' => 'feed', 'product_id' => 'phpfox', 'component' => 'display', 'location' => '2', 'is_active' => '1', 'ordering' => '7', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, ), 16 => array ( 'block_id' => '44', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'friend.index', 'module_id' => 'friend', 'product_id' => 'phpfox', 'component' => 'top', 'location' => '1', 'is_active' => '1', 'ordering' => '2', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, ), 17 => array ( 'block_id' => '45', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'friend.index', 'module_id' => 'friend', 'product_id' => 'phpfox', 'component' => 'list', 'location' => '1', 'is_active' => '1', 'ordering' => '1', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, ), 18 => array ( 'block_id' => '46', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'friend.profile', 'module_id' => 'friend', 'product_id' => 'phpfox', 'component' => 'top', 'location' => '1', 'is_active' => '1', 'ordering' => '2', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, ), 19 => array ( 'block_id' => '47', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'friend.profile', 'module_id' => 'friend', 'product_id' => 'phpfox', 'component' => 'menu', 'location' => '1', 'is_active' => '1', 'ordering' => '1', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, ), 20 => array ( 'block_id' => '51', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'core.index-visitor', 'module_id' => 'invite', 'product_id' => 'phpfox', 'component' => 'find', 'location' => '1', 'is_active' => '1', 'ordering' => '1', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, ), 21 => array ( 'block_id' => '53', 'title' => 'Recent Logins', 'type_id' => '0', 'm_connection' => 'core.index-visitor', 'module_id' => 'log', 'product_id' => 'phpfox', 'component' => 'login', 'location' => '1', 'is_active' => '1', 'ordering' => '6', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, ), 22 => array ( 'block_id' => '58', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'marketplace.index', 'module_id' => 'marketplace', 'product_id' => 'phpfox', 'component' => 'filter', 'location' => '1', 'is_active' => '1', 'ordering' => '3', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, ), 23 => array ( 'block_id' => '59', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'profile.index', 'module_id' => 'marketplace', 'product_id' => 'phpfox', 'component' => 'profile', 'location' => '1', 'is_active' => '1', 'ordering' => '3', 'disallow_access' => NULL, 'can_move' => '1', 'version_id' => NULL, ), 24 => array ( 'block_id' => '60', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'marketplace.view', 'module_id' => 'marketplace', 'product_id' => 'phpfox', 'component' => 'info', 'location' => '1', 'is_active' => '1', 'ordering' => '3', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, ), 25 => array ( 'block_id' => '61', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'marketplace.view', 'module_id' => 'marketplace', 'product_id' => 'phpfox', 'component' => 'menu', 'location' => '3', 'is_active' => '1', 'ordering' => '4', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, ), 26 => array ( 'block_id' => '65', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'profile.index', 'module_id' => 'music', 'product_id' => 'phpfox', 'component' => 'album', 'location' => '2', 'is_active' => '1', 'ordering' => '9', 'disallow_access' => NULL, 'can_move' => '1', 'version_id' => NULL, ), 27 => array ( 'block_id' => '67', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'profile.index', 'module_id' => 'music', 'product_id' => 'phpfox', 'component' => 'song', 'location' => '3', 'is_active' => '0', 'ordering' => '15', 'disallow_access' => NULL, 'can_move' => '1', 'version_id' => NULL, ), 28 => array ( 'block_id' => '68', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'music.view', 'module_id' => 'music', 'product_id' => 'phpfox', 'component' => 'info', 'location' => '1', 'is_active' => '1', 'ordering' => '1', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, ), 29 => array ( 'block_id' => '70', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'music', 'module_id' => 'music', 'product_id' => 'phpfox', 'component' => 'top', 'location' => '1', 'is_active' => '1', 'ordering' => '2', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, ), 30 => array ( 'block_id' => '71', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'music', 'module_id' => 'music', 'product_id' => 'phpfox', 'component' => 'latest', 'location' => '1', 'is_active' => '1', 'ordering' => '3', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, ), 31 => array ( 'block_id' => '72', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'music.index', 'module_id' => 'music', 'product_id' => 'phpfox', 'component' => 'filter', 'location' => '1', 'is_active' => '1', 'ordering' => '3', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, ), 32 => array ( 'block_id' => '73', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'music.browse.song', 'module_id' => 'music', 'product_id' => 'phpfox', 'component' => 'filter', 'location' => '1', 'is_active' => '1', 'ordering' => '3', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, ), 33 => array ( 'block_id' => '75', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'music.browse.album', 'module_id' => 'music', 'product_id' => 'phpfox', 'component' => 'list', 'location' => '1', 'is_active' => '1', 'ordering' => '2', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, ), 34 => array ( 'block_id' => '76', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'music.browse.album', 'module_id' => 'music', 'product_id' => 'phpfox', 'component' => 'filter', 'location' => '1', 'is_active' => '1', 'ordering' => '3', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, ), 35 => array ( 'block_id' => '77', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'music.view-album', 'module_id' => 'music', 'product_id' => 'phpfox', 'component' => 'menu-album', 'location' => '1', 'is_active' => '1', 'ordering' => '2', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, ), 36 => array ( 'block_id' => '79', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'music.view', 'module_id' => 'music', 'product_id' => 'phpfox', 'component' => 'photo', 'location' => '1', 'is_active' => '1', 'ordering' => '2', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, ), 37 => array ( 'block_id' => '80', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'music.view', 'module_id' => 'music', 'product_id' => 'phpfox', 'component' => 'menu', 'location' => '1', 'is_active' => '1', 'ordering' => '3', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, ), 38 => array ( 'block_id' => '81', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'music', 'module_id' => 'music', 'product_id' => 'phpfox', 'component' => 'featured', 'location' => '2', 'is_active' => '1', 'ordering' => '5', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, ), 39 => array ( 'block_id' => '82', 'title' => 'Favorite Songs', 'type_id' => '0', 'm_connection' => 'profile.index', 'module_id' => 'music', 'product_id' => 'phpfox', 'component' => 'profile', 'location' => '3', 'is_active' => '0', 'ordering' => '16', 'disallow_access' => NULL, 'can_move' => '1', 'version_id' => NULL, ), 40 => array ( 'block_id' => '84', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'music.browse.album', 'module_id' => 'music', 'product_id' => 'phpfox', 'component' => 'sponsored-album', 'location' => '1', 'is_active' => '1', 'ordering' => '1', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, ), 41 => array ( 'block_id' => '85', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'core.index-member', 'module_id' => 'notification', 'product_id' => 'phpfox', 'component' => 'feed', 'location' => '1', 'is_active' => '1', 'ordering' => '2', 'disallow_access' => NULL, 'can_move' => '1', 'version_id' => NULL, ), 42 => array ( 'block_id' => '86', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'profile.index', 'module_id' => 'photo', 'product_id' => 'phpfox', 'component' => 'profile', 'location' => '2', 'is_active' => '1', 'ordering' => '10', 'disallow_access' => NULL, 'can_move' => '1', 'version_id' => NULL, ), 43 => array ( 'block_id' => '89', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'photo.index', 'module_id' => 'photo', 'product_id' => 'phpfox', 'component' => 'filter', 'location' => '1', 'is_active' => '1', 'ordering' => '4', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, ), 44 => array ( 'block_id' => '91', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'photo.view', 'module_id' => 'photo', 'product_id' => 'phpfox', 'component' => 'menu', 'location' => '1', 'is_active' => '1', 'ordering' => '1', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, ), 45 => array ( 'block_id' => '92', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'photo.album', 'module_id' => 'photo', 'product_id' => 'phpfox', 'component' => 'menu-album', 'location' => '3', 'is_active' => '1', 'ordering' => '1', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, ), 46 => array ( 'block_id' => '98', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'profile.index', 'module_id' => 'profile', 'product_id' => 'phpfox', 'component' => 'info', 'location' => '3', 'is_active' => '1', 'ordering' => '14', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, ), 47 => array ( 'block_id' => '100', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'profile.index', 'module_id' => 'profile', 'product_id' => 'phpfox', 'component' => 'menu', 'location' => '3', 'is_active' => '1', 'ordering' => '13', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, ), 48 => array ( 'block_id' => '109', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'core.index-member', 'module_id' => 'tag', 'product_id' => 'phpfox', 'component' => 'cloud', 'location' => '1', 'is_active' => '1', 'ordering' => '10', 'disallow_access' => NULL, 'can_move' => '1', 'version_id' => NULL, ), 49 => array ( 'block_id' => '112', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'photo.view', 'module_id' => 'tag', 'product_id' => 'phpfox', 'component' => 'cloud', 'location' => '1', 'is_active' => '0', 'ordering' => '3', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, ), 50 => array ( 'block_id' => '116', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'poll.index', 'module_id' => 'track', 'product_id' => 'phpfox', 'component' => 'recent-views', 'location' => '1', 'is_active' => '1', 'ordering' => '1', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, ), 51 => array ( 'block_id' => '118', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'video.view', 'module_id' => 'video', 'product_id' => 'phpfox', 'component' => 'menu', 'location' => '3', 'is_active' => '1', 'ordering' => '1', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, ), 52 => array ( 'block_id' => '119', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'video.view', 'module_id' => 'video', 'product_id' => 'phpfox', 'component' => 'detail', 'location' => '1', 'is_active' => '1', 'ordering' => '2', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, ), 53 => array ( 'block_id' => '121', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'profile.index', 'module_id' => 'video', 'product_id' => 'phpfox', 'component' => 'profile', 'location' => '2', 'is_active' => '1', 'ordering' => '8', 'disallow_access' => NULL, 'can_move' => '1', 'version_id' => NULL, ), 54 => array ( 'block_id' => '123', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'video.index', 'module_id' => 'video', 'product_id' => 'phpfox', 'component' => 'filter', 'location' => '1', 'is_active' => '1', 'ordering' => '4', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, ), 55 => array ( 'block_id' => '125', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'video.view', 'module_id' => 'video', 'product_id' => 'phpfox', 'component' => 'my', 'location' => '1', 'is_active' => '1', 'ordering' => '3', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, ));
$aUpdate = array ( 0 => array ( 'block_id' => '7', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'admincp.index', 'module_id' => 'core', 'product_id' => 'phpfox', 'component' => 'news', 'location' => '3', 'is_active' => '1', 'ordering' => '3', 'disallow_access' => NULL, 'can_move' => '1', 'version_id' => NULL, 'new_location' => '2', ), 1 => array ( 'block_id' => '9', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'admincp.index', 'module_id' => 'core', 'product_id' => 'phpfox', 'component' => 'site-stat', 'location' => '2', 'is_active' => '1', 'ordering' => '1', 'disallow_access' => NULL, 'can_move' => '1', 'version_id' => NULL, 'new_location' => '3', ), 2 => array ( 'block_id' => '12', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'core.index-visitor', 'module_id' => 'user', 'product_id' => 'phpfox', 'component' => 'register', 'location' => '2', 'is_active' => '1', 'ordering' => '3', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, 'new_location' => '11', ), 3 => array ( 'block_id' => '21', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'blog.index', 'module_id' => 'blog', 'product_id' => 'phpfox', 'component' => 'top', 'location' => '1', 'is_active' => '1', 'ordering' => '5', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, 'new_location' => '3', ), 4 => array ( 'block_id' => '27', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'event.view', 'module_id' => 'event', 'product_id' => 'phpfox', 'component' => 'image', 'location' => '3', 'is_active' => '1', 'ordering' => '1', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, 'new_location' => '1', ), 5 => array ( 'block_id' => '28', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'event.view', 'module_id' => 'event', 'product_id' => 'phpfox', 'component' => 'info', 'location' => '1', 'is_active' => '1', 'ordering' => '2', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, 'new_location' => '4', ), 6 => array ( 'block_id' => '29', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'event.view', 'module_id' => 'event', 'product_id' => 'phpfox', 'component' => 'rsvp', 'location' => '1', 'is_active' => '1', 'ordering' => '3', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, 'new_location' => '3', ), 7 => array ( 'block_id' => '32', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'group.view', 'module_id' => 'event', 'product_id' => 'phpfox', 'component' => 'parent', 'location' => '1', 'is_active' => '1', 'ordering' => '3', 'disallow_access' => NULL, 'can_move' => '1', 'version_id' => NULL, 'new_location' => '0', ), 8 => array ( 'block_id' => '48', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'core.index-member', 'module_id' => 'friend', 'product_id' => 'phpfox', 'component' => 'birthday', 'location' => '1', 'is_active' => '1', 'ordering' => '7', 'disallow_access' => NULL, 'can_move' => '1', 'version_id' => NULL, 'new_location' => '3', ), 9 => array ( 'block_id' => '49', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'profile.index', 'module_id' => 'friend', 'product_id' => 'phpfox', 'component' => 'mutual-friend', 'location' => '1', 'is_active' => '1', 'ordering' => '6', 'disallow_access' => NULL, 'can_move' => '1', 'version_id' => NULL, 'new_location' => '3', ), 10 => array ( 'block_id' => '50', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'core.index-member', 'module_id' => 'friend', 'product_id' => 'phpfox', 'component' => 'suggestion', 'location' => '1', 'is_active' => '1', 'ordering' => '3', 'disallow_access' => NULL, 'can_move' => '1', 'version_id' => NULL, 'new_location' => '3', ), 11 => array ( 'block_id' => '90', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'photo.view', 'module_id' => 'photo', 'product_id' => 'phpfox', 'component' => 'detail', 'location' => '1', 'is_active' => '1', 'ordering' => '2', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, 'new_location' => '0', ), 12 => array ( 'block_id' => '93', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'photo.rate', 'module_id' => 'photo', 'product_id' => 'phpfox', 'component' => 'stat', 'location' => '1', 'is_active' => '1', 'ordering' => '1', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, 'new_location' => '3', ), 13 => array ( 'block_id' => '99', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'profile.index', 'module_id' => 'profile', 'product_id' => 'phpfox', 'component' => 'pic', 'location' => '3', 'is_active' => '1', 'ordering' => '12', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, 'new_location' => '1', ), 14 => array ( 'block_id' => '103', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'core.index-member', 'module_id' => 'request', 'product_id' => 'phpfox', 'component' => 'feed', 'location' => '1', 'is_active' => '1', 'ordering' => '1', 'disallow_access' => NULL, 'can_move' => '1', 'version_id' => NULL, 'new_location' => '3', ), 15 => array ( 'block_id' => '106', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'core.index-member', 'module_id' => 'shoutbox', 'product_id' => 'phpfox', 'component' => 'display', 'location' => '1', 'is_active' => '1', 'ordering' => '6', 'disallow_access' => NULL, 'can_move' => '1', 'version_id' => NULL, 'new_location' => '3', ), 16 => array ( 'block_id' => '107', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'group.view', 'module_id' => 'shoutbox', 'product_id' => 'phpfox', 'component' => 'display', 'location' => '1', 'is_active' => '1', 'ordering' => '2', 'disallow_access' => NULL, 'can_move' => '1', 'version_id' => NULL, 'new_location' => '0', ), 17 => array ( 'block_id' => '108', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'blog.index', 'module_id' => 'tag', 'product_id' => 'phpfox', 'component' => 'cloud', 'location' => '1', 'is_active' => '1', 'ordering' => '4', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, 'new_location' => '3', ), 18 => array ( 'block_id' => '111', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'video.index', 'module_id' => 'tag', 'product_id' => 'phpfox', 'component' => 'cloud', 'location' => '1', 'is_active' => '1', 'ordering' => '4', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, 'new_location' => '3', ), 19 => array ( 'block_id' => '113', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'blog.view', 'module_id' => 'track', 'product_id' => 'phpfox', 'component' => 'recent-views', 'location' => '1', 'is_active' => '1', 'ordering' => '1', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, 'new_location' => '3', ), 20 => array ( 'block_id' => '114', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'profile.index', 'module_id' => 'track', 'product_id' => 'phpfox', 'component' => 'recent-views', 'location' => '1', 'is_active' => '1', 'ordering' => '2', 'disallow_access' => NULL, 'can_move' => '1', 'version_id' => NULL, 'new_location' => '3', ), 21 => array ( 'block_id' => '115', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'blog.index', 'module_id' => 'track', 'product_id' => 'phpfox', 'component' => 'recent-views', 'location' => '1', 'is_active' => '1', 'ordering' => '6', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, 'new_location' => '3', ), 22 => array ( 'block_id' => '124', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'video.index', 'module_id' => 'video', 'product_id' => 'phpfox', 'component' => 'spotlight', 'location' => '1', 'is_active' => '1', 'ordering' => '2', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, 'new_location' => '3', ), 23 => array ( 'block_id' => '126', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'video.view', 'module_id' => 'video', 'product_id' => 'phpfox', 'component' => 'related', 'location' => '1', 'is_active' => '1', 'ordering' => '4', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, 'new_location' => '3', ));
$aRemoveMenu = array ( 0 => array ( 'menu_id' => '1', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'main', 'module_id' => 'core', 'product_id' => 'phpfox', 'var_name' => 'menu_home', 'is_active' => '1', 'ordering' => '2', 'url_value' => NULL, 'disallow_access' => 'a:5:{i:0;s:1:"1";i:1;s:1:"2";i:2;s:1:"4";i:3;i:5;i:4;i:6;}', 'version_id' => '2.0.0alpha1', ), 1 => array ( 'menu_id' => '3', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'main_right', 'module_id' => 'core', 'product_id' => 'phpfox', 'var_name' => 'menu_log_out', 'is_active' => '1', 'ordering' => '10', 'url_value' => 'user.logout', 'disallow_access' => 'a:1:{i:0;s:1:"3";}', 'version_id' => '2.0.0alpha1', ), 2 => array ( 'menu_id' => '4', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'main_right', 'module_id' => 'core', 'product_id' => 'phpfox', 'var_name' => 'menu_log', 'is_active' => '1', 'ordering' => '10', 'url_value' => 'user.login', 'disallow_access' => 'a:5:{i:0;s:1:"1";i:1;s:1:"2";i:2;s:1:"4";i:3;i:5;i:4;i:6;}', 'version_id' => '2.0.0alpha1', ), 3 => array ( 'menu_id' => '7', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'main', 'module_id' => 'core', 'product_id' => 'phpfox', 'var_name' => 'menu_dashboard', 'is_active' => '1', 'ordering' => '1', 'url_value' => NULL, 'disallow_access' => 'a:1:{i:0;s:1:"3";}', 'version_id' => '2.0.0beta3', ), 4 => array ( 'menu_id' => '8', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'main_right', 'module_id' => 'user', 'product_id' => 'phpfox', 'var_name' => 'menu_register', 'is_active' => '1', 'ordering' => '2', 'url_value' => 'user.register', 'disallow_access' => 'a:5:{i:0;s:1:"1";i:1;s:1:"2";i:2;s:1:"4";i:3;i:5;i:4;i:6;}', 'version_id' => '2.0.0alpha1', ), 5 => array ( 'menu_id' => '14', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'user.browse', 'module_id' => 'user', 'product_id' => 'phpfox', 'var_name' => 'menu_who_s_online', 'is_active' => '1', 'ordering' => '51', 'url_value' => 'user.browse.view_online', 'disallow_access' => NULL, 'version_id' => '2.0.0alpha2', ), 6 => array ( 'menu_id' => '18', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'user.browse', 'module_id' => 'user', 'product_id' => 'phpfox', 'var_name' => 'menu_featured_members', 'is_active' => '1', 'ordering' => '84', 'url_value' => 'user.browse.view_featured', 'disallow_access' => NULL, 'version_id' => '2.0.0beta5', ), 7 => array ( 'menu_id' => '19', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'user.browse', 'module_id' => 'user', 'product_id' => 'phpfox', 'var_name' => 'menu_user_top_rated_members', 'is_active' => '1', 'ordering' => '93', 'url_value' => 'user.browse.view_top', 'disallow_access' => NULL, 'version_id' => '2.0.0', ), 8 => array ( 'menu_id' => '21', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'ad', 'module_id' => 'ad', 'product_id' => 'phpfox', 'var_name' => 'menu_ad_manage_ads_523af537946b79c4f8369ed39ba78605', 'is_active' => '1', 'ordering' => '96', 'url_value' => 'ad.manage', 'disallow_access' => NULL, 'version_id' => '2.0.5', ), 9 => array ( 'menu_id' => '22', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'ad', 'module_id' => 'ad', 'product_id' => 'phpfox', 'var_name' => 'menu_ad_manage_invoices_523af537946b79c4f8369ed39ba78605', 'is_active' => '1', 'ordering' => '97', 'url_value' => 'ad.invoice', 'disallow_access' => NULL, 'version_id' => '2.0.5', ), 10 => array ( 'menu_id' => '24', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'ad', 'module_id' => 'ad', 'product_id' => 'phpfox', 'var_name' => 'menu_ad_manage_sponsorships_6a992d5529f459a44fee58c733255e86', 'is_active' => '1', 'ordering' => '99', 'url_value' => 'ad.manage-sponsor', 'disallow_access' => 'a:1:{i:0;s:1:"3";}', 'version_id' => '2.0.5', ), 11 => array ( 'menu_id' => '25', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'explore', 'module_id' => 'announcement', 'product_id' => 'phpfox', 'var_name' => 'menu_announcements', 'is_active' => '1', 'ordering' => '83', 'url_value' => 'announcement', 'disallow_access' => NULL, 'version_id' => '2.0.0beta4', ), 12 => array ( 'menu_id' => '26', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'explore', 'module_id' => 'blog', 'product_id' => 'phpfox', 'var_name' => 'menu_blogs', 'is_active' => '1', 'ordering' => '4', 'url_value' => 'blog', 'disallow_access' => NULL, 'version_id' => '2.0.0alpha1', ), 13 => array ( 'menu_id' => '28', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'blog.index', 'module_id' => 'blog', 'product_id' => 'phpfox', 'var_name' => 'menu_view_my_blogs', 'is_active' => '1', 'ordering' => '2', 'url_value' => 'profile.blog', 'disallow_access' => NULL, 'version_id' => '2.0.0alpha1', ), 14 => array ( 'menu_id' => '30', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'blog.index', 'module_id' => 'blog', 'product_id' => 'phpfox', 'var_name' => 'menu_view_blogs', 'is_active' => '1', 'ordering' => '1', 'url_value' => 'blog', 'disallow_access' => NULL, 'version_id' => '2.0.0alpha1', ), 15 => array ( 'menu_id' => '32', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'explore', 'module_id' => 'event', 'product_id' => 'phpfox', 'var_name' => 'menu_event', 'is_active' => '1', 'ordering' => '29', 'url_value' => 'event', 'disallow_access' => NULL, 'version_id' => '2.0.0alpha1', ), 16 => array ( 'menu_id' => '34', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'event.index', 'module_id' => 'event', 'product_id' => 'phpfox', 'var_name' => 'menu_view_my_events', 'is_active' => '1', 'ordering' => '63', 'url_value' => 'event.view_my', 'disallow_access' => NULL, 'version_id' => '2.0.0alpha4', ), 17 => array ( 'menu_id' => '35', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'event.index', 'module_id' => 'event', 'product_id' => 'phpfox', 'var_name' => 'menu_events_i_m_attending', 'is_active' => '1', 'ordering' => '64', 'url_value' => 'event.view_attending', 'disallow_access' => NULL, 'version_id' => '2.0.0alpha4', ), 18 => array ( 'menu_id' => '36', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'event.index', 'module_id' => 'event', 'product_id' => 'phpfox', 'var_name' => 'menu_events_i_may_attend', 'is_active' => '1', 'ordering' => '65', 'url_value' => 'event.view_maybe', 'disallow_access' => NULL, 'version_id' => '2.0.0alpha4', ), 19 => array ( 'menu_id' => '37', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'event.index', 'module_id' => 'event', 'product_id' => 'phpfox', 'var_name' => 'menu_events_i_m_not_attending', 'is_active' => '1', 'ordering' => '66', 'url_value' => 'event.view_not_attending', 'disallow_access' => NULL, 'version_id' => '2.0.0alpha4', ), 20 => array ( 'menu_id' => '38', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'event.index', 'module_id' => 'event', 'product_id' => 'phpfox', 'var_name' => 'menu_event_invitations', 'is_active' => '1', 'ordering' => '67', 'url_value' => 'event.view_invitation', 'disallow_access' => NULL, 'version_id' => '2.0.0alpha4', ), 21 => array ( 'menu_id' => '39', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'event.index', 'module_id' => 'event', 'product_id' => 'phpfox', 'var_name' => 'menu_past_events', 'is_active' => '1', 'ordering' => '68', 'url_value' => 'event.view_past', 'disallow_access' => NULL, 'version_id' => '2.0.0alpha4', ), 22 => array ( 'menu_id' => '41', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'explore', 'module_id' => 'forum', 'product_id' => 'phpfox', 'var_name' => 'menu_forum', 'is_active' => '1', 'ordering' => '23', 'url_value' => 'forum', 'disallow_access' => NULL, 'version_id' => '2.0.0alpha1', ), 23 => array ( 'menu_id' => '43', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'friend', 'module_id' => 'friend', 'product_id' => 'phpfox', 'var_name' => 'menu_online_friends', 'is_active' => '1', 'ordering' => '3', 'url_value' => 'friend.view_online', 'disallow_access' => NULL, 'version_id' => '2.0.0alpha1', ), 24 => array ( 'menu_id' => '44', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'friend', 'module_id' => 'friend', 'product_id' => 'phpfox', 'var_name' => 'menu_top_friends', 'is_active' => '1', 'ordering' => '2', 'url_value' => 'friend.view_top', 'disallow_access' => NULL, 'version_id' => '2.0.0alpha1', ), 25 => array ( 'menu_id' => '46', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'friend', 'module_id' => 'friend', 'product_id' => 'phpfox', 'var_name' => 'menu_all_friends', 'is_active' => '1', 'ordering' => '1', 'url_value' => 'friend', 'disallow_access' => NULL, 'version_id' => '2.0.0alpha1', ), 26 => array ( 'menu_id' => '47', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'friend', 'module_id' => 'friend', 'product_id' => 'phpfox', 'var_name' => 'menu_pending_requests', 'is_active' => '1', 'ordering' => '37', 'url_value' => 'friend.pending', 'disallow_access' => NULL, 'version_id' => '2.0.0alpha1', ), 27 => array ( 'menu_id' => '48', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'friend', 'module_id' => 'friend', 'product_id' => 'phpfox', 'var_name' => 'menu_birthday_e_cards', 'is_active' => '1', 'ordering' => '82', 'url_value' => 'friend.mybirthday', 'disallow_access' => NULL, 'version_id' => '2.0.0beta4', ), 28 => array ( 'menu_id' => '49', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'friend', 'module_id' => 'friend', 'product_id' => 'phpfox', 'var_name' => 'menu_friends_requests', 'is_active' => '1', 'ordering' => '91', 'url_value' => 'friend.accept', 'disallow_access' => NULL, 'version_id' => '2.0.0rc4', ), 29 => array ( 'menu_id' => '50', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'friend', 'module_id' => 'friend', 'product_id' => 'phpfox', 'var_name' => 'menu_friend_sent_ecards_a441eadc1389cdf0ffe6c4f8babdd66e', 'is_active' => '1', 'ordering' => '100', 'url_value' => 'friend.invoice', 'disallow_access' => NULL, 'version_id' => '2.0.8', ), 30 => array ( 'menu_id' => '51', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'main', 'module_id' => 'invite', 'product_id' => 'phpfox', 'var_name' => 'menu_invite', 'is_active' => '1', 'ordering' => '30', 'url_value' => 'invite', 'disallow_access' => NULL, 'version_id' => '2.0.0alpha1', ), 31 => array ( 'menu_id' => '55', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'main', 'module_id' => 'mail', 'product_id' => 'phpfox', 'var_name' => 'menu_mail', 'is_active' => '1', 'ordering' => '4', 'url_value' => 'mail', 'disallow_access' => NULL, 'version_id' => '2.0.0alpha1', ), 32 => array ( 'menu_id' => '56', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'mail', 'module_id' => 'mail', 'product_id' => 'phpfox', 'var_name' => 'menu_view_messages', 'is_active' => '1', 'ordering' => '1', 'url_value' => 'mail', 'disallow_access' => NULL, 'version_id' => '2.0.0alpha1', ), 33 => array ( 'menu_id' => '57', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'explore', 'module_id' => 'marketplace', 'product_id' => 'phpfox', 'var_name' => 'menu_marketplace', 'is_active' => '1', 'ordering' => '59', 'url_value' => 'marketplace', 'disallow_access' => NULL, 'version_id' => '2.0.0alpha4', ), 34 => array ( 'menu_id' => '59', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'marketplace.index', 'module_id' => 'marketplace', 'product_id' => 'phpfox', 'var_name' => 'menu_marketplace_manage_invoices_ad23f7587e12dc025eefdfbc37ca854a', 'is_active' => '1', 'ordering' => '99', 'url_value' => 'marketplace.invoice', 'disallow_access' => NULL, 'version_id' => '2.0.5', ), 35 => array ( 'menu_id' => '61', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'music', 'module_id' => 'music', 'product_id' => 'phpfox', 'var_name' => 'menu_artists', 'is_active' => '1', 'ordering' => '85', 'url_value' => 'music.browse.artist', 'disallow_access' => NULL, 'version_id' => '2.0.0rc1', ), 36 => array ( 'menu_id' => '62', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'explore', 'module_id' => 'music', 'product_id' => 'phpfox', 'var_name' => 'menu_music', 'is_active' => '1', 'ordering' => '31', 'url_value' => 'music', 'disallow_access' => NULL, 'version_id' => '2.0.0alpha1', ), 37 => array ( 'menu_id' => '63', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'music', 'module_id' => 'music', 'product_id' => 'phpfox', 'var_name' => 'menu_upload_a_song', 'is_active' => '1', 'ordering' => '74', 'url_value' => 'music.upload', 'disallow_access' => NULL, 'version_id' => '2.0.0beta1', ), 38 => array ( 'menu_id' => '64', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'music', 'module_id' => 'music', 'product_id' => 'phpfox', 'var_name' => 'menu_create_an_album', 'is_active' => '1', 'ordering' => '75', 'url_value' => 'music.album', 'disallow_access' => NULL, 'version_id' => '2.0.0beta1', ), 39 => array ( 'menu_id' => '65', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'music', 'module_id' => 'music', 'product_id' => 'phpfox', 'var_name' => 'menu_songs', 'is_active' => '1', 'ordering' => '86', 'url_value' => 'music.browse.song', 'disallow_access' => NULL, 'version_id' => '2.0.0rc1', ), 40 => array ( 'menu_id' => '66', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'music', 'module_id' => 'music', 'product_id' => 'phpfox', 'var_name' => 'menu_albums', 'is_active' => '1', 'ordering' => '87', 'url_value' => 'music.browse.album', 'disallow_access' => NULL, 'version_id' => '2.0.0rc1', ), 41 => array ( 'menu_id' => '67', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'music', 'module_id' => 'music', 'product_id' => 'phpfox', 'var_name' => 'menu_view_my_songs', 'is_active' => '1', 'ordering' => '88', 'url_value' => 'music.browse.song.view_my', 'disallow_access' => NULL, 'version_id' => '2.0.0rc1', ), 42 => array ( 'menu_id' => '68', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'music', 'module_id' => 'music', 'product_id' => 'phpfox', 'var_name' => 'menu_view_my_albums', 'is_active' => '1', 'ordering' => '89', 'url_value' => 'music.browse.album.view_my', 'disallow_access' => NULL, 'version_id' => '2.0.0rc1', ), 43 => array ( 'menu_id' => '70', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'explore', 'module_id' => 'photo', 'product_id' => 'phpfox', 'var_name' => 'menu_photo', 'is_active' => '1', 'ordering' => '22', 'url_value' => 'photo', 'disallow_access' => NULL, 'version_id' => '2.0.0alpha1', ), 44 => array ( 'menu_id' => '72', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'photo.index', 'module_id' => 'photo', 'product_id' => 'phpfox', 'var_name' => 'menu_upload_new_image', 'is_active' => '1', 'ordering' => '42', 'url_value' => 'photo.upload', 'disallow_access' => NULL, 'version_id' => '2.0.0alpha1', ), 45 => array ( 'menu_id' => '73', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'photo.index', 'module_id' => 'photo', 'product_id' => 'phpfox', 'var_name' => 'menu_view_photos', 'is_active' => '1', 'ordering' => '43', 'url_value' => 'profile.photo', 'disallow_access' => NULL, 'version_id' => '2.0.0alpha1', ), 46 => array ( 'menu_id' => '74', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'photo.index', 'module_id' => 'photo', 'product_id' => 'phpfox', 'var_name' => 'menu_rate_photos', 'is_active' => '1', 'ordering' => '46', 'url_value' => 'photo.rate', 'disallow_access' => NULL, 'version_id' => '2.0.0alpha1', ), 47 => array ( 'menu_id' => '75', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'photo.index', 'module_id' => 'photo', 'product_id' => 'phpfox', 'var_name' => 'menu_photo_battles', 'is_active' => '1', 'ordering' => '47', 'url_value' => 'photo.battle', 'disallow_access' => NULL, 'version_id' => '2.0.0alpha1', ), 48 => array ( 'menu_id' => '76', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'photo.index', 'module_id' => 'photo', 'product_id' => 'phpfox', 'var_name' => 'menu_photo_albums', 'is_active' => '1', 'ordering' => '92', 'url_value' => 'photo.public-album', 'disallow_access' => NULL, 'version_id' => '2.0.0rc10', ), 49 => array ( 'menu_id' => '77', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'explore', 'module_id' => 'poll', 'product_id' => 'phpfox', 'var_name' => 'menu_poll', 'is_active' => '1', 'ordering' => '24', 'url_value' => 'poll', 'disallow_access' => NULL, 'version_id' => '2.0.0alpha1', ), 50 => array ( 'menu_id' => '79', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'poll.index', 'module_id' => 'poll', 'product_id' => 'phpfox', 'var_name' => 'menu_view_polls', 'is_active' => '1', 'ordering' => '40', 'url_value' => 'profile.poll', 'disallow_access' => NULL, 'version_id' => '2.0.0alpha1', ), 51 => array ( 'menu_id' => '81', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'main', 'module_id' => 'profile', 'product_id' => 'phpfox', 'var_name' => 'menu_profile', 'is_active' => '1', 'ordering' => '3', 'url_value' => 'profile.my', 'disallow_access' => NULL, 'version_id' => '2.0.0alpha1', ), 52 => array ( 'menu_id' => '85', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'explore', 'module_id' => 'quiz', 'product_id' => 'phpfox', 'var_name' => 'menu_quiz', 'is_active' => '1', 'ordering' => '28', 'url_value' => 'quiz', 'disallow_access' => NULL, 'version_id' => '2.0.0alpha1', ), 53 => array ( 'menu_id' => '88', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'quiz', 'module_id' => 'quiz', 'product_id' => 'phpfox', 'var_name' => 'menu_view_quizzes', 'is_active' => '1', 'ordering' => '50', 'url_value' => 'profile.quiz', 'disallow_access' => NULL, 'version_id' => '2.0.0alpha1', ), 54 => array ( 'menu_id' => '91', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'explore', 'module_id' => 'video', 'product_id' => 'phpfox', 'var_name' => 'menu_video', 'is_active' => '1', 'ordering' => '26', 'url_value' => 'video', 'disallow_access' => NULL, 'version_id' => '2.0.0alpha1', ), 55 => array ( 'menu_id' => '92', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'video.index', 'module_id' => 'video', 'product_id' => 'phpfox', 'var_name' => 'menu_upload_a_new_video', 'is_active' => '1', 'ordering' => '76', 'url_value' => 'video.upload', 'disallow_access' => NULL, 'version_id' => '2.0.0beta2', ), 56 => array ( 'menu_id' => '93', 'parent_id' => '0', 'page_id' => '0', 'm_connection' => 'video.index', 'module_id' => 'video', 'product_id' => 'phpfox', 'var_name' => 'menu_share_a_video', 'is_active' => '1', 'ordering' => '77', 'url_value' => 'video.share', 'disallow_access' => NULL, 'version_id' => '2.0.0beta2', ));
$aUpdateOrdering = array ( 0 => array ( 'block_id' => '1', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'core.index-member', 'module_id' => 'core', 'product_id' => 'phpfox', 'component' => 'welcome', 'location' => '7', 'is_active' => '1', 'ordering' => '14', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, 'new_ordering' => '15', ), 1 => array ( 'block_id' => '4', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'core.index-member', 'module_id' => 'core', 'product_id' => 'phpfox', 'component' => 'stat', 'location' => '1', 'is_active' => '1', 'ordering' => '9', 'disallow_access' => NULL, 'can_move' => '1', 'version_id' => NULL, 'new_ordering' => '4', ), 2 => array ( 'block_id' => '17', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'core.index-member', 'module_id' => 'announcement', 'product_id' => 'phpfox', 'component' => 'index', 'location' => '7', 'is_active' => '1', 'ordering' => '15', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, 'new_ordering' => '16', ), 3 => array ( 'block_id' => '27', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'event.view', 'module_id' => 'event', 'product_id' => 'phpfox', 'component' => 'image', 'location' => '3', 'is_active' => '1', 'ordering' => '1', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, 'new_ordering' => '5', ), 4 => array ( 'block_id' => '28', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'event.view', 'module_id' => 'event', 'product_id' => 'phpfox', 'component' => 'info', 'location' => '1', 'is_active' => '1', 'ordering' => '2', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, 'new_ordering' => '3', ), 5 => array ( 'block_id' => '29', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'event.view', 'module_id' => 'event', 'product_id' => 'phpfox', 'component' => 'rsvp', 'location' => '1', 'is_active' => '1', 'ordering' => '3', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, 'new_ordering' => '4', ), 6 => array ( 'block_id' => '32', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'group.view', 'module_id' => 'event', 'product_id' => 'phpfox', 'component' => 'parent', 'location' => '1', 'is_active' => '1', 'ordering' => '3', 'disallow_access' => NULL, 'can_move' => '1', 'version_id' => NULL, 'new_ordering' => '1', ), 7 => array ( 'block_id' => '38', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'profile.index', 'module_id' => 'feed', 'product_id' => 'phpfox', 'component' => 'display', 'location' => '2', 'is_active' => '1', 'ordering' => '7', 'disallow_access' => NULL, 'can_move' => '1', 'version_id' => NULL, 'new_ordering' => '4', ), 8 => array ( 'block_id' => '41', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'group.view', 'module_id' => 'forum', 'product_id' => 'phpfox', 'component' => 'parent', 'location' => '1', 'is_active' => '1', 'ordering' => '4', 'disallow_access' => NULL, 'can_move' => '1', 'version_id' => NULL, 'new_ordering' => '2', ), 9 => array ( 'block_id' => '42', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'core.index-member', 'module_id' => 'friend', 'product_id' => 'phpfox', 'component' => 'mini', 'location' => '1', 'is_active' => '1', 'ordering' => '4', 'disallow_access' => NULL, 'can_move' => '1', 'version_id' => NULL, 'new_ordering' => '2', ), 10 => array ( 'block_id' => '43', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'profile.index', 'module_id' => 'friend', 'product_id' => 'phpfox', 'component' => 'profile.small', 'location' => '1', 'is_active' => '1', 'ordering' => '1', 'disallow_access' => NULL, 'can_move' => '1', 'version_id' => NULL, 'new_ordering' => '2', ), 11 => array ( 'block_id' => '48', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'core.index-member', 'module_id' => 'friend', 'product_id' => 'phpfox', 'component' => 'birthday', 'location' => '1', 'is_active' => '1', 'ordering' => '7', 'disallow_access' => NULL, 'can_move' => '1', 'version_id' => NULL, 'new_ordering' => '8', ), 12 => array ( 'block_id' => '49', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'profile.index', 'module_id' => 'friend', 'product_id' => 'phpfox', 'component' => 'mutual-friend', 'location' => '1', 'is_active' => '1', 'ordering' => '6', 'disallow_access' => NULL, 'can_move' => '1', 'version_id' => NULL, 'new_ordering' => '3', ), 13 => array ( 'block_id' => '50', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'core.index-member', 'module_id' => 'friend', 'product_id' => 'phpfox', 'component' => 'suggestion', 'location' => '1', 'is_active' => '1', 'ordering' => '3', 'disallow_access' => NULL, 'can_move' => '1', 'version_id' => NULL, 'new_ordering' => '9', ), 14 => array ( 'block_id' => '52', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'core.index-member', 'module_id' => 'log', 'product_id' => 'phpfox', 'component' => 'login', 'location' => '1', 'is_active' => '1', 'ordering' => '8', 'disallow_access' => NULL, 'can_move' => '1', 'version_id' => NULL, 'new_ordering' => '3', ), 15 => array ( 'block_id' => '62', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'marketplace.view', 'module_id' => 'marketplace', 'product_id' => 'phpfox', 'component' => 'my', 'location' => '1', 'is_active' => '1', 'ordering' => '5', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, 'new_ordering' => '3', ), 16 => array ( 'block_id' => '96', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'group.view', 'module_id' => 'photo', 'product_id' => 'phpfox', 'component' => 'parent', 'location' => '2', 'is_active' => '1', 'ordering' => '7', 'disallow_access' => NULL, 'can_move' => '1', 'version_id' => NULL, 'new_ordering' => '5', ), 17 => array ( 'block_id' => '99', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'profile.index', 'module_id' => 'profile', 'product_id' => 'phpfox', 'component' => 'pic', 'location' => '3', 'is_active' => '1', 'ordering' => '12', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, 'new_ordering' => '1', ), 18 => array ( 'block_id' => '102', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'profile.index', 'module_id' => 'report', 'product_id' => 'phpfox', 'component' => 'profile', 'location' => '8', 'is_active' => '1', 'ordering' => '19', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, 'new_ordering' => '20', ), 19 => array ( 'block_id' => '103', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'core.index-member', 'module_id' => 'request', 'product_id' => 'phpfox', 'component' => 'feed', 'location' => '1', 'is_active' => '1', 'ordering' => '1', 'disallow_access' => NULL, 'can_move' => '1', 'version_id' => NULL, 'new_ordering' => '6', ), 20 => array ( 'block_id' => '106', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'core.index-member', 'module_id' => 'shoutbox', 'product_id' => 'phpfox', 'component' => 'display', 'location' => '1', 'is_active' => '1', 'ordering' => '6', 'disallow_access' => NULL, 'can_move' => '1', 'version_id' => NULL, 'new_ordering' => '11', ), 21 => array ( 'block_id' => '107', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'group.view', 'module_id' => 'shoutbox', 'product_id' => 'phpfox', 'component' => 'display', 'location' => '1', 'is_active' => '1', 'ordering' => '2', 'disallow_access' => NULL, 'can_move' => '1', 'version_id' => NULL, 'new_ordering' => '8', ), 22 => array ( 'block_id' => '114', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'profile.index', 'module_id' => 'track', 'product_id' => 'phpfox', 'component' => 'recent-views', 'location' => '1', 'is_active' => '1', 'ordering' => '2', 'disallow_access' => NULL, 'can_move' => '1', 'version_id' => NULL, 'new_ordering' => '6', ), 23 => array ( 'block_id' => '120', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'video.index', 'module_id' => 'video', 'product_id' => 'phpfox', 'component' => 'category', 'location' => '1', 'is_active' => '1', 'ordering' => '3', 'disallow_access' => NULL, 'can_move' => '0', 'version_id' => NULL, 'new_ordering' => '1', ), 24 => array ( 'block_id' => '122', 'title' => NULL, 'type_id' => '0', 'm_connection' => 'group.view', 'module_id' => 'video', 'product_id' => 'phpfox', 'component' => 'parent', 'location' => '2', 'is_active' => '1', 'ordering' => '6', 'disallow_access' => NULL, 'can_move' => '1', 'version_id' => NULL, 'new_ordering' => '4', ));
foreach ($aRemove as $aBlock)
{
$this->_db()->delete(Phpfox::getT('block'), 'm_connection = '' . $aBlock['m_connection'] . '' AND module_id = '' . $aBlock['module_id'] . '' AND component = '' . $aBlock['component'] . ''');
}
foreach ($aUpdate as $aBlock)
{
$this->_db()->update(Phpfox::getT('block'), array('location' => $aBlock['new_location']), 'm_connection = '' . $aBlock['m_connection'] . '' AND module_id = '' . $aBlock['module_id'] . '' AND component = '' . $aBlock['component'] . ''');
}
foreach ($aUpdateOrdering as $aBlock)
{
$this->_db()->update(Phpfox::getT('block'), array('ordering' => $aBlock['new_ordering']), 'm_connection = '' . $aBlock['m_connection'] . '' AND module_id = '' . $aBlock['module_id'] . '' AND component = '' . $aBlock['component'] . ''');
}
foreach ($aRemoveMenu as $aMenu)
{
$this->_db()->delete(Phpfox::getT('menu'), 'm_connection = '' . $aMenu['m_connection'] . '' AND module_id = '' . $aMenu['module_id'] . '' AND url_value = '' . $aMenu['url_value'] . ''');
}
// $this->_db()->delete(Phpfox::getT('menu'), 'm_connection = 'main' AND module_id = 'core' AND var_name = 'menu_home'');
// $this->_db()->update(Phpfox::getT('module'), array('is_active' => '0'), 'module_id IN('group', 'bulletin')');
$this->_db()->update(Phpfox::getT('custom_field'), array('type_id' => 'user_main'), 'type_id = 'profile_panel'');
$this->_upgradeDatabase('3.0.0beta2');
$iMenuCheck = (int) $this->_db()->select('COUNT(*)')
->from(Phpfox::getT('menu'))
->where('m_connection = 'main_right' AND module_id = 'profile' AND var_name = 'menu_profile'')
->execute('getSlaveField');
if (!$iMenuCheck)
{
$iNewMenuId = $this->_db()->insert(Phpfox::getT('menu'), array(
'parent_id' => '0',
'page_id' => '0',
'm_connection' => 'main_right',
'module_id' => 'profile',
'product_id' => 'phpfox',
'var_name' => 'menu_profile',
'is_active' => '1',
'ordering' => '4',
'url_value' => 'profile.my',
'disallow_access' => 'a:1:{i:0;s:1:"3";}',
'version_id' => '2.0.0alpha1'
)
);
$aChildMenus = array();
$aChildMenus[] = array(
'var_name' => 'menu_profile_my_profile_b392d011b7f15183caf21a8bc56fd1fe',
'url_value' => 'profile',
'ordering' => '109'
);
$aChildMenus[] = array(
'var_name' => 'menu_profile_edit_profile_b392d011b7f15183caf21a8bc56fd1fe',
'url_value' => 'user.profile',
'ordering' => '110'
);
$aChildMenus[] = array(
'var_name' => 'menu_profile_edit_profile_picture_b392d011b7f15183caf21a8bc56fd1fe',
'url_value' => 'user.photo',
'ordering' => '111'
);
$aChildMenus[] = array(
'var_name' => 'menu_profile_customize_profile_b392d011b7f15183caf21a8bc56fd1fe',
'url_value' => 'profile.designer',
'ordering' => '112'
);
foreach ($aChildMenus as $aChildMenu)
{
$this->_db()->insert(Phpfox::getT('menu'), array(
'parent_id' => $iNewMenuId,
'page_id' => '0',
'm_connection' => null,
'module_id' => 'profile',
'product_id' => 'phpfox',
'var_name' => $aChildMenu['var_name'],
'is_active' => '1',
'ordering' => $aChildMenu['ordering'],
'url_value' => $aChildMenu['url_value'],
'disallow_access' => null,
'version_id' => '3.0.0beta4'
)
);
}
}
$bCompleted = true;
?>