Changeset 15384 for trunk/include/functions_html.inc.php
- Timestamp:
- May 28, 2012, 5:00:37 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_html.inc.php
r15381 r15384 343 343 { 344 344 set_status_header(403); 345 $forbidden=l10n('Forbidden');346 345 if ($alternate_url==null) 347 346 $alternate_url = make_index_url(); 348 347 redirect_html( $alternate_url, 349 348 '<div style="text-align:left; margin-left:5em;margin-bottom:5em;"> 350 <h1 style="text-align:left; font-size:36px;">'. $forbidden.'</h1><br>'349 <h1 style="text-align:left; font-size:36px;">'.l10n('Forbidden').'</h1><br>' 351 350 .$msg.'</div>', 352 351 5 ); … … 361 360 { 362 361 set_status_header(400); 363 $bad=l10n('Bad request');364 362 if ($alternate_url==null) 365 363 $alternate_url = make_index_url(); 366 364 redirect_html( $alternate_url, 367 365 '<div style="text-align:left; margin-left:5em;margin-bottom:5em;"> 368 <h1 style="text-align:left; font-size:36px;">'. $bad.'</h1><br>'366 <h1 style="text-align:left; font-size:36px;">'.l10n('Bad request').'</h1><br>' 369 367 .$msg.'</div>', 370 368 5 ); … … 379 377 { 380 378 set_status_header(404); 381 $found=l10n('Page not found');382 379 if ($alternate_url==null) 383 380 $alternate_url = make_index_url(); 384 381 redirect_html( $alternate_url, 385 382 '<div style="text-align:left; margin-left:5em;margin-bottom:5em;"> 386 <h1 style="text-align:left; font-size:36px;">'. $found.'</h1><br>'383 <h1 style="text-align:left; font-size:36px;">'.l10n('Page not found').'</h1><br>' 387 384 .$msg.'</div>', 388 385 5 );
Note: See TracChangeset
for help on using the changeset viewer.