NHOST Posted August 6, 2021 Share Posted August 6, 2021 Hi, I am starting a hosting company. I would like a client area, but I do not know how to code to that level. Are there any free solutions available? Even just templates? I know CSS so I can customise it myself, I just need the system to work. Are there any available? Quote Link to comment Share on other sites More sharing options...
CoolCookie Posted August 6, 2021 Share Posted August 6, 2021 Use this: https://github.com/PlanetTheCloud/project-logged Quote Link to comment Share on other sites More sharing options...
NHOST Posted August 7, 2021 Author Share Posted August 7, 2021 13 hours ago, CoolCookie said: Use this: https://github.com/PlanetTheCloud/project-logged Thanks, I am at the part where it has this: I have no idea what to put here, please help. Quote Link to comment Share on other sites More sharing options...
MeTooIDK Posted August 7, 2021 Share Posted August 7, 2021 some tips for Project-Logged: If u want change Project Logged Background You can Go To sys-auth/assets/style.css Search: ".login-page" Replace background-color: #00bcd4; To background: url("Put Your Link Here"); background-size: cover; Quote Link to comment Share on other sites More sharing options...
NHOST Posted August 7, 2021 Author Share Posted August 7, 2021 Thank you for that. Also, I managed to set it up. I am working on an SSL generator now. Thanks for the help guys!! Quote Link to comment Share on other sites More sharing options...
Pro Hostinga Posted August 8, 2021 Share Posted August 8, 2021 15 hours ago, NHOST said: working on an SSL generator now. Where'd you get api for ssl gen. Quote Link to comment Share on other sites More sharing options...
NHOST Posted August 8, 2021 Author Share Posted August 8, 2021 5 hours ago, Pro Hostinga said: Where'd you get api for ssl gen. I haven't made it yet, I will start making it soon. I am going to try and use the Lets Encrypt system to somehow do it like @InfinityFree - if you could give your experience it would be great. Quote Link to comment Share on other sites More sharing options...
MeTooIDK Posted August 8, 2021 Share Posted August 8, 2021 cool Quote Link to comment Share on other sites More sharing options...
Pro Hostinga Posted August 9, 2021 Share Posted August 9, 2021 (edited) On 8/8/2021 at 4:06 PM, NHOST said: I haven't made it yet, I will start making it soon. I am going to try and use the Lets Encrypt system to somehow do it like @InfinityFree - if you could give your experience it would be great. I don't have much experience and I also tried to setup free ssl service but I couldn't get any api. Earlier freessl.space used to give api but they are not active anymore. Edited August 9, 2021 by Pro Hostinga Quote Link to comment Share on other sites More sharing options...
MeTooIDK Posted August 10, 2021 Share Posted August 10, 2021 @Pro HostingaYou Can Try ZeroSSL API Here is docs https://zerossl.com/documentation/api/create-certificate/ Quote Link to comment Share on other sites More sharing options...
NHOST Posted August 10, 2021 Author Share Posted August 10, 2021 7 hours ago, MeTooIDK said: @Pro HostingaYou Can Try ZeroSSL API Here is docs https://zerossl.com/documentation/api/create-certificate/ Did you ever manage to use this and create an SSL Certificate generator successfully? Quote Link to comment Share on other sites More sharing options...
MeTooIDK Posted August 10, 2021 Share Posted August 10, 2021 no bcz im bad at coding Quote Link to comment Share on other sites More sharing options...
Pro Hostinga Posted August 10, 2021 Share Posted August 10, 2021 I don't think zerossl works with ifastnet free hosting. Quote Link to comment Share on other sites More sharing options...
MeTooIDK Posted August 11, 2021 Share Posted August 11, 2021 8 hours ago, Pro Hostinga said: I don't think zerossl works with ifastnet free hosting. it need vps to use it? Quote Link to comment Share on other sites More sharing options...
Pro Hostinga Posted August 11, 2021 Share Posted August 11, 2021 (edited) No. It's certs don't work with free hosting. Edited August 11, 2021 by Pro Hostinga Quote Link to comment Share on other sites More sharing options...
Pro Hostinga Posted August 11, 2021 Share Posted August 11, 2021 (edited) InfinityFree has written about it: https://forum.infinityfree.net/t/getting-ssl-certificates-from-sslforfree-com-or-zerossl-com/49320 Edited August 11, 2021 by Pro Hostinga Quote Link to comment Share on other sites More sharing options...
Mahtab Hassan Posted August 14, 2021 Share Posted August 14, 2021 https://www.byet.net/index.php?/topic/19648-project-hustal-a-free-mofh-clientarea-with-whm-api-integration/ Quote Link to comment Share on other sites More sharing options...
Kinko Media Posted January 27, 2022 Share Posted January 27, 2022 Hi There Ive Just Started a hosting company can you guys pls suggest me the best client area ive tried project hustle but didnt work out for me ive also tried one above are there any more client area's available?? Quote Link to comment Share on other sites More sharing options...
JaiktDev Posted January 27, 2022 Share Posted January 27, 2022 MOFHy-Lite? Quote Link to comment Share on other sites More sharing options...
Kinko Media Posted January 27, 2022 Share Posted January 27, 2022 @RoyalityFree what is it?? Quote Link to comment Share on other sites More sharing options...
smallhost Posted January 27, 2022 Share Posted January 27, 2022 I wouldn't recommend MOFHY, people have been saying that it's unsecure. I recommend coding your own client panel, it's actually pretty simple! Make a folder named clients in your htdocs folder. Then make a file called login.php. Inside of it, paste this... <meta name="viewport" content="width=device-width, initial-scale=1.0"> <center> <h1>Log In to the Client Panel</h1> <form method="post" action="checkuser.php"> Username: <input name="uname" id="uname" type="text" class="inputbox" alt="username" minlength="7" required /><br> Password: <input type="password" id="pass" name="pass" class="inputbox" alt="password" required /><br> <input type="submit" value="Log In"> </form> <p>Powered by <a href="https://ifastnet.com/">iFastNet</a>.</p> </center> Make a new file named checkuser.php and make it this... <?php $username = $_POST['uname']; $password = $_POST['pass']; $conn = ftp_connect("ftpupload.net"); $result = ftp_login($conn, $username, $password); if ((!$conn) || (!$result)) { ftp_close($conn); echo '<h1>Login Failed!</h1><p>Your username or password is wrong or the FTP server is down. Contact your hosting provider if the error persists.</p>'; die(); } else { ftp_close($conn); setcookie("userAuth", base64_encode('{"user":"'.$username.'","pass":"'.$password.'"}'), time()+31536000,'/'); header("p/home.php"); die(); } ?> Make a folder name p and makek a home.php file in it. I'm not gonna provide all of SmallHost's client panel source code because I want my client panel to stand out from other hosts, however you can pull a user's username and password like this. In this example, you can make a one-click login cPanel button. <?php if(!isset($_COOKIE['userAuth'])) { header("Location: ../login.php"); die(); }else{ $decodedB64 = base64_decode($_COOKIE['userAuth']); $decodedJson = json_decode($decodedB64); echo '<h1>Hello, '.$decodedJson->user.'!</h1>'; //You can use $decodedJson->pass to get the user's password, however I strongly reccomend NOT echoing it as it will display it on the screen. //Let's try a one-click cPanel login button... echo '<form method="post"> <input type="hidden" id="mod_login_username" name="uname" value="'.$decodedJson->user.'"> <input type="hidden" id="mod_login_password" name="passwd" value="'.$decodedJson->pass.'"> <input type="hidden" id="language" name="language" value="English"> <input type="submit" value="cPanel" formaction="https://cpanel.YOUR_WEBHOST_DOMAIN/login.php" formtarget="_blank"> </form>'; } ?> Quote Link to comment Share on other sites More sharing options...
TinkerMan Posted January 27, 2022 Share Posted January 27, 2022 1 hour ago, smallhost said: people have been saying that it's unsecure. Actually, the biggest issues have now been fixed. And not to offend you, but MOFHY has way more features. Quote Link to comment Share on other sites More sharing options...
PlanetCloud Posted January 28, 2022 Share Posted January 28, 2022 8 hours ago, smallhost said: I wouldn't recommend MOFHY, people have been saying that it's unsecure. I recommend coding your own client panel, it's actually pretty simple! Make a folder named clients in your htdocs folder. Then make a file called login.php. Inside of it, paste this... <meta name="viewport" content="width=device-width, initial-scale=1.0"> <center> <h1>Log In to the Client Panel</h1> <form method="post" action="checkuser.php"> Username: <input name="uname" id="uname" type="text" class="inputbox" alt="username" minlength="7" required /><br> Password: <input type="password" id="pass" name="pass" class="inputbox" alt="password" required /><br> <input type="submit" value="Log In"> </form> <p>Powered by <a href="https://ifastnet.com/">iFastNet</a>.</p> </center> Make a new file named checkuser.php and make it this... <?php $username = $_POST['uname']; $password = $_POST['pass']; $conn = ftp_connect("ftpupload.net"); $result = ftp_login($conn, $username, $password); if ((!$conn) || (!$result)) { ftp_close($conn); echo '<h1>Login Failed!</h1><p>Your username or password is wrong or the FTP server is down. Contact your hosting provider if the error persists.</p>'; die(); } else { ftp_close($conn); setcookie("userAuth", base64_encode('{"user":"'.$username.'","pass":"'.$password.'"}'), time()+31536000,'/'); header("p/home.php"); die(); } ?> Make a folder name p and makek a home.php file in it. I'm not gonna provide all of SmallHost's client panel source code because I want my client panel to stand out from other hosts, however you can pull a user's username and password like this. In this example, you can make a one-click login cPanel button. <?php if(!isset($_COOKIE['userAuth'])) { header("Location: ../login.php"); die(); }else{ $decodedB64 = base64_decode($_COOKIE['userAuth']); $decodedJson = json_decode($decodedB64); echo '<h1>Hello, '.$decodedJson->user.'!</h1>'; //You can use $decodedJson->pass to get the user's password, however I strongly reccomend NOT echoing it as it will display it on the screen. //Let's try a one-click cPanel login button... echo '<form method="post"> <input type="hidden" id="mod_login_username" name="uname" value="'.$decodedJson->user.'"> <input type="hidden" id="mod_login_password" name="passwd" value="'.$decodedJson->pass.'"> <input type="hidden" id="language" name="language" value="English"> <input type="submit" value="cPanel" formaction="https://cpanel.YOUR_WEBHOST_DOMAIN/login.php" formtarget="_blank"> </form>'; } ?> Psst, this code itself is insecure! You need to have some degree of knowledge in PHP before attempting to make a client area on your own. 7 hours ago, TinkerMan said: Actually, the biggest issues have now been fixed. And not to offend you, but MOFHY has way more features. Yes, but there's still major problem left unfixed such as this one https://github.com/NXTS-Developers/MOFHY-Lite/issues/60 (at the time of writing this has been 7 days and this is easy fix as well....). It is recommended to use MOFHY instead of making your own to save yourself from the hassle. Just be aware and check for issues often (and update as well). Quote Link to comment Share on other sites More sharing options...
PlanetCloud Posted January 31, 2022 Share Posted January 31, 2022 On 1/28/2022 at 6:34 PM, BastelPichi2 said: What is the most secure Way of PHP sessions actually? is The default $_SESSION good enough? Yes, the default $_SESSION is good enough if you know what you're doing with it. Do you let the user control the key of the session? This can be a flaw. Do you trust the $_SESSION values (if value is controlled by user)? This can also be a flaw. Quote Link to comment Share on other sites More sharing options...
World Lion Posted February 24, 2022 Share Posted February 24, 2022 Hi, When i would like to install the cms in https://client.lesecureuils.online/src/installation/ src folder, i have the error 500 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.