Skip to content

Commit

Permalink
Implement patches from Stefan Baecker for german translation and ssl …
Browse files Browse the repository at this point in the history
…for outcomes
  • Loading branch information
drlippman committed Sep 20, 2013
1 parent 5824dfb commit c1775a3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions admin/exportlib.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
if ($nonpriv) {
$query .= " AND userights>0";
}
$query .= " ORDER BY uniqueid";
$result = mysql_query($query) or die("Query failed : " . mysql_error());
while ($row = mysql_fetch_row($result)) {
if (!in_array($row[2],$rootlibs)) { //don't export children here
Expand Down Expand Up @@ -96,6 +97,7 @@ function getchildlibs($lib) {
if ($nonpriv) {
$query .= " AND userights>0";
}
$query .= " ORDER BY uniqueid";
$result = mysql_query($query) or die("Query failed : " . mysql_error());
if (mysql_num_rows($result)>0) {
while ($row = mysql_fetch_row($result)) {
Expand Down Expand Up @@ -191,6 +193,7 @@ function getchildlibs($lib) {
if ($nonpriv) {
$query .= " AND imas_questionset.userights>0";
}
$query .= " ORDER BY imas_questionset.uniqueid";
$result = mysql_query($query) or die("Query failed : $query" . mysql_error());
while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) {
$line['control'] = preg_replace('/includecodefrom\((\d+)\)/e','"includecodefrom(UID".$includedbackref["\\1"].")"',$line['control']);
Expand Down
2 changes: 1 addition & 1 deletion forms.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
echo "<span class=form><label for=\"SID\">$longloginprompt:</label></span> <input class=\"form\" type=\"text\" size=12 id=SID name=SID><BR class=\"form\">\n";
echo "<span class=\"form\"><label for=\"pw1\">Choose a password:</label></span><input class=\"form\" type=\"password\" size=20 id=pw1 name=pw1><BR class=\"form\">\n";
echo "<span class=\"form\"><label for=\"pw2\">Confirm password:</label></span> <input class=\"form\" type=\"password\" size=20 id=pw2 name=pw2><BR class=\"form\">\n";
echo "<span class=\"form\"><label for=\"firstname\">Enter First Name:</label></span> <input class=\"form\" type=\"text\" size=20 id=firstnam name=firstname><BR class=\"form\">\n";
echo "<span class=\"form\"><label for=\"firstname\">Enter First Name:</label></span> <input class=\"form\" type=\"text\" size=20 id=firstname name=firstname><BR class=\"form\">\n";
echo "<span class=\"form\"><label for=\"lastname\">Enter Last Name:</label></span> <input class=\"form\" type=\"text\" size=20 id=lastname name=lastname><BR class=\"form\">\n";
echo "<span class=\"form\"><label for=\"email\">Enter E-mail address:</label></span> <input class=\"form\" type=\"text\" size=60 id=email name=email><BR class=\"form\">\n";
echo "<span class=form><label for=\"msgnot\">Notify me by email when I receive a new message:</label></span><span class=formright><input type=checkbox id=msgnot name=msgnot checked=\"checked\" /></span><BR class=form>\n";
Expand Down
2 changes: 1 addition & 1 deletion i18n/de.po
Original file line number Diff line number Diff line change
Expand Up @@ -2507,7 +2507,7 @@ msgstr "Beliebig viele Versuche"

#: assessment/testutil.php:623
msgid "Unlimited attempts."
msgstr "Beliebig viele Versuche.s"
msgstr "Beliebig viele Versuche."

#: course/gradebook.php:490 course/gradebook.php:538 course/gradebook.php:605
msgid "Unlock headers"
Expand Down
2 changes: 1 addition & 1 deletion includes/ltioutcomes.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function post_socket_xml($endpoint, $data, $moreheaders=false) {
// echo("\n"); echo($headers); echo("\n");
// echo("PORT=".$url['port']);
try {
$fp = fsockopen($url['host'], $url['port'], $errno, $errstr, 30);
$fp = fsockopen((($url['scheme'] == 'https') ? 'ssl://':'').$url['host'], $url['port'], $errno, $errstr, 30);
if($fp) {
fputs($fp, $headers);
$result = '';
Expand Down

0 comments on commit c1775a3

Please sign in to comment.