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