$zone = $_GET['zone']; $action = $_GET['action']; switch ($zone) { case 'menu': switch ($action) { case 'activations': MenuController::activations(); break; case 'events': MenuController::events(); break; case 'logout': MenuController::logout(); break; case 'about': MenuController::about(); break; default: break; } break; case 'activations': switch ($action) { case 'delete': $id = $_GET['id']; ActivationsController::deleteActivation($id); break; case 'edit': $id = $_GET['id']; ActivationsController::edit($id); break;