平凡的幸福
撇開習慣,發現幸福就在平凡之中。 記錄生活、學習心得、工作遇到的問題與想法。
(移至...)
首頁
▼
Drupal 7 判斷未登入自動轉到登入頁
在區塊中加中下列的程式碼:
global $user;if ($user->uid == 0 && arg(0) != 'user' && arg(1) != 'login'){
drupal_goto('user/login');}
‹
›
首頁
查看網路版