]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trail...
authorPetr Skoda <skodak@moodle.org>
Sun, 1 Nov 2009 10:57:00 +0000 (10:57 +0000)
committerPetr Skoda <skodak@moodle.org>
Sun, 1 Nov 2009 10:57:00 +0000 (10:57 +0000)
41 files changed:
admin/auth.php
admin/auth_config.php
admin/block.php
admin/blocks.php
admin/bloglevelupgrade.php
admin/cron.php
admin/dbtransfer/index.php
admin/delete.php
admin/enrol.php
admin/enrol_config.php
admin/environment.php
admin/filters.php
admin/generator.php
admin/handlevirus.php
admin/health.php
admin/innodb.php
admin/lang.php
admin/langimport.php
admin/mailout-debugger.php
admin/mnet/mnet_services.html
admin/mnet/mnet_themes.html
admin/mnet/trustedhosts.html
admin/modules.php
admin/multilangupgrade.php
admin/oacleanup.php
admin/phpinfo.php
admin/portfolio.php
admin/process_email.php
admin/qtypes.php
admin/register.php
admin/replace.php
admin/search.php
admin/settings.php
admin/timezone.php
admin/timezoneimport.php
admin/upgradesettings.php
admin/uploadpicture.php
admin/uploadpicture_form.php
admin/uploaduser.php
admin/uploaduser_form.php
admin/user.php

