Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A few small bugs and suggestions
#1
Hello all,

I saw that nick opened a thread on our forum about the new version being released so i had to have a go on it lol! I installed it and did a few tests here is what i found out.

Bug 1:
Small bug lol: http://umarsvps.com/tht/client/

Hover over the green bug thing and you will see that "%SOFTWARE%" does not get replaced Smile

Bug 2:
Another one lol: http://umarsvps.com/tht/admin/?page=lof⊂=tchoose (admin page)

When you change to "reloadedtwo" the page goes all funny like so: (check attachment).

Attachment: http://www.hostwoot.com/forums/attachment.php?aid=84

Improvement:
The client import feature from WHM should grab the email instead of using "[email protected]". This creates big problems in the future if you need to contact your clients.

Thats all for now, sorry to report bugs already.. I don't personally use THT but i thought i should check v1.2 Smile

Thanks!
#2
Bug 1:
Looks like we forgot to parse that. Tongue

Bug 2:
I don't think that theme was ever completed. Jimmie? Tongue

Improvement:
I believe the problem is that there is no easy way to grab the email from WHM. I don't see why thought. Jonny wrote that part. http://twiki.cpanel.net/twiki/bin/view/A...stAccounts
Kevin Mark - TheHostingTool Lead Developer
#3
There actually is a way to grab the email. I will write this up as soon as i get used to THT scripting.

The XML-API is not working Sad

Im guessing you use it like so?:
http://umarsvps.com/tht/xml-api/index.ph...rsion&auth=AUTHKEYHERE

If you do then i keep getting:
<error>Authentication failed.</error>

If that is not how i use it then please do correct me lol..
#4
(09-08-2009, 05:12 PM)umarsa Wrote: There actually is a way to grab the email. I will write this up as soon as i get used to THT scripting.

The XML-API is not working Sad

Im guessing you use it like so?:
http://umarsvps.com/tht/xml-api/index.ph...rsion&auth=AUTHKEYHERE

If you do then i keep getting:
<error>Authentication failed.</error>

If that is not how i use it then please do correct me lol..

If your server supports mod_rewrite then this url also works:
Code:
http://umarsvps.com/tht/xml-api/version/auth

You can't just paste your auth key into it. Tongue You have to hash it a certain way. We'll be releasing some form of documentation on how to use this API soon! Big Grin
Kevin Mark - TheHostingTool Lead Developer
#5
Hmm i think most servers support mod_rewrite lol.

How on earth do i hash it??
#6
About the WHM Importer.
When you use the API to get all the information for the WHM accounts it doesn't pass along the email.
Jonny H - THT Main Developer & Founder


#7
(09-08-2009, 05:21 PM)umarsa Wrote: Hmm i think most servers support mod_rewrite lol.

How on earth do i hash it??

Here's a copy & paste from our developmental forums:

The format for the XML-API will be like:
Code:
xml-api/function/auth

If you had to pass a param to the function you would do it like this:
Code:
xml-api/function/params/auth

Now how would you hash these functions to create a valid auth?
If you have no params:
PHP Code:
hash('sha512'sha1($function) . sha1($key)) 
$function is the function and $key is the api-key.

Now if you have parameters...
PHP Code:
hash('sha512'sha1($function '|' $params) . sha1($key)) 
Where $function is your function, $params are your parameters, and $key is your api-key.

(09-08-2009, 05:28 PM)Jonny Wrote: About the WHM Importer.
When you use the API to get all the information for the WHM accounts it doesn't pass along the email.

Yes it does...

http://twiki.cpanel.net/twiki/bin/view/A...stAccounts
Kevin Mark - TheHostingTool Lead Developer
#8
Well it didn't when I wrote that function Wink I printed the whole of the array I got and it wasn't there.
Jonny H - THT Main Developer & Founder




Forum Jump:


Users browsing this thread: 1 Guest(s)