$string[entercourse] = "Click to enter this course";
$string[enteremailaddress] = "Enter in your email address to reset your
password and have the new password sent to you via email.";
+$string[error] = "Error";
$string[files] = "Files";
$string[firstname] = "First name";
$string[firsttime] = "Is this your first time here?";
$string[someallowguest] = "Some courses may allow guest access";
$string[startdate] = "Course start date";
$string[startsignup] = "Start now by creating a new account!";
+$string[success] = "Success";
$string[summary] = "Summary";
$string[summaryof] = "Summary of \$a";
$string[supplyinfo] = "Please supply some information about yourself";
function error ($message, $link="") {
global $CFG, $SESSION;
- print_header("Error");
+ print_header(get_string("error"));
echo "<BR>";
print_simple_box($message, "center", "", "#FFBBBB");
echo "<BR>";
print_simple_box($message, "center", "", "$THEME->cellheading");
- print_heading("<A HREF=\"$link\">Continue</A>");
+ print_heading("<A HREF=\"$link\">".get_string("continue")."</A>");
print_footer();
die;
}
print_simple_box_start("center", "", "$THEME->cellheading");
echo "<P ALIGN=CENTER><FONT SIZE=3>$message</FONT></P>";
echo "<P ALIGN=CENTER><FONT SIZE=3><B>";
- echo "<A HREF=\"$linkyes\">Yes</A>";
+ echo "<A HREF=\"$linkyes\">".get_string("yes")."</A>";
echo " ";
- echo "<A HREF=\"$linkno\">No</A>";
+ echo "<A HREF=\"$linkno\">".get_string("no")."</A>";
echo "</B></FONT></P>";
print_simple_box_end();
}
print_header();
echo "<CENTER>";
echo "<P>$message</P>";
- echo "<P>( <A HREF=\"$url\">Continue</A> )</P>";
+ echo "<P>( <A HREF=\"$url\">".get_string("continue")."</A> )</P>";
echo "</CENTER>";
}
die;
$result = $db->Execute("$command");
if ($result) {
- echo "<P><FONT COLOR=green>SUCCESS</FONT></P>";
+ echo "<P><FONT COLOR=green><B>".get_string("success")."</B></FONT></P>";
return true;
} else {
- echo "<P><FONT COLOR=red>ERROR</FONT></P>";
+ echo "<P><FONT COLOR=red><B>".get_string("error")."</B></FONT></P>";
return false;
}
}
return true;
}
return false;
-
-
}