Changeset 8335 for branches/crazyhorse/wp-app.php
- Timestamp:
- 07/15/2008 02:01:08 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/crazyhorse/wp-app.php
r8242 r8335 198 198 // check to see if AtomPub is enabled 199 199 if( !get_option( 'enable_app' ) ) 200 $this-> not_allowed( sprintf( __( 'AtomPub services are disabled on this blog. An admin user can enable them at %s' ), admin_url('options-writing.php') ) );200 $this->forbidden( sprintf( __( 'AtomPub services are disabled on this blog. An admin user can enable them at %s' ), admin_url('options-writing.php') ) ); 201 201 202 202 // dispatch … … 940 940 } 941 941 942 function forbidden($reason='') { 943 log_app('Status','403: Forbidden'); 944 header('Content-Type: text/plain'); 945 status_header('403'); 946 echo $reason; 947 exit; 948 } 949 942 950 function not_found() { 943 951 log_app('Status','404: Not Found');
Note: See TracChangeset
for help on using the changeset viewer.