Showing posts with label Moodle. Show all posts
Showing posts with label Moodle. Show all posts

2012/12/09

Moodle Module 1.9 升 2.3

比較大的變化有三點:

1. access.php 中使用的 function
2. lang 中 utf8 的 suffix
3. install.xml 中的 STATEMENT 改為用 db/log.php 或是 db/install.php 的程式方式改寫

原本的 STATAEMENT 中的 Insert
改為在 install.php 使用 insert_record
至於 record 就直接用 stdClass() 就好

Moodle 忘記管理者密碼

Moodle 的密碼限制實在是太多了,以至於讓人容易忘記。

所以在這邊說明如何強行改變 Moodle 的管理者密碼
 直接更改資料庫裡 Moodle 資料庫中 Prefix_user 的 Password 欄位

 用這個 MD5 工具,把想要的密碼打進去會自動轉換 然後再 UPDATE password 欄位即可 

註:雖然為了安全性著想不該這樣亂搞,但只是測試用就還好。