case "cancellink": cancellink($link_id[0], $option); break; case "links_move": moveLinks($link_id, $cat_parent, $option); break; case "links_move2": $cache->clean(); moveLinks2($link_id, $option); break; case "cancellinks_copy": case "cancellinks_move": cancellinks_move($link_id[0], $option); break; case "links_copy": copyLinks($link_id, $cat_parent, $option); break; case "links_copy2": $cache->clean(); copyLinks2($link_id, $option); break; /*** * Approval / List Pending */ /*** * Approval / List Pending */ case "listpending_cats": listpending_cats($option); break; case "approve_cats":
function updateWikiNavigation($portal, $room){ global $c_commsy_path_file; global $c_pmwiki_path_file; $old_dir = getcwd(); chdir($c_pmwiki_path_file); $directory_handle = @opendir('wikis/' . $portal->getItemID() . '/' . $room->getItemID() . '/wiki.d'); if ($directory_handle) { chdir('wikis/' . $portal->getItemID() . '/' . $room->getItemID() . '/wiki.d'); if(file_exists('Site.SideBar') and file_exists('Main.SideBar')){ correctLinksInSideBar('Site.SideBar'); copyLinks('Site.SideBar', 'Main.SideBar'); updateNavigationForCommSyExports('Main.SideBar'); addUpdateComment('Main.SideBar'); rename('Site.SideBar', 'Site.SideBarBackup'); } else if(!file_exists('Site.SideBar') and file_exists('Main.SideBar')){ updateNavigationForStandardLinks('Main.SideBar'); updateNavigationForCommSyExports('Main.SideBar'); addUpdateComment('Main.SideBar'); } else if(file_exists('Site.SideBar') and !file_exists('Main.SideBar')){ correctLinksInSideBar('Site.SideBar'); updateNavigationForCommSyExports('Site.SideBar'); copy('Site.SideBar', 'Site.SideBarBackup'); rename('Site.SideBar', 'Main.SideBar'); } else if(!file_exists('Site.SideBar') and !file_exists('Main.SideBar')){ } } chdir($old_dir); }