Commit 806ee7a6 authored by Nigel McNie's avatar Nigel McNie
Browse files

Give installs an installation key which we send back to mahara.org to prevent...

Give installs an installation key which we send back to mahara.org to prevent people sending bogus data for other peoples' wwwroots.
parent f5191d54
......@@ -820,6 +820,11 @@ function xmldb_core_upgrade($oldversion=0) {
}
}
if ($oldversion < 2009021900) {
// Generate a registration key
set_config('installation_key', get_random_key());
}
return $status;
}
......
......@@ -545,6 +545,7 @@ function core_postinst() {
set_config('searchplugin', 'internal');
set_config('lang', 'en.utf8');
set_config('installation_key', get_random_key());
// PostgreSQL supports indexes over functions of columns, MySQL does not.
// So we can improve the index on the username field of the usr table for
......
......@@ -27,7 +27,7 @@
defined('INTERNAL') || die();
$config = new StdClass;
$config->version = 2009021701;
$config->version = 2009021900;
$config->release = '1.1.0beta5dev';
$config->minupgradefrom = 2008040200;
$config->minupgraderelease = '1.0.0 (release tag 1.0.0_RELEASE)';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment