Jump to content

Server Config Options


openmind

Recommended Posts

I'me writing ad addon that will allow a customer to reboot their VPS/dedicated server from the product details page in the client area.

 

I've got our internal server ID added as a custom field for the purchased product and I have create a link that contains this server ID to a new page I have created so http://www.domain.com/portal/servercontrol.php?serverid=ab-1234 where ab-1234 is their server.

 

Now on my server control template I'm trying to write a snippet that looks at the server ID passed in the URL, runs a query to check that the server ID actually belongs to the customer and then fires the API to reboot the box.

 

I'm stumped though as I cannot find my customers server ID in the correct database table. Where is this value held?

 

If I can find this then I can check the customer ID matches the session userID and reboot the box.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated