From 8918d13456a19b4f8131b736ac7f111d313446a6 Mon Sep 17 00:00:00 2001 From: Yuri Astrakhan Date: Fri, 18 May 2007 19:46:45 +0000 Subject: [PATCH] API: disabled login module until it is more secure. added performance comment in HTML output. --- includes/api/ApiMain.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/includes/api/ApiMain.php b/includes/api/ApiMain.php index d657b4e7f1..df698fcdf7 100644 --- a/includes/api/ApiMain.php +++ b/includes/api/ApiMain.php @@ -44,7 +44,7 @@ class ApiMain extends ApiBase { */ private static $Modules = array ( 'help' => 'ApiHelp', - 'login' => 'ApiLogin', +// 'login' => 'ApiLogin', // LOGIN is temporarily disabled until it becomes more secure 'query' => 'ApiQuery', 'opensearch' => 'ApiOpenSearch', 'feedwatchlist' => 'ApiFeedWatchlist' @@ -193,6 +193,10 @@ class ApiMain extends ApiBase { header('Expires: ' . wfTimestamp(TS_RFC2822, $expires)); header('Cache-Control: s-maxage=' . $this->mSquidMaxage . ', must-revalidate, max-age=0'); + if($this->mPrinter->getIsHtml()) { + echo wfReportTime(); + } + ob_end_flush(); } -- 2.20.1