aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/ping.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-10-15 04:41:46 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-10-15 04:41:46 +0000
commit54a3c3e7e9e70c4770010e442e95f734200d03f9 (patch)
treef8e2e7e383523bbf28654ec171e57c841ed1910b /engine/lib/ping.php
parentba331497c03a51ae4b46b387e5f6773620a98cff (diff)
downloadelgg-54a3c3e7e9e70c4770010e442e95f734200d03f9.tar.gz
elgg-54a3c3e7e9e70c4770010e442e95f734200d03f9.tar.bz2
Standardized gobs of files.
git-svn-id: http://code.elgg.org/elgg/trunk@3548 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/ping.php')
-rw-r--r--engine/lib/ping.php88
1 files changed, 43 insertions, 45 deletions
diff --git a/engine/lib/ping.php b/engine/lib/ping.php
index af42b9a87..b318806a7 100644
--- a/engine/lib/ping.php
+++ b/engine/lib/ping.php
@@ -1,47 +1,45 @@
<?php
- /**
- * This module pings us on the first install.
- *
- * @package Elgg
- * @subpackage Core
- * @author Curverider Ltdsend_api_get_call
- * @link http://elgg.org/
- */
+/**
+ * This module pings us on the first install.
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @author Curverider Ltdsend_api_get_call
+ * @link http://elgg.org/
+ */
- /**
- * The api for the pinger.
- * TODO: Have this configurable and/or updatable
- */
- $NOTIFICATION_SERVER = "http://ping.elgg.org/pg/api/rest/php/";
-
-
- /**
- * Run once and only once.
- *
- * @param ElggSite $site The site who's information to use
- */
- function ping_home(ElggSite $site)
- {
- global $NOTIFICATION_SERVER, $CONFIG;
-
- // Get version information
- $version = get_version();
- $release = get_version(true);
-
- // Get export
- $export = export($site->guid);
-
- return send_api_post_call($NOTIFICATION_SERVER,
- array(
- 'method' => 'elgg.system.ping',
-
- 'url' => $site->url,
- 'version' => $version,
- 'release' => $release,
- ),
- array(),
- $export,
- 'text/xml'
- );
- }
-?> \ No newline at end of file
+/**
+ * The api for the pinger.
+ * TODO: Have this configurable and/or updatable
+ */
+$NOTIFICATION_SERVER = "http://ping.elgg.org/pg/api/rest/php/";
+
+
+/**
+ * Run once and only once.
+ *
+ * @param ElggSite $site The site who's information to use
+ */
+function ping_home(ElggSite $site) {
+ global $NOTIFICATION_SERVER, $CONFIG;
+
+ // Get version information
+ $version = get_version();
+ $release = get_version(true);
+
+ // Get export
+ $export = export($site->guid);
+
+ return send_api_post_call($NOTIFICATION_SERVER,
+ array(
+ 'method' => 'elgg.system.ping',
+
+ 'url' => $site->url,
+ 'version' => $version,
+ 'release' => $release,
+ ),
+ array(),
+ $export,
+ 'text/xml'
+ );
+} \ No newline at end of file