MOFHY-Lite icon indicating copy to clipboard operation
MOFHY-Lite copied to clipboard

[FEATRUE REQUEST] SITE BUILDER~~~TADA!!!!! SITE PRO IS FREE AGAIN! TADA! RESELLER IS FREE! Tada!!!

Open 0944-tw opened this issue 3 years ago • 16 comments
trafficstars

Use SIte.Pro API! Use Curl to send Json Request,sorry I m not really good at PHP 😓

0944-tw avatar Feb 12 '22 07:02 0944-tw

code it yourself! just cURL the params and redirect the user with the login hash returned.

jaikt avatar Feb 12 '22 10:02 jaikt

Ok

mahtab2003 avatar Feb 12 '22 10:02 mahtab2003

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['...']

studenthosting avatar Feb 13 '22 18:02 studenthosting

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?

jaikt avatar Feb 14 '22 02:02 jaikt

Looks like mofhy should have a site builder button as well.

mahtab2003 avatar Feb 14 '22 02:02 mahtab2003

yea... but my issue still exists :(

jaikt avatar Feb 14 '22 03:02 jaikt

"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!

greenreader9 avatar Feb 14 '22 14:02 greenreader9

"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

mahtab2003 avatar Feb 14 '22 16:02 mahtab2003

https://github.com/OverdueWeevil2/mofhylite-sitepro

OverdueWeevil2 avatar Feb 14 '22 17:02 OverdueWeevil2

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!!!

greenreader9 avatar Feb 14 '22 18:02 greenreader9

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.

OverdueWeevil2 avatar Feb 14 '22 19:02 OverdueWeevil2

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.

greenreader9 avatar Feb 14 '22 20:02 greenreader9

Oh i see?

mahtab2003 avatar Feb 15 '22 06:02 mahtab2003

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

0944-tw avatar Feb 16 '22 08:02 0944-tw

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.

greenreader9 avatar Apr 26 '22 17:04 greenreader9

Oh?

mahtab2003 avatar Apr 27 '22 10:04 mahtab2003