Send Cache-Control: private and Vary headers in img_auth.php.
[lhc/web/wiklou.git] / index.php
index 6b4cab0..bfbdb36 100644 (file)
--- a/index.php
+++ b/index.php
@@ -44,6 +44,13 @@ $mediaWiki = new MediaWiki();
 wfProfileIn( 'main-misc-setup' );
 OutputPage::setEncodings(); # Not really used yet
 
+$maxLag = $wgRequest->getVal( 'maxlag' );
+if ( !is_null( $maxLag ) ) {
+       if ( !$mediaWiki->checkMaxLag( $maxLag ) ) {
+               exit;
+       }
+}
+
 # Query string fields
 $action = $wgRequest->getVal( 'action', 'view' );
 $title = $wgRequest->getVal( 'title' );
@@ -86,4 +93,4 @@ $mediaWiki->finalCleanup ( $wgDeferredUpdateList, $wgLoadBalancer, $wgOut );
 $mediaWiki->doUpdates( $wgPostCommitUpdateList );
 
 $mediaWiki->restInPeace( $wgLoadBalancer );
-?>
+