The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Know the setup date of an account

Discussion in 'User Experience' started by equens, Oct 5, 2006.

  1. equens

    equens Well-Known Member

    Joined:
    Feb 8, 2002
    Messages:
    270
    Likes Received:
    0
    Trophy Points:
    16
    How can I know the setup date of an account from cpanel? I want to show the year graph in cpanel home but only in accounts with more than 30 days.

    HTML:
    <img src="/tmp/<cpanel print="$ENV{'REMOTE_USER'}">/bw-<cpanel print="$ENV{'REMOTE_USER'}">-2006.png" width="400">
    Thanks!
     
  2. jayh38

    jayh38 Well-Known Member

    Joined:
    Mar 3, 2006
    Messages:
    1,215
    Likes Received:
    0
    Trophy Points:
    36
    /etc/vdomainaliases will show the date the file was created. That is never
    changed after it is created so the date and time should be accurate.
     
  3. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    The creation date is stored in /var/cpanel/users/account in the STARTDATE field. The number is in unix epoch time format (seconds).
     
  4. equens

    equens Well-Known Member

    Joined:
    Feb 8, 2002
    Messages:
    270
    Likes Received:
    0
    Trophy Points:
    16
    Thanks a lot!

    Thanks a lot!
     
Loading...

Share This Page