include_once SP_CTRLPATH . "/report.ctrl.php"; $controller = new ReportController(); $controller->view->menu = 'seotools'; $controller->spTextTools = $controller->getLanguageTexts('seotools', $_SESSION['lang_code']); $controller->set('spTextTools', $controller->spTextTools); $controller->spTextKeyword = $controller->getLanguageTexts('keyword', $_SESSION['lang_code']); $controller->set('spTextKeyword', $controller->spTextKeyword); $controller->spTextPanel = $controller->getLanguageTexts('panel', $_SESSION['lang_code']); $controller->set('spTextPanel', $controller->spTextPanel); $controller->spTextReport = $controller->getLanguageTexts('report', $_SESSION['lang_code']); $controller->set('spTextReport', $controller->spTextReport); $controller->layout = 'ajax'; if ($_SERVER['REQUEST_METHOD'] == 'POST') { switch ($_POST['sec']) { case "kwchecker": $controller->showQuickRankChecker($_POST); break; case "reportsum": $controller->showKeywordReportSummary($_POST); break; case "schedule": $controller->saveReportSchedule($_POST); break; default: $controller->showReports($_POST); break; } } else { switch ($_GET['sec']) { case "show-info": $controller->showTimeReport($_GET);