Index: admin/cron.php
===================================================================
=== CLEAN UP "GHOST" MODULES (ICONS) IN IMPORTED COURSE WHO'S IMPORT
=== GOES BADLY
=== GHOSTS WILL DISAPPEAR WITHIN 25 MINUTES
===================================================================
RCS file: /cvsroot/moodle/moodle/admin/cron.php,v
retrieving revision 1.126.2.17
diff -u -r1.126.2.17 cron.php
--- admin/cron.php	26 Mar 2009 19:56:25 -0000	1.126.2.17
+++ admin/cron.php	19 Jun 2009 06:40:17 -0000
@@ -233,6 +233,10 @@
 
     if ($random100 < 20) {     // Approximately 20% of the time.
         mtrace("Running clean-up tasks...");
+	
+		/// clean up modules left over from bad import processing
+		$sql = "DELETE FROM `mdl_course_modules` WHERE instance=0";
+		execute_sql($sql, false);  
 
         /// Unenrol users who haven't logged in for $CFG->longtimenosee
 
Index: backup/backup_scheduled.php
===================================================================
=== USE IF COURSE BACKUPS ARE ENABLED 
=== CHECKS SIZE OF COURSE CONTENTS AND SKIPS IF LARGER THAN 1/2 GIG
=== OTHERWISE, LEFT ALONE COURSE BACKUP WILL TRY AND FAIL
=== USING UP A LOT OF TIME
===================================================================
RCS file: /cvsroot/moodle/moodle/backup/backup_scheduled.php,v
retrieving revision 1.38.2.4
diff -u -r1.38.2.4 backup_scheduled.php
--- backup/backup_scheduled.php	15 Dec 2008 21:28:02 -0000	1.38.2.4
+++ backup/backup_scheduled.php	19 Jun 2009 06:40:17 -0000
@@ -106,7 +106,14 @@
                     mtrace("            SKIPPING - hidden+unmodified");
                     set_field("backup_courses","laststatus","3","courseid",$backup_course->courseid);
                     $skipped = true;
-                }
+                } else {
+ 	                $space = get_directory_size("$CFG->dataroot/$course->id/");
+                    if( $space > 512000) {
+                        $skipped = true;
+                    set_field("backup_courses","laststatus","4","courseid",$backup_course->courseid);
+                        set_field("backup_courses","lastendtime",time(),"courseid",$backup_course->courseid);
+    	             }
+    	        }
                 //Now we backup every non skipped course with nextstarttime < now
                 if (!$skipped  && $backup_course->nextstarttime > 0 && $backup_course->nextstarttime < $now) {
                     //We have to send a email because we have included at least one backup
Index: course/category.php
===================================================================
=== MOVE SEARCH BOX FROM BOTTOM OF COURSE CATEGORIES PAGE 
=== TO TOP
===
===================================================================
RCS file: /cvsroot/moodle/moodle/course/category.php,v
retrieving revision 1.119.2.12
diff -u -r1.119.2.12 category.php
--- course/category.php	11 Dec 2008 09:21:53 -0000	1.119.2.12
+++ course/category.php	19 Jun 2009 06:40:17 -0000
@@ -254,6 +254,7 @@
         print_box_end();
 
     } else {
+	    print_course_search();
         print_paging_bar($totalcount, $page, $perpage, "category.php?id=$category->id&amp;perpage=$perpage&amp;");
 
         $strcourses = get_string('courses');
@@ -458,7 +459,6 @@
     }
     echo '</div>';
 
-    print_course_search();
 
     print_footer();
 
Index: course/index.php
===================================================================
=== SET COURSE SEARCH AT TOP OF COURSES PAGE
===
===
===================================================================
RCS file: /cvsroot/moodle/moodle/course/index.php,v
retrieving revision 1.89.2.13
diff -u -r1.89.2.13 index.php
--- course/index.php	20 Apr 2009 05:59:17 -0000	1.89.2.13
+++ course/index.php	19 Jun 2009 06:40:17 -0000
@@ -57,11 +57,11 @@
             $navigation = build_navigation($navlinks);
             print_header("$site->shortname: $strcategories", $strcourses, $navigation, '', '', true, update_category_button());
             print_heading($strcategories);
+            print_course_search();
             echo skip_main_destination();
             print_box_start('categorybox');
             print_whole_category_list();
             print_box_end();
