194function wfForbidden( $msg1, $msg2 ) {
195 global $wgImgAuthDetails;
197 $args = func_get_args();
198 array_shift( $args );
199 array_shift( $args );
200 $args = ( isset( $args[0] ) && is_array( $args[0] ) ) ? $args[0] : $args;
202 $msgHdr = wfMessage( $msg1 )->escaped();
203 $detailMsgKey = $wgImgAuthDetails ? $msg2 : 'badaccess-group0
';
204 $detailMsg = wfMessage( $detailMsgKey, $args )->escaped();
206 wfDebugLog( 'img_auth
',
207 "wfForbidden Hdr: " . wfMessage( $msg1 )->inLanguage( 'en
' )->text() . " Msg: " .
208 wfMessage( $msg2, $args )->inLanguage( 'en
' )->text()
211 HttpStatus::header( 403 );
212 header( 'Cache-Control: no-
cache' );
213 header( 'Content-Type:
text/html; charset=utf-8
' );
218<meta charset="UTF-8" />
219<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