next up previous contents
Next: trailer.php 程式修改 Up: Timetable 課表 Previous: gotoroom.php 程式修改   Contents

session_php.php 程式修改

  1. 取得用戶名稱,改取用戶的 firstname。
    [root@moodle mod_tmp]# diff -urNwbBE mrbs/web/session_php.php ../blocks/mrbs/web/session_php.php
    --- mrbs/web/session_php.php	2012-10-21 19:24:42.000000000 +0800
    +++ ../blocks/mrbs/web/session_php.php	2013-02-24 16:24:44.000000000 +0800
    @@ -112,7 +112,8 @@
     
     function getUserName()
     { global $USER;
    -   return $USER->username;
    +   return $USER->firstname; //dywang
     /*
         if (isset($_SESSION) && isset($_SESSION["UserName"]) && ($_SESSION["UserName"] != ""))
         {
    



2018-08-14