189function wfForbidden( $msg1, $msg2 ) {
190 global $wgImgAuthDetails;
192 $args = func_get_args();
193 array_shift( $args );
194 array_shift( $args );
195 $args = ( isset( $args[0] ) && is_array( $args[0] ) ) ? $args[0] : $args;
197 $msgHdr = wfMessage( $msg1 )->escaped();
198 $detailMsgKey = $wgImgAuthDetails ? $msg2 : 'badaccess-group0
';
199 $detailMsg = wfMessage( $detailMsgKey, $args )->escaped();
201 wfDebugLog( 'img_auth
',
202 "wfForbidden Hdr: " . wfMessage( $msg1 )->inLanguage( 'en
' )->text() . " Msg: " .
203 wfMessage( $msg2, $args )->inLanguage( 'en
' )->text()
206 HttpStatus::header( 403 );
207 header( 'Cache-Control: no-
cache' );
208 header( 'Content-Type:
text/html; charset=utf-8
' );
213<meta charset="UTF-8" />
214<title>$msgHdr</title>
Base interface for content objects.
you have access to all of the normal MediaWiki so you can get a DB use the cache