-            print_course_search();
         } else {
             $strfulllistofcourses = get_string('fulllistofcourses');
             print_header("$site->shortname: $strfulllistofcourses", $strfulllistofcourses,
Index: enrol/database/enrol.php
===================================================================
=== PREVENT PURGING OF ENROLLMENTS FOR COURSES DROPPED OFF FROM 
=== EXTERNAL ENROLLMENT DATABASE
=== OTHERWISE YOU NEED TO CARRY ENROLLMENTS FOR ALL TERMS 
===================================================================
RCS file: /cvsroot/moodle/moodle/enrol/database/enrol.php,v
retrieving revision 1.42.2.5
diff -u -r1.42.2.5 enrol.php
--- enrol/database/enrol.php	27 Aug 2008 06:26:49 -0000	1.42.2.5
+++ enrol/database/enrol.php	19 Jun 2009 06:40:17 -0000
@@ -375,6 +375,7 @@
     // When the user logs in though, their role list will be updated
     // correctly.
     //
+/*
     if (!$CFG->enrol_db_disableunenrol) {
         $sql = "
             SELECT ra.roleid, ra.userid, ra.contextid
@@ -408,6 +409,7 @@
             rs_close($ers); // release the handle
         }
     }
+*/
 
     commit_sql();
 
Index: filter/tex/latex.php
===================================================================
=== FIXES BUG IN TEX FILTER
===
===
===================================================================
RCS file: /cvsroot/moodle/moodle/filter/tex/latex.php,v
retrieving revision 1.9.2.1
diff -u -r1.9.2.1 latex.php
--- filter/tex/latex.php	31 Mar 2009 10:23:53 -0000	1.9.2.1
+++ filter/tex/latex.php	19 Jun 2009 06:40:17 -0000
@@ -59,6 +59,11 @@
             } else {
                $doc .= "$ {$formula} $\n";
             }
+            ///////////////////////////////////////////
+			$doc = str_replace('&gt;','>',$doc);
+			$doc = str_replace('&lt;','<',$doc);
+			$doc = str_replace('&amp;','&',$doc);
+			$doc = str_replace('&nbsp;',' ',$doc); //////////////////////////////////////////////
             $doc .= "\\end{document}\n";
             return $doc;
         }
Index: lib/weblib.php
===================================================================
=== ALLOWS ASSIGNMENT MAXIMUM POINTS TO 250 
=== INSTEAD OF MAX OF 100
===
===================================================================
RCS file: /cvsroot/moodle/moodle/lib/weblib.php,v
retrieving revision 1.970.2.139
diff -u -r1.970.2.139 weblib.php
--- lib/weblib.php	9 Jun 2009 06:29:56 -0000	1.970.2.139
+++ lib/weblib.php	19 Jun 2009 06:40:18 -0000
@@ -5632,7 +5632,7 @@
     if ($includenograde) {
         $grades[0] = get_string('nograde');
     }
-    for ($i=100; $i>=1; $i--) {
+    for ($i=250; $i>=1; $i--) {
         $grades[$i] = $i;
     }
     $output .= choose_from_menu($grades, $name, $current, '', '', 0, true);
Index: lib/form/modgrade.php
===================================================================
=== ALLOWS ASSIGNMENT MAXIMUM POINTS TO 250 
=== INSTEAD OF MAX OF 100
=== SECOND FILE
===================================================================
RCS file: /cvsroot/moodle/moodle/lib/form/modgrade.php,v
retrieving revision 1.1.12.1
diff -u -r1.1.12.1 modgrade.php
--- lib/form/modgrade.php	8 Jun 2009 12:42:01 -0000	1.1.12.1
+++ lib/form/modgrade.php	19 Jun 2009 06:40:18 -0000
@@ -58,7 +58,7 @@
                 if (!$this->_hidenograde) {
                     $grades[0] = get_string('nograde');
                 }
-                for ($i=100; $i>=1; $i--) {
+                for ($i=250; $i>=1; $i--) {
                     $grades[$i] = $i;
                 }
                 $this->load($grades);
Index: login/index_form.html
===================================================================
=== USE IF FORCING LOGIN TO VIEW FRONT PAGE
=== REMOVE THE PASSWORD HELP FROM FRONT LOGIN PAGE
===
===================================================================
RCS file: /cvsroot/moodle/moodle/login/index_form.html,v
retrieving revision 1.50.2.1
diff -u -r1.50.2.1 index_form.html
--- login/index_form.html	23 Dec 2007 16:41:48 -0000	1.50.2.1
+++ login/index_form.html	19 Jun 2009 06:40:18 -0000
@@ -60,6 +60,7 @@
       </div>
 <?php } ?>
 
+<!--
       <div class="subcontent forgotsub">
         <div class="desc">
           <?php print_string("forgotten") ?>
@@ -72,6 +73,7 @@
         </form>
       </div>
      </div>
+-->
 <?php if ($show_instructions) { ?>
     <div class="signuppanel">
       <h2><?php print_string("firsttime") ?></h2>
Index: mod/assignment/lib.php
===================================================================
=== USE IF DON'T WANT ALL THOSE ASSIGNMENT POSTED NOTICES GOING 
=== TO TEACHERS (THEY CAN BE PRETTY EXHAUSTING)
=== PREVENTS ASSIGNMENT POSTING EMAILS
===================================================================
RCS file: /cvsroot/moodle/moodle/mod/assignment/lib.php,v
retrieving revision 1.277.2.47
diff -u -r1.277.2.47 lib.php
--- mod/assignment/lib.php	16 Feb 2009 13:09:01 -0000	1.277.2.47
+++ mod/assignment/lib.php	19 Jun 2009 06:40:18 -0000
@@ -2123,10 +2123,11 @@
             } else {
                 $posthtml = "";
             }
-
+/*
             if (! email_to_user($user, $teacher, $postsubject, $posttext, $posthtml)) {
                 echo "Error: assignment cron: Could not send out mail for id $submission->id to user $user->id ($user->email)\n";
             }
+*/
         }
 
         $USER = $realuser;
Index: mod/choice/report.php
===================================================================
=== ADDS THE CHOICE ID TO THE EXPORT (VERY USEFUL) ON A CHOICE ACTIV
===
===
===================================================================
RCS file: /cvsroot/moodle/moodle/mod/choice/report.php,v
retrieving revision 1.60.2.6
diff -u -r1.60.2.6 report.php
--- mod/choice/report.php	9 Feb 2009 09:26:47 -0000	1.60.2.6
+++ mod/choice/report.php	19 Jun 2009 06:40:18 -0000
@@ -172,7 +172,7 @@
 
         echo get_string("firstname")."\t".get_string("lastname") . "\t". get_string("idnumber") . "\t";
         echo get_string("group"). "\t";
-        echo get_string("choice","choice"). "\n";        
+        echo get_string("choice","choice"). "\t". "optionid". "\n";        
 
         /// generate the data for the body of the spreadsheet
         $i=0;  
@@ -195,7 +195,7 @@
                     }
                     echo $ug2. "\t";
                     if (isset($option_text)) {
-                        echo format_string($option_text,true);
+                        echo format_string($option_text,true). "\t". $option;
                     }
                     echo "\n";
                 }
Index: question/type/questiontype.php
===================================================================
=== EXPANDS FEEDBACK DISPLAY ON QUIZZES TO 512 CHARS FROM 80
===
===
===================================================================
RCS file: /cvsroot/moodle/moodle/question/type/questiontype.php,v
retrieving revision 1.74.2.25
diff -u -r1.74.2.25 questiontype.php
--- question/type/questiontype.php	1 Apr 2009 15:48:57 -0000	1.74.2.25
+++ question/type/questiontype.php	19 Jun 2009 06:40:18 -0000
@@ -1175,7 +1175,7 @@
     * @param object $state   The state whose responses are to be summarized
     * @param int $length     The maximum length of the returned string
     */
-    function response_summary($question, $state, $length=80) {
+    function response_summary($question, $state, $length=512) {
         // This should almost certainly be overridden
         $responses = $this->get_actual_response($question, $state);
         if (empty($responses) || !is_array($responses)) {
Index: theme/standard/styles_layout.css
===================================================================
=== FIRST HACK ALLOWS FOR PROPER PAGE PRINTING FROM FIREFOX
=== SECOND HACK MOVES THE QUIZ TIMER TO THE RIGHT SIDE WHERE 
=== IT DOESN'T INTERFERE WITH ANSWERING QUESTIONS
===================================================================
RCS file: /cvsroot/moodle/moodle/theme/standard/styles_layout.css,v
retrieving revision 1.516.2.79
diff -u -r1.516.2.79 styles_layout.css
--- theme/standard/styles_layout.css	8 May 2009 08:15:45 -0000	1.516.2.79
+++ theme/standard/styles_layout.css	19 Jun 2009 06:40:18 -0000
@@ -653,6 +653,9 @@
 }
 
 #header {
+  border-width: 1px!important;
+  border-style: solid!important;
+  border-color:#FFFFFF!important;
 }
 
 .headermain, h1.headermain {
@@ -3863,7 +3866,7 @@
 #mod-quiz-attempt #timer {
   position:absolute;
   /*top:100px; is set by js*/
-  left:10px
+  right:10px
 }
 
 body#question-preview .quemodname,
Index: user/editlib.php
===================================================================
=== 1ST SETS AJAX USE DEFAULT PER USER TO ON FOR NEW USERS 
=== 2ND PROVIDES FOR DEFAULT CITY (REQUIRED FIELD) EDIT THE CITY TO 
=== PROVIDE YOUR OWN DEFAULT
===================================================================
RCS file: /cvsroot/moodle/moodle/user/editlib.php,v
retrieving revision 1.11.2.10
diff -u -r1.11.2.10 editlib.php
--- user/editlib.php	5 Jul 2008 22:46:58 -0000	1.11.2.10
+++ user/editlib.php	19 Jun 2009 06:40:19 -0000
@@ -182,7 +182,7 @@
         $choices['0'] = get_string('ajaxno');
         $choices['1'] = get_string('ajaxyes');
         $mform->addElement('select', 'ajax', get_string('ajaxuse'), $choices);
-        $mform->setDefault('ajax', 0);
+        $mform->setDefault('ajax', 1);
         $mform->setAdvanced('ajax');
     }
 
@@ -195,6 +195,7 @@
 
     $mform->addElement('text', 'city', get_string('city'), 'maxlength="20" size="21"');
     $mform->setType('city', PARAM_MULTILANG);
+    $mform->setdefault('city', 'Decorah');
     $mform->addRule('city', $strrequired, 'required', null, 'client');
 
 
