Permalink
Browse files

Correcting corrupted line endings

  • Loading branch information...
1 parent 14f793b commit d9bd40280c5845c164693b611be7dfbeb0108fa6 gustav_delius committed Nov 19, 2005
Showing with 1,573 additions and 1,573 deletions.
  1. +33 −33 mod/lams/config.html
  2. +18 −18 mod/lams/constants.php
  3. +82 −82 mod/lams/index.php
  4. +440 −440 mod/lams/lib.php
  5. +36 −36 mod/lams/list.php
  6. +777 −777 mod/lams/mod.html
  7. +47 −47 mod/lams/testws.php
  8. +42 −42 mod/lams/userinfo.php
  9. +98 −98 mod/lams/view.php
View
@@ -1,33 +1,33 @@
-<form method="post" action="module.php" name="form">
-<input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>">
-
-<table cellpadding="9" cellspacing="0">
-<tr valign="top">
- <td align="right">server_url:</td>
- <td> <input name="lams_serverurl" type="text" size="50" value="<?php p($CFG->lams_serverurl) ?>"></td>
- <td>
- <?php print_string('serverurl', 'lams') ?>
- </td>
-</tr>
-<tr valign="top">
- <td align="right">server_id:</td>
- <td> <input name="lams_serverid" type="text" size="50" value="<?php p($CFG->lams_serverid) ?>"> </td>
- <td>
- <?php print_string('serverid', 'lams') ?>
- </td>
-</tr>
-<tr valign="top">
- <td align="right">server_key:</td>
- <td> <input name="lams_serverkey" type="text" size="50" value="<?php p($CFG->lams_serverkey) ?>"> </td>
- <td>
- <?php print_string('serverkey', 'lams') ?>
- </td>
-</tr>
-
-<tr>
- <td colspan="3" align="center">
- <input type="submit" value="<?php print_string("savechanges") ?>"></td>
-</tr>
-</table>
-
-</form>
+<form method="post" action="module.php" name="form">
+<input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>">
+
+<table cellpadding="9" cellspacing="0">
+<tr valign="top">
+ <td align="right">server_url:</td>
+ <td> <input name="lams_serverurl" type="text" size="50" value="<?php p($CFG->lams_serverurl) ?>"></td>
+ <td>
+ <?php print_string('serverurl', 'lams') ?>
+ </td>
+</tr>
+<tr valign="top">
+ <td align="right">server_id:</td>
+ <td> <input name="lams_serverid" type="text" size="50" value="<?php p($CFG->lams_serverid) ?>"> </td>
+ <td>
+ <?php print_string('serverid', 'lams') ?>
+ </td>
+</tr>
+<tr valign="top">
+ <td align="right">server_key:</td>
+ <td> <input name="lams_serverkey" type="text" size="50" value="<?php p($CFG->lams_serverkey) ?>"> </td>
+ <td>
+ <?php print_string('serverkey', 'lams') ?>
+ </td>
+</tr>
+
+<tr>
+ <td colspan="3" align="center">
+ <input type="submit" value="<?php print_string("savechanges") ?>"></td>
+</tr>
+</table>
+
+</form>
View
@@ -1,18 +1,18 @@
-<?php /// LAMS constants
-
-unset($LAMSCONSTANTS);
-
-$LAMSCONSTANTS->login_request = '/LoginRequest';
-$LAMSCONSTANTS->param_uid = 'uid';
-$LAMSCONSTANTS->param_serverid = 'sid';
-$LAMSCONSTANTS->param_timestamp = 'ts';
-$LAMSCONSTANTS->param_hash = 'hash';
-$LAMSCONSTANTS->param_method = 'method';
-$LAMSCONSTANTS->param_lsid = 'lsid';
-$LAMSCONSTANTS->param_ldid = 'ldid';
-$LAMSCONSTANTS->param_courseid = 'course_id';
-$LAMSCONSTANTS->author_method = 'author';
-$LAMSCONSTANTS->monitor_method = 'monitor';
-$LAMSCONSTANTS->learner_method = 'learner';
-
-?>
+<?php /// LAMS constants
+
+unset($LAMSCONSTANTS);
+
+$LAMSCONSTANTS->login_request = '/LoginRequest';
+$LAMSCONSTANTS->param_uid = 'uid';
+$LAMSCONSTANTS->param_serverid = 'sid';
+$LAMSCONSTANTS->param_timestamp = 'ts';
+$LAMSCONSTANTS->param_hash = 'hash';
+$LAMSCONSTANTS->param_method = 'method';
+$LAMSCONSTANTS->param_lsid = 'lsid';
+$LAMSCONSTANTS->param_ldid = 'ldid';
+$LAMSCONSTANTS->param_courseid = 'course_id';
+$LAMSCONSTANTS->author_method = 'author';
+$LAMSCONSTANTS->monitor_method = 'monitor';
+$LAMSCONSTANTS->learner_method = 'learner';
+
+?>
View
@@ -1,82 +1,82 @@
-<?php // $Id$
-
-/// This page lists all the instances of lams in a particular course
-
- require_once("../../config.php");
- require_once("lib.php");
-
- require_variable($id); // course
-
- if (! $course = get_record("course", "id", $id)) {
- error("Course ID is incorrect");
- }
-
- require_login($course->id);
-
- add_to_log($course->id, "lams", "view all", "index.php?id=$course->id", "");
-
-
-/// Get all required strings
-
- $strlamss = get_string("modulenameplural", "lams");
- $strlams = get_string("modulename", "lams");
-
-
-/// Print the header
-
- if ($course->category) {
- $navigation = "<a href=\"../../course/view.php?id=$course->id\">$course->shortname</a> ->";
- }
-
- print_header("$course->shortname: $strlamss", "$course->fullname", "$navigation $strlamss", "", "", true, "", navmenu($course));
-
-/// Get all the appropriate data
-
- if (! $lamss = get_all_instances_in_course("lams", $course)) {
- notice("There are no lams", "../../course/view.php?id=$course->id");
- die;
- }
-
-/// Print the list of instances (your module will probably extend this)
-
- $timenow = time();
- $strname = get_string("name");
- $strweek = get_string("week");
- $strtopic = get_string("topic");
-
- if ($course->format == "weeks") {
- $table->head = array ($strweek, $strname);
- $table->align = array ('center', 'left');
- } else if ($course->format == "topics") {
- $table->head = array ($strtopic, $strname);
- $table->align = array ('center', 'left', 'left', 'left');
- } else {
- $table->head = array ($strname);
- $table->align = array ('left', 'left', 'left');
- }
-
- foreach ($lamss as $lams) {
- if (!$lams->visible) {
- //Show dimmed if the mod is hidden
- $link = "<a class=\"dimmed\" href=\"view.php?id=$lams->coursemodule\">$lams->name</a>";
- } else {
- //Show normal if the mod is visible
- $link = "<a href=\"view.php?id=$lams->coursemodule\">$lams->name</a>";
- }
-
- if ($course->format == 'weeks' or $course->format == 'topics') {
- $table->data[] = array ($lams->section, $link);
- } else {
- $table->data[] = array ($link);
- }
- }
-
- echo '<br />';
-
- print_table($table);
-
-/// Finish the page
-
- print_footer($course);
-
-?>
+<?php // $Id$
+
+/// This page lists all the instances of lams in a particular course
+
+ require_once("../../config.php");
+ require_once("lib.php");
+
+ require_variable($id); // course
+
+ if (! $course = get_record("course", "id", $id)) {
+ error("Course ID is incorrect");
+ }
+
+ require_login($course->id);
+
+ add_to_log($course->id, "lams", "view all", "index.php?id=$course->id", "");
+
+
+/// Get all required strings
+
+ $strlamss = get_string("modulenameplural", "lams");
+ $strlams = get_string("modulename", "lams");
+
+
+/// Print the header
+
+ if ($course->category) {
+ $navigation = "<a href=\"../../course/view.php?id=$course->id\">$course->shortname</a> ->";
+ }
+
+ print_header("$course->shortname: $strlamss", "$course->fullname", "$navigation $strlamss", "", "", true, "", navmenu($course));
+
+/// Get all the appropriate data
+
+ if (! $lamss = get_all_instances_in_course("lams", $course)) {
+ notice("There are no lams", "../../course/view.php?id=$course->id");
+ die;
+ }
+
+/// Print the list of instances (your module will probably extend this)
+
+ $timenow = time();
+ $strname = get_string("name");
+ $strweek = get_string("week");
+ $strtopic = get_string("topic");
+
+ if ($course->format == "weeks") {
+ $table->head = array ($strweek, $strname);
+ $table->align = array ('center', 'left');
+ } else if ($course->format == "topics") {
+ $table->head = array ($strtopic, $strname);
+ $table->align = array ('center', 'left', 'left', 'left');
+ } else {
+ $table->head = array ($strname);
+ $table->align = array ('left', 'left', 'left');
+ }
+
+ foreach ($lamss as $lams) {
+ if (!$lams->visible) {
+ //Show dimmed if the mod is hidden
+ $link = "<a class=\"dimmed\" href=\"view.php?id=$lams->coursemodule\">$lams->name</a>";
+ } else {
+ //Show normal if the mod is visible
+ $link = "<a href=\"view.php?id=$lams->coursemodule\">$lams->name</a>";
+ }
+
+ if ($course->format == 'weeks' or $course->format == 'topics') {
+ $table->data[] = array ($lams->section, $link);
+ } else {
+ $table->data[] = array ($link);
+ }
+ }
+
+ echo '<br />';
+
+ print_table($table);
+
+/// Finish the page
+
+ print_footer($course);
+
+?>
Oops, something went wrong.

0 comments on commit d9bd402

Please sign in to comment.