openmind Posted June 5, 2009 Share Posted June 5, 2009 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. 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted June 5, 2009 Share Posted June 5, 2009 I'm stumped though as I cannot find my customers server ID in the correct database table. Where is this value held? tblcustomfieldvalues 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.