index fe3d6108278e177891c50151a1225de43ca4a525..bed2282177b7e21a794663bf631aee5226a6379b 100644 (file)
@@ -100,4 +100,4 @@ switch ($action) {
 
 redirect ($returnurl);
 
-?>
+
index 369365bd25727b74cbf3659682b362ff7c530acc..fe379912556f74e20f149c1f0ae5dff3776887cf 100644 (file)
@@ -136,7 +136,7 @@ function print_auth_lock_options ($auth, $user_fields, $helptext, $retrieveopts,
             $fieldname = get_string('webpage');
         } else {
             $fieldname = get_string($fieldname);
-        } 
+        }
         if ($retrieveopts) {
             $varname = 'field_map_' . $field;
 
index 6c5252dfd557896575c3b528c0b6dd560b3ff8b2..b5243bde330edfe6fc76ad8d19cdef59ca9dfc19 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php
 
 // block.php - allows admin to edit all local configuration variables for a block
 
@@ -73,4 +73,4 @@
     echo '</form>';
     echo $OUTPUT->footer();
 
-?>
+
index f6acc1a44b544e6dbe22410c49cea574a7a25664..d75e698a2f33122d8ee1262e93cafc44f79fb8a0 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php
 
     // Allows the admin to configure blocks (hide/show, delete and configure)
 
 
     echo $OUTPUT->footer();
 
-?>
+
index ba3b52cb6c2c555ebd48eb1a0ed2351b0754da47..7d2c9e486447c2a9d570add5d84f643f5e45b138 100644 (file)
@@ -1,4 +1,4 @@
-<?php /// $Id$
+<?php
       /// Create "blog" forums in each course and copy blog entries from these courses' participants in these forums
 
 require_once('../config.php');
index 4f926725e68127ed148b588b5bfc25f2864d9080..345046ab7d844f2e5744cebe0d53ed76a394450d 100644 (file)
@@ -9,7 +9,7 @@
 /// version of PHP compiled for CGI.
 ///
 /// eg   wget -q -O /dev/null 'http://moodle.somewhere.edu/admin/cron.php'
-/// or   php /web/moodle/admin/cron.php 
+/// or   php /web/moodle/admin/cron.php
     set_time_limit(0);
     $starttime = microtime();
 
@@ -41,7 +41,7 @@
 
 /// check if execution allowed
     if (isset($_SERVER['REMOTE_ADDR'])) { // if the script is accessed via the web.
-        if (!empty($CFG->cronclionly)) { 
+        if (!empty($CFG->cronclionly)) {
             // This script can only be run via the cli.
             print_error('cronerrorclionly', 'admin');
             exit;
@@ -51,7 +51,7 @@
             $pass = optional_param('password', '', PARAM_RAW);
             if($pass != $CFG->cronremotepassword) {
                 // wrong password.
-                print_error('cronerrorpassword', 'admin'); 
+                print_error('cronerrorpassword', 'admin');
                 exit;
             }
         }
             if (file_exists($blockfile)) {
                 require_once($blockfile);
                 $classname = 'block_'.$block->name;
-                $blockobj = new $classname; 
+                $blockobj = new $classname;
                 if (method_exists($blockobj,'cron')) {
                     mtrace("Processing cron function for ".$block->name.'....','');
                     if ($blockobj->cron()) {
         }
     }
     mtrace("Finished quiz reports");
-    
+
     mtrace('Starting admin reports');
     // Admin reports do not have a database table that lists them. Instead a
     // report includes cron.php with function report_reportname_cron() if it wishes
     }
 
 /// Run all core cron jobs, but not every time since they aren't too important.
-/// These don't have a timer to reduce load, so we'll use a random number 
+/// These don't have a timer to reduce load, so we'll use a random number
 /// to randomly choose the percentage of times we should run these jobs.
 
     srand ((double) microtime() * 10000000);
         mtrace('Synchronised metacourses');
 
         //
-        // generate new password emails for users 
+        // generate new password emails for users
         //
         mtrace('checking for create_password');
         if ($DB->count_records('user_preferences', array('name'=>'create_password', 'value'=>'1'))) {
             mtrace('creating passwords for new users');
-            $newusers = $DB->get_records_sql("SELECT u.id as id, u.email, u.firstname, 
+            $newusers = $DB->get_records_sql("SELECT u.id as id, u.email, u.firstname,
                                                      u.lastname, u.username,
-                                                     p.id as prefid 
-                                                FROM {user} u 
+                                                     p.id as prefid
+                                                FROM {user} u
                                                 JOIN {user_preferences} p ON u.id=p.userid
                                                WHERE p.name='create_password' AND p.value='1' AND u.email !='' ");
 
             foreach ($newusers as $newuserid => $newuser) {
                 $newuser->emailstop = 0; // send email regardless
-                // email user                               
+                // email user
                 if (setnew_password_and_mail($newuser)) {
                     // remove user pref
                     $DB->delete_records('user_preferences', array('id'=>$newuser->prefid));
                 }
             }
         }
-        
+
         if (!empty($CFG->usetags)) {
             require_once($CFG->dirroot.'/tag/lib.php');
             tag_cron();
             mtrace ('Executed tag cron');
         }
-        
+
         // Accesslib stuff
         cleanup_contexts();
         mtrace ('Cleaned up contexts');
         gc_cache_flags();
         mtrace ('Cleaned cache flags');
         // If you suspect that the context paths are somehow corrupt
-        // replace the line below with: build_context_path(true); 
+        // replace the line below with: build_context_path(true);
         build_context_path();
         mtrace ('Built context paths');
 
         @set_time_limit(0);
         @raise_memory_limit("192M");
         if (function_exists('apache_child_terminate')) {
-            // if we are running from Apache, give httpd a hint that 
-            // it can recycle the process after it's done. Apache's 
+            // if we are running from Apache, give httpd a hint that
+            // it can recycle the process after it's done. Apache's
             // memory management is truly awful but we can help it.
             @apache_child_terminate();
         }
             include_once("$CFG->dirroot/backup/backuplib.php");
             include_once("$CFG->dirroot/backup/lib.php");
             mtrace("Running backups if required...");
-    
+
             if (! schedule_backup_cron()) {
                 mtrace("ERROR: Something went wrong while performing backup tasks!!!");
             } else {
 
     // run gradebook import/export/report cron
     if ($gradeimports = get_plugin_list('gradeimport')) {
-        foreach ($gradeimports as $gradeimport => $plugindir) {           
+        foreach ($gradeimports as $gradeimport => $plugindir) {
             if (file_exists($plugindir.'/lib.php')) {
                 require_once($plugindir.'/lib.php');
-                $cron_function = 'grade_import_'.$gradeimport.'_cron';                                    
+                $cron_function = 'grade_import_'.$gradeimport.'_cron';
                 if (function_exists($cron_function)) {
                     mtrace("Processing gradebook import function $cron_function ...", '');
-                    $cron_function;  
+                    $cron_function;
                 }
             }
-        }      
+        }
     }
 
     if ($gradeexports = get_plugin_list('gradeexport')) {
-        foreach ($gradeexports as $gradeexport => $plugindir) {           
+        foreach ($gradeexports as $gradeexport => $plugindir) {
             if (file_exists($plugindir.'/lib.php')) {
                 require_once($plugindir.'/lib.php');
-                $cron_function = 'grade_export_'.$gradeexport.'_cron';                                    
+                $cron_function = 'grade_export_'.$gradeexport.'_cron';
                 if (function_exists($cron_function)) {
                     mtrace("Processing gradebook export function $cron_function ...", '');
-                    $cron_function;  
+                    $cron_function;
                 }
             }
         }
     }
 
     if ($gradereports = get_plugin_list('gradereport')) {
-        foreach ($gradereports as $gradereport => $plugindir) {           
+        foreach ($gradereports as $gradereport => $plugindir) {
             if (file_exists($plugindir.'/lib.php')) {
                 require_once($plugindir.'/lib.php');
-                $cron_function = 'grade_report_'.$gradereport.'_cron';                                    
+                $cron_function = 'grade_report_'.$gradereport.'_cron';
                 if (function_exists($cron_function)) {
                     mtrace("Processing gradebook report function $cron_function ...", '');
-                    $cron_function;  
+                    $cron_function;
                 }
             }
         }
     }
-    
+
     // Run external blog cron if needed
     if ($CFG->useexternalblogs) {
         require_once($CFG->dirroot . '/blog/lib.php');
         mtrace("Fetching external blog entries...", '');
         $sql = "timefetched < ? - ? OR timefetched = 0";
         $externalblogs = $DB->get_records_select('blog_external', $sql, array(mktime(), $CFG->externalblogcrontime));
-        
+
         foreach ($external_blogs as $eb) {
             blog_sync_external_entries($eb);
         }
     mtrace("Cron script completed correctly");
 
     $difftime = microtime_diff($starttime, microtime());
-    mtrace("Execution took ".$difftime." seconds"); 
+    mtrace("Execution took ".$difftime." seconds");
 
 /// finish the IE hack
     if (check_browser_version('MSIE')) {
index 59920a0b9e56d0dfd0b49ad1e249de66cb1d7509..a3d61545e36476d4b505d0ac4d49bc4b8dce18e7 100644 (file)
@@ -19,7 +19,7 @@ if ($data = $form->get_data()) {
         throw new dbtransfer_exception('notargetconectexception', null, "$CFG->wwwroot/$CFG->admin/dbtransfer/");
     }
     if ($targetdb->get_tables()) {
-        throw new dbtransfer_exception('targetdatabasenotempty', null, "$CFG->wwwroot/$CFG->admin/dbtransfer/"); 
+        throw new dbtransfer_exception('targetdatabasenotempty', null, "$CFG->wwwroot/$CFG->admin/dbtransfer/");
     }
 
     // Start output.
index 36a7afa68b4537dd08a07d23e1a0ff53aec0e53c..d025c8b841ec1b6d30febdcb07ea9ce1724d1c86 100644 (file)
@@ -22,7 +22,7 @@
 
     if (empty($sure)) {
         $optionsyes = array('sure'=>'yes', 'sesskey'=>sesskey());
-        
+
         $formcontinue = html_form::make_button('delete.php', $optionsyes, get_string('yes'));
         $formcancel = html_form::make_button('index.php', null, get_string('no'), 'get');
         echo $OUTPUT->confirm('Are you completely sure you want to delete everything inside the directory '. $deletedir .' ?', $formcontinue, $formcancel);
@@ -34,8 +34,8 @@
         $optionsyes = array('sure'=>'yes', 'sesskey'=>sesskey(), 'reallysure'=>'yes');
         $formcontinue = html_form::make_button('delete.php', $optionsyes, get_string('yes'));
         $formcancel = html_form::make_button('index.php', null, get_string('no'), 'get');
-        echo $OUTPUT->confirm('Are you REALLY REALLY completely sure you want to delete everything inside the directory '. 
-                $deletedir .' (this includes all user images, and any other course files that have been created) ?', 
+        echo $OUTPUT->confirm('Are you REALLY REALLY completely sure you want to delete everything inside the directory '.
+                $deletedir .' (this includes all user images, and any other course files that have been created) ?',
                 $formcontinue, $formcancel);
         echo $OUTPUT->footer();
         exit;
index 889ef777a57eefefbe8f029955afc3e592b59381..00562e190d70cfac5fb21e20a00d758b88665631 100644 (file)
     echo '<input type="hidden" name="savesettings" value="1" />';
     echo '<fieldset>';
     echo '<div class="form-item clearfix" id="admin-sendcoursewelcomemessage">';
-    
+
     echo '<div class="form-label"><label for = "menusendcoursewelcomemessage">' . get_string('sendcoursewelcomemessage', 'admin');
     echo '<span class="form-shortname">sendcoursewelcomemessage</span>';
     echo '</label></div>';
index b3a9e4ee9b9415148e67852007b01e899561b1e6..c13b8ea55d17d9a407fd1b08c658973ec16791c1 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php
        // enrol_config.php - allows admin to edit all enrollment variables
        //                    Yes, enrol is correct English spelling.
 
@@ -67,4 +67,4 @@
     echo $OUTPUT->footer();
 
     exit;
-?>
+
index d057df449c39bde6180c4cc412046a7492c5cc93..6e0873fd9964191d6c52cbecc09e7b288a2640cf 100644 (file)
@@ -62,8 +62,8 @@
 /// Handle the 'updatecomponent' action
     if ($action == 'updatecomponent' && confirm_sesskey()) {
     /// Create component installer and execute it
-        if ($cd = new component_installer('http://download.moodle.org', 
-                                          'environment', 
+        if ($cd = new component_installer('http://download.moodle.org',
+                                          'environment',
                                           'environment.zip')) {
             $status = $cd->install(); //returns COMPONENT_(ERROR | UPTODATE | INSTALLED)
             switch ($status) {
index 6489ee0b21953c8300d00c5106196ce52058bca6..763adffe37b58bc910ddd65704e6145897b34a9f 100644 (file)
             $title = get_string('deletefilterareyousure', 'admin', $filtername);
             admin_externalpage_print_header();
             echo $OUTPUT->heading($title);
-            
+
             $linkcontinue = new moodle_url($returnurl, array('action' => 'delete', 'filterpath' => $filterpath, 'confirm' => 1));
             $formcancel = html_form::make_button($returnurl, null, get_string('no'), 'get');
             echo $OUTPUT->confirm(get_string('deletefilterareyousuremessage', 'admin', $filtername), $linkcontinue, $formcancel);
index 333848b6999f6c843dc9850727d5baf7f65f8c19..d743cd295e9ea0e2d1caf4e8485b5bf7aac983d7 100755 (executable)
@@ -75,7 +75,7 @@ class generator {
         global $CFG;
 
         $this->starttime = time()+microtime();
-        
+
         $arguments = array(
              array('short'=>'u', 'long'=>'username',
                    'help' => 'Your moodle username', 'type'=>'STRING', 'default' => ''),
index 5dff5e517b537a7d0cff3d7190197a79f0809e49..c84428077e40adc8f9a8475e677b72ef7f17cf40 100644 (file)
@@ -86,7 +86,7 @@ function notify_admins($user,$subject,$a) {
         $eventdata->fullmessage       = $body;
         $eventdata->fullmessageformat = FORMAT_PLAIN;
         $eventdata->fullmessagehtml   = '';
-        $eventdata->smallmessage      = '';                    
+        $eventdata->smallmessage      = '';
         events_trigger('message_send', $eventdata);
     }
 }
index 8a3b8b32b43cbb20a37ad27b6e9e4419812b8a8b..77d1471ce6afce266ad018cace2d8ec8a1058789 100644 (file)
@@ -533,7 +533,7 @@ class problem_000013 extends problem_base {
     }
     function exists() {
         global $DB;
-        $positionexpr = $DB->sql_position($DB->sql_concat("','", "q.id", "','"), 
+        $positionexpr = $DB->sql_position($DB->sql_concat("','", "q.id", "','"),
                 $DB->sql_concat("','", "qma.sequence", "','"));
         return $DB->record_exists_sql("
                 SELECT * FROM {question} q
index a504f83c9f781588b898d6127e11dc4d3c0beda4..c1dda3c672fa14c7e06fd05d651540c49133503f 100644 (file)
@@ -42,4 +42,4 @@
         echo $OUTPUT->footer();
     }
 
-?>
+
index 0d642d3ae4674ff13eb7936b3ce80a9a7e336852..25f6312c61dd44f7c6897986937984377f78af07 100644 (file)
                 if ($preview_url) {
                     $link = html_link::make($preview_url, get_string('preview'));
                     $link->add_action(new popup_action('click', $link->url));
-                    echo $OUTPUT->link($link);                    
+                    echo $OUTPUT->link($link);
                 }
                 echo '</fieldset>';
             }
                 if ($preview_url) {
                     $link = html_link::make($preview_url, get_string('preview'));
                     $link->add_action(new popup_action('click', $link->url));
-                    echo $OUTPUT->link($link);                    
+                    echo $OUTPUT->link($link);
                 }
                 echo '</fieldset>';
             }
                 if ($preview_url) {
                     $link = html_link::make($preview_url, get_string('preview'));
                     $link->add_action(new popup_action('click', $link->url));
-                    echo $OUTPUT->link($link);                    
+                    echo $OUTPUT->link($link);
                 }
                 echo '</fieldset>';
             }
index 34aaad421fa14a16a06d6c1418a8b4e0aa4ec444..732f1790106a9a0d5e49ca8c930ec717fcb8c706 100755 (executable)
@@ -1,4 +1,4 @@
-<?php //$Id$
+<?php
 ///This file only manages the installation of 1.6 lang packs.
 ///in downloads.moodle.org, they are store in separate directory /lang16
 ///in local server, they are stored in $CFG->dataroot/lang
             return false;
         }
     }
-?>
+
index ce7c1918bbac30dcdc0be6de6dd6ad829e2054f8..97a2f91d5811f62ea39128b5e25e7b1a23445711 100644 (file)
@@ -22,7 +22,7 @@
    * - Run your admin/cron.php
    *
    * - Read /tmp/moodle-mailout.log
-   *   
+   *
    *
    * This script will create logfiles in /tmp/ or in $TMPDIR if set.
    * On windows, use php -r 'print sys_get_temp_dir()' to see where the file is saved.
index dd7063f8bc1da5f8595fb601207c4d8ffdc35b53..3f23bafb2f64d516f8dfbe1f24beb1b6a6f6115c 100644 (file)
@@ -24,7 +24,7 @@ echo $OUTPUT->box_start();
 <input type="hidden" name="step" value="<?php echo $mnet_peer->nextstep; ?>" />
 <input type="hidden" name="hostid" value="<?php echo ($mnet_peer->id)?  $mnet_peer->id : '0' ; ?>" />
 <table cellpadding="9" cellspacing="0" >
-<?php 
+<?php
     foreach($myservices as $name => $versions) {
     $version = current($versions);
 ?>
@@ -40,7 +40,7 @@ echo $OUTPUT->box_start();
             } else {
                 $versionstring = '';
             }
-    
+
             echo $breakstring;
 ?>
     <input type="hidden" name="exists[<?php echo  $version['serviceid']; ?>]" value="1" />
@@ -48,29 +48,29 @@ echo $OUTPUT->box_start();
     <input type="hidden" name="publish[<?php echo $version['serviceid']; ?>]" value="0" />
 <?php } else { ?>
     <input type="checkbox" name="publish[<?php echo $version['serviceid']; ?>]" <?php echo (!empty($version['I_publish']))? 'checked="checked" ': '' ; ?>/>
-<?php 
+<?php
             print_string('publish','mnet');
-            echo $versionstring; 
-            if (!empty($version['hostsubscribes'])) { 
-                echo '<a href="#" title="'.get_string('issubscribed','mnet', $mnet_peer->name).'">&radic;</a> '; 
+            echo $versionstring;
+            if (!empty($version['hostsubscribes'])) {
+                echo '<a href="#" title="'.get_string('issubscribed','mnet', $mnet_peer->name).'">&radic;</a> ';
             }
-            if (!empty($version['allhosts_publish'])) { 
+            if (!empty($version['allhosts_publish'])) {
                 print_string("enabled_for_all",'mnet',!empty($version['I_publish']));
-            } 
+            }
             echo '<br />';
 } ?>
     <input type="checkbox" name="subscribe[<?php echo $version['serviceid']; ?>]" <?php echo (!empty($version['I_subscribe']))? 'checked="checked" ': '' ; ?>/>
-<?php 
+<?php
             print_string('subscribe','mnet');
-            echo $versionstring; 
-            if (!empty($version['hostpublishes'])) { 
+            echo $versionstring;
+            if (!empty($version['hostpublishes'])) {
                 echo '<a href="#" title="'.get_string('ispublished','mnet', $mnet_peer->name).'">&radic;</a> ';
-            } 
+            }
             if (!empty($version['allhosts_subscribe'])) {
                 print_string("enabled_for_all",'mnet',!empty($version['I_subscribe']));
             }
-            
-            echo '<br />';  
+
+            echo '<br />';
             $breakstring = '. . . . . . . . . . . . . . . . . . . . . . . . <br>';
         } // end foreach
 ?>
index 01859dd6b6b46584a53f93741ab855fd8bdb0721..291dbc30858641c854ede9f0944610ccdcb27d7c 100644 (file)
@@ -13,7 +13,7 @@ $tabs[] = new tabobject('mnetservices', 'mnet_services.php?step=list&amp;hostid=
 $tabs[] = new tabobject('mnetthemes', 'mnet_themes.php?step=list&amp;hostid='.$mnet_peer->id, $strmnetthemes, $strmnetthemes, false);
 if ($mnet_peer->id != $CFG->mnet_all_hosts_id) {
     $tabs[] = new tabobject('mnetlog', $logurl, $strmnetlog, $strmnetlog, false);
-} 
+}
 
 print_tabs(array($tabs), 'mnetthemes');
 
@@ -69,12 +69,12 @@ print_tabs(array($tabs), 'mnetthemes');
             $readme =  '<li>'.
             $link = html_link::make($CFG->themewww .'/'. $theme .'/README.html', $strinfo);
             $link->add_action(new popup_action('click', $link->url, $theme, array('height' => 400, 'width' => 500)));
-            echo $OUTPUT->link($link);                    
+            echo $OUTPUT->link($link);
         } else if (file_exists($CFG->themedir.'/'.$theme.'/README.txt')) {
             $readme =  '<li>'.
             $link = html_link::make($CFG->themewww .'/'. $theme .'/README.txt', $strinfo);
             $link->add_action(new popup_action('click', $link->url, $theme, array('height' => 400, 'width' => 500)));
-            echo $OUTPUT->link($link);                    
+            echo $OUTPUT->link($link);
         }
         if (file_exists("$theme/screenshot.png")) {
             $screenshotpath = "$theme/screenshot.png";
index 021e819a1a1f0c154409fbba8523ae19d598f660..3cf6032b8f3768a82f9ca4129eee8f847bf9f75a 100644 (file)
@@ -25,7 +25,7 @@ admin_externalpage_print_header();
     <tr>
         <th class="header c0" colspan="2"><?php print_string('testtrustedhosts', 'mnet'); ?></th>
     </tr>
-<?php 
+<?php
     if (!empty($test_ip_address)){
 ?>
     <tr>
@@ -48,7 +48,7 @@ admin_externalpage_print_header();
         <td class="cell c1" colspan="2"><?php print_string('testtrustedhostsexplain', 'mnet'); ?></td>
     </tr>
 <?php
-   } 
+   }
 ?>
     <tr>
         <td class="cell c1" colspan="2">
index c915e1d76c4255de20521cd386efe0e4594495c5..20e8d6ce3a2bcecd910e4a002484ce62dcbf6c4e 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php
       // Allows the admin to manage activity modules
 
     require_once('../config.php');
 
     echo $OUTPUT->footer();
 
-?>
+
index 801c8b058501daf9cf23632d42c9c960c4666b47..bb1e958a4f4d82ae341a5feabc56ec50c155bd17 100644 (file)
@@ -1,4 +1,4 @@
-<?php /// $Id$
+<?php
       /// Search and replace strings throughout all texts in the whole database
 
 require_once('../config.php');
@@ -115,4 +115,4 @@ function multilangupgrade_impl($langblock) {
     }
     return $return;
 }
-?>
+
index 30b5aa1c89f4d5ce54f2aead1c98c6b199d047ce..d05b18f13f47484def623d2f451365ec12d23df5 100644 (file)
@@ -77,7 +77,7 @@ function online_assignment_cleanup($output=false) {
                               FROM  {course_modules} cm, {assignment} a
                              WHERE cm.id = ? AND cm.module = ? AND
                                    cm.instance = a.id AND a.assignmenttype = 'online'";
-                    $params = array($instance, $aid); 
+                    $params = array($instance, $aid);
 
                     /// if record exists then we need to move instance to it's correct section
                     if ($DB->record_exists_sql($sql, $params)) {
index 257433783cd8e64000ce3d75ded793af562495c8..447fe529e26ba698c0a2a440752899b6ac2f9aa1 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php
        // phpinfo.php - shows phpinfo for the current server
 
     require_once("../config.php");
@@ -30,4 +30,4 @@
 
     echo $OUTPUT->footer();
 
-?>
+
index 3dcdc2ef1d996dcd91b48e7ec6a3104ba489aabc..23cc2a7d19f8396d0896421e611c4ccbe70edb38 100644 (file)
@@ -111,4 +111,4 @@ if (!empty($return)) {
     redirect($baseurl);
 }
 echo $OUTPUT->footer();
-?>
+
index c8b63ac9c1d69bc944861241a5db1b877100fb2c..53f8483d1cf155b25280b096e2a2ae65e033c8ec 100755 (executable)
@@ -15,11 +15,11 @@ if ($_ENV['RECIPIENT'] == $CFG->noreplyaddress) {
     if (!validate_email($user->email)) {
         die();
     }
-    
+
     $site = get_site();
     $subject = get_string('noreplybouncesubject','moodle',format_string($site->fullname));
     $body = get_string('noreplybouncemessage','moodle',format_string($site->fullname))."\n\n";
-    
+
     $fd = fopen('php://stdin','r');
     if ($fd) {
         while(!feof($fd)) {
@@ -27,14 +27,14 @@ if ($_ENV['RECIPIENT'] == $CFG->noreplyaddress) {
         }
         fclose($fd);
     }
-    
+
     $user->id = 0; // to prevent anything annoying happening
-    
+
     $from->firstname = null;
     $from->lastname = null;
     $from->email = '<>';
     $from->maildisplay = true;
-    
+
     email_to_user($user,$from,$subject,$body);
     die ();
 }
@@ -60,7 +60,7 @@ else {
 $function = $modname.'_process_email';
 
 if (!function_exists($function)) {
-    die(); 
+    die();
 }
 $fd = fopen('php://stdin','r');
 if (!$fd) {
@@ -71,7 +71,7 @@ while(!feof($fd)) {
     $body .= fgets($fd);
 }
 
-$function($modargs,$body); 
+$function($modargs,$body);
 
 fclose($fd);
 
index 4e2ff7984804fb8d5a5218af8dcd3f57e7b8d7eb..f09612a02609234ec8b918d8e4c514dd3fcf2f7e 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php
 // Allows the admin to manage question types.
 
     require_once(dirname(__FILE__) . '/../config.php');
@@ -286,4 +286,4 @@ function icon_html($action, $qtypename, $icon, $alt, $tip) {
     $html .= '</div></form>';
     return $html;
 }
-?>
+
index d328045400fd95161d7ecb6f2809cbd96f6be4ac..9f1b293557f89fa1ff7bf5fb9d94328649caee92 100644 (file)
@@ -1,4 +1,4 @@
-<?php  // $Id$
+<?php
        // register.php - allows admin to register their site on moodle.org
 
     require_once('../config.php');
index 418acb4c19faa410efe7641bf98622bb2bd90220..b6e782e7018879282b199ef4eef49ab0fa80b93a 100644 (file)
@@ -1,4 +1,4 @@
-<?php /// $Id$
+<?php
       /// Search and replace strings throughout all texts in the whole database
 
 require_once('../config.php');
@@ -59,4 +59,4 @@ echo $OUTPUT->continue_button('index.php');
 
 echo $OUTPUT->footer();
 
-?>
+
index 11d0a76b0b0f4b8a9b856e167fedfbde6cc38859..57bd730f38cdcfdecf2bf504b88ebf8eaeedd522 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 // searches for admin settings
 
@@ -62,4 +62,4 @@ echo '</form>';
 
 echo $OUTPUT->footer();
 
-?>
+
index d9b289a9a0729b065284c363b897adfed1725747..10b9f6b727a6e4c17b1d04f927043940dd05d5c6 100644 (file)
@@ -61,7 +61,7 @@ $PAGE->set_focuscontrol($focus);
 if (empty($SITE->fullname)) {
     $PAGE->set_title($settingspage->visiblename);
     $PAGE->set_heading($settingspage->visiblename);
-    
+
     echo $OUTPUT->header();
     echo $OUTPUT->box(get_string('configintrosite', 'admin'));
 
index 3c7bf1c6ab2975367aa9af9251d6807becd587d4..7068d57d3dd039d54cc68dddb917a568b3553747 100644 (file)
@@ -7,7 +7,7 @@
     if (!is_numeric($zone)) {
          //not a path, but it looks like it anyway
          $zone = clean_param($zone, PARAM_PATH);
-    }    
+    }
 
     require_login();
 
@@ -23,7 +23,7 @@
     $PAGE->set_heading($strtimezone);
     $PAGE->navbar->add($strtimezone);
     echo $OUTPUT->header();
-    
+
     echo $OUTPUT->heading("");
 
     if (data_submitted() and !empty($zone) and confirm_sesskey()) {
index 264b6de334957f2a5bda70458edf87fc0379ad7c..b61c68140c4eccb619a1c21b22be85c9994b1507 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 
     // Automatic update of Timezones from a new source
-    
+
     require_once('../config.php');
     require_once($CFG->libdir.'/adminlib.php');
     require_once($CFG->libdir.'/filelib.php');
     require_once($CFG->libdir.'/olson.php');
-    
+
     admin_externalpage_setup('timezoneimport');
 
     $ok = optional_param('ok', 0, PARAM_BOOL);
index e1a829f317391a61cd067c23f7c700e47fe604db..4a800a4851352c1f8fa9b3e5be6a2d59a5ba55dd 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 // detects settings that were added during an upgrade, displays a screen for the admin to
 // modify them, and then processes modifications
@@ -68,4 +68,4 @@ echo '</form>';
 
 echo $OUTPUT->footer();
 
-?>
+
index 5dada3f5509644da089ba5eaf6cfc98b19e44a5e..85fe9e095d36a7000b7787b2afc40f087285c8fb 100644 (file)
@@ -28,8 +28,8 @@ require_once('uploadpicture_form.php');
 
 define ('PIX_FILE_UPDATED', 0);
 define ('PIX_FILE_ERROR',   1);
-define ('PIX_FILE_SKIPPED', 2);    
-    
+define ('PIX_FILE_SKIPPED', 2);
+
 admin_externalpage_setup('uploadpictures');
 
 require_login();
@@ -76,12 +76,12 @@ if ($formdata = $mform->get_data()) {
         if (function_exists('apache_child_terminate')) {
             @apache_child_terminate();
         }
-        
+
         // Create a unique temporary directory, to process the zip file
         // contents.
         $zipodir = my_mktempdir($CFG->dataroot.'/temp/', 'usrpic');
         $dstfile = $zipodir.'/images.zip';
-        
+
         if (!$mform->save_file('userfile', $dstfile, true)) {
             echo $OUTPUT->notification(get_string('uploadpicture_cannotmovezip','admin'));
             @remove_dir($zipdir);
@@ -93,12 +93,12 @@ if ($formdata = $mform->get_data()) {
                 // We don't need the zip file any longer, so delete it to make
                 // it easier to process the rest of the files inside the directory.
                 @unlink($dstfile);
-                
+
                 $results = array ('errors' => 0,'updated' => 0);
 
                 process_directory($zipdir, $userfields[$userfield], $overwritepicture, $results);
 
-            
+
                 // Finally remove the temporary directory with all the user images and print some stats.
                 remove_dir($zipdir);
                 echo $OUTPUT->notification(get_string('usersupdated', 'admin') . ": " . $results['updated']);
@@ -195,7 +195,7 @@ function process_directory ($dir, $userfield, $overwrite, &$results) {
  */
 function process_file ($file, $userfield, $overwrite) {
     global $DB, $OUTPUT;
-    
+
     // Add additional checks on the filenames, as they are user
     // controlled and we don't want to open any security holes.
     $path_parts = pathinfo(cleardoubleslashes($file));
@@ -247,7 +247,7 @@ function process_file ($file, $userfield, $overwrite) {
  *                picture file to.
  * @param string $originalfile the full path of the picture file.
  *
- * @return bool 
+ * @return bool
  */
 function my_save_profile_image($id, $originalfile) {
     $destination = create_profile_image_destination($id, 'user');
index cfba7b4b75aebe5c3e99d037658aa69f00d32c0f..a5d10cebaefebb54a71c4897f314d803b67f727e 100644 (file)
@@ -4,13 +4,13 @@
     class admin_uploadpicture_form extends moodleform {
         function definition (){
             global $CFG, $USER;
-    
+
             $mform =& $this->_form;
-    
+
             $this->set_upload_manager(new upload_manager('userpicturesfile', false, false, null, false, 0, true, true, false));
-    
+
             $mform->addElement('header', 'settingsheader', get_string('upload'));
-    
+
             $mform->addElement('file', 'userpicturesfile', get_string('file'), 'size="40"');
             $mform->addRule('userpicturesfile', null, 'required');
 
@@ -21,7 +21,7 @@
             $choices = array( 0 => get_string('no'), 1 => get_string('yes') );
             $mform->addElement('select', 'overwritepicture', get_string('uploadpicture_overwrite', 'admin'), $choices);
             $mform->setType('overwritepicture', PARAM_INT);
-    
+
             $this->add_action_buttons(false, get_string('uploadpictures', 'admin'));
         }
     }
index 2477d63128f1e5a27adc27ec81a763f14b99f8f6..944e1fdb845edffa87299de58732db36ab516e52 100755 (executable)
@@ -1020,4 +1020,4 @@ function uu_allowed_roles($shortname=false) {
 
     return $choices;
 }
-?>
+
index 370bb55db0204ac518167e7ff21e33867caee1c3..ecb2d974a4f52af205f9de277506a56fa90a7c2b 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 require_once $CFG->libdir.'/formslib.php';
 
 class admin_uploaduser_form1 extends moodleform {
@@ -335,4 +335,4 @@ class admin_uploaduser_form2 extends moodleform {
         return $errors;
     }
 }
-?>
+
index eee2cf28d1eff6ae00ece28136a256ebc892314e..4b78f94669ce496ebdbc4ef8468d00eb606a7b09 100644 (file)
     // create the user filter form
     $ufiltering = new user_filtering();
     admin_externalpage_print_header();
-    
+
     // Carry on with the user listing
 
     $columns = array("firstname", "lastname", "email", "city", "country", "lastaccess");
 
     $alphabet = explode(',', get_string('alphabet'));
     $strall = get_string('all');
-    
+
     $baseurl = new moodle_url('user.php', array('sort' => $sort, 'dir' => $dir, 'perpage' => $perpage));
     echo $OUTPUT->paging_bar(moodle_paging_bar::make($usercount, $page, $perpage, $baseurl));
 
             ($CFG->fullnamedisplay == 'firstname') or
             ($CFG->fullnamedisplay == 'language' and $fullnamelanguage == 'firstname lastname' )) {
             $fullnamedisplay = "$firstname / $lastname";
-        } else { // ($CFG->fullnamedisplay == 'language' and $fullnamelanguage == 'lastname firstname') 
+        } else { // ($CFG->fullnamedisplay == 'language' and $fullnamelanguage == 'lastname firstname')
             $fullnamedisplay = "$lastname / $firstname";
         }