getUserName.php 239 B

123456789
  1. <?php
  2. //取得用戶的顯示名稱
  3. $userDir = $dataStorage;
  4. if (file_exists($userDir . "user/profile/displayname.inf")){
  5. echo strip_tags(file_get_contents($userDir . "user/profile/displayname.inf"));
  6. }else{
  7. echo $_SESSION['login'];
  8. }
  9. ?>