Rev 21 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 21 | Rev 28 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | <?php
|
1 | <?php
|
2 | 2 | ||
3 | require_once 'global.inc'; |
3 | require_once __DIR__ . '/global.inc'; |
4 | 4 | ||
5 | $encoding = mb_detect_encoding(file_get_contents($_SERVER['SCRIPT_FILENAME'])); |
5 | $encoding = mb_detect_encoding(file_get_contents($_SERVER['SCRIPT_FILENAME'])); |
6 | if ($encoding === 'ASCII') $encoding = 'iso-8859-1'; |
6 | if ($encoding === 'ASCII') $encoding = 'iso-8859-1'; |
7 | define('FEATURES_ENCODING', $encoding); |
7 | define('FEATURES_ENCODING', $encoding); |
8 | 8 |