[dev] [CatalinFrancu/dexonline] a385a1: Adding hasAvatar user field (refs #341)

GitHub via Dev dev at dexonline.ro
Mon May 25 18:44:45 EEST 2015


  Branch: refs/heads/master
  Home:   https://github.com/CatalinFrancu/dexonline
  Commit: a385a1a69a9ee6f0f20ed19c4f85f0161604660f
      https://github.com/CatalinFrancu/dexonline/commit/a385a1a69a9ee6f0f20ed19c4f85f0161604660f
  Author: David Batranu <dbatranu at gmail.com>
  Date:   2015-05-24 (Sun, 24 May 2015)

  Changed paths:
    A patches/00129.sql
    A patches/00130.php
    M phplib/FtpUtil.php
    M templates/bits/avatar.ihtml
    M wwwbase/salvare-avatar.php

  Log Message:
  -----------
  Adding hasAvatar user field (refs #341)

* new function in FtpUtil: `staticServerRelativeFileList` that lists ftp
  contents relative to the config path
* setting hasAvatar on avatar save and delete
* removing onerror from avatar.ihtml
* migration steps:

    * 00129: add the new hasAvatar column to the User table
    * 00130: get image list from FTP:/img/user/ and set hasAvatar = 1
      for matching user IDs


  Commit: 22737cc3c666b6474d9f08fdb39ef1ce29bf4a19
      https://github.com/CatalinFrancu/dexonline/commit/22737cc3c666b6474d9f08fdb39ef1ce29bf4a19
  Author: Cătălin Frâncu <cata at francu.com>
  Date:   2015-05-25 (Mon, 25 May 2015)

  Changed paths:
    A patches/00129.sql
    A patches/00130.php
    M phplib/FtpUtil.php
    M templates/bits/avatar.ihtml
    M wwwbase/salvare-avatar.php

  Log Message:
  -----------
  Merge pull request #406 from david-batranu/341

Adding hasAvatar user field (refs #341)


Compare: https://github.com/CatalinFrancu/dexonline/compare/e4683130a7a8...22737cc3c666


More information about the Dev mailing list