Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
0944-tw opened this issue Feb 12, 2022 · 17 comments

Comments

@0944-tw
Copy link
Contributor

0944-tw commented Feb 12, 2022

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

@jaikt
Copy link
Contributor

jaikt commented Feb 12, 2022

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

@mahtab2003
Copy link
Collaborator

Ok

@studenthosting
Copy link

studenthosting commented Feb 13, 2022

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

@greenreader9
Copy link
Contributor

The user credentials are already stored in the database. Note that you also have to manage suspended, deleted, and inactive accounts, as well as password changes. Getting it to work is easy, getting it done right is not. It took me 20 minutes to connect and get it working, but an extra 3 hours to actually get is working correctly.

@jaikt
Copy link
Contributor

jaikt commented Feb 14, 2022

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?

@mahtab2003
Copy link
Collaborator

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

@jaikt
Copy link
Contributor

jaikt commented Feb 14, 2022

yea... but my issue still exists :(

@greenreader9
Copy link
Contributor

greenreader9 commented Feb 14, 2022

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

@mahtab2003
Copy link
Collaborator

"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

@OverdueWeevil2
Copy link

@greenreader9
Copy link
Contributor

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

@OverdueWeevil2
Copy link

OverdueWeevil2 commented Feb 14, 2022

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.

@greenreader9
Copy link
Contributor

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.

@mahtab2003
Copy link
Collaborator

Oh i see?

@0944-tw
Copy link
Contributor Author

0944-tw commented Feb 16, 2022

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

@greenreader9
Copy link
Contributor

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.

@mahtab2003
Copy link
Collaborator

Oh?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants