MOFHY-Lite
MOFHY-Lite copied to clipboard
[FEATRUE REQUEST] SITE BUILDER~~~TADA!!!!! SITE PRO IS FREE AGAIN! TADA! RESELLER IS FREE! Tada!!!
Use SIte.Pro API! Use Curl to send Json Request,sorry I m not really good at PHP 😓
code it yourself! just cURL the params and redirect the user with the login hash returned.
Ok
Helo, I want this too.
I got php file from site.pro custom API.
and this require FTP credential.
But, how to fetch user credential ?
I modified this code and uploaded on github, but I really dont know about code and/or programming.
My repository
https://github.com/studenthosting/mofhylite-sitepro-api
Correct my code
I know, this code might be wrong. I dont know about use include DIR to php file is which contains getHostingAccountInfo or just copy paste $data['...']
All I get is the authorization required in json error. I have set curl headers with api0:pass. no luck. @greenreader9, am I missing something here?
Looks like mofhy should have a site builder button as well.
yea... but my issue still exists :(
"I have set curl headers with api0:pass. no luck."
I don't know what you are doing, but that's way more complicated then it needs to be. You don't have to set those yourself.
@mahtab2003, yes, that would be cool!
"I have set curl headers with api0:pass. no luck."
I don't know what you are doing, but that's way more complicated then it needs to be. You don't have to set those yourself.
@mahtab2003, yes, that would be cool!
Oh
https://github.com/OverdueWeevil2/mofhylite-sitepro
HUGE security issue!!!!
<a href="sitebuild.php?username=<?php echo $AccountInfo['account_username']?>&password=<?php echo $AccountInfo['account_password']?>" target="_blank" class="btn btn-secondary btn-block my-5 btn-rounded">Site Builder</a>
NEVER publicly display passwords!!!
HUGE security issue!!!!
<a href="sitebuild.php?username=<?php echo $AccountInfo['account_username']?>&password=<?php echo $AccountInfo['account_password']?>" target="_blank" class="btn btn-secondary btn-block my-5 btn-rounded">Site Builder</a>NEVER publicly display passwords!!!
Fixed.
Note that only the first domain added has a directory of "/htdocs". Any domain after the first domain has a directory of "/domain.tld/htdocs". Therefore, the code needs to figure out witch one to use, otherwise Site.Pro will override files on the main directory, possibly destroying someone's hard work.
Oh i see?
All I get is the authorization required in json error. I have set curl headers with api0:pass. no luck. @greenreader9, am I missing something here?
me too,I tried HTTP header and Curl Pass
I figured it out. You have to run a bunch of checks for account status, domain status, and file location for creation of builder and for each editor load. If you want, I can send a demo in a few days.
Oh?