]> git.mjollnir.org Git - moodle.git/commitdiff
Slight updates
authormoodler <moodler>
Sun, 17 Nov 2002 09:57:34 +0000 (09:57 +0000)
committermoodler <moodler>
Sun, 17 Nov 2002 09:57:34 +0000 (09:57 +0000)
auth/db/lib.php
auth/imap/lib.php
auth/nntp/lib.php
auth/pop3/lib.php

index b975dcc0d9d0100ed5738cb4d617677eec20ff14..9f220e7415db373fe4ab5d1b52bd417c9c38aab2 100644 (file)
@@ -12,6 +12,7 @@ $CFG->auth_dbpass   = "pass";      // Password matching the above username
 $CFG->auth_dbtable  = "users";     // Name of the table in the database
 $CFG->auth_dbfielduser = "user";   // Name of the field containing usernames
 $CFG->auth_dbfieldpass = "pass";   // Name of the field containing passwords
+$CFG->auth_instructions = "Use the same username and password as your school account";   // Instructions
 
 function auth_user_login ($username, $password) {
 // Returns true if the username and password work
index 8b0391ee8bfbdfa003030d0ac28653480a1de6eb..5d9200933c9e5adc418f3d028434188c77db3ac8 100644 (file)
@@ -4,10 +4,10 @@
 // This code is completely untested so far  -  IT NEEDS TESTERS!
 // Looks like it should work though ...
 
-$CFG->auth_imaphost   = "127.0.0.1";  // Should be IP number
+$CFG->auth_imaphost   = "202.0.185.16";  // Should be IP number
 $CFG->auth_imaptype   = "imap";   // imap, imapssl, imapcert
 $CFG->auth_imapport   = "143";        // 143, 993
-$CFG->auth_imapinfo   = "Just use the same username and password as your school email account";
+$CFG->auth_instructions = "Use the same username and password as your school email account";   // Instructions
 
 
 function auth_user_login ($username, $password) {
@@ -18,15 +18,15 @@ function auth_user_login ($username, $password) {
 
     switch ($CFG->auth_imaptype) {
         case "imapssl":
-            $host = "\{$CFG->auth_imaphost:$CFG->auth_imapport/imap/ssl}INBOX";
+            $host = "{".$CFG->auth_imaphost.":$CFG->auth_imapport/imap/ssl}INBOX";
         break;
 
         case "imapcert":
-            $host = "\{$CFG->auth_imaphost:$CFG->auth_imapport/imap/ssl/novalidate-cert}INBOX";
+            $host = "{".$CFG->auth_imaphost.":$CFG->auth_imapport/imap/ssl/novalidate-cert}INBOX";
         break;
 
         default:
-            $host = "\{$CFG->auth_imaphost:$CFG->auth_imapport}INBOX";
+            $host = "{".$CFG->auth_imaphost.":$CFG->auth_imapport}";
     }
 
     if ($connection = imap_open($host, $username, $password, OP_HALFOPEN)) {
index ee148dd543346f9ea8f01b332ab324eb86614a71..605fcaf5c6ff87718b0f2cd02bd9f18dc88ba008 100644 (file)
@@ -6,6 +6,7 @@
 
 $CFG->auth_nntphost   = "127.0.0.1";  // Should be IP number
 $CFG->auth_nntpport   = "119";        // 119 is most common
+$CFG->auth_instructions = "Use the same username and password as your school news account";   // Instructions
 
 
 function auth_user_login ($username, $password) {
@@ -14,7 +15,7 @@ function auth_user_login ($username, $password) {
 
     global $CFG;
 
-    $host = "{$CFG->auth_nntphost:$CFG->auth_nntpport/nntp}";
+    $host = "{".$CFG->auth_nntphost.":$CFG->auth_nntpport/nntp}";
 
     if ($connection = imap_open($host, $username, $password, OP_HALFOPEN)) {
         imap_close($connection);
index 6582c979c364f3946c93a33aea60ee50101ba198..9a04493d1549150a3b6a4b72e6042b648b107e92 100644 (file)
@@ -7,6 +7,7 @@
 $CFG->auth_pop3host   = "127.0.0.1";  // Should be IP number
 $CFG->auth_pop3type   = "pop3";       // pop3, pop3cert
 $CFG->auth_pop3port   = "110";        // 110 is most common
+$CFG->auth_instructions = "Use the same username and password as your school email account";   // Instructions
 
 
 function auth_user_login ($username, $password) {
@@ -17,10 +18,10 @@ function auth_user_login ($username, $password) {
 
     switch ($CFG->auth_pop3type) {
         case "pop3":
-            $host = "{$CFG->auth_pop3host:$CFG->auth_pop3port/pop3}INBOX";
+            $host = "{".$CFG->auth_pop3host.":$CFG->auth_pop3port/pop3}INBOX";
         break;
         case "pop3cert":
-            $host = "{$CFG->auth_pop3host:$CFG->auth_pop3port/pop3/ssl/novalidate-cert}INBOX";
+            $host = "{".$CFG->auth_pop3host.":$CFG->auth_pop3port/pop3/ssl/novalidate-cert}INBOX";
         break;
     }