moodle

Why is moodle not available?

百般思念 提交于 2020-04-11 17:07:29
问题 I configured moodle but I'm getting an error message: Fatal error: $CFG->dataroot is not configured properly, directory does not exist or is not accessible! Exiting. My moodle directory is in var/www/html/moodle and in my moodle/config.php is $CFG->dataroot = '/var/moodledata'; Still nothing works when I try to start moodle. What can be done about it? 回答1: I think the moodledata folder does not have write permission. provide 0777 permission to the folder then it should be accessible. 回答2: You

克服“ X框架选项禁止的显示”

限于喜欢 提交于 2020-02-27 06:39:44
我正在写一个很小的网页,其目的是构架其他页面,只是将它们合并到一个浏览器窗口中,以便于查看。 我试图框住的页面中有几页被禁止装帧,并抛出“拒绝显示文档,因为X-Frame-Options禁止显示”。 Chrome中的错误。 我了解这是一个安全限制(有充分的理由),并且无权对其进行更改。 是否有其他替代的框架或非框架方法来显示单个窗口中不会被X-Frame-Options标头绊倒的页面? #1楼 当我尝试在iframe中嵌入moodle 2时遇到了相同的问题,解决方法是 Site administration ► Security ► HTTP security 并选中“ Allow frame embedding #2楼 添加一个 target='_top' 到我在facebook选项卡中的链接为我解决了这个问题... #3楼 这是解决方案的家伙! FB.Event.subscribe('edge.create', function(response) { window.top.location.href = 'url'; }); 唯一适用于Facebook应用程序的东西! #4楼 我在mediawiki上也遇到了同样的问题,这是因为出于安全原因服务器拒绝将页面嵌入到iframe中。 我写解决了 $wgEditPageFrameOptions = "SAMEORIGIN";

如何将整个MySQL数据库字符集和排序规则转换为UTF-8?

家住魔仙堡 提交于 2020-02-25 19:04:35
如何将整个MySQL数据库字符集转换为UTF-8并将排序规则转换为UTF-8? #1楼 在命令行外壳上 如果您是命令行外壳程序之一,则可以非常快速地执行此操作。 只需填写“ dbname”:D DB="dbname" ( echo 'ALTER DATABASE `'"$DB"'` CHARACTER SET utf8 COLLATE utf8_general_ci;' mysql "$DB" -e "SHOW TABLES" --batch --skip-column-names \ | xargs -I{} echo 'ALTER TABLE `'{}'` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;' ) \ | mysql "$DB" 一线可轻松复制/粘贴 DB="dbname"; ( echo 'ALTER DATABASE `'"$DB"'` CHARACTER SET utf8 COLLATE utf8_general_ci;'; mysql "$DB" -e "SHOW TABLES" --batch --skip-column-names | xargs -I{} echo 'ALTER TABLE `'{}'` CONVERT TO CHARACTER SET utf8 COLLATE utf8

毕业设计 之 七 参考文献综述

我怕爱的太早我们不能终老 提交于 2020-02-23 16:04:19
毕业设计 之 七 参考文献综述 作者:20135216 内容:Moodle平台,BigBlueButton研究,RESTful框架,SPOC规范,插件开发 说明:参考论文及图书大部分来自于学校图书馆资源及馆藏借阅;少部分图书为个人通过网络购买 引言 本文用于对毕业设计课题“基于Moodle和BigBlueButton的混合式学习平台开发”的相关论文、期刊、书籍等资料进行内容整理综述。Moodle是一个应用广泛的开源学习平台,方便教师与学生在线上进行学习任务交互、测评、交流等;BBB作为视屏会议系统,可以与Moodle集成以使得后者拥有实时视频会议、共享白板等附加功能。在这一过程中,代码遵循REST框架;借鉴SPOC学习模式的理念,以学生为主体进行授课。本篇综述共计涵盖书籍5本、论文期刊资料21份,时间跨度从2006年到2016年。 一、Moodle平台 1.开发历史及发展现状 历史 Moodle是Modular Object-Oriented Dynamic Learning Environment的缩写,由澳大利亚教师Martin Dougiamas基于建构主义教育理论而开发的课程管理系统。软甲基于开源的Linux+apache+mysql+php体系构建,任何人都可以在遵循GPL原则的情况下对其进行修改。 Moodle1.0版本于2000年发布,历经多年完善,目前

