]> 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:32:02 +0000 (10:32 +0000)
committerPetr Skoda <skodak@moodle.org>
Sun, 1 Nov 2009 10:32:02 +0000 (10:32 +0000)
42 files changed:
admin/dbtransfer/database_export_form.php
admin/dbtransfer/database_transfer_form.php
admin/dbtransfer/dbexport.php
admin/dbtransfer/index.php
admin/dbtransfer/lib.php
admin/mnet/MethodTable.php
admin/mnet/access_control.php
admin/mnet/adminlib.php
admin/mnet/delete.php
admin/mnet/enr_course_enrol.php
admin/mnet/enr_courses.php
admin/mnet/enr_hosts.php
admin/mnet/index.php
admin/mnet/mnet_review.html
admin/mnet/mnet_services.php
admin/mnet/mnet_themes.php
admin/mnet/peers.php
admin/mnet/trustedhosts.php
admin/roles/allow.php
admin/roles/check.php
admin/roles/define.php
admin/roles/explain.php
admin/roles/lib.php
admin/roles/manage.php
admin/roles/managetabs.php
admin/roles/tabs.php
admin/roles/usersroles.php
admin/settings/appearance.php
admin/settings/courses.php
admin/settings/development.php
admin/settings/frontpage.php
admin/settings/grades.php
admin/settings/language.php
admin/settings/location.php
admin/settings/mnet.php
admin/settings/plugins.php
admin/settings/security.php
admin/settings/server.php
admin/settings/subsystems.php
admin/settings/top.php
admin/settings/unsupported.php
admin/settings/users.php

index 9ea1e37750c53a056d301d085374c625854f520c..87f56144487e6d5120ec93ce03c3fc87701d447f 100644 (file)
@@ -1,4 +1,4 @@
-<?php //$Id$
+<?php
 
 require_once $CFG->libdir.'/formslib.php';
 
index bf199e7cf04e964673211afde4d8ba28e2d0e1dd..2f42d6b6ab0cfbd7d8d9d93af86bb42859fa35bb 100644 (file)
@@ -1,4 +1,4 @@
-<?php //$Id$
+<?php
 
 require_once $CFG->libdir.'/formslib.php';
 
index 2a32c4d6c793009a655aa191acf1c8ca819ab5a2..28127b4d8c128d361baf1d07fe7481a4bbb5f025 100644 (file)
@@ -1,4 +1,4 @@
-<?php  //$Id$
+<?php
 
 require('../../config.php');
 require_once('lib.php');
index 21221d84358410eb96c2a64eee212150db87dc0b..59920a0b9e56d0dfd0b49ad1e249de66cb1d7509 100644 (file)
@@ -1,4 +1,4 @@
-<?php  //$Id$
+<?php
 
 require('../../config.php');
 require_once('lib.php');
index a14e745945b27226ab9113315d088e903f9402e2..6d1b8199802ecea6d46e3fe9137e997956c52576 100644 (file)
@@ -1,4 +1,4 @@
-<?php  //$Id$
+<?php
 
 /*
 
index a881a15c8d78fb401b0abc0a28303c0faa7d6719..22dcefd311b5a61fcab11de8c21f7e5dbe0bc280 100644 (file)
@@ -7,7 +7,7 @@
  * @author Christophe Herreman
  * @since 05/01/2005
  * @version $id$
- * 
+ *
  * Special contributions by Allessandro Crugnola and Ted Milker
  */
 
