Skip to main content

addusertodb.html missing from x3 theme in 11.44

Comments

14 comments

  • JaredR.
    Friendly Moderator Note Your first post of this was moderated, which is why you did not see it. I actually approved it, so it was visible, just before you posted again. I deleted the second post as a duplicate, but I wanted to explain what happened to prevent any confusion.
    0
  • N1ghteyes
    Thanks Jared, i actually saw the note about modification the second time i posted, i wasnt paying attention the first time :x
    0
  • N1ghteyes
    moderation # Sorry, one of those days :(
    0
  • JacobPerkins
    Hello, I believe the page you're looking for has been updated to 'x3/sql/userrights.html'. You can verify this by visiting the page in your browser, and verifying the URL you're needing.
    0
  • N1ghteyes
    no joy im afraid, i can navigate to the page fine in the browser, however adding &ALL=ALL to the URL for privileges no longer auto submits the form, so the script no longer works. the url called is now this: /frontend/x3/sql/userrights.html?user=user&db=database&ALL=ALL but no user is added to the database, both when calling this in the script, or when navigating to it directly. EDIT NOTE:: I can't find referance to that change anywhere in the change logs. can i ask why its been made? EDIT 2:: I believe the issue here is that the permissions functionality has been changed, so that rather than &ALL=ALL being used for the final submission, it now just selects all check boxes without submitting the form.
    0
  • N1ghteyes
    so far as i know, most shared hosts dont allow access to the API. Certainly the few i've used don't. While i have access to use the API on my servers, a lot of people who use the system dont, so being able to call the various URLs required to setup a database, and asign a user with permissions to is pretty much integral to the entire thing. EDIT:: I didnt get much of a chance to review those docs, can you confirm if i can call url's directly without API access with the methods you linked? Essentually i need to know this will work on shared hosts before i really invest time into it. Thanks
    0
  • JacobPerkins
    Hello, I'm unsure if this will work on shared hosts, or if they have this blocked, however I'd recommend testing it out to see. This is the preferred way of doing things, as it won't change as much as the pages.
    0
  • N1ghteyes
    if this doesnt work on shared hosts, will there be any way around this? a brief test of using parper_lantern throws the same problem Edit:: Aside from specifying pre 11.44 only...
    0
  • JacobPerkins
    Hi, If you're able to test this on cPanel pages, you can test these API calls as well. Also, I don't believe hosts *CAN* disable UAPI. cPanel is built upon API calls, so if they disabled the API, they would effectively disable cPanel.
    0
  • N1ghteyes
    ah ok, so UAPI is not quite the same as Api v1 and 2? I will review it, UAPI does sound much more promising though :)
    0
  • N1ghteyes
    ok, so as a direct result of this, i have written a PHP class to handle UAPI connections. It could do with some feedback / testing and improvements, not to mention better commenting, but, see the thread i posted in the development forum for it. tl;dr - UAPI works. UAPI PHP Class thread
    0
  • luisandrade
    Thank you N1ghteyes! I had the same issue like yours. Your UAPI PHP Class save me and works fine. But i didn't can set privileges as well, because i don't know exactly the sintax. I really didn't find in cPanel Docs examples, like this link:
    0
  • shripadd
    hi I am also facing same issue, My site is hosted on shared thosting (hostgator) Previously my script was working fine but due to theme changes I am unable to add user with ALL privileges to data base Can any one please help
    0

Please sign in to leave a comment.