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());
$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");
+++ /dev/null
-<?php
-/**
- * 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
'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)",
$form_body .= elgg_view("input/checkboxes", array('options' => array(elgg_echo('installation:disableapi:label')), 'internalname' => 'api', 'value' => $on ));
$form_body .= "</p>";
-$form_body .= "<p class=\"admin_usage\">" . elgg_echo('installation:usage') . "<br />";
-$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 .= "</p>";
-
$form_body .= elgg_view('input/hidden', array('internalname' => 'settings', 'value' => 'go'));
$form_body .= elgg_view('input/submit', array('value' => elgg_echo("save")));