path . "version.php"); // Get export $export = export($CONFIG->site_id); $site = get_entity($CONFIG->site_id); return send_api_post_call($NOTIFICATION_SERVER, array( 'method' => 'elgg.system.ping', 'url' => $site->url, 'version' => $version, 'release' => $release, ), array(), $export, 'text/xml' ); } /** * Notify the server. */ function ping_init() { global $CONFIG; if ((!isset($CONFIG->ping_home)) || ($CONFIG->ping_home!='disabled')) { // Now run this stuff, but only once run_function_once("ping_run_once"); } } // Register a startup event register_elgg_event_handler('init','system','ping_init'); ?>