文献随笔(十一)

社会主义新天地 提交于 2020-02-04 03:15:23
一.基本信息 标题:面向UML建模的协作学习支持系统研究 时间:2015.04.10 出版源:山西师范大学 文件分类:文献笔记 二.研究背景 随着信息技术的发展,生活的方方面面都受到信息化浪潮的影响,教育信息化的浪潮触动了教师和学生思想观念的转变,也促进教与学的发展。面对教育技术日新月异的变革,强化师生善于发现和应用信息技术的意识,提高学生的创新能力,是我们面临的问题,也是一项重要的挑战。本文开发了面向 UML 建模的协作学习支持系统并且构建了基于此系统的在线协作学习模式,设计具体课程的教学设计应用于 UML 与软件建模教学实践中,理论上验证了在线协作学习支持系统在教学中应用的可能性及其对学生知识掌握、学习积极性等方面积极的影响,实践上为进一步在教学中推广提供了参考与借鉴。 三.具体内容 相关理论与技术:社会构建主义理论,群体动力学,开发工具与技术概述(Moodle;UML、Apache、MySQL、PHP)。 协作学习支持系统设计: 需求分析: 协作学习支持系统类图: 管理员用例图: 教师用例图: 学生用例图: 学生登陆序列图: 学生任务领取序列图: 学生下载资源序列图: 学生上传作业序列图: 学生在线测试序列图: 学生论坛留言序列图: 设计原则:a.简单、实用性,b.安全稳定、可维护性,c.可扩展性、灵活性。 系统功能与结构设计: 协作学习模型: 基于三层的协作学习模型:

How to access a variable from one PHP page to another, without a form, link, or button?

隐身守侯 提交于 2020-01-17 03:59:22
问题 TLDR:- What is a good way to pass contents of a variable from one PHP file to another without involving a form , link or a button . Question:- So there is a form in a page/file called question_edit_form.php and its action attribute is already set to another file called question.php . The variable of interest is being read-in from the user in question_edit_form.php and is then obviously being sent to question.php using $_POST . Now, there is a third file, named renderer.php , and which is not

Getting multiple Angular modals to work with http response data

℡╲_俬逩灬. 提交于 2020-01-17 03:48:05
问题 I am building an application to authenticate with Moodle and get Json data from a Moodle web service, and using AngularJs to display the data in the app. There are multiple functions on the Moodle webservice, so I need multiple controllers in the Angular app. I am using Visual Studio and Cordova to write the app. With a lot of help from a colleague and StackOverflow, I now have multiple Angular modals working in my single page mobile application. (There's another StackOverflow question about

How to remove “cluster-40926” from my dataroot in moodle

一笑奈何 提交于 2020-01-11 13:08:29
问题 Path of moodledata in Moodle is /nas/wp/www/cluster-40926/securityorg/test_moodle. Here is the code $dir = dirname(__FILE__); echo "Full path to this dir: " . $dir; Output: Full path to this dir: /nas/wp/www/cluster-40926/securityorg/test_moodle But this creates an error "Fatal error: $CFG->dataroot is not configured properly, directory does not exist or is not accessible! Exiting" cluster-40926 folder donot exits so I thnk if I can remove cluster-40926 from the path, problem will be solved.

How to make a block visible only for admin and teacher in moodle?

霸气de小男生 提交于 2020-01-06 01:33:07
问题 I think there are more than one way to make block invisible for students . 1. Hide the block 2. Assign role to block and set permission to block But these are done by admin by change the settings. I need a way by code. How can I write the code to make the block invisible for student. For activity I can make invisible the activity by changing db/access.php 'mod/questionbank:view' => array( 'captype' => 'read', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( //'guest' => CAP_ALLOW, //

Authenticate with Moodle from a mobile app

六眼飞鱼酱① 提交于 2019-12-30 14:16:33
问题 My mobile app needs to log in to Moodle to get Json data from a webservice and display it using Angular. In order to do that, I need to pass in a username and password and get a Moodle webservice token back, so my app doesn't need to log in again (at least until the token expires). (this is one of those "ask and answer your own question" things, so my solution is below, but comments & suggestions welcome.) With thanks to all the other StackOverflow pages I have used to create this solution!