ニジカもんすたぁ!! トップ・ページ https://nizika.monster
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

30 lines
593 B

  1. <?php
  2. const LOG_PATH = './log.txt';
  3. $log_data = [];
  4. $f = fopen (LOG_PATH, 'r');
  5. if ($f !== false)
  6. {
  7. while (($dt = fgetcsv ($f, 0, "\t")) !== false)
  8. {
  9. $chat_info = json_decode ($dt[1]);
  10. $log_data[] = ['date_time' => $dt[0],
  11. 'chat_icon' => $chat_info -> author -> imageUrl,
  12. 'chat_name' => $chat_info -> author -> name,
  13. 'chat_message' => $chat_info -> message,
  14. 'answer' => $dt[2]];
  15. }
  16. }
  17. fclose ($f);
  18. unset ($f);
  19. require_once './index.frm.php';