InfinityFree Posted March 19, 2017 Share Posted March 19, 2017 I released the code used to interface with the WHM API of MyOwnFreeHost on InfinityFree. You can now download, install and use it in your own projects. You can view and download the code here: https://github.com/HansAdema/mofh-client Quote Link to comment Share on other sites More sharing options...
Admin Posted March 19, 2017 Share Posted March 19, 2017 looks good thanks for the contribution. Quote Link to comment Share on other sites More sharing options...
EasyHost Posted March 20, 2017 Share Posted March 20, 2017 thanks i may use this in rasberry.cf Quote Link to comment Share on other sites More sharing options...
noobkilervip Posted April 30, 2017 Share Posted April 30, 2017 How did you make the client area Quote Link to comment Share on other sites More sharing options...
einet Posted April 30, 2017 Share Posted April 30, 2017 How could it be used to create the panel of clients since the hosting where we are not have composer and install this script is necessary I was trying to do but it is necessary this bookstore some idea? And I congratulate you for your project to see and it is quite comfortable Quote Link to comment Share on other sites More sharing options...
InfinityFree Posted April 30, 2017 Author Share Posted April 30, 2017 1 hour ago, einet said: How could it be used to create the panel of clients since the hosting where we are not have composer and install this script is necessary I was trying to do but it is necessary this bookstore some idea? And I congratulate you for your project to see and it is quite comfortable Composer is just a PHP script used to download other PHP scripts. As long as you can execute PHP commands, you can use Composer. And if the server doesn't support that, you can just upload the downloaded dependencies. As for how to turn it into a client area... well... just start learning programming first. Quote Link to comment Share on other sites More sharing options...
einet Posted April 30, 2017 Share Posted April 30, 2017 2 hours ago, InfinityFree said: Composer is just a PHP script used to download other PHP scripts. As long as you can execute PHP commands, you can use Composer. And if the server doesn't support that, you can just upload the downloaded dependencies. As for how to turn it into a client area... well... just start learning programming first. If it is programmed in php but I have never used composer or laravel only php and try to test the api of mofh but it throws me error 500 even changing the php version to 7 and in local host it gives me 500 error Quote Link to comment Share on other sites More sharing options...
Admin Posted April 30, 2017 Share Posted April 30, 2017 enable php display errors. Quote Link to comment Share on other sites More sharing options...
einet Posted April 30, 2017 Share Posted April 30, 2017 3 hours ago, Admin said: enable php display errors. Turn on the errors for php as @Administrator I indicated and now shows me this error: Fatal error: Uncaught Error: Class 'HansAdema\MofhClient\Client' not found in /home/volXX_X/xxxxxxxx.ga/www/htdocs/mofh/index.php:3 Stack trace: #0 {main} thrown in /home/volxx_x/xxxxx.ga/www/htdocs/mofh/index.php on line 3 And as I understand logically indicates that the client class is missing ok add the client.php to the file where I want to use the classes in this library like this: Require 'directory / Client.php'; But still I get this error I would like to know how I call the class from a file index.php test to use the functions of this library I am sure I am doing something wrong like desconosco of how to use composer. The code I have is this:: <?php require 'Client.php'; $client = new \HansAdema\MofhClient\Client('MYCODEAPIUSER','MYPASSAPIUSER'); ?> Any ideas and thank you administrator for the help Quote Link to comment Share on other sites More sharing options...
Admin Posted May 1, 2017 Share Posted May 1, 2017 what is the error after requiring the Client.php ? Quote Link to comment Share on other sites More sharing options...
InfinityFree Posted May 1, 2017 Author Share Posted May 1, 2017 There are a lot of different classes which need to be included, which is why you should definitely use Composer (it handles the class loading for you). Composer has decent docs available on how to use it. Quote Link to comment Share on other sites More sharing options...
einet Posted May 1, 2017 Share Posted May 1, 2017 If I can already execute the script in local mode installing composer as @InfinityFree says I already said where the autload.php comes from if the download api does not bring it is because composer installs it thanks guys for clarification and @Administrator this was The error he gave me: Fatal error: Undetected error: Class 'HansAdema \ MofhClient \ Client' can not be found in /home/volXX_X/xxxxxxxx.ga/www/htdocs/mofh/index.php:3 Tracking the stack: # 0 {main} thrown In / home / volxx_x / xxxxx.ga / www / htdocs / mofh / index.php on line 3 When you add the require 'directory / Client.php'; Directly, but I have solved the problem by adding all the files generated by the composer Quote Link to comment Share on other sites More sharing options...
BSthuliwal Posted May 7, 2017 Share Posted May 7, 2017 I had tried whmcs and got a huge success its working well but the problem is that it does not create "prefix_username" username and there is auto login error. Anyone help me with this. Quote Link to comment Share on other sites More sharing options...
InfinityFree Posted May 8, 2017 Author Share Posted May 8, 2017 20 hours ago, BSthuliwal said: I had tried whmcs and got a huge success its working well but the problem is that it does not create "prefix_username" username and there is auto login error. Anyone help me with this. Are you using this API client in WHMCS? Quote Link to comment Share on other sites More sharing options...
BSthuliwal Posted May 8, 2017 Share Posted May 8, 2017 i use mofh api Quote Link to comment Share on other sites More sharing options...
InfinityFree Posted May 8, 2017 Author Share Posted May 8, 2017 4 hours ago, BSthuliwal said: i use mofh api You're referring to the API. This is an API CLIENT. This is software to use the API, not the API itself. Your question has absolutely nothing to do with this topic. Quote Link to comment Share on other sites More sharing options...
BSthuliwal Posted May 9, 2017 Share Posted May 9, 2017 Ok then what its working fine for me except without auto login. The that whmcs generate can also be used to login to cPanel. The user name that is not in prefix_username type that mofh provide. Quote Link to comment Share on other sites More sharing options...
BSthuliwal Posted May 9, 2017 Share Posted May 9, 2017 You can check it at client.geekbiz.tk Quote Link to comment Share on other sites More sharing options...
Subhendu Posted June 14, 2017 Share Posted June 14, 2017 Please help me and give me the full script in zip file Quote Link to comment Share on other sites More sharing options...
Admin Posted June 14, 2017 Share Posted June 14, 2017 you'd need to 'beg' infinityfree / profreehost for this, however I'd guess as they have spent 'their' time developing this script they would not give it away for free Quote Link to comment Share on other sites More sharing options...
Subhendu Posted June 14, 2017 Share Posted June 14, 2017 I am ready to pay them........ Quote Link to comment Share on other sites More sharing options...
Ulti Posted June 15, 2017 Share Posted June 15, 2017 6 hours ago, Subhendu said: I am ready to pay them........ Why? It is released on GitHub, for free. They even mentioned the link in the start of the topic. But here you go anyway: https://github.com/HansAdema/mofh-client Quote Link to comment Share on other sites More sharing options...
Subhendu Posted June 15, 2017 Share Posted June 15, 2017 Till i didn't work with client api........ I need a example to do Quote Link to comment Share on other sites More sharing options...
InfinityFree Posted June 16, 2017 Author Share Posted June 16, 2017 On 6/14/2017 at 8:40 PM, Admin said: you'd need to 'beg' infinityfree / profreehost for this, however I'd guess as they have spent 'their' time developing this script they would not give it away for free Please don't. No amount of begging is going to convince us to publish our competitive edge for free. We spent a lot of time and effort into building our system and we have no incentive to give it away for free (at least for now). On 6/14/2017 at 10:44 PM, Subhendu said: I am ready to pay them........ If you want to make a meaningful offer (i.e. not something ridiculous like $5), feel free to drop an email at support [at] xvhost [dot] com. On 6/15/2017 at 5:32 AM, Ulti said: Why? It is released on GitHub, for free. They even mentioned the link in the start of the topic. But here you go anyway: https://github.com/HansAdema/mofh-client The API client is a useful tool to help you build your own client area, but it's not yet a client area. If you're a PHP programmer, it can be useful. If not, it's useless. Quote Link to comment Share on other sites More sharing options...
einet Posted June 28, 2017 Share Posted June 28, 2017 Hello the one who needs the library send me a private message or leave your emails to facilitate the script I made it work to 100% @BSthuliwal, @Subhendu, @Ulti 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.