Search results

  1. staging4hosters

    Developer license for creating a plugin

    I think I have a better understanding now of how the plugins work, and I also found other resources that may explain why/how the authentication system has been thought of: - https://docs.directadmin.com/directadmin/customizing-workflow/writing-a-plugin/ -...
  2. staging4hosters

    SESSION data not persist

    As far as I have understood, there is no session per se for plugins. They are independent scripts generated over cli, whose output is then piped to the iframe. Only the variables available in the environment are accessible.
  3. staging4hosters

    [Plugin Development] - Help with query parameters or multiple pages [solved]

    Thank you again. I can't get any query_string in the main plugin page, but I can in the other pages, at least using the raw version, there they work fine. Thanks!
  4. staging4hosters

    [Plugin Development] - Help with query parameters or multiple pages [solved]

    I figured it out! I have to pass the extension as well: window.top.location.href = '/CMD_PLUGINS/myplugin/new.html`; This works! I haven't been able to solve the query_string version, but this is good enough. Thank you!
  5. staging4hosters

    [Plugin Development] - Help with query parameters or multiple pages [solved]

    Thank you @Arieh for your reply. I didn't know about the referrer check. I have tested both options (the query string and the separate page) using window.location.href but they still don't work. I have checked the request that gets created and the referrer header is included. It contains the...
  6. staging4hosters

    [Plugin Development] - Help with query parameters or multiple pages [solved]

    Hi, I am trying to create a plugin. I have gone through (I think) all the available documentation for it, but I can't make neither of this to work. I would appreciate some help, please. I would like to either have multiple pages(views), like: /user/plugins/myplugin/...
  7. staging4hosters

    Developer license for creating a plugin

    This is how I understood that the PHP SDK works, according to the examples here (all examples do set_login): - https://forum.directadmin.com/threads/php-class-for-communicating-with-da.258/ - http://files.directadmin.com/services/all/httpsocket/examples/ I have tried executing commands without...
  8. staging4hosters

    Developer license for creating a plugin

    I just found out about login keys I guess that is an acceptable solution. Thank you, best
  9. staging4hosters

    Developer license for creating a plugin

    Hi, thank you for your reply. Yes, I have already read that - but if we make a distributable plugin, are we supposed to ask the directadmin owners to enter their admin password somewhere in the plugin configuration? That would be less than ideal. How do other plugins solve this? Again, the...
  10. staging4hosters

    Developer license for creating a plugin

    Hello, It took a while until we have been able to start with this. So we have bought a personal license but when we log as the user, the API requests using $sock->set_login(getenv('USERNAME')); No longer work, we do have to add the password...
  11. staging4hosters

    Developer license for creating a plugin

    Awesome, thank you! We'll do that then.
  12. staging4hosters

    Developer license for creating a plugin

    Hi there, we would like to create a Directadmin plugin for our platform. We currently only have one for cPanel and several custom solutions (done by our clients). We would like to know if there is such thing as "Developer license" like cPanel or WHMCS offer. Is it expected to pay the full...
Back
Top