@@ -18,7 +18,7 @@ if (!defined('T_ML_COMMENT')) {
 }
 
 /**
- * Return string from start of haystack to first occurance of needle, or whole 
+ * Return string from start of haystack to first occurance of needle, or whole
  * haystack, if needle does not occur
  *
  * @access public
@@ -72,10 +72,10 @@ class MethodTable
         {
             return false;
         }
-        
+
         $source = file_get_contents($sourcePath);
         $tokens = (array)token_get_all($source);
-        
+
         $waitingForOpenParenthesis = false;
         $waitingForFunction = false;
         $waitingForClassName = false;
@@ -113,7 +113,7 @@ class MethodTable
                     {
                         $lastComment = '';
                         $openBraces--;
-                        
+
                         if($openBraces == 0)
                         {
                             break;
@@ -139,26 +139,26 @@ class MethodTable
                             $classMethods[] = array("name" => $lastFunction,
                                                "comment" => $lastFunctionComment,
                                                "args" => $argBuffer);
-                            
+
                             $bufferingArgs = false;
                             $argBuffer = "";
                             $lastFunction = "";
                             $lastFunctionComment = "";
                         }
                     }
-                    
+
                 }
            } else {
                // token array
                list($id, $text) = $token;
-                
+
                 if($bufferingArgs)
                 {
-                    $argBuffer .= $text;                    
+                    $argBuffer .= $text;
                 }
-               switch ($id) 
+               switch ($id)
                {
-                    
+
                    case T_COMMENT:
                    case T_ML_COMMENT: // we've defined this
                    case T_DOC_COMMENT: // and this
@@ -178,7 +178,7 @@ class MethodTable
                             $waitingForOpenParenthesis = true;
                             $lastFunction = $text;
                             $lastFunctionComment = $lastComment;
-                            $lastComment = "";              
+                            $lastComment = "";
                         }
                         if($waitingForClassName)
                         {
@@ -197,12 +197,12 @@ class MethodTable
                 }
             }
         }
-        
+
         foreach ($classMethods as $key => $value) {
             $methodSignature = $value['args'];
             $methodName = $value['name'];
             $methodComment = $value['comment'];
-            
+
             $description = MethodTable::getMethodDescription($methodComment) . " " . MethodTable::getMethodCommentAttribute($methodComment, "desc");
             $description = trim($description);
             $access = MethodTable::getMethodCommentAttributeFirstWord($methodComment, "access");
@@ -212,7 +212,7 @@ class MethodTable
             $pagesize = MethodTable::getMethodCommentAttributeFirstWord($methodComment, "pagesize");
             $params = MethodTable::getMethodCommentArguments($methodComment);
 
-                        
+
             //description, arguments, access, [roles, [instance, [returns, [pagesize]]]]
             $methodTable[$methodName] = array();
             //$methodTable[$methodName]["signature"] = $methodSignature; //debug purposes
@@ -225,14 +225,14 @@ class MethodTable
             if($returns != "") $methodTable[$methodName]["returns"] = $returns;
             if($pagesize != "") $methodTable[$methodName]["pagesize"] = $pagesize;
         }
-        
+
         return $methodTable;
-        
+
     }
-    
+
     /**
-     * 
-     */   
+     *
+     */
     function getMethodCommentServices($comment)
     {
         $pieces = explode('@service', $comment);
@@ -248,10 +248,10 @@ class MethodTable
         }
         return $args;
     }
-    
-    
+
+
     /**
-     * 
+     *
      */
     function getMethodCommentArguments($comment)
     {
@@ -269,7 +269,7 @@ class MethodTable
         return $args;
     }
 
