Warning: readfile(/var/www/u0973530/data/www/sport-stadion.ru/i/galleries/1843.jpg): failed to open stream: No such file or directory in /var/www/u0973530/data/_lib/oocms/core.php(1618) : evaluated code on line 21
/photos/92/1843:html
1: <?php
2: 
3: $i = urlpart('photo');
4: $item = oocms::single('db')->queryRow("
5:   SELECT *
6:   FROM " . GALLERY_PHOTOS . "
7:   WHERE (id = '{$i}')
8: ");
9: 
10: if ($item) {
11:   switch ($item['file_ext']) {
12:     case '.gif':
13:       header('Content-Type: image/gif');
14:       break;
15:     case '.png':
16:       header('Content-Type: image/png');
17:       break;
18:     default:
19:       header('Content-Type: image/jpeg');
20:   }
21:   readfile(ROOT_PATH . 'i/galleries/' . $i . @$item['file_ext']);
22:   return;
23: }
24: 
25: header('Content-Type: text/html; charset=Windows-1251');
26: ?>
27: <!DOCTYPE html>
28: <html dir="ltr" lang="ru">
29: <head>
30: <meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
31: <title><?=@$item['name']?></title>
32: <style type="text/css">
33: body {
34: 	background: #fff;
35: 	font: 14px Arial, sans-serif;
36: }
37: </style>
38: </head>
39: <body>
40: Ошибка: изображение не найдено
41: </body>
42: </html>