Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Editing Account Details
#1
Jonny and I talked about this over IRC. But I just wanted to create a topic over here for discussion. Wink

The account modification query string in WHM is this.
Code:
https://example.com:2087/scripts/edituser?user=account
Where "account" = the users account and "example.com" = the WHM domain.

Working on how to change it remotely now.
Code:
<form action="/scripts/saveedituser" method="POST">
<input type="hidden" name="user" value="account_name">
<input type="hidden" name="BWLIMIT" value="8589934592">
<input type="hidden" name="CONTACTEMAIL" value="[email protected]">
<input type="hidden" name="CONTACTEMAIL2" value="">
<input type="hidden" name="DEMO" value="0">
<input type="hidden" name="FEATURELIST" value="default">
<input type="hidden" name="IP" value="209.188.83.160">
<input type="hidden" name="OWNER" value="owner_of_account">
<input type="hidden" name="PLAN" value="package_name">
<input type="hidden" name="STARTDATE" value="1228428805">
<input type="hidden" name="USER" value="account_name">
<input type="text" name="DNS" value="new_address_here">
<select name="RS">
<option value="x">x</option>
<option value="x2">x2</option>
<option value="x3" selected>x3</option>
<option value="x3mail">x3mail</option>
<option value="xmail">xmail</option>
</select>
<select name="LANG">  
<option value="english" selected>english</option>
<option value="spanish-utf8">spanish-utf8</option>
<option value="arabic">arabic</option>
<option value="russian">russian</option>
<option value="japanese">japanese</option>
<option value="portuguese-utf8">portuguese-utf8</option>
<option value="french-utf8">french-utf8</option>
<option value="hindi">hindi</option>
<option value="german-utf8">german-utf8</option>
<option value="bengali">bengali</option>
<option value="portuguese">portuguese</option>
<option value="spanish">spanish</option>
<option value="french">french</option>
<option value="german">german</option>
<option value="english-utf8">english-utf8</option>
<option value="chinese">chinese</option>
<option value=".english.webalizer">.english.webalizer</option>
</select>
<input type="text" name="newuser" value="demo789">
<input type="hidden" name="seeshell" value="1">
<input type="text" size="7"  name="MAXPOP" value="15">
<input type="text" size="7"  name="MAXFTP" value="15">
<input type="text" size="7"  name="MAXLST" value="15">
<input size="7"  type="text" name="MAXSUB" value="15">
<input size="7" type="text" name="MAXSQL" value="15">
<input size="7"  type="text" name="MAXPARK" value="15">
<input size="7" type="text" name="MAXADDON" value="15">
<input type="checkbox" name="HASCGI" value="1" checked="checked">
<input type="submit" class="input-button" value="Save">
</form>

That's a rundown of all the data. Most of the inputs are self explanatory.
Kevin Mark - TheHostingTool Lead Developer
#2
See the thing is, the way I use WHM now and it's API is different. There's special pages that only output HTML, no WHM style and only consistent error messages. Also, there isn't a post feature in the WHM class I did. I'll see.
Jonny H - THT Main Developer & Founder


#3
I'm going to see if it requires POST. WHM might support the GET method. Smile
Kevin Mark - TheHostingTool Lead Developer
#4
I don't think that page does, also, when it has been completed it would output the whole HTML, be stupid to get and filter through.
Jonny H - THT Main Developer & Founder


#5
WHM doesn't officially support remote account modifications. Their API only allows creation/termination/suspension/unsuspension. However, by using Jonny's code, it's possible to do upgrade/downgrade too.


Forum Jump:


Users browsing this thread: 1 Guest(s)