$controller->showReports($_POST); break; default: $controller->findQuickRank($_POST); break; } } else { switch ($_GET['sec']) { case "quickrank": $controller->showQuickRankChecker(); break; case "showpr": $controller->printGooglePageRank(urldecode($_GET['url'])); break; case "showalexa": $controller->printAlexaRank(urldecode($_GET['url'])); break; case "alexaimg": $controller->printAlexaRankImg($_GET['rank']); break; case "generate": $controller->showGenerateReports($_GET); break; case "reports": $controller->showReports($_GET); break; default: $controller->showQuickRankChecker(); break; } }