Current time: 04-23-2014, 12:58 PM Hello There, Guest! (LoginRegister)

 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A few small bugs and suggestions
09-08-2009, 05:00 PM
Post: #1
A few small bugs and suggestions
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 "imported-whm@account.com". 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!
Find all posts by this user
09-08-2009, 05:05 PM (This post was last modified: 09-08-2009 05:06 PM by Kevin.)
Post: #2
RE: A few small bugs and suggestions
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
Visit this user's website Find all posts by this user
09-08-2009, 05:12 PM
Post: #3
RE: A few small bugs and suggestions
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...sion&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..
Find all posts by this user
09-08-2009, 05:19 PM
Post: #4
RE: A few small bugs and suggestions
(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...sion&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
Visit this user's website Find all posts by this user
09-08-2009, 05:21 PM
Post: #5
RE: A few small bugs and suggestions
Hmm i think most servers support mod_rewrite lol.

How on earth do i hash it??
Find all posts by this user
09-08-2009, 05:28 PM
Post: #6
RE: A few small bugs and suggestions
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
Find all posts by this user
09-08-2009, 05:32 PM
Post: #7
RE: A few small bugs and suggestions
(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
Visit this user's website Find all posts by this user
09-08-2009, 05:38 PM
Post: #8
RE: A few small bugs and suggestions
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
Find all posts by this user


Forum Jump:


User(s) browsing this thread: 1 Guest(s)