From: skodak Date: Wed, 20 Sep 2006 20:31:09 +0000 (+0000) Subject: major whitespace cleanup - fixed tabs X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=6124048972a690b293ec27ca743a3c0f869217d2;p=moodle.git major whitespace cleanup - fixed tabs --- diff --git a/admin/settings/appearance.php b/admin/settings/appearance.php index 6af5403493..fd2a4fdf96 100644 --- a/admin/settings/appearance.php +++ b/admin/settings/appearance.php @@ -66,7 +66,7 @@ $temp->add(new admin_setting_configselect('cachetext', get_string('cachetext', ' 0 => get_string('no')))); $temp->add(new admin_setting_configselect('filteruploadedfiles', get_string('filteruploadedfiles', 'admin'), get_string('configfilteruploadedfiles', 'admin'), 0, array('0' => get_string('none'), '1' => get_string('allfiles'), - '2' => get_string('htmlfilesonly')))); + '2' => get_string('htmlfilesonly')))); $temp->add(new admin_setting_configcheckbox('filtermatchoneperpage', get_string('filtermatchoneperpage', 'admin'), get_string('configfiltermatchoneperpage', 'admin'), 0)); $temp->add(new admin_setting_configcheckbox('filtermatchonepertext', get_string('filtermatchonepertext', 'admin'), get_string('configfiltermatchonepertext', 'admin'), 0)); $temp->add(new admin_setting_configcheckbox('filterall', get_string('filterall', 'admin'), get_string('configfilterall', 'admin'), 0)); diff --git a/admin/settings/courses.php b/admin/settings/courses.php index 030610d659..893340f5e4 100644 --- a/admin/settings/courses.php +++ b/admin/settings/courses.php @@ -29,18 +29,18 @@ $temp->add(new admin_setting_backupcheckbox('backup_sche_coursefiles', get_strin $temp->add(new admin_setting_backupcheckbox('backup_sche_messages', get_string('messages', 'message'), get_string('backupmessageshelp','message'), 0)); $temp->add(new admin_setting_backupselect('backup_sche_keep', get_string('keep'), get_string('backupkeephelp'), 1, array(0 => get_string('all'), 1 => '1', - 2 => '2', - 5 => '5', - 10 => '10', - 20 => '20', - 30 => '30', - 40 => '40', - 50 => '50', - 100 => '100', - 200 => '200', - 300 => '300', - 400 => '400', - 500 => '500'))); + 2 => '2', + 5 => '5', + 10 => '10', + 20 => '20', + 30 => '30', + 40 => '40', + 50 => '50', + 100 => '100', + 200 => '200', + 300 => '300', + 400 => '400', + 500 => '500'))); $temp->add(new admin_setting_backupcheckbox('backup_sche_active', get_string('active'), get_string('backupactivehelp'), 0)); $temp->add(new admin_setting_special_backupdays()); $temp->add(new admin_setting_special_backuptime()); diff --git a/admin/settings/security.php b/admin/settings/security.php index a222a1f433..b416a6bacc 100644 --- a/admin/settings/security.php +++ b/admin/settings/security.php @@ -15,15 +15,15 @@ $temp->add(new admin_setting_configcheckbox('enabletrusttext', get_string('enabl $temp->add(new admin_setting_configselect('maxeditingtime', get_string('maxeditingtime','admin'), get_string('configmaxeditingtime','admin'), 1800, array(60 => get_string('numminutes', '', 1), 300 => get_string('numminutes', '', 5), - 900 => get_string('numminutes', '', 15), - 1800 => get_string('numminutes', '', 30), - 2700 => get_string('numminutes', '', 45), - 3600 => get_string('numminutes', '', 60)))); + 900 => get_string('numminutes', '', 15), + 1800 => get_string('numminutes', '', 30), + 2700 => get_string('numminutes', '', 45), + 3600 => get_string('numminutes', '', 60)))); $temp->add(new admin_setting_configselect('fullnamedisplay', get_string('fullnamedisplay', 'admin'), get_string('configfullnamedisplay', 'admin'), 'firstname lastname', array('language' => get_string('language'), 'firstname lastname' => get_string('firstname') . ' + ' . get_string('lastname'), - 'lastname firstname' => get_string('lastname') . ' + ' . get_string('firstname'), - 'firstname' => get_string('firstname')))); + 'lastname firstname' => get_string('lastname') . ' + ' . get_string('firstname'), + 'firstname' => get_string('firstname')))); $temp->add(new admin_setting_configcheckbox('extendedusernamechars', get_string('extendedusernamechars', 'admin'), get_string('configextendedusernamechars', 'admin'), 0)); $temp->add(new admin_setting_configtext('sitepolicy', get_string('sitepolicy', 'admin'), get_string('configsitepolicy', 'admin'), '', PARAM_URL)); $temp->add(new admin_setting_configselect('bloglevel', get_string('bloglevel', 'admin'), get_string('configbloglevel', 'admin'), 4, array(5 => get_string('worldblogs','blog'), @@ -49,8 +49,8 @@ $ADMIN->add('security', $temp); $temp = new admin_settingpage('modulesecurity', get_string('modulesecurity', 'admin')); $temp->add(new admin_setting_configselect('restrictmodulesfor', get_string('restrictmodulesfor', 'admin'), get_string('configrestrictmodulesfor', 'admin'), 'none', array('none' => 'No courses', 'all' => 'All courses', - 'requested' => 'Requested courses'))); -$temp->add(new admin_setting_configcheckbox('restrictbydefault', get_string('restrictbydefault', 'admin'), get_string('configrestrictbydefault', 'admin'), 0)); + 'requested' => 'Requested courses'))); +$temp->add(new admin_setting_configcheckbox('restrictbydefault', get_string('restrictbydefault', 'admin'), get_string('configrestrictbydefault', 'admin'), 0)); if (!$options = get_records("modules")) { $options = array(); } @@ -67,11 +67,11 @@ $ADMIN->add('security', $temp); $temp = new admin_settingpage('notifications', get_string('notifications', 'admin')); $temp->add(new admin_setting_configselect('displayloginfailures', get_string('displayloginfailures', 'admin'), get_string('configdisplayloginfailures', 'admin'), '', array('' => get_string('nobody'), 'admin' => get_string('administrators'), - 'teacher' => get_string('administratorsandteachers'), + 'teacher' => get_string('administratorsandteachers'), 'everybody' => get_string('everybody')))); $temp->add(new admin_setting_configselect('notifyloginfailures', get_string('notifyloginfailures', 'admin'), get_string('confignotifyloginfailures', 'admin'), '', array('' => get_string('nobody'), 'mainadmin' => get_string('administrator'), - 'alladmins' => get_string('administratorsall')))); + 'alladmins' => get_string('administratorsall')))); $options = array(); for ($i = 1; $i <= 100; $i++) { $options[$i] = $i; diff --git a/admin/settings/server.php b/admin/settings/server.php index 995b50cf87..2553cc6fa8 100644 --- a/admin/settings/server.php +++ b/admin/settings/server.php @@ -6,7 +6,7 @@ $temp = new admin_settingpage('systempaths', get_string('systempaths','admin')); $temp->add(new admin_setting_configselect('gdversion', get_string('gdversion','admin'), get_string('configgdversion', 'admin'), check_gd_version(), array('0' => get_string('gdnot'), '1' => get_string('gd1'), - '2' => get_string('gd2')))); + '2' => get_string('gd2')))); $temp->add(new admin_setting_configtext('zip', get_string('pathtozip','admin'), get_string('configzip', 'admin'), '', PARAM_PATH)); $temp->add(new admin_setting_configtext('unzip', get_string('pathtounzip','admin'), get_string('configunzip', 'admin'), '', PARAM_PATH)); $temp->add(new admin_setting_configtext('pathtodu', get_string('pathtodu', 'admin'), get_string('configpathtodu', 'admin'), '', PARAM_PATH)); @@ -25,28 +25,28 @@ $temp->add(new admin_setting_configtext('allowemailaddresses', get_string('allow $temp->add(new admin_setting_configtext('denyemailaddresses', get_string('denyemailaddresses', 'admin'), get_string('configdenyemailaddresses', 'admin'), '', PARAM_NOTAGS)); $temp->add(new admin_setting_configselect('digestmailtime', get_string('digestmailtime', 'admin'), get_string('configdigestmailtime', 'admin'), 17, array('00' => '00', '01' => '01', - '02' => '02', - '03' => '03', - '04' => '04', - '05' => '05', - '06' => '06', - '07' => '07', - '08' => '08', - '09' => '09', - '10' => '10', - '11' => '11', - '12' => '12', - '13' => '13', - '14' => '14', - '15' => '15', - '16' => '16', - '17' => '17', - '18' => '18', - '19' => '19', - '20' => '20', - '21' => '21', - '22' => '22', - '23' => '23'))); + '02' => '02', + '03' => '03', + '04' => '04', + '05' => '05', + '06' => '06', + '07' => '07', + '08' => '08', + '09' => '09', + '10' => '10', + '11' => '11', + '12' => '12', + '13' => '13', + '14' => '14', + '15' => '15', + '16' => '16', + '17' => '17', + '18' => '18', + '19' => '19', + '20' => '20', + '21' => '21', + '22' => '22', + '23' => '23'))); if (!empty($CFG->unicodedb)) { // These options are only available if running under unicodedb unset($options); unset($charsets); @@ -96,27 +96,27 @@ $temp = new admin_settingpage('stats', get_string('stats')); $temp->add(new admin_setting_configcheckbox('enablestats', get_string('enablestats', 'admin'), get_string('configenablestats', 'admin'), 0)); $temp->add(new admin_setting_configselect('statsfirstrun', get_string('statsfirstrun', 'admin'), get_string('configstatsfirstrun', 'admin'), 'none', array('none' => get_string('none'), 60*60*24*7 => get_string('numweeks','moodle',1), - 60*60*24*14 => get_string('numweeks','moodle',2), - 60*60*24*21 => get_string('numweeks','moodle',3), - 60*60*24*28 => get_string('nummonths','moodle',1), - 60*60*24*56 => get_string('nummonths','moodle',2), - 60*60*24*84 => get_string('nummonths','moodle',3), - 60*60*24*112 => get_string('nummonths','moodle',4), - 60*60*24*140 => get_string('nummonths','moodle',5), - 60*60*24*168 => get_string('nummonths','moodle',6), - 'all' => get_string('all') ))); + 60*60*24*14 => get_string('numweeks','moodle',2), + 60*60*24*21 => get_string('numweeks','moodle',3), + 60*60*24*28 => get_string('nummonths','moodle',1), + 60*60*24*56 => get_string('nummonths','moodle',2), + 60*60*24*84 => get_string('nummonths','moodle',3), + 60*60*24*112 => get_string('nummonths','moodle',4), + 60*60*24*140 => get_string('nummonths','moodle',5), + 60*60*24*168 => get_string('nummonths','moodle',6), + 'all' => get_string('all') ))); $temp->add(new admin_setting_configselect('statsmaxruntime', get_string('statsmaxruntime', 'admin'), get_string('configstatsmaxruntime', 'admin'), 0, array(0 => get_string('untilcomplete'), 60*60 => '1 '.get_string('hour'), - 60*60*2 => '2 '.get_string('hours'), - 60*60*3 => '3 '.get_string('hours'), - 60*60*4 => '4 '.get_string('hours'), - 60*60*5 => '5 '.get_string('hours'), - 60*60*6 => '6 '.get_string('hours'), - 60*60*7 => '7 '.get_string('hours'), - 60*60*8 => '8 '.get_string('hours') ))); + 60*60*2 => '2 '.get_string('hours'), + 60*60*3 => '3 '.get_string('hours'), + 60*60*4 => '4 '.get_string('hours'), + 60*60*5 => '5 '.get_string('hours'), + 60*60*6 => '6 '.get_string('hours'), + 60*60*7 => '7 '.get_string('hours'), + 60*60*8 => '8 '.get_string('hours') ))); $temp->add(new admin_setting_configtime('statsruntimestarthour', 'statsruntimestartminute', get_string('statsruntimestart', 'admin'), get_string('configstatsruntimestart', 'admin'), array('h' => 0, 'm' => 0))); $temp->add(new admin_setting_configtext('statsuserthreshold', get_string('statsuserthreshold', 'admin'), get_string('configstatsuserthreshold', 'admin'), 0, PARAM_INT)); -$ADMIN->add('server', $temp); +$ADMIN->add('server', $temp); // "http" settingpage @@ -135,16 +135,16 @@ $ADMIN->add('server', new admin_externalpage('maintenancemode', get_string('site $temp = new admin_settingpage('cleanup', get_string('cleanup', 'admin')); $temp->add(new admin_setting_configselect('longtimenosee', get_string('longtimenosee', 'admin'), get_string('configlongtimenosee', 'admin'), 120, array(0 => get_string('never'), 1000 => get_string('numdays', '', 1000), - 365 => get_string('numdays', '', 365), - 180 => get_string('numdays', '', 180), - 150 => get_string('numdays', '', 150), - 120 => get_string('numdays', '', 120), - 90 => get_string('numdays', '', 90), - 60 => get_string('numdays', '', 60), - 30 => get_string('numdays', '', 30), - 21 => get_string('numdays', '', 21), - 14 => get_string('numdays', '', 14), - 7 => get_string('numdays', '', 7) ))); + 365 => get_string('numdays', '', 365), + 180 => get_string('numdays', '', 180), + 150 => get_string('numdays', '', 150), + 120 => get_string('numdays', '', 120), + 90 => get_string('numdays', '', 90), + 60 => get_string('numdays', '', 60), + 30 => get_string('numdays', '', 30), + 21 => get_string('numdays', '', 21), + 14 => get_string('numdays', '', 14), + 7 => get_string('numdays', '', 7) ))); $temp->add(new admin_setting_configselect('deleteunconfirmed', get_string('deleteunconfirmed', 'admin'), get_string('configdeleteunconfirmed', 'admin'), 168, array(0 => get_string('never'), 168 => get_string('numdays', '', 7), 144 => get_string('numdays', '', 6), diff --git a/admin/upgradesettings.php b/admin/upgradesettings.php index b9211ebf7d..8a7e05d80e 100644 --- a/admin/upgradesettings.php +++ b/admin/upgradesettings.php @@ -18,7 +18,7 @@ $newsettingshtml = output_new_settings_by_page(admin_get_root()); // first we deal with the case where there are no new settings to be set if ($newsettingshtml == '') { - redirect($CFG->wwwroot . '/' . $CFG->admin . '/index.php'); + redirect($CFG->wwwroot . '/' . $CFG->admin . '/index.php'); die; } diff --git a/auth/fc/config.html b/auth/fc/config.html index 11682c9f5b..b98f934df8 100644 --- a/auth/fc/config.html +++ b/auth/fc/config.html @@ -36,15 +36,15 @@ - auth_fchost: + auth_fchost: - + - + - + @@ -58,15 +58,15 @@ - auth_fcfppport: + auth_fcfppport: - + - + - + @@ -80,15 +80,15 @@ - auth_fcuserid: + auth_fcuserid: - + - + - + @@ -102,15 +102,15 @@ - auth_fcpasswd: + auth_fcpasswd: - + - + - + @@ -124,15 +124,15 @@ - auth_fccreators: + auth_fccreators: - + - + - + @@ -148,9 +148,9 @@ - : + : - + diff --git a/auth/fc/fcFPP.php b/auth/fc/fcFPP.php index 99cec4244c..436d8a49e1 100644 --- a/auth/fc/fcFPP.php +++ b/auth/fc/fcFPP.php @@ -31,183 +31,183 @@ class fcFPP // class constructor function fcFPP($host="localhost", $port="3333") { - $this->_hostname = $host; - $this->_port = $port; - $this->_user = ""; - $this->_pwd = ""; + $this->_hostname = $host; + $this->_port = $port; + $this->_user = ""; + $this->_pwd = ""; } // open a connection to the FirstClass server function open() { - if($this->_debug) echo "Connecting to host "; - $host = $this->_hostname; - $port = $this->_port; - - if($this->_debug) echo "[$host:$port].."; - - // open the connection to the FirstClass server - $conn = fsockopen($host, $port, $errno, $errstr, 5); - if(!$conn) - { - echo "connection failed!".$errno. $errstr; - return false; - } - - // We are connected - if($this->_debug) echo "connected!"; - - // Read connection message. - $line = fgets ($conn); //+0 - $line = fgets ($conn); //new line - - // store the connection in this class, so we can use it later - $this->_conn = & $conn; - - return true; + if($this->_debug) echo "Connecting to host "; + $host = $this->_hostname; + $port = $this->_port; + + if($this->_debug) echo "[$host:$port].."; + + // open the connection to the FirstClass server + $conn = fsockopen($host, $port, $errno, $errstr, 5); + if(!$conn) + { + echo "connection failed!".$errno. $errstr; + return false; + } + + // We are connected + if($this->_debug) echo "connected!"; + + // Read connection message. + $line = fgets ($conn); //+0 + $line = fgets ($conn); //new line + + // store the connection in this class, so we can use it later + $this->_conn = & $conn; + + return true; } // close any open connections function close() { - // get the current connection - $conn = &$this->_conn; - - // close it if it's open - if($conn) - { - fclose($conn); - - // cleanup the variable - unset($this->_conn); - return true; - } - return; + // get the current connection + $conn = &$this->_conn; + + // close it if it's open + if($conn) + { + fclose($conn); + + // cleanup the variable + unset($this->_conn); + return true; + } + return; } // Authenticate to the FirstClass server function login($userid, $passwd) { - // we did have a connection right?! + // we did have a connection right?! if($this->_conn) - { - # Send username - fputs($this->_conn,"$userid\r\n"); - - $line = fgets ($this->_conn); //new line - $line = fgets ($this->_conn); //+0 - $line = fgets ($this->_conn); //new line - - # Send password - fputs($this->_conn,"$passwd\r\n"); - $line = fgets ($this->_conn); //new line - $line = fgets ($this->_conn); //+0 - $line = fgets ($this->_conn); //+0 or message - - if($this->_debug) echo $line; - - if (preg_match ("/^\+0/", $line)) { //+0, user with subadmin privileges - $this->_user = $userid; - $this->_pwd = $passwd; - return TRUE; - } elseif (preg_match ("/^\Sorry/",$line)){ //Denied access but a valid user and password - return TRUE; - } else { //Invalid user or password - return FALSE; - } - - - } - return FALSE; + { + # Send username + fputs($this->_conn,"$userid\r\n"); + + $line = fgets ($this->_conn); //new line + $line = fgets ($this->_conn); //+0 + $line = fgets ($this->_conn); //new line + + # Send password + fputs($this->_conn,"$passwd\r\n"); + $line = fgets ($this->_conn); //new line + $line = fgets ($this->_conn); //+0 + $line = fgets ($this->_conn); //+0 or message + + if($this->_debug) echo $line; + + if (preg_match ("/^\+0/", $line)) { //+0, user with subadmin privileges + $this->_user = $userid; + $this->_pwd = $passwd; + return TRUE; + } elseif (preg_match ("/^\Sorry/",$line)){ //Denied access but a valid user and password + return TRUE; + } else { //Invalid user or password + return FALSE; + } + + + } + return FALSE; } // Get the list of groups the user is a member of function getGroups($userid){ - - $groups = array(); - - // we must be logged in as a user with subadmin privileges - if($this->_conn AND $this->_user) { - # Send BA-command to get groups - fputs($this->_conn,"GET USER '" . $userid . "' 4 -1\r"); - $line = ""; - while (!$line) { - $line = trim(fgets ($this->_conn)); - } - $n = 0; - while ($line AND !preg_match("/^\+0/", $line) AND $line != "-1003") { - list( , , $groups[$n++]) = explode(" ",$line,3); - $line = trim(fgets ($this->_conn)); - } + + $groups = array(); + + // we must be logged in as a user with subadmin privileges + if($this->_conn AND $this->_user) { + # Send BA-command to get groups + fputs($this->_conn,"GET USER '" . $userid . "' 4 -1\r"); + $line = ""; + while (!$line) { + $line = trim(fgets ($this->_conn)); + } + $n = 0; + while ($line AND !preg_match("/^\+0/", $line) AND $line != "-1003") { + list( , , $groups[$n++]) = explode(" ",$line,3); + $line = trim(fgets ($this->_conn)); + } if($this->_debug) echo "getGroups:" . implode(",",$groups); - } - - return $groups; + } + + return $groups; } // Check if the user is member of any of the groups. // Return the list of groups the user is member of. function isMemberOf($userid, $groups){ - - $usergroups = array_map("strtolower",$this->getGroups($userid)); - $groups = array_map("strtolower",$groups); - - $result = array_intersect($groups,$usergroups); - + + $usergroups = array_map("strtolower",$this->getGroups($userid)); + $groups = array_map("strtolower",$groups); + + $result = array_intersect($groups,$usergroups); + if($this->_debug) echo "isMemberOf:" . implode(",",$result); - - return $result; + + return $result; } function getUserInfo($userid, $field){ - - $userinfo = ""; - - if($this->_conn AND $this->_user) { - # Send BA-command to get data - fputs($this->_conn,"GET USER '" . $userid . "' " . $field . "\r"); - $line = ""; - while (!$line) { - $line = trim(fgets ($this->_conn)); - } - $n = 0; - while ($line AND !preg_match("/^\+0/", $line)) { - list( , , $userinfo) = explode(" ",$line,3); - $line = trim(fgets ($this->_conn)); - } - if($this->_debug) echo "getUserInfo:" . $userinfo; - } - - return str_replace('\r',' ',trim($userinfo,'"')); + + $userinfo = ""; + + if($this->_conn AND $this->_user) { + # Send BA-command to get data + fputs($this->_conn,"GET USER '" . $userid . "' " . $field . "\r"); + $line = ""; + while (!$line) { + $line = trim(fgets ($this->_conn)); + } + $n = 0; + while ($line AND !preg_match("/^\+0/", $line)) { + list( , , $userinfo) = explode(" ",$line,3); + $line = trim(fgets ($this->_conn)); + } + if($this->_debug) echo "getUserInfo:" . $userinfo; + } + + return str_replace('\r',' ',trim($userinfo,'"')); } function getResume($userid){ - - $resume = ""; - - $pattern = "/\[.+:.+\..+\]/"; // Remove references to pictures in resumes - - if($this->_conn AND $this->_user) { - # Send BA-command to get data - fputs($this->_conn,"GET RESUME '" . $userid . "' 6\r"); - $line = ""; - while (!$line) { + + $resume = ""; + + $pattern = "/\[.+:.+\..+\]/"; // Remove references to pictures in resumes + + if($this->_conn AND $this->_user) { + # Send BA-command to get data + fputs($this->_conn,"GET RESUME '" . $userid . "' 6\r"); + $line = ""; + while (!$line) { $line = trim(fgets ($this->_conn)); - } - $n = 0; - while ($line AND !preg_match("/^\+0/", $line)) { - $resume .= preg_replace($pattern,"",str_replace('\r',"\n",trim($line,'6 '))); - $line = trim(fgets ($this->_conn)); - //print $line; - - } - if($this->_debug) echo "getResume:" . $resume; - } - - return $resume; + } + $n = 0; + while ($line AND !preg_match("/^\+0/", $line)) { + $resume .= preg_replace($pattern,"",str_replace('\r',"\n",trim($line,'6 '))); + $line = trim(fgets ($this->_conn)); + //print $line; + + } + if($this->_debug) echo "getResume:" . $resume; + } + + return $resume; } diff --git a/backup/restorelib.php b/backup/restorelib.php index ca3e345bf9..6ecd1dfc79 100644 --- a/backup/restorelib.php +++ b/backup/restorelib.php @@ -74,7 +74,7 @@ //If the module is being restored if ($info->restore == 1) { //Check if the xxxx_decode_content_links_caller exists - include_once("$CFG->dirroot/mod/$name/restorelib.php"); + include_once("$CFG->dirroot/mod/$name/restorelib.php"); $function_name = $name."_decode_content_links_caller"; if (function_exists($function_name)) { if (!defined('RESTORE_SILENTLY')) { @@ -904,7 +904,7 @@ $course_module->instance = 0; //NOTE: The instance (new) is calculated and updated in db in the // final step of the restore. We don't know it yet. - //print_object($course_module); //Debug + //print_object($course_module); //Debug //Save it to db $newidmod = insert_record("course_modules",$course_module); if ($newidmod) { @@ -2932,7 +2932,7 @@ if ($instance) { //We have the new instance, so update the record in course_modules $module->instance = $instance->new_id; - //print_object ($module); //Debug + //print_object ($module); //Debug $status = update_record("course_modules",$module); } else { $status = false; diff --git a/blocks/admin_bookmarks/block_admin_bookmarks.php b/blocks/admin_bookmarks/block_admin_bookmarks.php index 13a9d63da0..872e69349b 100644 --- a/blocks/admin_bookmarks/block_admin_bookmarks.php +++ b/blocks/admin_bookmarks/block_admin_bookmarks.php @@ -26,41 +26,41 @@ class block_admin_bookmarks extends block_base { function get_content() { global $CFG, $USER, $PAGE; - + require_once($CFG->libdir.'/adminlib.php'); $adminroot = admin_get_root(); - + if ($this->content !== NULL) { return $this->content; } $this->content = new stdClass; $this->content->text = ''; - if (isset($USER->preference['admin_bookmarks'])) { + if (isset($USER->preference['admin_bookmarks'])) { $bookmarks = explode(',',$USER->preference['admin_bookmarks']); - // hmm... just a liiitle (potentially) processor-intensive - // (recall that $adminroot->locate is a huge recursive call... and we're calling it repeatedly here + // hmm... just a liiitle (potentially) processor-intensive + // (recall that $adminroot->locate is a huge recursive call... and we're calling it repeatedly here foreach($bookmarks as $bookmark) { - $temp = $adminroot->locate($bookmark); - if (is_a($temp, 'admin_settingpage')) { + $temp = $adminroot->locate($bookmark); + if (is_a($temp, 'admin_settingpage')) { $this->content->text .= '' . $temp->visiblename . '' . '
'; } elseif (is_a($temp, 'admin_externalpage')) { $this->content->text .= '' . $temp->visiblename . '' . '
'; } - } - } else { - $bookmarks = array(); - } - + } + } else { + $bookmarks = array(); + } + if (($section = (isset($PAGE->section) ? $PAGE->section : '')) && (in_array($section, $bookmarks))) { - $this->content->footer = '' . get_string('unbookmarkthispage','admin') . ''; - } elseif ($section = (isset($PAGE->section) ? $PAGE->section : '')) { - $this->content->footer = '' . get_string('bookmarkthispage','admin') . ''; - } else { - $this->content->footer = ''; - } - - return $this->content; + $this->content->footer = '' . get_string('unbookmarkthispage','admin') . ''; + } elseif ($section = (isset($PAGE->section) ? $PAGE->section : '')) { + $this->content->footer = '' . get_string('bookmarkthispage','admin') . ''; + } else { + $this->content->footer = ''; + } + + return $this->content; } } diff --git a/blocks/admin_bookmarks/create.php b/blocks/admin_bookmarks/create.php index 748e1710e5..d730dcaaa2 100644 --- a/blocks/admin_bookmarks/create.php +++ b/blocks/admin_bookmarks/create.php @@ -9,25 +9,25 @@ if ($section = optional_param('section', '', PARAM_ALPHAEXT)) { if (isset($USER->preference['admin_bookmarks'])) { $bookmarks = explode(',',$USER->preference['admin_bookmarks']); - + if (in_array($section, $bookmarks)) { error(get_string('bookmarkalreadyexists','admin')); - die; - } - - } else { - $bookmarks = array(); - } + die; + } + + } else { + $bookmarks = array(); + } $temp = $adminroot->locate($section); if (is_a($temp, 'admin_settingpage') || is_a($temp, 'admin_externalpage')) { - + $bookmarks[] = $section; - - $bookmarks = implode(',',$bookmarks); - - set_user_preference('admin_bookmarks', $bookmarks); + + $bookmarks = implode(',',$bookmarks); + + set_user_preference('admin_bookmarks', $bookmarks); } else { @@ -35,10 +35,10 @@ if ($section = optional_param('section', '', PARAM_ALPHAEXT)) { die; } - - if (is_a($temp, 'admin_settingpage')) { - - redirect($CFG->wwwroot . '/' . $CFG->admin . '/settings.php?section=' . $section, 'Bookmark added.',1); + + if (is_a($temp, 'admin_settingpage')) { + + redirect($CFG->wwwroot . '/' . $CFG->admin . '/settings.php?section=' . $section, 'Bookmark added.',1); } elseif (is_a($temp, 'admin_externalpage')) { diff --git a/blocks/admin_bookmarks/delete.php b/blocks/admin_bookmarks/delete.php index 51efb013a1..e826f31d3d 100644 --- a/blocks/admin_bookmarks/delete.php +++ b/blocks/admin_bookmarks/delete.php @@ -15,11 +15,11 @@ if ($section = optional_param('section', '', PARAM_ALPHAEXT)) { if ($key === false) { error(get_string('nonexistentbookmark','admin')); - die; - } + die; + } - unset($bookmarks[$key]); - $bookmarks = implode(',',$bookmarks); + unset($bookmarks[$key]); + $bookmarks = implode(',',$bookmarks); set_user_preference('admin_bookmarks', $bookmarks); $temp = $adminroot->locate($section); @@ -31,17 +31,17 @@ if ($section = optional_param('section', '', PARAM_ALPHAEXT)) { } else { redirect($CFG->wwwroot, get_string('bookmarkdeleted', 'admin'),1); } - die; + die; - } - + } + error(get_string('nobookmarksforuser','admin')); - die; + die; } else { error(get_string('invalidsection', 'admin')); - die; + die; } ?> \ No newline at end of file diff --git a/blocks/admin_tree/block_admin_tree.php b/blocks/admin_tree/block_admin_tree.php index 4dd28aec51..aa0dee958a 100644 --- a/blocks/admin_tree/block_admin_tree.php +++ b/blocks/admin_tree/block_admin_tree.php @@ -7,7 +7,7 @@ class block_admin_tree extends block_base { var $tempcontent; var $pathtosection; var $expandjavascript; - var $destination; + var $destination; function init() { global $PAGE; @@ -16,7 +16,7 @@ class block_admin_tree extends block_base { $this->currentdepth = 0; $this->spancounter = 1; $this->tempcontent = ''; - $this->section = (isset($PAGE->section) ? $PAGE->section : ''); + $this->section = (isset($PAGE->section) ? $PAGE->section : ''); $this->pathtosection = array(); $this->expandjavascript = ''; } @@ -55,45 +55,45 @@ class block_admin_tree extends block_base { } function build_tree (&$content) { - global $CFG; - if (is_a($content, 'admin_settingpage')) { - if ($content->check_access()) { - $this->create_item($content->visiblename,$CFG->wwwroot.'/'.$CFG->admin.'/settings.php?section=' . $content->name,$CFG->wwwroot .'/blocks/admin_tree/item.gif'); - } - } else if (is_a($content, 'admin_externalpage')) { - if ($content->check_access()) { - $this->create_item($content->visiblename, $content->url, $CFG->wwwroot . '/blocks/admin_tree/item.gif'); - } - } else if (is_a($content, 'admin_category')) { - if ($content->check_access()) { - + global $CFG; + if (is_a($content, 'admin_settingpage')) { + if ($content->check_access()) { + $this->create_item($content->visiblename,$CFG->wwwroot.'/'.$CFG->admin.'/settings.php?section=' . $content->name,$CFG->wwwroot .'/blocks/admin_tree/item.gif'); + } + } else if (is_a($content, 'admin_externalpage')) { + if ($content->check_access()) { + $this->create_item($content->visiblename, $content->url, $CFG->wwwroot . '/blocks/admin_tree/item.gif'); + } + } else if (is_a($content, 'admin_category')) { + if ($content->check_access()) { + // check if the category we're currently printing is a parent category for the current page; if it is, we - // make a note (in the javascript) that it has to be expanded after the page has loaded - if ($this->pathtosection[count($this->pathtosection) - 1] == $content->name) { - $this->expandjavascript .= 'expand("vh_span' . ($this->spancounter) . '");' . "\n"; - array_pop($this->pathtosection); - } + // make a note (in the javascript) that it has to be expanded after the page has loaded + if ($this->pathtosection[count($this->pathtosection) - 1] == $content->name) { + $this->expandjavascript .= 'expand("vh_span' . ($this->spancounter) . '");' . "\n"; + array_pop($this->pathtosection); + } - $this->open_folder($content->visiblename); + $this->open_folder($content->visiblename); unset($entries); $entries = array_keys($content->children); - foreach ($entries as $entry) { - $this->build_tree($content->children[$entry]); - } + foreach ($entries as $entry) { + $this->build_tree($content->children[$entry]); + } - $this->close_folder(); - } - } + $this->close_folder(); + } + } } function get_content() { global $CFG, $ADMIN; - - require_once($CFG->libdir.'/adminlib.php'); + + require_once($CFG->libdir.'/adminlib.php'); $adminroot = admin_get_root(); if ($this->content !== NULL) { @@ -102,22 +102,22 @@ class block_admin_tree extends block_base { if ($this->pathtosection = $adminroot->path($this->section)) { $this->pathtosection = array_reverse($this->pathtosection); - array_pop($this->pathtosection); - } + array_pop($this->pathtosection); + } // we need to do this instead of $this->build_tree($adminroot) because the top-level folder - // is redundant (and ideally ignored). (the top-level folder is "administration".) - - unset($entries); - - $entries = array_keys($adminroot->children); + // is redundant (and ideally ignored). (the top-level folder is "administration".) - asort($entries); + unset($entries); - foreach ($entries as $entry) { + $entries = array_keys($adminroot->children); + + asort($entries); + + foreach ($entries as $entry) { $this->build_tree($adminroot->children[$entry]); } - + if ($this->tempcontent !== '') { $this->content = new stdClass; $this->content->text = ' +

- +
- + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + - + + + + + + + + + + + + + + + + + + + + + - - -
'.get_string('amountofloan','block_loancalc').''.get_string('amountofloan','block_loancalc').'
calculate
'.get_string('repaymentamount','block_loancalc').'
calculate
'.get_string('loanterm','block_loancalc').'
calculate
'.get_string('interestrate','block_loancalc').'
'.get_string('repaymentfreq','block_loancalc').'
calculate
'.get_string('repaymentamount','block_loancalc').'
'; +
calculate
'.get_string('loanterm','block_loancalc').'
calculate
'.get_string('interestrate','block_loancalc').'
'.get_string('repaymentfreq','block_loancalc').'
'; $options[52] = get_string('weekly','block_loancalc'); $options[26] = get_string('fortnightly','block_loancalc'); $options[12] = get_string('monthly','block_loancalc'); $this->content->text .= choose_from_menu($options,'LOANPAYPERIOD','12',NULL,NULL,NULL,true); $this->content->text .= '
-
'; + + + + '; $this->content->footer = ''; return $this->content; diff --git a/blocks/moodleblock.class.php b/blocks/moodleblock.class.php index c82924d9d0..9b07fb9122 100644 --- a/blocks/moodleblock.class.php +++ b/blocks/moodleblock.class.php @@ -218,7 +218,7 @@ class block_base { * Display the block! */ function _print_block() { - global $COURSE; + global $COURSE; // is_empty() includes a call to get_content() if ($this->is_empty() && empty($COURSE->javascriptportal)) { @@ -240,7 +240,7 @@ class block_base { //make a record of the block for the ajax course format to use if (!empty($COURSE->javascriptportal)) { - $COURSE->javascriptportal->block_add('inst'.$this->instance->id,!$this->instance->visible); + $COURSE->javascriptportal->block_add('inst'.$this->instance->id,!$this->instance->visible); } } } @@ -290,32 +290,32 @@ class block_base { function _add_edit_controls($options) { global $CFG, $USER, $PAGE; - - // this is the context relevant to this particular block instance - $blockcontext = get_context_instance(CONTEXT_BLOCK, $this->instance->id); - - // context for site or course, i.e. participant list etc - // check to see if user can edit site or course blocks. - // blocks can appear on other pages such as mod and blog pages... - - switch ($this->instance->pagetype) { - case 'course-view': - if ($this->instance->pageid == SITEID) { - $context = get_context_instance(CONTEXT_SYSTEM, $this->instance->pageid); - } else { - $context = get_context_instance(CONTEXT_COURSE, $this->instance->pageid); - } - - if (!has_capability('moodle/site:manageblocks', $context)) { - return null; - } - break; - default: - - break; - } - - + + // this is the context relevant to this particular block instance + $blockcontext = get_context_instance(CONTEXT_BLOCK, $this->instance->id); + + // context for site or course, i.e. participant list etc + // check to see if user can edit site or course blocks. + // blocks can appear on other pages such as mod and blog pages... + + switch ($this->instance->pagetype) { + case 'course-view': + if ($this->instance->pageid == SITEID) { + $context = get_context_instance(CONTEXT_SYSTEM, $this->instance->pageid); + } else { + $context = get_context_instance(CONTEXT_COURSE, $this->instance->pageid); + } + + if (!has_capability('moodle/site:manageblocks', $context)) { + return null; + } + break; + default: + + break; + } + + if (!isset($this->str)) { $this->str->delete = get_string('delete'); $this->str->moveup = get_string('moveup'); @@ -348,8 +348,8 @@ class block_base { } $script = $page->url_get_full(array('instanceid' => $this->instance->id, 'sesskey' => $USER->sesskey)); - // place holder for roles button - $movebuttons .= '' . + // place holder for roles button + $movebuttons .= '' . ''.$this->str->assignroles.''; $movebuttons .= '' . @@ -677,7 +677,7 @@ class block_list extends block_base { } function _print_block() { - global $COURSE; + global $COURSE; // is_empty() includes a call to get_content() if ($this->is_empty() && empty($COURSE->javascriptportal)) { @@ -701,7 +701,7 @@ class block_list extends block_base { //make a record of the block for the ajax course format to use if (!empty($COURSE->javascriptportal)) { - $COURSE->javascriptportal->block_add('inst'.$this->instance->id,!$this->instance->visible); + $COURSE->javascriptportal->block_add('inst'.$this->instance->id,!$this->instance->visible); } } } diff --git a/blocks/participants/block_participants.php b/blocks/participants/block_participants.php index a16b1def7c..eadf0e2daf 100644 --- a/blocks/participants/block_participants.php +++ b/blocks/participants/block_participants.php @@ -7,28 +7,28 @@ class block_participants extends block_list { } function get_content() { - + global $USER, $CFG; - - // the following 3 lines is need to pass _self_test(); - if (empty($this->instance->pageid)) { - return ''; - } - - - // only 2 possible contexts, site or course - if ($this->instance->pageid == SITEID) { // site context - $currentcontext = get_context_instance(CONTEXT_SYSTEM, SITEID); - $canviewparticipants = has_capability('moodle/site:viewparticipants', $currentcontext); - } else { // course context - $currentcontext = get_context_instance(CONTEXT_COURSE, $this->instance->pageid); - $canviewparticipants = has_capability('moodle/course:viewparticipants', $currentcontext); - } - - if (!$canviewparticipants) { - $this->context = ''; - return $this->content; - } + + // the following 3 lines is need to pass _self_test(); + if (empty($this->instance->pageid)) { + return ''; + } + + + // only 2 possible contexts, site or course + if ($this->instance->pageid == SITEID) { // site context + $currentcontext = get_context_instance(CONTEXT_SYSTEM, SITEID); + $canviewparticipants = has_capability('moodle/site:viewparticipants', $currentcontext); + } else { // course context + $currentcontext = get_context_instance(CONTEXT_COURSE, $this->instance->pageid); + $canviewparticipants = has_capability('moodle/course:viewparticipants', $currentcontext); + } + + if (!$canviewparticipants) { + $this->context = ''; + return $this->content; + } if ($this->content !== NULL) { return $this->content; diff --git a/blog/README.txt b/blog/README.txt index c3b53c4b5b..998a791c3d 100644 --- a/blog/README.txt +++ b/blog/README.txt @@ -55,14 +55,14 @@ have the moodle debugging option turned on in the moodle admin configuration pag "There are 3 things I have set differently (as far as I can remember!) in the Moodle install process I set the debuging to be "on" - in php.ini file,Ê + in php.ini file,� error_reporting = E_ALL and in my browser [Ed. I assume he is on a windows machine likely using some form of IE], internet options > advanced under the browsing section display a notification about every script error selected disable Script debugging unselected." - --Dan Marsden, 2004 + --Dan Marsden, 2004 ================================================= diff --git a/blog/TODO.txt b/blog/TODO.txt index f96f264fa7..4f34ff1514 100644 --- a/blog/TODO.txt +++ b/blog/TODO.txt @@ -80,7 +80,7 @@ bloglastmodified __________ REGULAR TODO: - MOODLE BLOG TODO + MOODLE BLOG TODO ================================================= NEEDS TESTING (NOTE: If you decide to test these items please @@ -113,55 +113,55 @@ ACTIVE WORK / TO BE COMPLETED (bug fixes and other things targeted for first release) ================================================= -¥rss_client - during upgrade check for fopen() (or whatever is required) and disable the block if it cannot function on the server? How to properly introspect this functionality? +�rss_client - during upgrade check for fopen() (or whatever is required) and disable the block if it cannot function on the server? How to properly introspect this functionality? -¥ Elimiate admin.php file - move one remaining function into category block +� Elimiate admin.php file - move one remaining function into category block -¥ Calendar Block Bug: Cal is showing link to dates with blog entries which are not found in the current blog! It should only show links to dates that have entries which the user can see given their blogFilter constraints. (Odd - in testing on my local site I cannot reproduce this error). +� Calendar Block Bug: Cal is showing link to dates with blog entries which are not found in the current blog! It should only show links to dates that have entries which the user can see given their blogFilter constraints. (Odd - in testing on my local site I cannot reproduce this error). -¥ Martin suggested that the "Enable blog" step should occur on first attempt at new entry - eliminating one step. I'm not thoroughly convinced that this is the best, it needs more discussion. If you enable the blog just because they click "post new entry" then you are adding extra blogs for the curious who may not use it after first investigation. The best compromise is to show the'learning text' on the edit form itself and enable the blog when they submit their first entry, but the edit form doesn't lend itself well to this approach and the edit form would be pretty far down the page. +� Martin suggested that the "Enable blog" step should occur on first attempt at new entry - eliminating one step. I'm not thoroughly convinced that this is the best, it needs more discussion. If you enable the blog just because they click "post new entry" then you are adding extra blogs for the curious who may not use it after first investigation. The best compromise is to show the'learning text' on the edit form itself and enable the blog when they submit their first entry, but the edit form doesn't lend itself well to this approach and the edit form would be pretty far down the page. (One possible solution is to add a bool column to the blog_list table enabled/disabled. If the user hits the edit page and they have no blog then create one in the db for them and use that blogid for the remainder of the page. If their blog is disabled (default) then add a link to the top of the page suggesting that they read the help file on "About Blogs" before posting.) -¥ Martin makes a good point about eliminating jargon for the end user experience. Look through blocks and links and comb out overly cryptic wording. +� Martin makes a good point about eliminating jargon for the end user experience. Look through blocks and links and comb out overly cryptic wording. -¥ Continue work on help pages for trackback and pingback. Explain what they are and why you would want to send or not send them from a post. (posted discussion topic requesting assistance with this text on using moodle blog forum) +� Continue work on help pages for trackback and pingback. Explain what they are and why you would want to send or not send them from a post. (posted discussion topic requesting assistance with this text on using moodle blog forum) -¥ phase out the use of BlogEntry->entryCategoryIds since BlogEntry->entryCategories now contains both the id and name in a single associative array. +� phase out the use of BlogEntry->entryCategoryIds since BlogEntry->entryCategories now contains both the id and name in a single associative array. RSS (server): feeds NOW support args of blogid=# or catid=#. As we integrate further with moodle we may want a courseid=# option. This applies to rss, rss2 and atom.php. Courseid may not be useful except on courses which allow guest access. I do not know for sure that rss feeds can be authenticated. The current rss feeds do not do any form of authentication. How would a news reader client handle authentication of the feed? Page re: authenticated feeds: http://labs.silverorange.com/archives/2003/july/privaterss -¥ On edit.php indent the send trackback option and make it dependent on pingback being enabled +� On edit.php indent the send trackback option and make it dependent on pingback being enabled for reference on how to do this see code for "when adding a Resource" (I'm not positive that tb/pb are quite this neatly related with tb dependant on pb being enabled. I believe that tb could be enabled without pb and it will work. This requires more research and better help file explanations of feature functionality. It might seem appropriate to simply allow trackback as it seems to be built on top of pb, but I believe pb is supported because some remote servers do not support tb.) -¥ SECURITY - ADMIN CONFIG OPTION - I'm thinking lately that it might be nice during install time (and as an admin blog config option) to present the user with a choice - "use blogs" - that way any "security" concerns are negated since it can be completely disabled. +� SECURITY - ADMIN CONFIG OPTION - I'm thinking lately that it might be nice during install time (and as an admin blog config option) to present the user with a choice - "use blogs" - that way any "security" concerns are negated since it can be completely disabled. -¥ Check to see if guest users who have joined the course with an enrollment key can post comments when anon comments disabled/enabled - maybe extra setting in config - "allow guests who enter with enrolment key to post comments" +� Check to see if guest users who have joined the course with an enrollment key can post comments when anon comments disabled/enabled - maybe extra setting in config - "allow guests who enter with enrolment key to post comments" -¥ Convert archive.php into view.php which will be a permalink page for viewing single entries only. +� Convert archive.php into view.php which will be a permalink page for viewing single entries only. ================================================= ONGOING / STYLE ================================================= -¥ Examine database usage and attempt to optimize: (note from Jon: you can say "EXPLAIN (your query here)" and MySQL will tell you what it's doing to execute the query for example, how many rows it will have to consider, what indexes it will be using and stuff) +� Examine database usage and attempt to optimize: (note from Jon: you can say "EXPLAIN (your query here)" and MySQL will tell you what it's doing to execute the query for example, how many rows it will have to consider, what indexes it will be using and stuff) -¥ if you're worried about memory bloat - just don't keep the objects around any longer than you need to - e.g. after done with it call "unset($page)" +� if you're worried about memory bloat - just don't keep the objects around any longer than you need to - e.g. after done with it call "unset($page)" -¥ Add phpdoc comments to files, classes and functions. +� Add phpdoc comments to files, classes and functions. -¥ SQL: Convert more sql calls to moodle functions rather than raw sql. +� SQL: Convert more sql calls to moodle functions rather than raw sql. -¥ LOCALIZATION: Review code occasionally to localize any hard coded text +� LOCALIZATION: Review code occasionally to localize any hard coded text -¥ MOODLE INTEGRATION/CLEANUP: enforce integer values before using them in db calls: +� MOODLE INTEGRATION/CLEANUP: enforce integer values before using them in db calls: // Make sure that the GET variables are correct $day = intval($_GET['cal_d']); -¥ MOODLE INTEGRATION/CLEANUP: Use p() when showing vars in html forms +� MOODLE INTEGRATION/CLEANUP: Use p() when showing vars in html forms special characters - making sure it's just text. -¥ from Jon: $motto = "always use empty() UNLESS there is a specific reason not to" +� from Jon: $motto = "always use empty() UNLESS there is a specific reason not to" and the specific reasons may be two: 1) you care to differentiate between NULL and '' 2) you want to see if an object exists before starting to pull out its properties @@ -169,37 +169,37 @@ and the specific reasons may be two: ======================================================================= FEATURE REQUESTS (not targeted for first release, order means nothing) ======================================================================= -¥ http://wordpress.org/about/shots/1.5/moderation.png - comment moderation for the blog owner themselves +� http://wordpress.org/about/shots/1.5/moderation.png - comment moderation for the blog owner themselves -¥ RSS 2.0's enclosure capabilities would be a nice addition for podcasting. +� RSS 2.0's enclosure capabilities would be a nice addition for podcasting. -¥ From Martin's bug regarding blogging: +� From Martin's bug regarding blogging: "3) Blog entries appear as usual, and can have a discussion attached to them for feedback and comments. Each entry can also have a "grade", which is the average of a number of ratings. Normally this might just be the teacher, but it could be the whole class rating each other's entries." -¥ find a way to moderate based on the category and course rather than the site. Would allow one teacher to moderate their own course entries while another chooses not to +� find a way to moderate based on the category and course rather than the site. Would allow one teacher to moderate their own course entries while another chooses not to -¥ RSS_CLIENT: +� RSS_CLIENT: define('MAGPIE_CACHE_FRESH_ONLY', false); //should be exposed as an admin config option - if true then it will not display stale cache contents when remote feed cannot be refreshed. -¥ PINGBACK/TRACKBACK: PingBacks and TrackBacks should be logged in moodle logs as they are saved/executed. +� PINGBACK/TRACKBACK: PingBacks and TrackBacks should be logged in moodle logs as they are saved/executed. -¥ Handle deletion of user +� Handle deletion of user BlogServer class has function deleteBlogById($blogid). This is not currently called by any blog code. It might be a good function to be used by moodle. However, moodle's delete user simply marks the user as deleted - allowing the user to be easily reactivated. Should we be checking for ($user->deleted != 1) before displaying blog information? -¥ Possibly re-enable weblogs.com RPC option +� Possibly re-enable weblogs.com RPC option //below is a section removed from edit.php. blog_useweblog_rpc) { echo "Send update notice to weblogs.com
(may cause longer load time) "; }?> -¥ DH - RSS - All rss/atom scripts should use a blogFilter with arguments passed in to be used in loading correct blogEntries. Either the news page or a new function in BlogFilter should build the cache filename. Create a new page that has full drop down menu options to select a specific feed type (filter news feeds by category, user, date to start with) +� DH - RSS - All rss/atom scripts should use a blogFilter with arguments passed in to be used in loading correct blogEntries. Either the news page or a new function in BlogFilter should build the cache filename. Create a new page that has full drop down menu options to select a specific feed type (filter news feeds by category, user, date to start with) -¥ RSS: Single page where users can go to access rss links (xml image and link) which are available to them on the moodle server - instead of only being available in blocks. When working with our own published feeds add links for administrator to "Validate" remote feed. Should integrate with new news page that lists all available local feeds. ( http://feeds.archive.org/validator/check?url=) (NEWS/RSS: add new index_news.php file. should list all possible feeds for the site. including blogids, catids and moodle links. At the top should be "My RSS Feeds" for logged in users to quickly find their own links. RSS Feeds side block and the user admin section should have links to this new page.) +� RSS: Single page where users can go to access rss links (xml image and link) which are available to them on the moodle server - instead of only being available in blocks. When working with our own published feeds add links for administrator to "Validate" remote feed. Should integrate with new news page that lists all available local feeds. ( http://feeds.archive.org/validator/check?url=) (NEWS/RSS: add new index_news.php file. should list all possible feeds for the site. including blogids, catids and moodle links. At the top should be "My RSS Feeds" for logged in users to quickly find their own links. RSS Feeds side block and the user admin section should have links to this new page.) -¥ API.PHP: Add support for media upload api metaweblog call. Would allow a user to post a blog entry complete with pictures. "Finally, the ability of students to include pictures and other media is very useful." Should target this ASAP. Right now I'm waiting for moodle to have a comprehensive file management system that would allow a student to upload their own files to the server. +� API.PHP: Add support for media upload api metaweblog call. Would allow a user to post a blog entry complete with pictures. "Finally, the ability of students to include pictures and other media is very useful." Should target this ASAP. Right now I'm waiting for moodle to have a comprehensive file management system that would allow a student to upload their own files to the server. -¥ Add entry/comment view counters +� Add entry/comment view counters COUNTERS: Add view counters to simplog tables (or create blog_log table). How many times has the full body of an entry been viewed, how many times have comments on an entry been viewed? (member vs. guest views should be counted) Should be a new template markup option --showguestviews-- --showmemberviews-- --showtotalviews--. @@ -215,9 +215,9 @@ CALENDAR: It would be nice if Blog entries that have been marked 'published' app From email with Jon P. : Is it possible to create an event in the calendar programmatically that - 1) is NOT tied to a courseid, an event for the user, not for a course + 1) is NOT tied to a courseid, an event for the user, not for a course they are in - 2) is not editable by the user + 2) is not editable by the user "OK, your question has two parts and a two-sided answer. First of all, you could add fields to mdl_event that make the recognition of a fifth type of @@ -265,10 +265,10 @@ ______________________________ RSS: Notes from: http://www.learningcircuits.org/2004/may2004/0405_trends.htm -And what about other technologies? Could RSS be integrated with other new tools, such as the ones described in ÒWe LearningÓ, parts I and II? Consider -¥ a social networking tool that sends you a feed informing you of the new people who just joined the network -¥ an expert management system that uses feeds to tell you when a new expert is added to the system in your area of interest, or when an expert has created a new document you might be interested in -¥ collaborative workspaces that use feeds to bring in information people in the group need to complete a project -¥ a problem-based RSS feed integrated with a social networking or expert management tool in which you could subscribe to a problem, for example Òreluctant learners,Ó and then receive updates whenever someone writes on that topic. +And what about other technologies? Could RSS be integrated with other new tools, such as the ones described in �We Learning�, parts I and II? Consider +� a social networking tool that sends you a feed informing you of the new people who just joined the network +� an expert management system that uses feeds to tell you when a new expert is added to the system in your area of interest, or when an expert has created a new document you might be interested in +� collaborative workspaces that use feeds to bring in information people in the group need to complete a project +� a problem-based RSS feed integrated with a social networking or expert management tool in which you could subscribe to a problem, for example �reluctant learners,� and then receive updates whenever someone writes on that topic. - ¥ RSS Server: Create RSS feed of member joins for each course. \ No newline at end of file + � RSS Server: Create RSS feed of member joins for each course. \ No newline at end of file diff --git a/blog/lib.php b/blog/lib.php index 58e2bf5e4d..eef1e5ff56 100755 --- a/blog/lib.php +++ b/blog/lib.php @@ -436,7 +436,7 @@ case 'site': if (isloggedin()) { - + $SQL = 'SELECT '.$requiredfields.' FROM '.$CFG->prefix.'post p, '.$tagtablesql .$CFG->prefix.'user u WHERE p.userid = u.id '.$tagquerysql.' @@ -491,33 +491,33 @@ case 'group': - $SQL = 'SELECT '.$requiredfields.' FROM '.$CFG->prefix.'post p, '.$tagtablesql - .$CFG->prefix.'groups_members m, '.$CFG->prefix.'user u - WHERE p.userid = m.userid '.$tagquerysql.' - AND u.id = p.userid - AND m.groupid = '.$filterselect.' - AND (p.publishstate = \'site\' OR p.publishstate = \'public\' OR p.userid = '.$USER->id.')'; + $SQL = 'SELECT '.$requiredfields.' FROM '.$CFG->prefix.'post p, '.$tagtablesql + .$CFG->prefix.'groups_members m, '.$CFG->prefix.'user u + WHERE p.userid = m.userid '.$tagquerysql.' + AND u.id = p.userid + AND m.groupid = '.$filterselect.' + AND (p.publishstate = \'site\' OR p.publishstate = \'public\' OR p.userid = '.$USER->id.')'; break; case 'user': - - if (isloggedin()) { - - $SQL = 'SELECT '.$requiredfields.' FROM '.$CFG->prefix.'post p, '.$tagtablesql - .$CFG->prefix.'user u - WHERE p.userid = u.id '.$tagquerysql.' - AND u.id = '.$filterselect.' - AND (p.publishstate = \'site\' OR p.publishstate = \'public\' OR p.userid = '.$USER->id.')'; - } else { - - $SQL = 'SELECT '.$requiredfields.' FROM '.$CFG->prefix.'post p, '.$tagtablesql - .$CFG->prefix.'user u - WHERE p.userid = u.id '.$tagquerysql.' - AND u.id = '.$filterselect.' - AND p.publishstate = \'public\''; - - } + + if (isloggedin()) { + + $SQL = 'SELECT '.$requiredfields.' FROM '.$CFG->prefix.'post p, '.$tagtablesql + .$CFG->prefix.'user u + WHERE p.userid = u.id '.$tagquerysql.' + AND u.id = '.$filterselect.' + AND (p.publishstate = \'site\' OR p.publishstate = \'public\' OR p.userid = '.$USER->id.')'; + } else { + + $SQL = 'SELECT '.$requiredfields.' FROM '.$CFG->prefix.'post p, '.$tagtablesql + .$CFG->prefix.'user u + WHERE p.userid = u.id '.$tagquerysql.' + AND u.id = '.$filterselect.' + AND p.publishstate = \'public\''; + + } break; diff --git a/calendar/lib.php b/calendar/lib.php index bfce428e22..f4be9d6412 100644 --- a/calendar/lib.php +++ b/calendar/lib.php @@ -106,12 +106,12 @@ function calendar_get_mini($courses, $groups, $users, $cal_month = false, $cal_y if (get_user_timezone_offset() < 99) { // We 'll keep these values as GMT here, and offset them when the time comes to query the db - $display->tstart = gmmktime(0, 0, 0, $m, 1, $y); // This is GMT - $display->tend = gmmktime(23, 59, 59, $m, $display->maxdays, $y); // GMT + $display->tstart = gmmktime(0, 0, 0, $m, 1, $y); // This is GMT + $display->tend = gmmktime(23, 59, 59, $m, $display->maxdays, $y); // GMT } else { // no timezone info specified - $display->tstart = mktime(0, 0, 0, $m, 1, $y); - $display->tend = mktime(23, 59, 59, $m, $display->maxdays, $y); + $display->tstart = mktime(0, 0, 0, $m, 1, $y); + $display->tend = mktime(23, 59, 59, $m, $display->maxdays, $y); } $startwday = dayofweek(1, $m, $y); diff --git a/course/category.php b/course/category.php index 6bd757a899..9d1206e9d7 100644 --- a/course/category.php +++ b/course/category.php @@ -297,7 +297,7 @@ foreach ($courses as $acourse) { - $context = get_context_instance(CONTEXT_COURSE, $acourse->id); + $context = get_context_instance(CONTEXT_COURSE, $acourse->id); $count++; $up = ($count > 1 || !$atfirstpage); @@ -315,12 +315,12 @@ echo '
'. ''.$strassignteachers.' '; - if (has_capability('moodle/course:delete', $context)) { + if (has_capability('moodle/course:delete', $context)) { echo ''. ''.$strdelete.' '; } - if (has_capability('moodle/course:visibility', $context)) { + if (has_capability('moodle/course:visibility', $context)) { if (!empty($acourse->visible)) { echo ''. @@ -332,15 +332,15 @@ } } - if (has_capability('moodle/site:backup', $context)) { - echo ''. - ' '; - } - - if (has_capability('moodle/site:restore', $context)) { - echo ''. - ' '; + if (has_capability('moodle/site:backup', $context)) { + echo ''. + ' '; + } + + if (has_capability('moodle/site:restore', $context)) { + echo ''. + ' '; } echo ''. @@ -425,7 +425,7 @@ print_single_button('category.php', $options, get_string('resortcoursesbyname'), 'get'); } - $context = get_context_instance(CONTEXT_SYSTEM, SITEID); + $context = get_context_instance(CONTEXT_SYSTEM, SITEID); if (has_capability('moodle/course:create', $context)) { /// Print button to create a new course unset($options); $options['category'] = $category->id; @@ -433,7 +433,7 @@ echo '
'; } - $context = get_context_instance(CONTEXT_COURSECAT, $id); + $context = get_context_instance(CONTEXT_COURSECAT, $id); if (has_capability('moodle/category:update', $context)) { /// Print form to rename the category $strrename= get_string('rename'); echo '
'; @@ -443,9 +443,9 @@ echo ''; echo "
"; echo "
"; - } + } - print_course_search(); + print_course_search(); echo ""; diff --git a/course/edit.php b/course/edit.php index 2dd123008c..19ee7036c7 100644 --- a/course/edit.php +++ b/course/edit.php @@ -19,8 +19,8 @@ error('Course ID was incorrect'); } - $context = get_context_instance(CONTEXT_COURSE, $course->id); - + $context = get_context_instance(CONTEXT_COURSE, $course->id); + if (!has_capability('moodle/course:update', $context)) { error("You do not currently have editing privileges!"); } @@ -42,8 +42,8 @@ } } else { // Admin is creating a new course - $context = get_context_instance(CONTEXT_SYSTEM, SITEID); - if (!has_capability('moodle/course:create',$context)) { + $context = get_context_instance(CONTEXT_SYSTEM, SITEID); + if (!has_capability('moodle/course:create',$context)) { error("You do not currently have course creation privileges!"); } diff --git a/course/group.php b/course/group.php index 9c60633e4c..96e14e4713 100644 --- a/course/group.php +++ b/course/group.php @@ -17,16 +17,16 @@ require_login($course->id); - if (! $group = get_record("groups", "id", $group, "courseid", $course->id)) { + if (! $group = get_record("groups", "id", $group, "courseid", $course->id)) { notice('Specified group could not be found!', "#"); close_window_button(); } - // this is fine since group inherits course settings, this allows 1) teacher to edit all groups - // 2 someone with a role with a cap to modify a specific group - $context = get_context_instance(CONTEXT_GROUP, $group->id); + // this is fine since group inherits course settings, this allows 1) teacher to edit all groups + // 2 someone with a role with a cap to modify a specific group + $context = get_context_instance(CONTEXT_GROUP, $group->id); - // this is really weird + // this is really weird if (!has_capability('moodle/course:managegroups', $context)) { close_window(); } diff --git a/course/groups.php b/course/groups.php index 0ab0dbca89..5d7a8ef0d8 100644 --- a/course/groups.php +++ b/course/groups.php @@ -37,7 +37,7 @@ } require_login($course->id); - $context = get_context_instance(CONTEXT_COURSE, $course->id); + $context = get_context_instance(CONTEXT_COURSE, $course->id); if (!has_capability('moodle/course:managegroups', $context)) { redirect("group.php?id=$course->id"); // Not allowed to see all groups diff --git a/course/import/groups/index.php b/course/import/groups/index.php index 907e8d2ceb..7e2219fe03 100755 --- a/course/import/groups/index.php +++ b/course/import/groups/index.php @@ -2,19 +2,19 @@ /// Bulk group creation registration script from a comma separated file - require_once('../../../config.php'); + require_once('../../../config.php'); require_once('../../lib.php'); - - $mycourseid = required_param('id', PARAM_INT); // Course id - if (! $course = get_record('course', 'id', $mycourseid) ) { + $mycourseid = required_param('id', PARAM_INT); // Course id + + if (! $course = get_record('course', 'id', $mycourseid) ) { error("That's an invalid course id"); } - - require_login($course->id); - $context = get_context_instance(CONTEXT_COURSE, $mycourseid); - - + + require_login($course->id); + $context = get_context_instance(CONTEXT_COURSE, $mycourseid); + + if (!has_capability('moodle/course:managegroups', $context)) { error("You do not have the required permissions to manage groups."); } @@ -23,7 +23,7 @@ // error(get_string('confirmsesskeybad', 'error')); //} - $strimportgroups = get_string("importgroups"); + $strimportgroups = get_string("importgroups"); $csv_encode = '/\&\#44/'; if (isset($CFG->CSV_DELIMITER)) { @@ -43,7 +43,7 @@ print_header("$course->shortname: $strimportgroups", "$course->fullname", "
wwwroot/course/view.php?id=$course->id\">$course->shortname ". "-> wwwroot/course/import.php?id=$course->id\">".get_string('import')." ". - "-> $strimportgroups"); + "-> $strimportgroups"); /// If a file has been uploaded, then process it @@ -65,11 +65,11 @@ $required = array("groupname" => 1, ); $optionalDefaults = array("lang" => 1, ); $optional = array("coursename" => 1, - "idnumber" =>1, - "description" => 1, - "password" => 1, - "theme" => 1, - "picture" => 1, + "idnumber" =>1, + "description" => 1, + "password" => 1, + "theme" => 1, + "picture" => 1, "hidepicture" => 1, ); // --- get header (field names) --- @@ -93,8 +93,8 @@ $linenum = 2; // since header is line 1 while (!feof ($fp)) { - - $newgroup = new object();//to make Martin happy + + $newgroup = new object();//to make Martin happy foreach ($optionalDefaults as $key => $value) { $newgroup->$key = current_language(); //defaults to current language } @@ -129,61 +129,61 @@ $newgroup->{$name} = addslashes($value); } } - ///Find the courseid of the course with the given shortname - - //if idnumber is set, we use that. - //unset invalid courseid - if ($newgroup->idnumber){ - if (!$mycourse = get_record('course', 'idnumber',$newgroup->idnumber)){ - notify(get_string('unknowncourseidnumber', 'error', $newgroup->idnumber)); - unset($newgroup->courseid);//unset so 0 doesnt' get written to database - } - $newgroup->courseid = $mycourse->id; - } - //else use course short name to look up - //unset invalid coursename (if no id) - - else if ($newgroup->coursename){ - if (!$mycourse = get_record('course', 'shortname',$newgroup->coursename)){ - notify(get_string('unknowncourse', 'error', $newgroup->coursename)); - unset($newgroup->courseid);//unset so 0 doesnt' get written to database - } - $newgroup->courseid = $mycourse->id; - } - //else juse use current id - else{ - $newgroup->courseid = $mycourseid; - } - - //if courseid is set - if (isset($newgroup->courseid)){ - - $newgroup->timecreated = time(); - $linenum++; - $groupname = $newgroup->name; - $newgrpcoursecontext = get_context_instance(CONTEXT_COURSE, $newgroup->courseid); - - ///Users cannot upload groups in courses they cannot update. - if (has_capability('moodle/course:update', $newgrpcoursecontext)){ - notify("$newgroup->name ".get_string('notaddedto').$newgroup->coursename.get_string('notinyourcapacity')); - } - - else { - if (get_record("groups","name",$groupname,"courseid",$newgroup->courseid) || !($newgroup->id = insert_record("groups", $newgroup))) { - - //Record not added - probably because group is already registered - //In this case, output groupname from previous registration - if ($group = get_record("groups","name",$groupname)) { - notify("$newgroup->name ".get_string('groupexistforcourse', 'error', $groupname)); - } else { - notify(get_string('groupnotaddederror', 'error', $groupname)); - } - } - else { - notify(get_string('group')." $newgroup->name ".get_string('addedsuccessfully')); - } - } - } //close courseid validity check + ///Find the courseid of the course with the given shortname + + //if idnumber is set, we use that. + //unset invalid courseid + if ($newgroup->idnumber){ + if (!$mycourse = get_record('course', 'idnumber',$newgroup->idnumber)){ + notify(get_string('unknowncourseidnumber', 'error', $newgroup->idnumber)); + unset($newgroup->courseid);//unset so 0 doesnt' get written to database + } + $newgroup->courseid = $mycourse->id; + } + //else use course short name to look up + //unset invalid coursename (if no id) + + else if ($newgroup->coursename){ + if (!$mycourse = get_record('course', 'shortname',$newgroup->coursename)){ + notify(get_string('unknowncourse', 'error', $newgroup->coursename)); + unset($newgroup->courseid);//unset so 0 doesnt' get written to database + } + $newgroup->courseid = $mycourse->id; + } + //else juse use current id + else{ + $newgroup->courseid = $mycourseid; + } + + //if courseid is set + if (isset($newgroup->courseid)){ + + $newgroup->timecreated = time(); + $linenum++; + $groupname = $newgroup->name; + $newgrpcoursecontext = get_context_instance(CONTEXT_COURSE, $newgroup->courseid); + + ///Users cannot upload groups in courses they cannot update. + if (has_capability('moodle/course:update', $newgrpcoursecontext)){ + notify("$newgroup->name ".get_string('notaddedto').$newgroup->coursename.get_string('notinyourcapacity')); + } + + else { + if (get_record("groups","name",$groupname,"courseid",$newgroup->courseid) || !($newgroup->id = insert_record("groups", $newgroup))) { + + //Record not added - probably because group is already registered + //In this case, output groupname from previous registration + if ($group = get_record("groups","name",$groupname)) { + notify("$newgroup->name ".get_string('groupexistforcourse', 'error', $groupname)); + } else { + notify(get_string('groupnotaddederror', 'error', $groupname)); + } + } + else { + notify(get_string('group')." $newgroup->name ".get_string('addedsuccessfully')); + } + } + } //close courseid validity check unset ($newgroup); }//close if ($record[$header[0]]) }//close while($fp) @@ -193,7 +193,7 @@ } /// Print the form - require('mod.php'); + require('mod.php'); print_footer($course); diff --git a/course/index.php b/course/index.php index b83a4a1a47..aee1fd34a7 100644 --- a/course/index.php +++ b/course/index.php @@ -118,10 +118,10 @@ /// Delete a category if necessary if (!empty($delete) and confirm_sesskey()) { - - // context is coursecat, if not present admins should have it set in site level - $context = get_context_instance(CONTEXT_COURSECAT, $delete); - if ($deletecat = get_record("course_categories", "id", $delete) and has_capability('moodle/category:delete', $context)) { + + // context is coursecat, if not present admins should have it set in site level + $context = get_context_instance(CONTEXT_COURSECAT, $delete); + if ($deletecat = get_record("course_categories", "id", $delete) and has_capability('moodle/category:delete', $context)) { if (!empty($sure) && $sure == md5($deletecat->timemodified)) { /// Send the children categories to live with their grandparent if ($childcats = get_records("course_categories", "parent", $deletecat->id)) { @@ -276,17 +276,17 @@ fix_course_sortorder(); /// Print form for creating new categories - if (has_capability('moodle/category:create', $context)) { - echo "
"; - echo "
"; - echo ""; - echo ""; - echo "sesskey\" />"; - echo "
"; - echo "
"; - - echo "
"; - } + if (has_capability('moodle/category:create', $context)) { + echo "
"; + echo "
"; + echo ""; + echo ""; + echo "sesskey\" />"; + echo "
"; + echo "
"; + + echo "
"; + } /// Print out the categories with all the knobs @@ -320,7 +320,7 @@ if (has_capability('moodle/course:create', $context)) { - print_single_button("edit.php", $options, get_string("addnewcourse"), "get"); + print_single_button("edit.php", $options, get_string("addnewcourse"), "get"); } print_single_button('pending.php',NULL, get_string('coursespending'),"get"); echo "
"; @@ -347,8 +347,8 @@ function print_category_edit($category, $displaylist, $parentslist, $depth=-1, $ } if ($category) { - $context = get_context_instance(CONTEXT_COURSECAT, $category->id); - + $context = get_context_instance(CONTEXT_COURSECAT, $category->id); + echo ""; for ($i=0; $i<$depth;$i++) { echo "      "; @@ -361,20 +361,20 @@ function print_category_edit($category, $displaylist, $parentslist, $depth=-1, $ echo ""; /// Print little icons - if (has_capability('moodle/category:delete', $context)) { - echo "delete\" href=\"index.php?delete=$category->id&sesskey=$USER->sesskey\">pixpath/t/delete.gif\" height=\"11\" width=\"11\" border=\"0\" alt=\"\" /> "; - } - - if (has_capability('moodle/category:visibility', $context)) { - if (!empty($category->visible)) { - echo "hide\" href=\"index.php?hide=$category->id&sesskey=$USER->sesskey\">pixpath/t/hide.gif\" height=\"11\" width=\"11\" border=\"0\" alt=\"\" /> "; - } else { - echo "show\" href=\"index.php?show=$category->id&sesskey=$USER->sesskey\">pixpath/t/show.gif\" height=\"11\" width=\"11\" border=\"0\"alt=\"\" /> "; - } - } + if (has_capability('moodle/category:delete', $context)) { + echo "delete\" href=\"index.php?delete=$category->id&sesskey=$USER->sesskey\">pixpath/t/delete.gif\" height=\"11\" width=\"11\" border=\"0\" alt=\"\" /> "; + } + + if (has_capability('moodle/category:visibility', $context)) { + if (!empty($category->visible)) { + echo "hide\" href=\"index.php?hide=$category->id&sesskey=$USER->sesskey\">pixpath/t/hide.gif\" height=\"11\" width=\"11\" border=\"0\" alt=\"\" /> "; + } else { + echo "show\" href=\"index.php?show=$category->id&sesskey=$USER->sesskey\">pixpath/t/show.gif\" height=\"11\" width=\"11\" border=\"0\"alt=\"\" /> "; + } + } if ($up) { echo "moveup\" href=\"index.php?moveup=$category->id&sesskey=$USER->sesskey\">coursemodule = $cm->id; } - $context = get_context_instance(CONTEXT_COURSE, $course->id); - require_capability('moodle/course:update', $context); + $context = get_context_instance(CONTEXT_COURSE, $course->id); + require_capability('moodle/course:update', $context); $mod->course = $course->id; $mod->modulename = clean_param($mod->modulename, PARAM_SAFEDIR); // For safety @@ -241,8 +241,8 @@ } } - $context = get_context_instance(CONTEXT_COURSE, $section->course); - require_capability('moodle/course:update', $context); + $context = get_context_instance(CONTEXT_COURSE, $section->course); + require_capability('moodle/course:update', $context); if (!ismoving($section->course)) { error("You need to copy something first!"); @@ -270,8 +270,8 @@ error("This course module doesn't exist"); } - $context = get_context_instance(CONTEXT_COURSE, $cm->course); - require_capability('moodle/course:update', $context); + $context = get_context_instance(CONTEXT_COURSE, $cm->course); + require_capability('moodle/course:update', $context); $cm->indent += $indent; @@ -296,8 +296,8 @@ error("This course module doesn't exist"); } - $context = get_context_instance(CONTEXT_COURSE, $cm->course); - require_capability('moodle/course:update', $context); + $context = get_context_instance(CONTEXT_COURSE, $cm->course); + require_capability('moodle/course:update', $context); set_coursemodule_visible($cm->id, 0); @@ -316,8 +316,8 @@ error("This course module doesn't exist"); } - $context = get_context_instance(CONTEXT_COURSE, $cm->course); - require_capability('moodle/course:update', $context); + $context = get_context_instance(CONTEXT_COURSE, $cm->course); + require_capability('moodle/course:update', $context); if (! $section = get_record("course_sections", "id", $cm->section)) { error("This module doesn't exist"); @@ -347,8 +347,8 @@ error("This course module doesn't exist"); } - $context = get_context_instance(CONTEXT_COURSE, $cm->course); - require_capability('moodle/course:update', $context); + $context = get_context_instance(CONTEXT_COURSE, $cm->course); + require_capability('moodle/course:update', $context); set_coursemodule_groupmode($cm->id, $groupmode); @@ -367,8 +367,8 @@ error("This course module doesn't exist"); } - $context = get_context_instance(CONTEXT_COURSE, $cm->course); - require_capability('moodle/course:update', $context); + $context = get_context_instance(CONTEXT_COURSE, $cm->course); + require_capability('moodle/course:update', $context); if (! $section = get_record("course_sections", "id", $cm->section)) { error("This module doesn't exist"); @@ -408,9 +408,9 @@ error("This course doesn't exist"); } - $context = get_context_instance(CONTEXT_COURSE, $cm->course); - require_capability('moodle/course:update', $context); - + $context = get_context_instance(CONTEXT_COURSE, $cm->course); + require_capability('moodle/course:update', $context); + if (! $module = get_record("modules", "id", $cm->module)) { error("This module doesn't exist"); } @@ -464,8 +464,8 @@ error("This course doesn't exist"); } - $context = get_context_instance(CONTEXT_COURSE, $course->id); - require_capability('moodle/course:update', $context); + $context = get_context_instance(CONTEXT_COURSE, $course->id); + require_capability('moodle/course:update', $context); if (! $module = get_record("modules", "id", $cm->module)) { error("This module doesn't exist"); @@ -521,9 +521,9 @@ error("This course doesn't exist"); } - $context = get_context_instance(CONTEXT_COURSE, $course->id); - require_capability('moodle/course:update', $context); - + $context = get_context_instance(CONTEXT_COURSE, $course->id); + require_capability('moodle/course:update', $context); + if (! $module = get_record("modules", "id", $cm->module)) { error("This module doesn't exist"); } @@ -619,8 +619,8 @@ error("No action was specfied"); } - $context = get_context_instance(CONTEXT_COURSE, $course->id); - require_capability('moodle/course:update', $context); + $context = get_context_instance(CONTEXT_COURSE, $course->id); + require_capability('moodle/course:update', $context); $streditinga = get_string("editinga", "moodle", $fullmodulename); $strmodulenameplural = get_string("modulenameplural", $module->name); @@ -636,9 +636,9 @@ $strnav $streditinga", $focuscursor, "", false); if (!empty($cm->id)) { - $context = get_context_instance(CONTEXT_MODULE, $cm->id); - $currenttab = 'update'; - include_once($CFG->dirroot.'/admin/roles/tabs.php'); + $context = get_context_instance(CONTEXT_MODULE, $cm->id); + $currenttab = 'update'; + include_once($CFG->dirroot.'/admin/roles/tabs.php'); } unset($SESSION->modform); // Clear any old ones that may be hanging around. diff --git a/course/scales.php b/course/scales.php index 985db4385e..9e173ba16e 100644 --- a/course/scales.php +++ b/course/scales.php @@ -16,7 +16,7 @@ } require_login($course->id); - $context = get_context_instance(CONTEXT_COURSE, $course->id); + $context = get_context_instance(CONTEXT_COURSE, $course->id); $strscale = get_string("scale"); $strscales = get_string("scales"); @@ -94,8 +94,8 @@ //If action is details, show the popup info if ($action == "details") { //Check for teacher edit - require_capability('moodle/course:managescales', $context); - + require_capability('moodle/course:managescales', $context); + //Check for scale if (! $scale = get_record("scale", "id", $scaleid)) { error("Scale ID was incorrect"); @@ -130,8 +130,8 @@ $sesskey = !empty($USER->id) ? $USER->sesskey : ''; - require_capability('moodle/course:managescales', $context); - + require_capability('moodle/course:managescales', $context); + //Check for scale if action = edit if ($action == "edit") { if (! $scale = get_record("scale", "id", $scaleid)) { @@ -235,7 +235,7 @@ //If action is delete, do it if ($action == "delete" and confirm_sesskey()) { //Check for teacher edit - require_capability('moodle/course:managescales', $context); + require_capability('moodle/course:managescales', $context); //Check for scale if action = edit if (! $scale = get_record("scale", "id", $scaleid)) { error("Scale ID was incorrect"); @@ -266,7 +266,7 @@ //If action is down or up, do it if (($action == "down" || $action == "up") and confirm_sesskey()) { //Check for teacher edit - require_capability('moodle/course:managescales', $context); + require_capability('moodle/course:managescales', $context); //Check for scale if action = edit if (! $scale = get_record("scale", "id", $scaleid)) { error("Scale ID was incorrect"); @@ -296,7 +296,7 @@ } if ($list) { /// Just list the scales (in a helpwindow) - require_capability('moodle/course:viewscales', $context); + require_capability('moodle/course:viewscales', $context); print_header($strscales); if (!empty($scaleid)) { diff --git a/enrol/authorize/enrol.html b/enrol/authorize/enrol.html index 9f3734679d..54f7b2aca2 100755 --- a/enrol/authorize/enrol.html +++ b/enrol/authorize/enrol.html @@ -13,17 +13,17 @@ switch ($paymentmethod) { - case AN_METHOD_CC: - { - print_cc_form($this); - break; - } - - case AN_METHOD_ECHECK: - { - print_echeck_form($this); - break; - } + case AN_METHOD_CC: + { + print_cc_form($this); + break; + } + + case AN_METHOD_ECHECK: + { + print_echeck_form($this); + break; + } } function print_cc_form($classreference) diff --git a/filter/tex/defaultsettings.php b/filter/tex/defaultsettings.php index d13a610bad..277fa717b4 100644 --- a/filter/tex/defaultsettings.php +++ b/filter/tex/defaultsettings.php @@ -5,7 +5,7 @@ function tex_defaultsettings( $force=false ) { - global $CFG; + global $CFG; if (!isset($CFG->filter_tex_latexpreamble) or $force) { set_config( 'filter_tex_latexpreamble', " \\usepackage[latin1]{inputenc}\n \\usepackage{amsmath}\n \\usepackage{amsfonts}\n \\RequirePackage{amsmath,amssymb,latexsym}\n"); @@ -36,9 +36,9 @@ set_config( 'filter_tex_pathconvert',"{$binpath}convert" ); } elseif (PHP_OS=='WINNT' or PHP_OS=='WIN32' or PHP_OS=='Windows') { - // note: you need Ghostscript installed (standard), miktex (standard) - // and ImageMagick (install at c:\ImageMagick) - set_config( 'filter_tex_pathlatex',"\"c:\\texmf\\miktex\\bin\\latex.exe\" " ); + // note: you need Ghostscript installed (standard), miktex (standard) + // and ImageMagick (install at c:\ImageMagick) + set_config( 'filter_tex_pathlatex',"\"c:\\texmf\\miktex\\bin\\latex.exe\" " ); set_config( 'filter_tex_pathdvips',"\"c:\\texmf\\miktex\\bin\\dvips.exe\" " ); set_config( 'filter_tex_pathconvert',"\"c:\\imagemagick\\convert.exe\" " ); } diff --git a/grade/lib.php b/grade/lib.php index 2e1d1c263f..33e384ccff 100644 --- a/grade/lib.php +++ b/grade/lib.php @@ -111,7 +111,7 @@ function grade_get_exceptions_user($course, $userid) { {$CFG->prefix}course_modules cm, {$CFG->prefix}modules mm WHERE e.courseid=$course - AND e.userid=$userid + AND e.userid=$userid AND gi.id = e.grade_itemid AND c.id = gi.category AND cm.course=c.courseid @@ -209,7 +209,7 @@ function grade_get_formatted_grades() { } } - + // set up a list of all categories and assignments (adjusting things for extra credit where necessary) $all_categories["$cur_category"]["$instance->name"]['hidden'] = $students_grade->hidden; @@ -306,7 +306,7 @@ function grade_get_formatted_grades() { } } } - + if (isset($_REQUEST['group'])) { $group = clean_param($_REQUEST['group'], PARAM_INT); @@ -322,7 +322,7 @@ function grade_get_formatted_grades() { if (isset($grades_by_student)) { foreach($grades_by_student as $student=>$categories) { if ( (isset($groupmembers) && isset($groupmembers[$student])) || !isset($groupmembers)) { - + $grades_by_student["$student"]["$category"]['stats']['totalpoints'] = $main_category['stats']['totalpoints']; $grades_by_student["$student"]["$category"]['stats']['weight'] = $main_category['stats']['weight']; $grades_by_student["$student"]["$category"]['stats']['grade_items'] = $main_category['stats']['grade_items']; @@ -338,16 +338,16 @@ function grade_get_formatted_grades() { } } } - + if (!isset($grades_by_student["$student"]["$category"]['stats']['points'])) { $grades_by_student["$student"]["$category"]['stats']['points'] = '-'; - + } - + else { // points are set... see if the current category is using drop the x lowest and do so // also drop exceptions first, so then this grades(s) won't be recoqnized as the x lowest - // Get exception scores and assign them in the array + // Get exception scores and assign them in the array if ($main_category['stats']['drop'] != 0) { $exceptions = grade_get_exceptions_user($course->id, $student); if (isset($exceptions) && $exceptions) { @@ -356,22 +356,22 @@ function grade_get_formatted_grades() { if ($grades_by_student["$exception->userid"]["$exception->catname"]) { $assgn = get_record($exception->modname, 'id', $exception->cminstance, 'course', $course->id); $grade = $grades_by_student["$exception->userid"]["$exception->catname"]["$assgn->name"]['grade']; - if (isset($grade)) { - if (!isset($grades_by_student["$exception->userid"]["$exception->catname"]['stats']['exceptions'])) { + if (isset($grade)) { + if (!isset($grades_by_student["$exception->userid"]["$exception->catname"]['stats']['exceptions'])) { $grades_by_student["$exception->userid"]["$exception->catname"]['stats']['exceptions'] = $grade; } elseif (isset($grades_by_student["$exception->userid"]["$exception->catname"]['stats']['exceptions'])) { $grades_by_student["$exception->userid"]["$exception->catname"]['stats']['exceptions'] .= ','. $grade; - } - } + } + } } } } - } + } if (isset($grades_by_student["$student"]["$category"]['stats']['exceptions'])) { $grades_by_student["$student"]["$category"]['stats']['allgrades'] = grade_drop_exceptions($grades_by_student["$student"]["$category"]['stats']['allgrades'], $grades_by_student["$student"]["$category"]['stats']['exceptions']); } - + $grades_by_student["$student"]["$category"]['stats']['allgrades'] = grade_drop_lowest($grades_by_student["$student"]["$category"]['stats']['allgrades'], $main_category['stats']['drop'], $main_category['stats']['grade_items']); if ($grades_by_student["$student"]["$category"]['stats']['points'] != '-') { $cat_points = 0; @@ -439,14 +439,14 @@ function grade_get_formatted_grades() { if ($grades_by_student["$exception->userid"]["$exception->catname"]) { $assgn = get_record($exception->modname, 'id', $exception->cminstance, 'course', $course->id); $grades_by_student["$exception->userid"]['student_data']['totalpoints'] = $grades_by_student["$exception->userid"]['student_data']['totalpoints'] - $all_categories["$exception->catname"]["$assgn->name"]['maxgrade']; - //total point should not be smaller than grade against - if ($grades_by_student["$exception->userid"]["$exception->catname"]['stats']['totalpoints'] - $all_categories["$exception->catname"]["$assgn->name"]['grade_against'] != 0 ) { + //total point should not be smaller than grade against + if ($grades_by_student["$exception->userid"]["$exception->catname"]['stats']['totalpoints'] - $all_categories["$exception->catname"]["$assgn->name"]['grade_against'] != 0 ) { $grades_by_student["$exception->userid"]["$exception->catname"]['stats']['totalpoints'] = $grades_by_student["$exception->userid"]["$exception->catname"]['stats']['totalpoints'] - $all_categories["$exception->catname"]["$assgn->name"]['grade_against']; - } + } $grades_by_student["$exception->userid"]["$exception->catname"]['stats']['grade_items'] = $grades_by_student["$exception->userid"]["$exception->catname"]['stats']['grade_items'] - 1; if ($grades_by_student["$exception->userid"]["$exception->catname"]['stats']['grade_items'] < 0) { $grades_by_student["$exception->userid"]["$exception->catname"]['stats']['grade_items'] = 0; - } + } if ($all_categories["$exception->catname"]['stats']['drop'] == 0) { $grades_by_student["$exception->userid"]["$exception->catname"]['stats']['points'] = $grades_by_student["$exception->userid"]["$exception->catname"]['stats']['points'] - $grades_by_student["$exception->userid"]["$exception->catname"]["$assgn->name"]['grade']; } @@ -526,7 +526,7 @@ function grade_get_formatted_grades() { $grades_by_student["$student"]["$category"]['stats']['weighted'] = 0.00; } } - + // set students overall weight (this is what percent they will be graded against) if ($grades_by_student["$student"]["$category"]['stats']['weight'] != $strexcluded) { $grades_by_student["$student"]['student_data']['weight'] = $grades_by_student["$student"]['student_data']['weight'] + $grades_by_student["$student"]["$category"]['stats']['weight']; @@ -648,7 +648,7 @@ function grade_drop_lowest($grades, $drop, $total) { // fewer items than $total that we don't drop too many $grade_array = explode(',',$grades); if (count($grade_array) == 1) { - $grades = implode('', $grade_array); + $grades = implode('', $grade_array); } else if ($drop > 0 AND (count($grade_array) > $drop)) { rsort($grade_array); @@ -2513,7 +2513,7 @@ function grade_assign_categories() { $cur_extra_credit = false; } if ($cur_extra_credit) { - $cur_extra_credit = 1; + $cur_extra_credit = 1; } else { $cur_extra_credit = 0; } diff --git a/install/lang/en/install.php b/install/lang/en/install.php index 2c6853d50d..a01b8e1478 100755 --- a/install/lang/en/install.php +++ b/install/lang/en/install.php @@ -30,7 +30,7 @@ $string['databasesettings'] = ' Now you need to configure the database where $string['databasecreationsettings'] = '

Now you need to configure the database settings where most Moodle data will be stored. The database will be created automatically by the installer with the default settings below or others that you specify in the editable - fields below. If security is an issue you may want to specify a password in the \"Password\" field.

+ fields below. If security is an issue you may want to specify a password in the \"Password\" field.

Type: fixed to \"mysql\" by the installer
Host: fixed to \"localhost\" by the installer
Name: database name, eg moodle
@@ -152,10 +152,10 @@ $string['welcomep30'] = 'This release of the $a->installername $string['welcomep40'] = 'The package also includes Moodle $a->moodlerelease ($a->moodleversion).'; $string['welcomep50'] = 'The use of all the applications in this package is governed by their respective licences. The complete $a->installername package is -
open source and is distributed - under the GPL license.'; + open source and is distributed + under the GPL license.'; $string['welcomep60'] = 'The following pages will lead you through some easy to follow steps to configure and set up Moodle on your computer. You may accept the default - settings or, optionally, amend them to suit your own needs.'; + settings or, optionally, amend them to suit your own needs.'; $string['welcomep70'] = 'Click the \"Next\" button below to continue with the set up of Moodle.'; ?> diff --git a/install/lang/es/install.php b/install/lang/es/install.php index 1e263f5ee6..802773cc8b 100644 --- a/install/lang/es/install.php +++ b/install/lang/es/install.php @@ -4,131 +4,131 @@ $string['admindirerror'] = 'El directorio especificado para admin es incorrecto'; $string['admindirname'] = 'Directorio Admin'; -$string['admindirsetting'] = '

Muy pocos servidores web usan /admin como URL especial para permitirle acceder a un panel de control o similar. Desgraciadamente, esto entra en conflicto con la ubicación estándar de las páginas de administración de Moodle Usted puede corregir esto renombrando el directorio admin en su instalación, y poniendo aquí ese nuevo nombre. Por ejemplo:

moodleadmin
. -Así se corregirán los enlaces admin en Moodle.

'; -$string['caution'] = 'Precaución'; +$string['admindirsetting'] = '

Muy pocos servidores web usan /admin como URL especial para permitirle acceder a un panel de control o similar. Desgraciadamente, esto entra en conflicto con la ubicaci�n est�ndar de las p�ginas de administraci�n de Moodle Usted puede corregir esto renombrando el directorio admin en su instalaci�n, y poniendo aqu� ese nuevo nombre. Por ejemplo:

moodleadmin
. +As� se corregir�n los enlaces admin en Moodle.

'; +$string['caution'] = 'Precauci�n'; $string['chooselanguage'] = 'Seleccionar idioma'; $string['compatibilitysettings'] = 'Comprobando sus ajustes PHP...'; -$string['configfilenotwritten'] = 'El script instalador no ha podido crear automáticamente un archivo config.php con las especificaciones elegidas. Por favor, copie el siguiente código en un archivo llamado config.php y coloque ese archivo en el directorio raíz de Moodle.'; -$string['configfilewritten'] = 'config.php se ha creado con éxito'; -$string['configurationcomplete'] = 'Configuración completa'; +$string['configfilenotwritten'] = 'El script instalador no ha podido crear autom�ticamente un archivo config.php con las especificaciones elegidas. Por favor, copie el siguiente c�digo en un archivo llamado config.php y coloque ese archivo en el directorio ra�z de Moodle.'; +$string['configfilewritten'] = 'config.php se ha creado con �xito'; +$string['configurationcomplete'] = 'Configuraci�n completa'; $string['database'] = 'Base de datos'; $string['databasecreationsettings'] = '

Ahora necesita configurar los ajustes de la base de datos - donde se almacenarán la mayoría de los datos de Moodle. La base de datos será creada automáticamente - por el instalador con los valores por defecto o los que especifique en los campos editables más abajo. Si - la seguridad de su ordenador es importante debería definir una contraseña en el campo \"Contraseña\".

+ donde se almacenar�n la mayor�a de los datos de Moodle. La base de datos ser� creada autom�ticamente + por el instalador con los valores por defecto o los que especifique en los campos editables m�s abajo. Si + la seguridad de su ordenador es importante deber�a definir una contrase�a en el campo \"Contrase�a\".

Tipo: el valor por defecto es \"mysql\"
Servidor: el valor por defecto es \"localhost\"
Nombre: nombre de la base de datos, e.g., moodle
Usuario: el valor por defecto es \"root\"
- Contraseña: contraseña de la base de datos
+ Contrase�a: contrase�a de la base de datos
Prefijo de tablas: prefijo opcional para todas las tablas

'; -$string['databasesettings'] = 'Ahora necesita configurar la base de datos en la que se almacenará la mayor parte de datos de Moodle. Esta base de datos debe haber sido ya creada, y disponer de un nombre de usuario y de una contraseña de acceso.
+$string['databasesettings'] = 'Ahora necesita configurar la base de datos en la que se almacenar� la mayor parte de datos de Moodle. Esta base de datos debe haber sido ya creada, y disponer de un nombre de usuario y de una contrase�a de acceso.


Tipo: mysql o postgres7
Servidor: e.g., localhost or db.isp.com
Nombre: Nombre de la base de datos, e.g., moodle
Usuario: nombre de usuario de la base de datos
-Contraseña: contraseña de la base de datos
+Contrase�a: contrase�a de la base de datos
Prefijo de tablas: prefijo a utilizar en todos los nombres de tabla'; $string['dataroot'] = 'Datos'; $string['datarooterror'] = 'El ajuste \'Data\' es incorrecto'; -$string['dbconnectionerror'] = 'Error de conexión con la base de datos. Por favor, compruebe los ajustes de la base de datos'; +$string['dbconnectionerror'] = 'Error de conexi�n con la base de datos. Por favor, compruebe los ajustes de la base de datos'; $string['dbcreationerror'] = 'Error al crear la base de datos. No se ha podido crear la base de datos con el nombre y ajustes suministrados'; $string['dbhost'] = 'Servidor'; -$string['dbpass'] = 'Contraseña'; +$string['dbpass'] = 'Contrase�a'; $string['dbprefix'] = 'Prefijo de tablas'; $string['dbtype'] = 'Tipo'; $string['directorysettings'] = '

WWW: -Necesita decir a Moodle dónde está localizado. Especifique la dirección web completa en la que se ha instalado Moodle. Si su sitio web es accesible a través de varias URLs, seleccione la que resulte de acceso más natural a sus estudiantes. No incluya la última barra

+Necesita decir a Moodle d�nde est� localizado. Especifique la direcci�n web completa en la que se ha instalado Moodle. Si su sitio web es accesible a trav�s de varias URLs, seleccione la que resulte de acceso m�s natural a sus estudiantes. No incluya la �ltima barra

Directorio: -Especifique la ruta OS completa a esta misma ubicación -Asegúrese de que escribe correctamente mayúsculas y minúsculas

+Especifique la ruta OS completa a esta misma ubicaci�n +Aseg�rese de que escribe correctamente may�sculas y min�sculas

Datos: -Usted necesita un lugar en el que Moodle pueda guardar los archivos subidos. Este directorio debe ser legible Y ESCRIBIBLE por el usuario del servidor web (normalmente \'nobody\' o \'apache\'), pero no debería ser directamente accesible desde la web.

'; +Usted necesita un lugar en el que Moodle pueda guardar los archivos subidos. Este directorio debe ser legible Y ESCRIBIBLE por el usuario del servidor web (normalmente \'nobody\' o \'apache\'), pero no deber�a ser directamente accesible desde la web.

'; $string['dirroot'] = 'Directorio'; -$string['dirrooterror'] = 'El ajuste de \'Directorio\' es incorrecto. Inténtelo con el siguiente'; +$string['dirrooterror'] = 'El ajuste de \'Directorio\' es incorrecto. Int�ntelo con el siguiente'; $string['download'] = 'Descargar'; $string['fail'] = 'Fallo'; $string['fileuploads'] = 'Subidas de archivos'; $string['fileuploadserror'] = 'Debe estar activado'; $string['fileuploadshelp'] = '

La subida de archivos parece estar desactivada en su servidor.

-

Moodle aún puede ser instalado, pero usted no podrá subir archivos a un curso ni imágenes de los usuarios.

+

Moodle a�n puede ser instalado, pero usted no podr� subir archivos a un curso ni im�genes de los usuarios.

Para posibilitar la subida de archivos, usted (o el administrador del sistema) necesita editar el archivo php.ini principal y cambiar el ajuste de file_uploads a \'1\'.

'; -$string['gdversion'] = 'Versión GD'; -$string['gdversionerror'] = 'La librería GD debería estar presente para procesar y crear imágenes'; +$string['gdversion'] = 'Versi�n GD'; +$string['gdversionerror'] = 'La librer�a GD deber�a estar presente para procesar y crear im�genes'; $string['gdversionhelp'] = '

Su servidor parece no tener el GD instalado.

-

GD es una librería que PHP necesita para que Moodle procese imágenes (tales como los iconos de los usuarios) y para crear imágenes nuevas (e.g., logos). Moodle puede trabajar sin GD, pero usted no dispondrá de las características mencionadas.

+

GD es una librer�a que PHP necesita para que Moodle procese im�genes (tales como los iconos de los usuarios) y para crear im�genes nuevas (e.g., logos). Moodle puede trabajar sin GD, pero usted no dispondr� de las caracter�sticas mencionadas.

-

Para agregar GD a PHP en entorno Unix, compile PHP usando el parámetro --with-gd.

+

Para agregar GD a PHP en entorno Unix, compile PHP usando el par�metro --with-gd.

-

En un entorno Windows, puede editar php.ini y quitar los comentarios de la línea referida a libgd.dll.

'; -$string['installation'] = 'Instalación'; +

En un entorno Windows, puede editar php.ini y quitar los comentarios de la l�nea referida a libgd.dll.

'; +$string['installation'] = 'Instalaci�n'; $string['magicquotesruntime'] = 'Magic Quotes Run Time'; $string['magicquotesruntimeerror'] = 'Debe estar desactivado'; $string['magicquotesruntimehelp'] = '

Magic quotes runtime debe estar desactivado para que Moodle funcione adecuadamente.

-

Normalmente está desactivado por defecto... Vea el ajuste magic_quotes_runtime en su archivo php.ini.

+

Normalmente est� desactivado por defecto... Vea el ajuste magic_quotes_runtime en su archivo php.ini.

-

Si usted no tiene acceso a php.ini, debería poder escribir la siguiente línea en un archivo denominado .htaccess dentro del directorio Moodle: +

Si usted no tiene acceso a php.ini, deber�a poder escribir la siguiente l�nea en un archivo denominado .htaccess dentro del directorio Moodle:

php_value magic_quotes_runtime Off

'; -$string['memorylimit'] = 'Límite de memoria'; -$string['memorylimiterror'] = 'El límite de memoria PHP es demasiado bajo... Puede tener problemas más tarde.'; -$string['memorylimithelp'] = '

El límite de memoria PHP en su servidor es actualmente $a.

+$string['memorylimit'] = 'L�mite de memoria'; +$string['memorylimiterror'] = 'El l�mite de memoria PHP es demasiado bajo... Puede tener problemas m�s tarde.'; +$string['memorylimithelp'] = '

El l�mite de memoria PHP en su servidor es actualmente $a.

-

Esto puede ocasionar que Moodle tenga problemas de memoria más adelante, especialmente si usted tiene activados muchos módulos y/o muchos usuarios.

+

Esto puede ocasionar que Moodle tenga problemas de memoria m�s adelante, especialmente si usted tiene activados muchos m�dulos y/o muchos usuarios.

-

Recomendamos que configure PHP con el límite más alto posible, e.g. 16M. +

Recomendamos que configure PHP con el l�mite m�s alto posible, e.g. 16M. Hay varias formas de hacer esto:

  1. Si puede hacerlo, recompile PHP con --enable-memory-limit. -Esto hace que Moodle fije por sí mismo el límite de memoria.
  2. +Esto hace que Moodle fije por s� mismo el l�mite de memoria.
  3. Si usted tiene acceso al archivo php.ini, puede cambiar el ajuste memory_limit a, digamos, 16M. Si no lo tiene, pida a su administrador que lo haga por usted.
  4. -
  5. En algunos servidores PHP usted puede crear en el directorio Moodle un archivo .htaccess que contenga esta línea: +
  6. En algunos servidores PHP usted puede crear en el directorio Moodle un archivo .htaccess que contenga esta l�nea:

    php_value memory_limit 16M

    -

    Sin embargo, en algunos servidores esto hace que todas las páginas PHP dejen de funcionar -(podrá ver los errores cuando mire las páginas) de modo que tendrá que eliminar el archivo .htaccess.

  7. +

    Sin embargo, en algunos servidores esto hace que todas las p�ginas PHP dejen de funcionar +(podr� ver los errores cuando mire las p�ginas) de modo que tendr� que eliminar el archivo .htaccess.

'; -$string['mysqlextensionisnotpresentinphp'] = 'PHP no ha sido adecuadamente configurado con la extensión MySQL de modo que pueda comunicarse con MySQL. Por favor, compruebe el archivo php.ini o recompile PHP.'; +$string['mysqlextensionisnotpresentinphp'] = 'PHP no ha sido adecuadamente configurado con la extensi�n MySQL de modo que pueda comunicarse con MySQL. Por favor, compruebe el archivo php.ini o recompile PHP.'; $string['pass'] = 'Pass'; -$string['phpversion'] = 'Versión PHP'; -$string['phpversionerror'] = 'La versión PHP debe ser 4.1.0 o superior'; -$string['phpversionhelp'] = '

Moodle requiere una versión de PHP 4.1.0 o superior.

-

Su versión es $a

-

Debe actualizar PHP o acudir a otro servidor con una versión más reciente de PHP

'; +$string['phpversion'] = 'Versi�n PHP'; +$string['phpversionerror'] = 'La versi�n PHP debe ser 4.1.0 o superior'; +$string['phpversionhelp'] = '

Moodle requiere una versi�n de PHP 4.1.0 o superior.

+

Su versi�n es $a

+

Debe actualizar PHP o acudir a otro servidor con una versi�n m�s reciente de PHP

'; $string['safemode'] = 'Safe Mode'; $string['safemodeerror'] = 'Moodle puede tener problemas con \'safe mode\' activado'; $string['safemodehelp'] = '

Moodle puede tener varios problemas con \'safe mode\' activado, y probablemente no pueda crear nuevos archivos.

-

Normalmente el \'safe mode\' sólo es activado por servidores web públicos paranoides, así que lo que usted debe hacer es encontrar otra compañía para su sitio Moodle.

+

Normalmente el \'safe mode\' s�lo es activado por servidores web p�blicos paranoides, as� que lo que usted debe hacer es encontrar otra compa��a para su sitio Moodle.

-

Si lo desea, puede seguir con la instalación, pero experimentará problemas más adelante.

'; -$string['sessionautostart'] = 'Autocomienzo de sesión'; +

Si lo desea, puede seguir con la instalaci�n, pero experimentar� problemas m�s adelante.

'; +$string['sessionautostart'] = 'Autocomienzo de sesi�n'; $string['sessionautostarterror'] = 'Deb e estar desactivado'; -$string['sessionautostarthelp'] = '

Moodle requiere apoyo de sesión y no funcionará sin él.

+$string['sessionautostarthelp'] = '

Moodle requiere apoyo de sesi�n y no funcionar� sin �l.

-

Las sesiones deben estar activadas en el archhivo php.ini para el parámetro session.auto_start.

'; +

Las sesiones deben estar activadas en el archhivo php.ini para el par�metro session.auto_start.

'; $string['wwwroot'] = 'WWW'; $string['wwwrooterror'] = 'El ajuste \'WWW\' es incorrecto'; $string['welcomep10'] = '$a->installername ($a->installerversion)'; -$string['welcomep20'] = 'Si está viendo esta página es porque ha podido ejecutar el paquete +$string['welcomep20'] = 'Si est� viendo esta p�gina es porque ha podido ejecutar el paquete $a->packname $a->packversion en su ordenador. !Enhorabuena!'; -$string['welcomep30'] = 'Esta versión de $a->installername incluye las +$string['welcomep30'] = 'Esta versi�n de $a->installername incluye las aplicaciones necesarias para que Moodle funcione en su ordenador, - principalmente:'; -$string['welcomep40'] = 'El paquete también incluye Moodle $a->moodlerelease ($a->moodleversion).'; -$string['welcomep50'] = 'El uso de todas las aplicaciones del paquete está gobernado por sus respectivas + principalmente:'; +$string['welcomep40'] = 'El paquete tambi�n incluye Moodle $a->moodlerelease ($a->moodleversion).'; +$string['welcomep50'] = 'El uso de todas las aplicaciones del paquete est� gobernado por sus respectivas licencias. El programa $a->installername es - código abierto y se distribuye - bajo licencia GPL.'; -$string['welcomep60'] = 'Las siguientes páginas le guiarán a traves de algunos sencillos pasos para configurar + c�digo abierto y se distribuye + bajo licencia GPL.'; +$string['welcomep60'] = 'Las siguientes p�ginas le guiar�n a traves de algunos sencillos pasos para configurar y ajustar Moodle en su ordenador. Puede utilizar los valores por defecto sugeridos o, - de forma opcional, modificarlos para que se ajusten a sus necesidades.'; -$string['welcomep70'] = 'Pulse en el botón \"Siguiente\" para continuar con la configuración de Moodle.'; + de forma opcional, modificarlos para que se ajusten a sus necesidades.'; +$string['welcomep70'] = 'Pulse en el bot�n \"Siguiente\" para continuar con la configuraci�n de Moodle.'; ?> diff --git a/install/lang/nl_utf8/installer.php b/install/lang/nl_utf8/installer.php index 069743bb2e..33ada05db0 100644 --- a/install/lang/nl_utf8/installer.php +++ b/install/lang/nl_utf8/installer.php @@ -145,7 +145,7 @@ $string['thischarset'] = 'UTF-8'; $string['thislanguage'] = 'Nederlands'; $string['user'] = 'Gebruiker'; $string['welcomep10'] = '$a->installername ($a->installerversion)'; -$string['welcomep20'] = 'Je krijgt deze pagina te zien omdat je met succes het $a->packname $a->packversion packet op je computer gezet en gestart hebt. Proficiat! '; +$string['welcomep20'] = 'Je krijgt deze pagina te zien omdat je met succes het $a->packname $a->packversion packet op je computer gezet en gestart hebt. Proficiat! '; $string['welcomep30'] = 'Deze uitgave van $a->installername bevat de software die nodig is om een omgeving te creëren waarin Moodle zal werken, namelijk:'; $string['welcomep40'] = 'Dit pakket bevat ook Moodle $a->moodlerelease ($a->moodleversion).'; $string['welcomep50'] = 'Het gebruik van alle programma\'s in dit pakket wordt geregeld door hun respectievelijke licenties. Het complete $a->installername pakket is diff --git a/install/lang/sk_utf8/installer.php b/install/lang/sk_utf8/installer.php index 4dfb6ae720..880cea8123 100644 --- a/install/lang/sk_utf8/installer.php +++ b/install/lang/sk_utf8/installer.php @@ -51,7 +51,7 @@ $string['memorylimithelp'] = '

PHP limit pamäte pre Váš server je momentál

  • Ak máte prístup k Vášmu php.ini súboru, môžete zmeniÅ¥ memory_limit nastavenie, napr. na 16M. Ak nemáte prístup k súboru, môžete sa na to spýtaÅ¥ Vášho administrátora.
  • Na niektorých PHP serveroch, si môžete vytvoriÅ¥ súbor .htaccess v Adresári Moodle, ktorý bude obsahovaÅ¥ tento riadok:

    php_value memory_limit 16M

    Avšak, na niektorých serveroch bude toto brániť všetkým PHP stránkam v práci (budete vidieť chyby, keď sa pozriete na stránky), takže budete musieť odstrániť súbor .htaccess.

    - '; + '; $string['mysqlextensionisnotpresentinphp'] = 'PHP nebolo správne nakonfigurované s MySQL rozšírením a tak nemôže komunikovať s MySQL. Prosím, skontrolujte si Váš php.ini súbor alebo znovu vytvorte PHP.'; $string['name'] = 'Meno'; $string['next'] = 'Ďalší'; diff --git a/lang/en_utf8/docs/credits.html b/lang/en_utf8/docs/credits.html index 5a184db26c..05fe0eae45 100644 --- a/lang/en_utf8/docs/credits.html +++ b/lang/en_utf8/docs/credits.html @@ -97,7 +97,7 @@ allow us to do so. My thanks go out to the authors of all these excellent products - without them Moodle would be missing important functionality. Copyright information for each package is included below:

    - +

    ADOdb   -  lib/adodb

    Database abstraction library for MySQL, PostgreSQL, MSSQL, Oracle, Interbase, @@ -117,7 +117,7 @@ License: Freeware

    - +

    Graph Class   -  lib/graphlib.php

    Class to draw line, point, bar, and area graphs, including numeric x-axis @@ -155,7 +155,7 @@ Copyright © 2002   Ivan Kozik
    License: GNU GPL
    URL: http://www.xpenguin.com/ip-atlas.php -

    +

    kses   -  lib/kses.php

    @@ -177,7 +177,7 @@ License: GNU GPL
    URL: http://www.forkosh.com/mimetex.html
    URL: http://moodle.org/download/mimetex -

    +

    mp3player  -   lib/mp3player

    @@ -197,7 +197,7 @@ Copyright © 1998-2004   Erik Bosrup
    License: Artistic Open Source License
    URL: http://www.macridesweb.com/oltest/ -

    +

    PclZip  -   lib/pclzip

    @@ -210,7 +210,7 @@ URL: http://www.phpconcept.net

    - +

    PHP mailer   -  lib/class.phpmailer.php

    Class for sending email using either sendmail, PHP mail(), or SMTP.  @@ -222,7 +222,7 @@ URL:   http://phpmailer.sourceforge.net

    - +

    PHP Markdown   -  lib/markdown.php

    Functions to convert from the Markdown text format into clean XHTML.

    @@ -233,7 +233,7 @@ URL: http://www.michelf.com/projects/php-markdown/

    - +

    Snoopy  -   lib/snoopy

    A PHP net client
    @@ -244,7 +244,7 @@ URL: http://snoopy.sourceforge.net/

    - +

    Spreadsheet::WriteExcel  -   lib/excel

    A library for generating Excel Spreadsheets.
    @@ -255,7 +255,7 @@ URL: http://jeffn.users.phpclasses.org/browse.html/package/767.html

    - +

    SMTP class   -  lib/class.smtp.php

    Class that can be used to connect and communicate with any SMTP @@ -266,8 +266,8 @@ Copyright © 2001  Chris Ryan <chris@greatbridge.com>

    - -

    Typo3 Character Set Class  -   lib/typo3

    + +

    Typo3 Character Set Class  -   lib/typo3

    Class for conversion between charsets and multibyte-savy operations with strings.
    @@ -278,7 +278,7 @@ URL: http://typo3.org/

    - +

    Moodle Documentation

    Version: $Id$

    diff --git a/lang/en_utf8/docs/cvs.html b/lang/en_utf8/docs/cvs.html index d15d10b7dc..70970b4553 100644 --- a/lang/en_utf8/docs/cvs.html +++ b/lang/en_utf8/docs/cvs.html @@ -11,8 +11,8 @@ style ol {margin-left:40px;} .style1 {color: #990000} .style3 {color: #990000; font-weight: bold; } .style4 { - color: #0000CC; - font-weight: bold; + color: #0000CC; + font-weight: bold; } --> @@ -65,7 +65,7 @@ style ol {margin-left:40px;}

    Sourceforge CVS uses ssh as a transport layer for security, so you will have to set a CVS_RSH environment variable in your Unix shell. It's best to put these commands in your .bashrc or .cshrc so you don't have to type it all the time:

    setenv CVS_RSH ssh (for csh, tcsh etc)
    - export CVS_RSH=ssh (for sh, bash etc)
    + export CVS_RSH=ssh (for sh, bash etc)

    Next, you can check out the latest development version of Moodle using this (all one line):

    cvs -z3 -d:ext:myusername@cvs.sourceforge.net:/cvsroot/moodle co moodle

    The command is similar for other CVS modules:

    @@ -162,7 +162,7 @@ update -dP
  • Merge everything on the branch since the last merge, into your trunk version

    cvs update -kk -j MOODLE_13_MERGED -j MOODLE_13_STABLE
    -
  • +
  • Carefully watch the update logs for conflicts, and fix every file that you see with a conflict
  • Check the merged copy back into CVS trunk version

    @@ -170,7 +170,7 @@ update -dP
  • Go back to the branch version

    cvs update -dPr MOODLE_13_STABLE
    -
  • +
  • Update the floating merge tag so that this process can be repeated next time

    cvs tag -RF MOODLE_13_MERGED
  • @@ -187,17 +187,17 @@ update -dP
    1. Discuss with other developers to make sure it's necessary!
    2. Make a new tag on the trunk (for all of moodle) called MOODLE_XX_WIDGET_PRE -

      +

      cvs tag -R MOODLE_XX_WIDGET_PRE
    3. Create your branch called MOODLE_XX_WIDGET -

      +

      cvs tag -Rb MOODLE_XX_WIDGET
    4. Work in that branch until the feature is reasonably stable. Commit as necessary. -

      +

      cvs commit
    5. When ready, merge the whole branch into the trunk, fix conflicts, commit it to the trunk and then abandon the branch. -
      -
      +
      +
      cvs update -dPA
      cvs update -kk -j MOODLE_XX_WIDGET
      diff --git a/lang/en_utf8/docs/docstyles.css b/lang/en_utf8/docs/docstyles.css index 0af1b88cdb..7ddb9a21f8 100755 --- a/lang/en_utf8/docs/docstyles.css +++ b/lang/en_utf8/docs/docstyles.css @@ -28,7 +28,7 @@ form { li { - margin-bottom: 10px; + margin-bottom: 10px; } @@ -49,10 +49,10 @@ li { } .normaltext { - font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; - font-size: medium; - border: none; - margin-left: 30px; + font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; + font-size: medium; + border: none; + margin-left: 30px; } @@ -71,64 +71,64 @@ li { } .examplecode { - font-family: "Courier New", Courier, mono; - font-size: small; - border: thin dashed #999999; - background-color: #FBFBFB; - margin: auto; - padding: 30px; - height: auto; - width: auto; + font-family: "Courier New", Courier, mono; + font-size: small; + border: thin dashed #999999; + background-color: #FBFBFB; + margin: auto; + padding: 30px; + height: auto; + width: auto; } h1 { - font-weight: bold; - color: #000000; - background-color: #CCCCCC; - padding: 5px; - font-size: large; + font-weight: bold; + color: #000000; + background-color: #CCCCCC; + padding: 5px; + font-size: large; border-width: 1px; border-color: #CCCCCC; -moz-border-radius: 10px; } h2 { - font-weight: bold; - color: #FFFFFF; - background-color: #666666; - padding: 5px; - font-size: medium; + font-weight: bold; + color: #FFFFFF; + background-color: #666666; + padding: 5px; + font-size: medium; border-width: 1px; border-color: #666666; -moz-border-radius: 10px; } h3 { - font-weight: normal; - color: #FFFFFF; - background-color: #666666; - padding: 5px; - font-size: medium; + font-weight: normal; + color: #FFFFFF; + background-color: #666666; + padding: 5px; + font-size: medium; -moz-border-radius: 10px; } .spaced { - margin-bottom: 30px; + margin-bottom: 30px; } ul { - margin-top: 10px; + margin-top: 10px; } .commandline { - font-family: "Courier New", Courier, mono; - font-size: x-small; - background-color: #FBFBFB; - margin: auto auto 20px 30px; - padding: 5px; - height: auto; - width: auto; - font-weight: bold; - border: 1px solid #999999; - white-space: nowrap; - display: compact; - clear: both; - float: none; + font-family: "Courier New", Courier, mono; + font-size: x-small; + background-color: #FBFBFB; + margin: auto auto 20px 30px; + padding: 5px; + height: auto; + width: auto; + font-weight: bold; + border: 1px solid #999999; + white-space: nowrap; + display: compact; + clear: both; + float: none; } diff --git a/lang/en_utf8/docs/future.html b/lang/en_utf8/docs/future.html index 74f88c06f9..f5d0e93062 100644 --- a/lang/en_utf8/docs/future.html +++ b/lang/en_utf8/docs/future.html @@ -4,7 +4,7 @@ Moodle Docs: Future - + diff --git a/lang/en_utf8/docs/installamp.html b/lang/en_utf8/docs/installamp.html index b6e093bcd3..50fa38eb93 100644 --- a/lang/en_utf8/docs/installamp.html +++ b/lang/en_utf8/docs/installamp.html @@ -3,7 +3,7 @@ Moodle Docs: Installing PHP and MySQL - + diff --git a/lang/en_utf8/docs/licence.html b/lang/en_utf8/docs/licence.html index 02f38fddcc..c02ada19d2 100644 --- a/lang/en_utf8/docs/licence.html +++ b/lang/en_utf8/docs/licence.html @@ -35,7 +35,7 @@

      -
      		    GNU GENERAL PUBLIC LICENSE
      Version 2, June 1991

      Copyright (C) 1989, 1991 Free Software Foundation, Inc.
      59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
      Everyone is permitted to copy and distribute verbatim copies
      of this license document, but changing it is not allowed.

      Preamble

      The licenses for most software are designed to take away your
      freedom to share and change it. By contrast, the GNU General Public
      License is intended to guarantee your freedom to share and change free
      software--to make sure the software is free for all its users. This
      General Public License applies to most of the Free Software
      Foundation's software and to any other program whose authors commit to
      using it. (Some other Free Software Foundation software is covered by
      the GNU Library General Public License instead.) You can apply it to
      your programs, too.

      When we speak of free software, we are referring to freedom, not
      price. Our General Public Licenses are designed to make sure that you
      have the freedom to distribute copies of free software (and charge for
      this service if you wish), that you receive source code or can get it
      if you want it, that you can change the software or use pieces of it
      in new free programs; and that you know you can do these things.

      To protect your rights, we need to make restrictions that forbid
      anyone to deny you these rights or to ask you to surrender the rights.
      These restrictions translate to certain responsibilities for you if you
      distribute copies of the software, or if you modify it.

      For example, if you distribute copies of such a program, whether
      gratis or for a fee, you must give the recipients all the rights that
      you have. You must make sure that they, too, receive or can get the
      source code. And you must show them these terms so they know their
      rights.

      We protect your rights with two steps: (1) copyright the software, and
      (2) offer you this license which gives you legal permission to copy,
      distribute and/or modify the software.

      Also, for each author's protection and ours, we want to make certain
      that everyone understands that there is no warranty for this free
      software. If the software is modified by someone else and passed on, we
      want its recipients to know that what they have is not the original, so
      that any problems introduced by others will not reflect on the original
      authors' reputations.

      Finally, any free program is threatened constantly by software
      patents. We wish to avoid the danger that redistributors of a free
      program will individually obtain patent licenses, in effect making the
      program proprietary. To prevent this, we have made it clear that any
      patent must be licensed for everyone's free use or not licensed at all.

      The precise terms and conditions for copying, distribution and
      modification follow.

      GNU GENERAL PUBLIC LICENSE
      TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

      0. This License applies to any program or other work which contains
      a notice placed by the copyright holder saying it may be distributed
      under the terms of this General Public License. The "Program", below,
      refers to any such program or work, and a "work based on the Program"
      means either the Program or any derivative work under copyright law:
      that is to say, a work containing the Program or a portion of it,
      either verbatim or with modifications and/or translated into another
      language. (Hereinafter, translation is included without limitation in
      the term "modification".) Each licensee is addressed as "you".

      Activities other than copying, distribution and modification are not
      covered by this License; they are outside its scope. The act of
      running the Program is not restricted, and the output from the Program
      is covered only if its contents constitute a work based on the
      Program (independent of having been made by running the Program).
      Whether that is true depends on what the Program does.

      1. You may copy and distribute verbatim copies of the Program's
      source code as you receive it, in any medium, provided that you
      conspicuously and appropriately publish on each copy an appropriate
      copyright notice and disclaimer of warranty; keep intact all the
      notices that refer to this License and to the absence of any warranty;
      and give any other recipients of the Program a copy of this License
      along with the Program.

      You may charge a fee for the physical act of transferring a copy, and
      you may at your option offer warranty protection in exchange for a fee.

      2. You may modify your copy or copies of the Program or any portion
      of it, thus forming a work based on the Program, and copy and
      distribute such modifications or work under the terms of Section 1
      above, provided that you also meet all of these conditions:

      a) You must cause the modified files to carry prominent notices
      stating that you changed the files and the date of any change.

      b) You must cause any work that you distribute or publish, that in
      whole or in part contains or is derived from the Program or any
      part thereof, to be licensed as a whole at no charge to all third
      parties under the terms of this License.

      c) If the modified program normally reads commands interactively
      when run, you must cause it, when started running for such
      interactive use in the most ordinary way, to print or display an
      announcement including an appropriate copyright notice and a
      notice that there is no warranty (or else, saying that you provide
      a warranty) and that users may redistribute the program under
      these conditions, and telling the user how to view a copy of this
      License. (Exception: if the Program itself is interactive but
      does not normally print such an announcement, your work based on
      the Program is not required to print an announcement.)

      These requirements apply to the modified work as a whole. If
      identifiable sections of that work are not derived from the Program,
      and can be reasonably considered independent and separate works in
      themselves, then this License, and its terms, do not apply to those
      sections when you distribute them as separate works. But when you
      distribute the same sections as part of a whole which is a work based
      on the Program, the distribution of the whole must be on the terms of
      this License, whose permissions for other licensees extend to the
      entire whole, and thus to each and every part regardless of who wrote it.

      Thus, it is not the intent of this section to claim rights or contest
      your rights to work written entirely by you; rather, the intent is to
      exercise the right to control the distribution of derivative or
      collective works based on the Program.

      In addition, mere aggregation of another work not based on the Program
      with the Program (or with a work based on the Program) on a volume of
      a storage or distribution medium does not bring the other work under
      the scope of this License.

      3. You may copy and distribute the Program (or a work based on it,
      under Section 2) in object code or executable form under the terms of
      Sections 1 and 2 above provided that you also do one of the following:

      a) Accompany it with the complete corresponding machine-readable
      source code, which must be distributed under the terms of Sections
      1 and 2 above on a medium customarily used for software interchange; or,

      b) Accompany it with a written offer, valid for at least three
      years, to give any third party, for a charge no more than your
      cost of physically performing source distribution, a complete
      machine-readable copy of the corresponding source code, to be
      distributed under the terms of Sections 1 and 2 above on a medium
      customarily used for software interchange; or,

      c) Accompany it with the information you received as to the offer
      to distribute corresponding source code. (This alternative is
      allowed only for noncommercial distribution and only if you
      received the program in object code or executable form with such
      an offer, in accord with Subsection b above.)

      The source code for a work means the preferred form of the work for
      making modifications to it. For an executable work, complete source
      code means all the source code for all modules it contains, plus any
      associated interface definition files, plus the scripts used to
      control compilation and installation of the executable. However, as a
      special exception, the source code distributed need not include
      anything that is normally distributed (in either source or binary
      form) with the major components (compiler, kernel, and so on) of the
      operating system on which the executable runs, unless that component
      itself accompanies the executable.

      If distribution of executable or object code is made by offering
      access to copy from a designated place, then offering equivalent
      access to copy the source code from the same place counts as
      distribution of the source code, even though third parties are not
      compelled to copy the source along with the object code.

      4. You may not copy, modify, sublicense, or distribute the Program
      except as expressly provided under this License. Any attempt
      otherwise to copy, modify, sublicense or distribute the Program is
      void, and will automatically terminate your rights under this License.
      However, parties who have received copies, or rights, from you under
      this License will not have their licenses terminated so long as such
      parties remain in full compliance.

      5. You are not required to accept this License, since you have not
      signed it. However, nothing else grants you permission to modify or
      distribute the Program or its derivative works. These actions are
      prohibited by law if you do not accept this License. Therefore, by
      modifying or distributing the Program (or any work based on the
      Program), you indicate your acceptance of this License to do so, and
      all its terms and conditions for copying, distributing or modifying
      the Program or works based on it.

      6. Each time you redistribute the Program (or any work based on the
      Program), the recipient automatically receives a license from the
      original licensor to copy, distribute or modify the Program subject to
      these terms and conditions. You may not impose any further
      restrictions on the recipients' exercise of the rights granted herein.
      You are not responsible for enforcing compliance by third parties to
      this License.

      7. If, as a consequence of a court judgment or allegation of patent
      infringement or for any other reason (not limited to patent issues),
      conditions are imposed on you (whether by court order, agreement or
      otherwise) that contradict the conditions of this License, they do not
      excuse you from the conditions of this License. If you cannot
      distribute so as to satisfy simultaneously your obligations under this
      License and any other pertinent obligations, then as a consequence you
      may not distribute the Program at all. For example, if a patent
      license would not permit royalty-free redistribution of the Program by
      all those who receive copies directly or indirectly through you, then
      the only way you could satisfy both it and this License would be to
      refrain entirely from distribution of the Program.

      If any portion of this section is held invalid or unenforceable under
      any particular circumstance, the balance of the section is intended to
      apply and the section as a whole is intended to apply in other
      circumstances.

      It is not the purpose of this section to induce you to infringe any
      patents or other property right claims or to contest validity of any
      such claims; this section has the sole purpose of protecting the
      integrity of the free software distribution system, which is
      implemented by public license practices. Many people have made
      generous contributions to the wide range of software distributed
      through that system in reliance on consistent application of that
      system; it is up to the author/donor to decide if he or she is willing
      to distribute software through any other system and a licensee cannot
      impose that choice.

      This section is intended to make thoroughly clear what is believed to
      be a consequence of the rest of this License.

      8. If the distribution and/or use of the Program is restricted in
      certain countries either by patents or by copyrighted interfaces, the
      original copyright holder who places the Program under this License
      may add an explicit geographical distribution limitation excluding
      those countries, so that distribution is permitted only in or among
      countries not thus excluded. In such case, this License incorporates
      the limitation as if written in the body of this License.

      9. The Free Software Foundation may publish revised and/or new versions
      of the General Public License from time to time. Such new versions will
      be similar in spirit to the present version, but may differ in detail to
      address new problems or concerns.

      Each version is given a distinguishing version number. If the Program
      specifies a version number of this License which applies to it and "any
      later version", you have the option of following the terms and conditions
      either of that version or of any later version published by the Free
      Software Foundation. If the Program does not specify a version number of
      this License, you may choose any version ever published by the Free Software
      Foundation.

      10. If you wish to incorporate parts of the Program into other free
      programs whose distribution conditions are different, write to the author
      to ask for permission. For software which is copyrighted by the Free
      Software Foundation, write to the Free Software Foundation; we sometimes
      make exceptions for this. Our decision will be guided by the two goals
      of preserving the free status of all derivatives of our free software and
      of promoting the sharing and reuse of software generally.

      NO WARRANTY

      11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
      FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
      OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
      PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
      OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
      MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
      TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
      PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
      REPAIR OR CORRECTION.

      12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
      WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
      REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
      INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
      OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
      TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
      YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
      PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
      POSSIBILITY OF SUCH DAMAGES.

      END OF TERMS AND CONDITIONS
      +
                  GNU GENERAL PUBLIC LICENSE
      Version 2, June 1991

      Copyright (C) 1989, 1991 Free Software Foundation, Inc.
      59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
      Everyone is permitted to copy and distribute verbatim copies
      of this license document, but changing it is not allowed.

      Preamble

      The licenses for most software are designed to take away your
      freedom to share and change it. By contrast, the GNU General Public
      License is intended to guarantee your freedom to share and change free
      software--to make sure the software is free for all its users. This
      General Public License applies to most of the Free Software
      Foundation's software and to any other program whose authors commit to
      using it. (Some other Free Software Foundation software is covered by
      the GNU Library General Public License instead.) You can apply it to
      your programs, too.

      When we speak of free software, we are referring to freedom, not
      price. Our General Public Licenses are designed to make sure that you
      have the freedom to distribute copies of free software (and charge for
      this service if you wish), that you receive source code or can get it
      if you want it, that you can change the software or use pieces of it
      in new free programs; and that you know you can do these things.

      To protect your rights, we need to make restrictions that forbid
      anyone to deny you these rights or to ask you to surrender the rights.
      These restrictions translate to certain responsibilities for you if you
      distribute copies of the software, or if you modify it.

      For example, if you distribute copies of such a program, whether
      gratis or for a fee, you must give the recipients all the rights that
      you have. You must make sure that they, too, receive or can get the
      source code. And you must show them these terms so they know their
      rights.

      We protect your rights with two steps: (1) copyright the software, and
      (2) offer you this license which gives you legal permission to copy,
      distribute and/or modify the software.

      Also, for each author's protection and ours, we want to make certain
      that everyone understands that there is no warranty for this free
      software. If the software is modified by someone else and passed on, we
      want its recipients to know that what they have is not the original, so
      that any problems introduced by others will not reflect on the original
      authors' reputations.

      Finally, any free program is threatened constantly by software
      patents. We wish to avoid the danger that redistributors of a free
      program will individually obtain patent licenses, in effect making the
      program proprietary. To prevent this, we have made it clear that any
      patent must be licensed for everyone's free use or not licensed at all.

      The precise terms and conditions for copying, distribution and
      modification follow.

      GNU GENERAL PUBLIC LICENSE
      TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

      0. This License applies to any program or other work which contains
      a notice placed by the copyright holder saying it may be distributed
      under the terms of this General Public License. The "Program", below,
      refers to any such program or work, and a "work based on the Program"
      means either the Program or any derivative work under copyright law:
      that is to say, a work containing the Program or a portion of it,
      either verbatim or with modifications and/or translated into another
      language. (Hereinafter, translation is included without limitation in
      the term "modification".) Each licensee is addressed as "you".

      Activities other than copying, distribution and modification are not
      covered by this License; they are outside its scope. The act of
      running the Program is not restricted, and the output from the Program
      is covered only if its contents constitute a work based on the
      Program (independent of having been made by running the Program).
      Whether that is true depends on what the Program does.

      1. You may copy and distribute verbatim copies of the Program's
      source code as you receive it, in any medium, provided that you
      conspicuously and appropriately publish on each copy an appropriate
      copyright notice and disclaimer of warranty; keep intact all the
      notices that refer to this License and to the absence of any warranty;
      and give any other recipients of the Program a copy of this License
      along with the Program.

      You may charge a fee for the physical act of transferring a copy, and
      you may at your option offer warranty protection in exchange for a fee.

      2. You may modify your copy or copies of the Program or any portion
      of it, thus forming a work based on the Program, and copy and
      distribute such modifications or work under the terms of Section 1
      above, provided that you also meet all of these conditions:

      a) You must cause the modified files to carry prominent notices
      stating that you changed the files and the date of any change.

      b) You must cause any work that you distribute or publish, that in
      whole or in part contains or is derived from the Program or any
      part thereof, to be licensed as a whole at no charge to all third
      parties under the terms of this License.

      c) If the modified program normally reads commands interactively
      when run, you must cause it, when started running for such
      interactive use in the most ordinary way, to print or display an
      announcement including an appropriate copyright notice and a
      notice that there is no warranty (or else, saying that you provide
      a warranty) and that users may redistribute the program under
      these conditions, and telling the user how to view a copy of this
      License. (Exception: if the Program itself is interactive but
      does not normally print such an announcement, your work based on
      the Program is not required to print an announcement.)

      These requirements apply to the modified work as a whole. If
      identifiable sections of that work are not derived from the Program,
      and can be reasonably considered independent and separate works in
      themselves, then this License, and its terms, do not apply to those
      sections when you distribute them as separate works. But when you
      distribute the same sections as part of a whole which is a work based
      on the Program, the distribution of the whole must be on the terms of
      this License, whose permissions for other licensees extend to the
      entire whole, and thus to each and every part regardless of who wrote it.

      Thus, it is not the intent of this section to claim rights or contest
      your rights to work written entirely by you; rather, the intent is to
      exercise the right to control the distribution of derivative or
      collective works based on the Program.

      In addition, mere aggregation of another work not based on the Program
      with the Program (or with a work based on the Program) on a volume of
      a storage or distribution medium does not bring the other work under
      the scope of this License.

      3. You may copy and distribute the Program (or a work based on it,
      under Section 2) in object code or executable form under the terms of
      Sections 1 and 2 above provided that you also do one of the following:

      a) Accompany it with the complete corresponding machine-readable
      source code, which must be distributed under the terms of Sections
      1 and 2 above on a medium customarily used for software interchange; or,

      b) Accompany it with a written offer, valid for at least three
      years, to give any third party, for a charge no more than your
      cost of physically performing source distribution, a complete
      machine-readable copy of the corresponding source code, to be
      distributed under the terms of Sections 1 and 2 above on a medium
      customarily used for software interchange; or,

      c) Accompany it with the information you received as to the offer
      to distribute corresponding source code. (This alternative is
      allowed only for noncommercial distribution and only if you
      received the program in object code or executable form with such
      an offer, in accord with Subsection b above.)

      The source code for a work means the preferred form of the work for
      making modifications to it. For an executable work, complete source
      code means all the source code for all modules it contains, plus any
      associated interface definition files, plus the scripts used to
      control compilation and installation of the executable. However, as a
      special exception, the source code distributed need not include
      anything that is normally distributed (in either source or binary
      form) with the major components (compiler, kernel, and so on) of the
      operating system on which the executable runs, unless that component
      itself accompanies the executable.

      If distribution of executable or object code is made by offering
      access to copy from a designated place, then offering equivalent
      access to copy the source code from the same place counts as
      distribution of the source code, even though third parties are not
      compelled to copy the source along with the object code.

      4. You may not copy, modify, sublicense, or distribute the Program
      except as expressly provided under this License. Any attempt
      otherwise to copy, modify, sublicense or distribute the Program is
      void, and will automatically terminate your rights under this License.
      However, parties who have received copies, or rights, from you under
      this License will not have their licenses terminated so long as such
      parties remain in full compliance.

      5. You are not required to accept this License, since you have not
      signed it. However, nothing else grants you permission to modify or
      distribute the Program or its derivative works. These actions are
      prohibited by law if you do not accept this License. Therefore, by
      modifying or distributing the Program (or any work based on the
      Program), you indicate your acceptance of this License to do so, and
      all its terms and conditions for copying, distributing or modifying
      the Program or works based on it.

      6. Each time you redistribute the Program (or any work based on the
      Program), the recipient automatically receives a license from the
      original licensor to copy, distribute or modify the Program subject to
      these terms and conditions. You may not impose any further
      restrictions on the recipients' exercise of the rights granted herein.
      You are not responsible for enforcing compliance by third parties to
      this License.

      7. If, as a consequence of a court judgment or allegation of patent
      infringement or for any other reason (not limited to patent issues),
      conditions are imposed on you (whether by court order, agreement or
      otherwise) that contradict the conditions of this License, they do not
      excuse you from the conditions of this License. If you cannot
      distribute so as to satisfy simultaneously your obligations under this
      License and any other pertinent obligations, then as a consequence you
      may not distribute the Program at all. For example, if a patent
      license would not permit royalty-free redistribution of the Program by
      all those who receive copies directly or indirectly through you, then
      the only way you could satisfy both it and this License would be to
      refrain entirely from distribution of the Program.

      If any portion of this section is held invalid or unenforceable under
      any particular circumstance, the balance of the section is intended to
      apply and the section as a whole is intended to apply in other
      circumstances.

      It is not the purpose of this section to induce you to infringe any
      patents or other property right claims or to contest validity of any
      such claims; this section has the sole purpose of protecting the
      integrity of the free software distribution system, which is
      implemented by public license practices. Many people have made
      generous contributions to the wide range of software distributed
      through that system in reliance on consistent application of that
      system; it is up to the author/donor to decide if he or she is willing
      to distribute software through any other system and a licensee cannot
      impose that choice.

      This section is intended to make thoroughly clear what is believed to
      be a consequence of the rest of this License.

      8. If the distribution and/or use of the Program is restricted in
      certain countries either by patents or by copyrighted interfaces, the
      original copyright holder who places the Program under this License
      may add an explicit geographical distribution limitation excluding
      those countries, so that distribution is permitted only in or among
      countries not thus excluded. In such case, this License incorporates
      the limitation as if written in the body of this License.

      9. The Free Software Foundation may publish revised and/or new versions
      of the General Public License from time to time. Such new versions will
      be similar in spirit to the present version, but may differ in detail to
      address new problems or concerns.

      Each version is given a distinguishing version number. If the Program
      specifies a version number of this License which applies to it and "any
      later version", you have the option of following the terms and conditions
      either of that version or of any later version published by the Free
      Software Foundation. If the Program does not specify a version number of
      this License, you may choose any version ever published by the Free Software
      Foundation.

      10. If you wish to incorporate parts of the Program into other free
      programs whose distribution conditions are different, write to the author
      to ask for permission. For software which is copyrighted by the Free
      Software Foundation, write to the Free Software Foundation; we sometimes
      make exceptions for this. Our decision will be guided by the two goals
      of preserving the free status of all derivatives of our free software and
      of promoting the sharing and reuse of software generally.

      NO WARRANTY

      11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
      FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
      OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
      PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
      OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
      MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
      TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
      PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
      REPAIR OR CORRECTION.

      12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
      WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
      REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
      INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
      OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
      TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
      YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
      PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
      POSSIBILITY OF SUCH DAMAGES.

      END OF TERMS AND CONDITIONS
    diff --git a/lang/en_utf8/docs/release.html b/lang/en_utf8/docs/release.html index 2585b5bd5d..235fc449a4 100644 --- a/lang/en_utf8/docs/release.html +++ b/lang/en_utf8/docs/release.html @@ -4,7 +4,7 @@ Moodle Docs: Current Release notes - + diff --git a/lang/en_utf8/docs/releaseold.html b/lang/en_utf8/docs/releaseold.html index 7f26fb65f5..2a0673b335 100644 --- a/lang/en_utf8/docs/releaseold.html +++ b/lang/en_utf8/docs/releaseold.html @@ -4,7 +4,7 @@ Moodle Docs: Old Release notes - + @@ -32,7 +32,7 @@
    @@ -41,14 +41,14 @@ - +
    Performance improvements
    @@ -56,25 +56,25 @@
    Other bug fixes
    @@ -92,10 +92,10 @@
    @@ -103,73 +103,73 @@
    - +
    Performance improvements
    Other bug fixes
    @@ -188,7 +188,7 @@
    - +
    Performance improvements
    diff --git a/lang/en_utf8/docs/upgrade.html b/lang/en_utf8/docs/upgrade.html index e5444a8934..4b3376a861 100644 --- a/lang/en_utf8/docs/upgrade.html +++ b/lang/en_utf8/docs/upgrade.html @@ -3,7 +3,7 @@ Moodle Docs: Upgrading - + diff --git a/lang/en_utf8/exercise.php b/lang/en_utf8/exercise.php index 7bdc009858..0897e34929 100644 --- a/lang/en_utf8/exercise.php +++ b/lang/en_utf8/exercise.php @@ -88,11 +88,11 @@ $string['nosubmissions'] = 'No Submissions'; $string['notassessedyet'] = 'Not Assessed Yet'; $string['notavailable'] = 'Not Available'; $string['noteonassessmentelements'] = 'Note that grading is broken down into a number of \'Assessment Elements\'.
    - This makes the grading easier and more consistent. As teacher you must add these
    - Elements before making the assignment available to students. This is done by
    - clicking on the assignment in the course, if no elements are present you will be asked
    - to add them. You can change the number of elements using the Edit Assignment screen,
    - the elements themselves can be amended from the \"Managing Assignment\" screen. '; + This makes the grading easier and more consistent. As teacher you must add these
    + Elements before making the assignment available to students. This is done by
    + clicking on the assignment in the course, if no elements are present you will be asked
    + to add them. You can change the number of elements using the Edit Assignment screen,
    + the elements themselves can be amended from the \"Managing Assignment\" screen. '; $string['noteongradinggrade'] = 'This grade is a measure of how well your assessment agrees with the assessment of
    your work by the $a. The higher the grade the closer the agreement.'; $string['noteonstudentassessments'] = '{Grade from student / Grading Grade for assessment}'; diff --git a/lang/en_utf8/help/dialogue/closedialogue.html b/lang/en_utf8/help/dialogue/closedialogue.html index aae4554159..96ff28f245 100644 --- a/lang/en_utf8/help/dialogue/closedialogue.html +++ b/lang/en_utf8/help/dialogue/closedialogue.html @@ -1,13 +1,13 @@

    Closing Dialogues

    You can close a dialogue at any time. Closing a dialogue - stops the dialogue and removes it from your current list of dialogues. That is, - closed dialogues do not appear on this page.

    + stops the dialogue and removes it from your current list of dialogues. That is, + closed dialogues do not appear on this page.

    You will be able to view closed dialogues but you can not add to them. - However, closed dialogues are eventually deleted and after that point they - obviously will not be available even for viewing.

    - + However, closed dialogues are eventually deleted and after that point they + obviously will not be available even for viewing.

    +

    If you do close this dialogue, then you will have to start a new dialogue - if you want to continue to "talk" with this person. That person - will re-appear in the list of people you can start dialogues with.

    + if you want to continue to "talk" with this person. That person + will re-appear in the list of people you can start dialogues with.

    diff --git a/lang/en_utf8/help/dialogue/deleteafter.html b/lang/en_utf8/help/dialogue/deleteafter.html index 0e7ef00ee6..4ba5d63334 100644 --- a/lang/en_utf8/help/dialogue/deleteafter.html +++ b/lang/en_utf8/help/dialogue/deleteafter.html @@ -1,7 +1,7 @@

    Deletion of Dialogues

    This option sets the time interval in days for the deletion of - dialogues. It only applies to CLOSED dialogues.

    - + dialogues. It only applies to CLOSED dialogues.

    +

    If the time period is set to zero then dialogues are never deleted.

    diff --git a/lang/en_utf8/help/dialogue/info.html b/lang/en_utf8/help/dialogue/info.html index 0fac46b6aa..b6bca58d8c 100644 --- a/lang/en_utf8/help/dialogue/info.html +++ b/lang/en_utf8/help/dialogue/info.html @@ -1,22 +1,22 @@  Dialogues

    This module provides a simple communication method between pairs of users. - A teacher can open an dialogue with a student, a student can open - a dialogue with a teacher, and (optionally) a student can open a - dialogue with another student. A teacher or student can be involved - in many on-going dialogues at any time.

    + A teacher can open an dialogue with a student, a student can open + a dialogue with a teacher, and (optionally) a student can open a + dialogue with another student. A teacher or student can be involved + in many on-going dialogues at any time.

    A dialogue can have an unlimited number of entries, normally the - "conversation" takes place as a set of interleaved - replies. This format is not enforced and either party can add to the - dialogue at any time.

    + "conversation" takes place as a set of interleaved + replies. This format is not enforced and either party can add to the + dialogue at any time.

    A dialogue can be closed by either party at any time. Closed dialogues - cannot be reopened. However, a closed - dialogue can be viewed by either party provided it is still in existence...

    - + cannot be reopened. However, a closed + dialogue can be viewed by either party provided it is still in existence...

    +

    ...The module deletes closed dialogues and all their entries after a - certain time. That time is set here when the Dialogue is created.

    + certain time. That time is set here when the Dialogue is created.

    If the course has groups the following points apply.