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