-    
+
     /**
      * Returns the description from the comment.
      * The description is(are) the first line(s) in the comment.
@@ -282,8 +282,8 @@ class MethodTable
         $comment = MethodTable::cleanComment(strrstr($comment, "@"));
         return trim($comment);
     }
-    
-    
+
+
     /**
      * Returns the value of a comment attribute.
      *
@@ -302,7 +302,7 @@ class MethodTable
         }
         return "";
     }
-    
+
     /**
      * Returns the value of a comment attribute.
      *
@@ -326,7 +326,7 @@ class MethodTable
         }
         return "";
     }
-    
+
     /**
      * Returns the value of a comment attribute.
      *
@@ -354,7 +354,7 @@ class MethodTable
         }
         return $result;
     }
-    
+
     function getMethodCommentAttributeFirstWord($comment, $attribute){
         $pieces = strstrafter($comment, '@' . $attribute);
         if($pieces !== FALSE)
@@ -364,7 +364,7 @@ class MethodTable
         }
         return "";
     }
-    
+
     /**
      * Returns an array with the arguments of a method.
      *
@@ -380,10 +380,10 @@ class MethodTable
             //clean the arguments before returning them
             $result = MethodTable::cleanArguments(explode(",", $methodSignature), $commentParams);
         }
-        
+
         return $result;
     }
-    
+
     /**
      * Cleans the function or method's return value.
      *
@@ -394,7 +394,7 @@ class MethodTable
     function cleanReturnValue($value){
         $result = array();
         $value  = trim($value);
-        
+
         list($result['type'], $result['description']) = explode(' ', $value, 2);
 
         $result['type'] = MethodTable::standardizeType($result['type']);
@@ -415,12 +415,12 @@ class MethodTable
         if('str'  == $type || 'string'  == $type) return 'string';
         if('int'  == $type || 'integer' == $type) return 'int';
         if('bool' == $type || 'boolean' == $type) return 'boolean';
-        
+
         // Note that object is not a valid XMLRPC type
         if('object' == $type || 'class' == $type) return 'object';
         if('float'  == $type || 'dbl'   == $type || 'double' == $type || 'flt' == $type) return 'double';
 
-        // Note that null is not a valid XMLRPC type. The null type can have 
+        // Note that null is not a valid XMLRPC type. The null type can have
         // only one value - null.
         if('null'   == $type) return 'null';
 
@@ -429,12 +429,12 @@ class MethodTable
         if('array'  == $type || 'arr'    == $type) return 'array';
         if('assoc'  == $type || 'struct' == $type) return 'struct';
 
-        // Note that this is not a valid XMLRPC type. As references cannot be 
+        // Note that this is not a valid XMLRPC type. As references cannot be
         // serialized or exported, there is no way this could be XML-RPCed.
         if('reference' == $type || 'ref' == $type) return 'reference';
         return 'string';
     }
-    
+
     /**
      * Cleans the arguments array.
      * This method removes all whitespaces and the leading "$" sign from each argument
@@ -448,7 +448,7 @@ class MethodTable
         $result = array();
 
         if(!is_array($args)) return array();
+
         foreach($args as $index => $arg){
             $arg = strrstr(str_replace(array('$','&$'), array('','&'), $arg), '=');
             if(!isset($commentParams[$index]))
@@ -459,12 +459,12 @@ class MethodTable
             {
                 $start = trim($arg);
                 $end = trim(str_replace('$', '', $commentParams[$index]));
-                
-                // Suppress Notice of 'Undefined offset' with @ 
+
+                // Suppress Notice of 'Undefined offset' with @
                 @list($word0, $word1, $tail) = preg_split("/[\s]+/", $end, 3);
                 $word0 = strtolower($word0);
                 $word1 = strtolower($word1);
-                
+
                 $wordBase0 = preg_replace('/^[&$]+/','',$word0);
                 $wordBase1 = preg_replace('/^[&$]+/','',$word1);
                 $startBase = strtolower(preg_replace('/^[&$]+/','',$start));
@@ -496,7 +496,7 @@ class MethodTable
                     $type = 'double';
                 } elseif($type == 'null') {
                     // Note that this is not a valid XMLRPC type
-                    // The null type can have only one value - null. Why would 
+                    // The null type can have only one value - null. Why would
                     // that be an argument to a function? Just in case:
                     $type = 'null';
                 } elseif($type == 'mixed') {
@@ -521,8 +521,8 @@ class MethodTable
 
         return $result;
     }
-    
-    
+
+
     /**
      * Cleans the comment string by removing all comment start and end characters.
      *
@@ -549,7 +549,7 @@ class MethodTable
 
         foreach($methodTable as $methodName=>$methodProps){
             $result .= "\n\t\"" . $methodName . "\" => array(";
-            
+
             foreach($methodProps as $key=>$value){
                 $result .= "\n\t\t\"" . $key . "\" => ";
 
@@ -568,16 +568,15 @@ class MethodTable
 
                 $result .= ",";
             }
-            
+
             $result = substr($result, 0, -1);
             $result .= "\n\t),";
         }
-        
+
         $result = substr($result, 0, -1);
         $result = "\$this->methodTable = array(" . $result;
         $result .= "\n);";
-            
+
         return $result;
     }
 }
-?>
index 2d7876ad58d6b6b11bee32fbc49eef96165863dd..6d0fb49f461f02f47fcc7b3bfa83fd902c3a19ce 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 // Allows the admin to control user logins from remote moodles.
 
@@ -236,5 +236,3 @@ foreach ($formerror as $error) {
 
 echo $OUTPUT->box_end();
 echo $OUTPUT->footer();
-
-?>
index 4514f9c7223612634eb85c674ec2d7de0df8e25f..7a8ff37cbc65ca99cfe6daf54e0fc4533df9e007 100644 (file)
@@ -209,4 +209,4 @@ function upgrade_RPC_functions() {
         }
     }
 }
-?>
+
index ec33908d3b5bd3408ce974c2e84a5f1c70ce5e40..412bcee93980cb5130cf6ac51cab2a4ef2a169e6 100644 (file)
@@ -11,7 +11,7 @@
     require_login();
 
     $context = get_context_instance(CONTEXT_SYSTEM);
-    
+
     require_capability('moodle/site:config', $context, $USER->id, true, "nopermissions");
 
     $site = get_site();
@@ -53,4 +53,3 @@
         $mnet_peer->delete();
         redirect('peers.php', get_string('hostdeleted', 'mnet'), 5);
     }
-?>
index a661964e844b106f84fa5fc3f413f23ffd0f3b7e..3a2efeba25a5a97808e9438f7c9f77d41f46634f 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.
 
@@ -306,5 +306,3 @@ if (!empty($errors)) {
 
 
 echo $OUTPUT->footer();
-
-?>
index 35d552ef0cff32eab35f78a8b742bdd5e73a3c8a..aa8a8aab74091f5b0e0626dfe5e549df681ddf5b 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.
 
@@ -52,5 +52,3 @@
     echo '</table></div>';
 
     echo $OUTPUT->footer();
-
-?>
index 769770de710101228a1a810f24621268ce403035..f850bd0006b0081d85a85fa28c77fedd119169f4 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.
 
@@ -55,5 +55,3 @@
        . '</div>';
 
     echo $OUTPUT->footer();
-
-?>
index badc0c9256befad3d2e42851d8dac140e7b56cc9..32378c864a6ee6318f36b26b72d9ac2a8aa65f2b 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?PHP
 
     // Allows the admin to configure mnet stuff
 
@@ -51,8 +51,8 @@
             exit;
         } else {
             // We're deleting
-            
-            
+
+
             if (!isset($SESSION->mnet_confirm_delete_key)) {
                 // fail - you're being attacked?
             }
 
 <?php
 echo $OUTPUT->footer();
-?>
index 37bcdecb6928e9bc88a6658f893d67c7ed364cda..8f5ebd53a70c5352e0c32cb3ecc00d160ff5b991 100644 (file)
@@ -58,7 +58,7 @@ if (isset($mnet_peer->deleted) && $mnet_peer->deleted > 0) {
 }
 ?>
     <td valign="top">
-        <?php 
+        <?php
         if (empty($mnet_peer->public_key)) {
             print_string('nopubkey', 'mnet');
         }
@@ -130,7 +130,7 @@ if (!empty($credentials)) {
 ?>
 <tr>
     <td align="right" valign="top"><?php print_string('certdetails', 'mnet'); ?>:</td>
-    <td valign="top"><pre style="margin: 0px; border: 0px;"><?php 
+    <td valign="top"><pre style="margin: 0px; border: 0px;"><?php
         foreach($credentials['subject'] as $key => $credential) {
             if (is_scalar($credential)) {
                 echo str_pad($key, 16, " ", STR_PAD_LEFT).': '.$credential."\n";
index 9240e31aa8250f98285a2b2241b9e909d55513b9..2bed53ec0182bed291c20e0172205de22c53f178 100644 (file)
@@ -57,7 +57,7 @@
                 $host2service = new stdClass();
                 $host2service->hostid = $_POST['hostid'];
                 $host2service->serviceid = $key;
-                
+
                 $host2service->publish = $publish;
                 $host2service->subscribe = $subscribe;
 
     }
 
     include('./mnet_services.html');
-?>
index 126e22705e064a92265ff32ca097e12b9d3b18f3..8e842a171b0be98f6c008370c2860cec9694edf1 100644 (file)
@@ -72,4 +72,3 @@
     }
     $adminroot = admin_get_root();
     require('./mnet_themes.html');
-?>
index 1ac9fbfa06947ca5ace657e18cfb92e0acbb09c1..715c3d6c27ed4d7e8af45baf0cd1807143ea31e6 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?PHP
 
 // Allows the admin to configure other Moodle hosts info
 
@@ -69,7 +69,7 @@ if (($form = data_submitted()) && confirm_sesskey()) {
     } else {
 
         $mnet_peer = new mnet_peer();
-    
+
         if (!empty($form->id)) {
             $form->id = clean_param($form->id, PARAM_INT);
             $mnet_peer->set_id($form->id);
@@ -90,11 +90,11 @@ if (($form = data_submitted()) && confirm_sesskey()) {
             $form->name = clean_param($form->name, PARAM_NOTAGS);
             $mnet_peer->set_name($form->name);
         }
-    
+
         if (isset($form->deleted) && ($form->deleted == '0' || $form->deleted == '1')) {
             $mnet_peer->deleted = $form->deleted;
         }
-    
+
         if (isset($form->public_key)) {
             $form->public_key = clean_param($form->public_key, PARAM_PEM);
             if (empty($form->public_key)) {
@@ -150,27 +150,27 @@ if (($form = data_submitted()) && confirm_sesskey()) {
         include('./mnet_review_allhosts.html');
     }
 } else {
-    $hosts = $DB->get_records_sql('  SELECT 
-                                    h.id, 
-                                    h.wwwroot, 
-                                    h.ip_address, 
-                                    h.name, 
-                                    h.public_key, 
-                                    h.public_key_expires, 
-                                    h.transport, 
-                                    h.portno, 
-                                    h.last_connect_time, 
-                                    h.last_log_id, 
-                                    h.applicationid, 
-                                    a.name as app_name, 
-                                    a.display_name as app_display_name, 
+    $hosts = $DB->get_records_sql('  SELECT
+                                    h.id,
+                                    h.wwwroot,
+                                    h.ip_address,
+                                    h.name,
+                                    h.public_key,
+                                    h.public_key_expires,
+                                    h.transport,
+                                    h.portno,
+                                    h.last_connect_time,
+                                    h.last_log_id,
+                                    h.applicationid,
+                                    a.name as app_name,
+                                    a.display_name as app_display_name,
                                     a.xmlrpc_server_url
-                                FROM  
-                                    {mnet_host} h,  
-                                    {mnet_application} a  
-                                WHERE 
-                                    h.id <> ? AND  
-                                    h.deleted = 0 AND  
+                                FROM
+                                    {mnet_host} h,
+                                    {mnet_application} a
+                                WHERE
+                                    h.id <> ? AND
+                                    h.deleted = 0 AND
                                     h.applicationid=a.id',
                         array($CFG->mnet_localhost_id));;
 
@@ -178,4 +178,4 @@ if (($form = data_submitted()) && confirm_sesskey()) {
     $applications = $DB->get_records('mnet_application');
     include('./peers.html');
 }
-?>
+
index 061d0304cf52edccad5244c59f097b4f2331e394..df80fe0ed57b24c474a8582fba504c5dba684914 100644 (file)
@@ -16,7 +16,7 @@
         admin_externalpage_print_header();
         print_error('requiresopenssl', 'mnet', '', NULL, true);
     }
-    
+
     $site = get_site();
 
     $trusted_hosts = '';//array();
@@ -61,4 +61,3 @@
     }
 
     include('./trustedhosts.html');
-?>
index 1acdee1e872200213a5e47b8dd2e8e96cafadef3..b458b5d1da56c1958579854370c3047d05b88eca 100755 (executable)
@@ -1,4 +1,4 @@
-<?php  // $Id$
+<?php
 
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
@@ -81,4 +81,3 @@
     echo '</div></form>';
 
     echo $OUTPUT->footer();
-?>
index e4b78415fe18d4da079eea3dfeb92559baeba9c0..9a7dd6e9e0cb28dcb693d39db95e4c5e15df8a59 100755 (executable)
     }
 
     echo $OUTPUT->footer();
-?>
+
index c711acd3139efd7aa2618fe49ef411ab8f558c1a..9ecd045c1f4766f66e2d4f7f2ab8e661f8d19e32 100755 (executable)
     echo '</div>';
 
     echo $OUTPUT->footer();
-?>
index d904be28e70b6e24113d6dd81c23cfb36377f93a..edcf5c75b895fd1c720331872d2b821b9b6d88f9 100755 (executable)
@@ -278,4 +278,3 @@ if ($userid && $capability != 'moodle/site:doanything' && !$userhascapability &&
 }
 echo $OUTPUT->close_window_button();
 echo $OUTPUT->footer();
-?>
index acbb45d6603f8cc413dff114eb2fc4f7fee32e9f..44a46e88087d980b2010e4c1c22bec340723d16a 100644 (file)
@@ -1,4 +1,4 @@
-<?php  // $Id$
+<?php
 
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
@@ -1507,4 +1507,3 @@ function roles_get_potential_user_selector($context, $name, $options) {
     return $potentialuserselector;
 }
 
-?>
index 7a8fe97fdcb62803c41df9919e1f1916b0e39e67..38f2a294f22bfd0c715b90084a6902eb7dfc34d2 100755 (executable)
@@ -1,4 +1,4 @@
-<?php  // $Id$
+<?php
 
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
@@ -279,4 +279,3 @@ function get_spacer() {
     global $OUTPUT;
     return '<img src="' . $OUTPUT->old_icon_url('spacer') . '" class="iconsmall" alt="" /> ';
 }
-?>
index bb969c67046a5d8062e3c567a102adef7f3ee6af..78558e61ff179d7a4e643c00d290bd1feb2283c9 100755 (executable)
@@ -1,4 +1,4 @@
-<?php  // $Id$
+<?php
 
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
@@ -43,4 +43,3 @@
 
     print_tabs($tabs, $currenttab);
 
-?>
index 5bb49ec1fcc96886ee0ae3ff2fa4f8ac8abd3030..c382234bc3c5e21c6a6b2fbc7e0d64fae669ac0f 100755 (executable)
@@ -1,4 +1,4 @@
-<?php  // $Id$
+<?php
 
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
@@ -237,5 +237,3 @@ if ($context->contextlevel != CONTEXT_SYSTEM) {    // Print tabs for anything ex
 
     print_tabs($tabs, $currenttab, $inactive, $activetwo);
 
-
-?>
index 9a1c7576abd341a2190f1c6350c4e285a2f07bff..b7d3aa66d6f9b888f87cb8c1e29e45cc524b8e90 100644 (file)
@@ -1,4 +1,4 @@
-<?php  // $Id$
+<?php
 
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
@@ -219,4 +219,3 @@ function print_report_tree($contextid, $contexts, $systemcontext, $fullname) {
         echo '</ul>';
     }
 }
-?>
index f2242a0632a8034bebf57b139c15f52d008bee3a..5172b73f71a9dd2ec04dff3ae6539907cd03f799 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 // This file defines settingpages and externalpages under the "appearance" category
 
@@ -126,4 +126,3 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
     $ADMIN->add('appearance', new admin_externalpage('managetags', get_string('managetags', 'tag'), "$CFG->wwwroot/tag/manage.php"));
 
 } // end of speedup
-?>
index 5287a55d334d62128d259ff91011a5327b61b156..c9eb6c6579129568f86b450dc560409d84334e93 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 // This file defines settingpages and externalpages under the "courses" category
 
@@ -172,5 +172,3 @@ if ($hassiteconfig
     $ADMIN->add('courses', $temp);
 
 } // end of speedup
-
-?>
index ad3174e2299949c203ad62911726537ddc9d45f1..6fb46f29f3d1e1339d70c3f48b4702ddfe3df76d 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 // * Miscellaneous settings
 
@@ -41,5 +41,3 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
 
 
 } // end of speedup
-
-?>
index d57f4cb17a4c57d7bd971bc32252190fe461e7b6..bd7d5cfcef7b7508925155466c7cffacafda14c1 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 // This file defines everything related to frontpage
 
@@ -26,14 +26,14 @@ if (!during_initial_install()) { //do not use during installation
         $temp->add(new admin_setting_special_frontpagedesc());
         $temp->add(new admin_setting_courselist_frontpage(false)); // non-loggedin version of the setting (that's what the parameter is for :) )
         $temp->add(new admin_setting_courselist_frontpage(true)); // loggedin version of the setting
-        
+
         $options = array();
         $options[] = get_string('unlimited');
         for ($i=1; $i<100; $i++) {
             $options[$i] = $i;
         }
         $temp->add(new admin_setting_configselect('maxcategorydepth', get_string('configsitemaxcategorydepth','admin'), get_string('configsitemaxcategorydepthhelp','admin'), 0, $options));
-        
+
         $temp->add(new admin_setting_sitesetcheckbox('numsections', get_string('sitesection'), get_string('sitesectionhelp','admin'), 1));
         $temp->add(new admin_setting_sitesetselect('newsitems', get_string('newsitemsnumber'), '', 3,
              array('0' => '0',
@@ -82,4 +82,3 @@ if (!during_initial_install()) { //do not use during installation
         $ADMIN->add('frontpage', new admin_externalpage('sitefiles', get_string('sitefiles'), $CFG->wwwroot . '/files/index.php?id=' . SITEID, 'moodle/course:managefiles', false, $frontpagecontext));
     }
 }
-?>
index 414b79549b27b8b1647524de5d0df72810bee8c3..998c1b248e66e3c1bc8f4fda96993e4a6db567a9 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 // This file defines settingpages and externalpages under the "grades" section
 
index 3c82865013e8a8c0002e301e6ad696b9860d5a93..cb96f392c6bbbff78169935690ca45098302cc45 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 // This file defines settingpages and externalpages under the "appearance" category
 
@@ -25,5 +25,3 @@ if ($hassiteconfig
     $ADMIN->add('language', new admin_externalpage('multilangupgrade', get_string('multilangupgrade', 'admin'), $CFG->wwwroot.'/'.$CFG->admin.'/multilangupgrade.php', 'moodle/site:config', !empty($CFG->filter_multilang_converted)));
 
 } // end of speedup
-
-?>
index 60890f4adeaa81a286e8476ee8c565811d4508f8..4ef1f6fc8029cdaeeb4091b2ac043dac2309fdeb 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
 
@@ -21,5 +21,3 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
     $ADMIN->add('location', new admin_externalpage('timezoneimport', get_string('updatetimezones', 'admin'), "$CFG->wwwroot/$CFG->admin/timezoneimport.php"));
 
 } // end of speedup
-
-?>
index 8db1cc0249393cac5c47e1531e3c5552e28e2b26..20c3418eb1e29296d6576e4afa313924aa32a235 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 // This file defines settingpages and externalpages under the "mnet" category
 
@@ -23,5 +23,3 @@ $ADMIN->add('mnet', new admin_externalpage('trustedhosts', get_string('trustedho
                                            'moodle/site:config'));
 
 } // end of speedup
-
-?>
index 98e9359411d1d1963030e171ba4044a6b6474688..d35de24d1ad620718c656d92521ae65226d86aff 100644 (file)
@@ -1,4 +1,4 @@
-<?php  //$Id$
+<?php
 
 /*
  * Please note that is file is always loaded last - it means that you can inject entries into other categories too.
index 71145d2ee5a80a2325998872723837e702b9f657..e9e97c4244418ce5f8801b2456940bb600c222f2 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
 
@@ -116,5 +116,3 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
     $ADMIN->add('security', $temp);
 
 } // end of speedup
-
-
index 2c5ed69ff428814eb4cdb0ca0b025d28d25fb32c..465ec601f49ac70dc260db306fd53e2663c96d68 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 // This file defines settingpages and externalpages under the "server" category
 
@@ -278,5 +278,3 @@ if ($dbfamily === 'mysql') {
 }
 
 } // end of speedup
-
-?>
index d5dad0943fe5b053d11e932318088186b9f81b5d..d4e46e61ec7bb99ba2bc71a145ecfda25fe98ae8 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
 
@@ -31,10 +31,10 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
     $optionalsubsystems->add(new admin_setting_configselect('mnet_dispatcher_mode', get_string('net', 'mnet'), get_string('configmnet', 'mnet'), 'off', $options));
 
     // Conditional activities: completion and availability
-    $optionalsubsystems->add(new admin_setting_configcheckbox('enablecompletion', 
-        get_string('enablecompletion','completion'), 
+    $optionalsubsystems->add(new admin_setting_configcheckbox('enablecompletion',
+        get_string('enablecompletion','completion'),
         get_string('configenablecompletion','completion'), 0));
-    $optionalsubsystems->add(new admin_setting_pickroles('progresstrackedroles', 
+    $optionalsubsystems->add(new admin_setting_pickroles('progresstrackedroles',
         get_string('progresstrackedroles','completion'),
         get_string('configprogresstrackedroles', 'completion'),
         array('moodle/legacy:student')));
index f1069217ad583ed35c5a293c894632b91f816ee6..497d112daf7c8a182aeaa2e714539c2201c86828 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 // This is the first file read by the lib/adminlib.php script
 // We use it to create the categories in correct order,
@@ -11,7 +11,7 @@ $hassiteconfig = has_capability('moodle/site:config', $systemcontext);
 $ADMIN->add('root', new admin_externalpage('adminnotifications', get_string('notifications'), "$CFG->wwwroot/$CFG->admin/index.php"));
 
 // Show the annoying registration button if registration hasn't been done or is 6 months old (15552000 seconds) MDL-17429
-if (empty($CFG->registered) || ($CFG->registered < (time() - 15552000))) { 
+if (empty($CFG->registered) || ($CFG->registered < (time() - 15552000))) {
     $ADMIN->add('root', new admin_externalpage('adminregistration', get_string('registration','admin'), "$CFG->wwwroot/$CFG->admin/register.php"));
 }
 
@@ -42,5 +42,3 @@ $ADMIN->add('root', new admin_category('unsupported', get_string('unsupported',
 
 // hidden search script
 $ADMIN->add('root', new admin_externalpage('search', get_string('searchresults'), "$CFG->wwwroot/$CFG->admin/search.php", 'moodle/site:config', true));
-
-?>
index 9d095b3bda99bab6d2c4bec486207e1e182b5254..b5cd7e55a7a44f9891839fa93157cea8c81ee679 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 // This file defines settingpages and externalpages in the "unsupported" hidden category, use wisely!
 
@@ -10,5 +10,3 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
     $ADMIN->add('unsupported', new admin_externalpage('replace', 'Search and replace', $CFG->wwwroot.'/'.$CFG->admin.'/replace.php', 'moodle/site:config', true));
 
 } // end of speedup
-
-?>
index 080be841d8b67bc06656d9c0e966e803dc814009..2a5ebf3b26a22d00da2b0147f832e99b68533daa 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 // This file defines settingpages and externalpages under the "users" category
 
@@ -30,7 +30,7 @@ if ($hassiteconfig
     $temp->add(new admin_setting_configtext('allowemailaddresses', get_string('allowemailaddresses', 'admin'), get_string('configallowemailaddresses', 'admin'), '', PARAM_NOTAGS));
     $temp->add(new admin_setting_configtext('denyemailaddresses', get_string('denyemailaddresses', 'admin'), get_string('configdenyemailaddresses', 'admin'), '', PARAM_NOTAGS));
     $temp->add(new admin_setting_configcheckbox('verifychangedemail', get_string('verifychangedemail', 'admin'), get_string('configverifychangedemail', 'admin'), 1));
-    
+
     $temp->add(new admin_setting_configtext('recaptchapublickey', get_string('recaptchapublickey', 'admin'), get_string('configrecaptchapublickey', 'admin'), '', PARAM_NOTAGS));
     $temp->add(new admin_setting_configtext('recaptchaprivatekey', get_string('recaptchaprivatekey', 'admin'), get_string('configrecaptchaprivatekey', 'admin'), '', PARAM_NOTAGS));
     $ADMIN->add('authsettings', $temp);
@@ -112,7 +112,7 @@ if ($hassiteconfig
                 $defaultguestid = reset($guestroles);
                 $defaultguestid = $defaultguestid->id;
             }
-            
+
             // we must not use assignable roles here:
             //   1/ unsetting roles as assignable for admin might bork the settings!
             //   2/ default user role should not be assignable anyway
@@ -179,5 +179,3 @@ if ($hassiteconfig
     $ADMIN->add('roles', new admin_externalpage('checkpermissions', get_string('checkglobalpermissions', 'role'), "$CFG->wwwroot/$CFG->admin/roles/check.php?contextid=".$systemcontext->id, array('moodle/role:assign', 'moodle/role:safeoverride', 'moodle/role:override', 'moodle/role:manage')));
 
 } // end of speedup
-
-?>