/* */
 $frontendPath = JPATH_ROOT . DS . 'components' . DS;
 $comprofiler_filepath = $frontendPath . "com_comprofiler/plugin/user/index.html";
 switch ($step) {
     case 1:
         print_r("<h1>Step 1: Requirements</h1>");
         print_r(caclInstaller::checkRequirements());
         print_r(caclInstaller::updateCACL_tables());
         break;
     case 2:
         print_r("<h1>Step 2: Install Joomla Plugin</h1>");
         print_r(caclInstaller::installJoomla_Plugin());
         break;
     case 3:
         print_r("<h1>Step 3: Install Patch files</h1>");
         print_r(caclInstaller::installPatch_files());
         break;
     case 4:
         if (file_exists($comprofiler_filepath)) {
             print_r("<h1>Step 4: Install Community Builder Plugin</h1>");
             print_r(caclInstaller::installCB_Plugin());
             break;
         }
     case 5:
         $mainframe->redirect('index.php?option=com_community_acl&task=about', JText::_('Community ACL installed successfully.'));
         break;
     default:
         //To do
         break;
 }
 break;