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