Ticket #6126: mythweb_posix_uname.patch
File mythweb_posix_uname.patch, 536 bytes (added by , 15 years ago) |
---|
-
includes/defines.php
21 21 define('root', str_replace('//', '/', dirname($_SERVER['SCRIPT_NAME']).'/')); 22 22 23 23 // Several sections of this program require the current hostname 24 $uname = p osix_uname();24 $uname = php_uname('n'); 25 25 define('hostname', empty($_SERVER['hostname']) ? trim($uname['nodename']) : $_SERVER['hostname']); 26 26 unset($uname); 27 27