Whoops! Just realised I never fully finished the deleteunconfirmed
authormoodler <moodler>
Tue, 16 Mar 2004 10:59:42 +0000 (10:59 +0000)
committermoodler <moodler>
Tue, 16 Mar 2004 10:59:42 +0000 (10:59 +0000)
feature!   All done now.

admin/config.html
admin/cron.php
lang/en/moodle.php
lib/defaults.php

index e6e3db38862a89c02d8c3a0cc9cd614a6da84110..7594621260df9f52e840c1b0d5184b0d0fefd90f 100644 (file)
     <?php print_string("configlongtimenosee") ?>
     </td>
 </tr>
+<tr valign=top>
+       <td align=right><p>deleteunconfirmed:</td>
+       <td>
+    <?php 
+       unset($options);
+       $options[0]    = get_string("never");
+       $options[168]  = get_string("numdays", "", 7);
+       $options[144]  = get_string("numdays", "", 6);
+       $options[120]  = get_string("numdays", "", 5);
+       $options[96]   = get_string("numdays", "", 4);
+       $options[72]   = get_string("numdays", "", 3);
+       $options[48]   = get_string("numdays", "", 2);
+       $options[24]   = get_string("numdays", "", 1);
+       $options[12]   = get_string("numhours", "", 12);
+       $options[6]    = get_string("numhours", "", 6);
+       $options[1]    = get_string("numhours", "", 1);
+
+       choose_from_menu ($options, "deleteunconfirmed", $config->deleteunconfirmed, "", "", "");
+    ?>
+    </td>
+    <td>
+    <?php print_string("configdeleteunconfirmed") ?>
+    </td>
+</tr>
 <tr valign=top>
        <td align=right><p>loglifetime:</td>
        <td>
index 3d05cf129420119a117ce5592893c5957a673239..6fbae20ff165bb6dead4cdbcc4cce70ea3fd7fce 100644 (file)
         }
     
     
-        /// Delete users who haven't confirmed within seven days
+        /// Delete users who haven't confirmed within required period
 
-        if (empty($CFG->deleteunconfirmed)) { // value in hours
-            $CFG->deleteunconfirmed = 168;  
-        }
-    
         $oneweek = $timenow - ($CFG->deleteunconfirmed * 3600);
         if ($users = get_users_unconfirmed($oneweek)) {
             foreach ($users as $user) {
index cf132b34afbaf00394686cb8e8040a5734866cbb..edcdeab15f4ee4abbebc4d9ce3303ef41573e81b 100644 (file)
@@ -67,6 +67,7 @@ $string['allparticipants'] = 'All participants';
 $string['alphabet'] = 'A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z';
 $string['alphanumerical'] = 'Can only contain alphabetical letters or numbers';
 $string['alreadyconfirmed'] = 'Registration has already been confirmed';
+$string['always'] = 'Always';
 $string['answer'] = 'Answer';
 $string['areyousuretorestorethis'] = 'Do you want to continue?';
 $string['areyousuretorestorethisinfo'] = 'Later in this process you will have a choice of adding this backup to an existing course or creating a completely new course.';
@@ -130,6 +131,7 @@ $string['configallowunenroll'] = 'If this is set \'Yes\', then students are allo
 $string['configcachetext'] = 'For larger sites or sites that use text filters, this setting can really speed things up.  Copies of texts will be retained in their processed form for the time specified here.  Setting this too small may actually slow things down slightly,  but setting it too large may mean texts take too long to refresh (with new links, for example).';
 $string['configcountry'] = 'If you set a country here, then this country will be selected by default on new user accounts.  To force users to choose a country, just leave this unset.';
 $string['configdebug'] = 'If you turn this on, then PHP\'s error_reporting will be increased so that more warnings are printed.  This is only useful for developers.';
+$string['configdeleteunconfirmed'] = 'If you are using email authentication, this is the period within which a response will be accepted from users.  After this period, old unconfirmed accounts are deleted.';
 $string['configerrorlevel'] = 'Choose the amount of PHP warnings that you want to be displayed.  Normal is usually the best choice.';
 $string['configfilteruploadedfiles'] = 'Enabling this setting will cause Moodle to process all uploaded HTML and text files with the filters before displaying them.';
 $string['configforcelogin'] = 'Normally, the front page of the site and the course listings (but not courses) can be read by people without logging in to the site.  If you want to force people to log in before they do ANYTHING on the site, then you should enable this setting.';
index cb581f24f14409664c1c98f3fd61df552dd08745..18b15eb8b1aece4dc86b081e883ad363e38f8e22 100644 (file)
@@ -10,6 +10,7 @@
        "changepassword"   =>  true,
        "country"          => "",
        "debug"            =>  7,
+       "deleteunconfirmed" => 168,
        "filteruploadedfiles"  =>  true,
        "forcelogin"       =>  false,
        "fullnamedisplay"  => "firstname lastname",