0xGA: Check-in [e7feaee5b5]

Yet another PHP framework, but made for org-mode and geeks.

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix two little bugs
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:e7feaee5b5c505e5349be0eddc1704c61628ef88
User & Date: milouse 2014-04-02 22:03:45
Context
2014-04-10
19:47
Create real man page for narv check-in: 752c1a57aa user: milouse tags: trunk
2014-04-02
22:03
Fix two little bugs check-in: e7feaee5b5 user: milouse tags: trunk
2014-02-25
00:44
Finish first test suite module for 0xga and fix narv consequently check-in: dc28d93be1 user: milouse tags: trunk
Changes

Changes to usr/bin/controller.php.

20
21
22
23
24
25
26


27
28
29
30
31
32
33
                    case 'json' :
                    case 'js' :
                        define('OUTPUT_FORMAT', $uriext);
                        break;
                    case 'jpg':
                    case 'jpeg':
                    case 'png':


                        define('OUTPUT_FORMAT', 'img');
                        break;
                    default :
                        define('OUTPUT_FORMAT', 'plain');
                }
            }else{
                define('OUTPUT_FORMAT', 'html');







>
>







20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
                    case 'json' :
                    case 'js' :
                        define('OUTPUT_FORMAT', $uriext);
                        break;
                    case 'jpg':
                    case 'jpeg':
                    case 'png':
                    case 'otf':
                    case 'ttf':
                        define('OUTPUT_FORMAT', 'img');
                        break;
                    default :
                        define('OUTPUT_FORMAT', 'plain');
                }
            }else{
                define('OUTPUT_FORMAT', 'html');

Changes to usr/bin/stream.php.

635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
                $store->query('select 404 from srv/messages')
            );

            $error = array_merge(
                array(
                    'header' => 'HTTP/1.0 404 Not Found',
                    'content' => $parser->getHTML(),
                    'debug' => 'Billet ' . $url
                             . ' non trouvé...'
                ),
                $parser->getMetaData()
                        );
            return $error;
        }
        $doc->downloadOrg();
    }

}

?>







|












635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
                $store->query('select 404 from srv/messages')
            );

            $error = array_merge(
                array(
                    'header' => 'HTTP/1.0 404 Not Found',
                    'content' => $parser->getHTML(),
                    'debug' => 'Billet ' . $locurl
                             . ' non trouvé...'
                ),
                $parser->getMetaData()
                        );
            return $error;
        }
        $doc->downloadOrg();
    }

}

?>