Skip to content

Commit

Permalink
Added a GPL license agreement as the very first step.
Browse files Browse the repository at this point in the history
  • Loading branch information
martin committed Aug 17, 2002
1 parent 3bc9bf9 commit b188706
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
16 changes: 15 additions & 1 deletion admin/index.php
Expand Up @@ -9,10 +9,24 @@


// Check databases and modules and install as needed. // Check databases and modules and install as needed.
if (! $db->Metatables() ) { if (! $db->Metatables() ) {

if (!$agreelicence) {
$strlicense = get_string("license");
print_header($strlicense, $strlicense, $strlicense);
print_heading("<A HREF=\"http://moodle.com\">Moodle</A> - Modular Object-Oriented Dynamic Learning Environment");
print_heading(get_string("copyrightnotice"));
print_simple_box_start("CENTER");
echo text_to_html(get_string("gpl"));
print_simple_box_end();
echo "<BR>";
notice_yesno(get_string("doyouagree"), "index.php?agreelicence=true",
"http://www.gnu.org/copyleft/gpl.html");
exit;
}

$strdatabasesetup = get_string("databasesetup"); $strdatabasesetup = get_string("databasesetup");
$strdatabasesuccess = get_string("databasesuccess"); $strdatabasesuccess = get_string("databasesuccess");
print_header($strdatabasesetup, $strdatabasesetup, $strdatabasesetup); print_header($strdatabasesetup, $strdatabasesetup, $strdatabasesetup);

if (file_exists("$CFG->libdir/db/$CFG->dbtype.sql")) { if (file_exists("$CFG->libdir/db/$CFG->dbtype.sql")) {
$db->debug = true; $db->debug = true;
if (modify_database("$CFG->libdir/db/$CFG->dbtype.sql")) { if (modify_database("$CFG->libdir/db/$CFG->dbtype.sql")) {
Expand Down
16 changes: 16 additions & 0 deletions lang/en/moodle.php
Expand Up @@ -37,6 +37,7 @@
$string[confirmed] = "Your registration has been confirmed"; $string[confirmed] = "Your registration has been confirmed";
$string[courseupdates] = "Course updates"; $string[courseupdates] = "Course updates";
$string[complete] = "Complete"; $string[complete] = "Complete";
$string[copyrightnotice] = "Copyright notice";
$string["continue"] = "Continue"; $string["continue"] = "Continue";
$string[country] = "Country"; $string[country] = "Country";
$string[course] = "Course"; $string[course] = "Course";
Expand Down Expand Up @@ -64,6 +65,7 @@
$string[deletedcourse] = "\$a has been completely deleted"; $string[deletedcourse] = "\$a has been completely deleted";
$string[deletingcourse] = "Deleting \$a"; $string[deletingcourse] = "Deleting \$a";
$string[description] = "Description"; $string[description] = "Description";
$string[doyouagree] = "Have you read these conditions and understood them?";
$string[edit] = "Edit \$a"; $string[edit] = "Edit \$a";
$string[editcoursesettings] = "Edit course settings"; $string[editcoursesettings] = "Edit course settings";
$string[editinga] = "Editing a \$a"; $string[editinga] = "Editing a \$a";
Expand Down Expand Up @@ -123,6 +125,19 @@
$string[fullprofile] = "Full profile"; $string[fullprofile] = "Full profile";
$string[fullname] = "Full name"; $string[fullname] = "Full name";
$string[fullsitename] = "Full site name"; $string[fullsitename] = "Full site name";
$string[gpl] = "Copyright (C) 2001-2002 Martin Dougiamas (http://dougiamas.com)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details:
http://www.gnu.org/copyleft/gpl.html";
$string[grade] = "Grade"; $string[grade] = "Grade";
$string[guestsno] = "No, do not allow guests in"; $string[guestsno] = "No, do not allow guests in";
$string[guestsyes] = "Yes, allow 'guest' student in"; $string[guestsyes] = "Yes, allow 'guest' student in";
Expand All @@ -142,6 +157,7 @@
$string[lastname] = "Last name"; $string[lastname] = "Last name";
$string[latestnews] = "Latest news"; $string[latestnews] = "Latest news";
$string[listofallpeople] = "List of all people"; $string[listofallpeople] = "List of all people";
$string[license] = "GPL License";
$string[livelogs] = "Live logs from the past hour"; $string[livelogs] = "Live logs from the past hour";
$string[location] = "Location"; $string[location] = "Location";
$string[loggedinas] = "You are logged in as \$a."; $string[loggedinas] = "You are logged in as \$a.";
Expand Down

0 comments on commit b188706

Please sign in to comment.