path . "version.php"); // Get export $export = export($CONFIG->site_id); return send_api_post_call($NOTIFICATION_SERVER, array( 'method' => 'elgg.system.ping' ), array( 'version' => $version, 'release' => $release, ), $export, 'text/xml' ); } /** * Notify the server. */ function ping_init() { global $CONFIG; if ($CONFIG->ping_home) { // 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'); ?>