В Unix и Linux (и, возможно, в OS X тоже) текущая Кодировка файловой системы задается параметром локали LC_CTYPE (см. функцию setlocale() http://php.net/manual/ru/function.setlocale.php). Например, он может иметь значение типа en_US.UTF-8, что означает кодировку UTF-8. Затем имена файлов и их пути могут быть созданы с помощью fopen() или получены с помощью dir() с этой кодировкой.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Grabbing a dispatch from CS-Cart | |
| {if $smarty.request.dispatch == 'index.index'} | |
| ## Grabbing user group from CS-Cart | |
| {$auth.usergroup_ids[2]} | |
| ## Admin user condition from CS-Cart | |
| ## $_SESSION prob isnt available, so $auth works instead | |
| {if $auth.user_id && $auth.user_type == 'A'} |