Changeset 1852 for trunk/include/functions_html.inc.php
- Timestamp:
- Feb 23, 2007, 2:18:34 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_html.inc.php
r1851 r1852 628 628 629 629 /** 630 * exits the current script with 400 code 631 * @param string msg a message to display 632 * @param string alternate_url redirect to this url 633 */ 634 function bad_request($msg, $alternate_url=null) 635 { 636 set_status_header(400); 637 if ($alternate_url==null) 638 $alternate_url = make_index_url(); 639 redirect_html( $alternate_url, 640 '<div style="text-align:left; margin-left:5em;margin-bottom:5em;"> 641 <h1 style="text-align:left; font-size:36px;">Bad request</h1><br/>' 642 .$msg.'</div>', 643 5 ); 644 } 645 646 /** 630 647 * exits the current script with 404 code when a page cannot be found 631 648 * @param string msg a message to display
Note: See TracChangeset
for help on using the changeset viewer.