(2010-) * @license GPLv2 http://files.froxlor.org/misc/COPYING.txt * @package Functions * @version $Id$ */ /** * this function checks whether $server_id (multi-server) is set * in userdata.inc.php and returns the value. If not set or invalid, * always return the id of the master (which is '0') * * @return int server_id of current server * @since 0.9.14-svn7 */ function getServerId() { global $server_id; if(isset($server_id) && is_numeric($server_id) && $server_id > 0 ) { return $server_id; } // return default (master) return 0; }