From 298158ed2cb212cb79c413696295e8adbc5cecff Mon Sep 17 00:00:00 2001
From: brettp
Date: Sat, 6 Feb 2010 21:00:49 +0000
Subject: Fixes #1492: Removed usage info collecting from installation.
git-svn-id: http://code.elgg.org/elgg/trunk@3913 36083f99-b078-4883-b0ff-0f9b5a30f544
---
actions/systemsettings/install.php | 16 --------------
engine/lib/ping.php | 45 --------------------------------------
languages/en.php | 2 --
views/failsafe/settings/system.php | 9 --------
4 files changed, 72 deletions(-)
delete mode 100644 engine/lib/ping.php
diff --git a/actions/systemsettings/install.php b/actions/systemsettings/install.php
index 98d958a67..08cbef99d 100644
--- a/actions/systemsettings/install.php
+++ b/actions/systemsettings/install.php
@@ -68,17 +68,6 @@ if (get_input('settings') == 'go') {
unset_config('debug', $site->getGUID());
}
- $usage = get_input('usage');
- if (is_array($usage)) {
- $usage = $usage[0];
- }
-
- if ($usage) {
- unset_config('ping_home', $site->getGUID());
- } else {
- set_config('ping_home', 'disabled', $site->getGUID());
- }
-
$api = get_input('api');
if ($api) {
unset_config('disable_api', $site->getGUID());
@@ -120,11 +109,6 @@ if (get_input('settings') == 'go') {
$cache = new ElggFileCache($dataroot);
$cache->delete('view_paths');
- // Now ping home
- if ($usage) {
- ping_home($site);
- }
-
system_message(elgg_echo("installation:configuration:success"));
header("Location: ../../account/register.php");
diff --git a/engine/lib/ping.php b/engine/lib/ping.php
deleted file mode 100644
index b318806a7..000000000
--- a/engine/lib/ping.php
+++ /dev/null
@@ -1,45 +0,0 @@
-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
diff --git a/languages/en.php b/languages/en.php
index 63c3e33fc..7310c8ac2 100644
--- a/languages/en.php
+++ b/languages/en.php
@@ -742,8 +742,6 @@ Alternatively, you can enter your database settings below and we will try and do
'installation:debug:notice' => 'Log all errors, warnings and notices',
'installation:httpslogin' => "Enable this to have user logins performed over HTTPS. You will need to have https enabled on your server for this to work.",
'installation:httpslogin:label' => "Enable HTTPS logins",
- 'installation:usage' => "This option lets Elgg send anonymous usage statistics back to Curverider.",
- 'installation:usage:label' => "Send anonymous usage statistics",
'installation:view' => "Enter the view which will be used as the default for your site or leave this blank for the default view (if in doubt, leave as default):",
'installation:siteemail' => "Site email address (used when sending system emails)",
diff --git a/views/failsafe/settings/system.php b/views/failsafe/settings/system.php
index dfc7ecc41..9c4a40aa5 100644
--- a/views/failsafe/settings/system.php
+++ b/views/failsafe/settings/system.php
@@ -54,15 +54,6 @@ if ((isset($CONFIG->disable_api)) && ($CONFIG->disable_api == true)) {
$form_body .= elgg_view("input/checkboxes", array('options' => array(elgg_echo('installation:disableapi:label')), 'internalname' => 'api', 'value' => $on ));
$form_body .= "
";
-$form_body .= "" . elgg_echo('installation:usage') . "
";
-$on = elgg_echo('installation:usage:label');
-
-if (isset($CONFIG->ping_home)) {
- $on = ($vars['config']->ping_home!='disabled' ? elgg_echo('installation:usage:label') : "");
-}
-$form_body .= elgg_view("input/checkboxes", array('options' => array(elgg_echo('installation:usage:label')), 'internalname' => 'usage', 'value' => $on ));
-$form_body .= "
";
-
$form_body .= elgg_view('input/hidden', array('internalname' => 'settings', 'value' => 'go'));
$form_body .= elgg_view('input/submit', array('value' => elgg_echo("save")));
--
cgit v1.2.3