require_login 函式,卻沒有出現登入畫面,重新整理後則已登入為訪客。
[root@dns moodle23]# grep -n 'login' index.php -C3
44- // Prevent caching of this page to stop confusion when changing page after making AJAX changes
45- $PAGE->set_cacheable(false);
46-
47: if ($CFG->forcelogin) {
48: require_login();
49- } else {
50- user_accesstime_log();
51- }
回到首頁
/ ► 網站管理
/ ► 用戶
/ ► 權限
/ ► 用戶管理辦法 自動登入為訪客 (必須開啟)
回到首頁
/ ► 網站管理
/ ► 安全
/ ► 網站政策 強制用戶登入 (不能開啟)