From: Yuri Astrakhan Date: Fri, 18 May 2007 19:46:45 +0000 (+0000) Subject: API: disabled login module until it is more secure. added performance comment in... X-Git-Tag: 1.31.0-rc.0~52880 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/fiche.php?a=commitdiff_plain;h=8918d13456a19b4f8131b736ac7f111d313446a6;p=lhc%2Fweb%2Fwiklou.git API: disabled login module until it is more secure. added performance comment in HTML output. --- 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(); }