Changeset 15583 for trunk/include/functions.inc.php
- Timestamp:
- Jun 7, 2012, 12:48:57 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions.inc.php
r15575 r15583 1693 1693 return $is_mobile_theme; 1694 1694 } 1695 1696 /**1697 * return hostname with gethostbyaddr and keep it in database1698 */1699 function get_host($force_update=false)1700 {1701 global $conf;1702 1703 if (!isset($conf['host']) or $force_update)1704 {1705 $conf['host'] = 'undefined';1706 if ($host = @gethostbyaddr($_SERVER['SERVER_ADDR']))1707 {1708 $conf['host'] = $host;1709 }1710 conf_update_param('host', $conf['host']);1711 }1712 return $conf['host'];1713 }1714 1695 ?>
Note: See TracChangeset
for help on using the changeset viewer.