Results 1 to 3 of 3

Thread: How to create an auto login url for an end user in PHP?

  1. #1
    Join Date
    Sep 2011
    Posts
    24

    How to create an auto login url for an end user in PHP?

    Hi,

    In CPanel, using php, we can create a login url thru api, which allows an end user to login to his cpanel account just by clicking the url.

    I saw that DA has recently added a feature which is similar and given at
    https://www.directadmin.com/features.php?id=2463

    But, there are no php examples to experiment and see how it works( only a bash command is given ).

    Any one has a working php script of how this can be implemented?

    thank you.

  2. #2
    Join Date
    Sep 2011
    Posts
    24
    No body knows any thing about this?
    Failure is always temporary, only giving up makes it permanent.

  3. #3
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    13,750
    Hello,

    Use exec(), system() in PHP to run shell commands and scripts. You will need to use a wrapper to run your script as diradmin user, or you might try this one https://www.directadmin.com/features.php?id=2510
    Regards, Alex G.

    - Get the best commercial DirectAdmin support and hire me on poralix.com
    - Follow and like @Poralix on Facebook

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •