Jump to content

HostStratus

Member
  • Posts

    16
  • Joined

  • Last visited

About HostStratus

HostStratus's Achievements

Junior Member

Junior Member (1/3)

0

Reputation

  1. Thats the thing, is you're completely wrong. It IS possible, as shown by many webhosts out there that have has it custom coded. There ARE ways around it. There are scripts that can fetch cookies and use them for whatever.
  2. Hate to grave dig after 2 months, but this feature is REALLY needed. I can't see any other feasible way to transfer a sessionUID across multiple domains.
  3. Anyone got anything to ad? How can I accomplish this?
  4. Yeah, that's understandable. I wasn't saying they should care, but just as you stated, it's outside the realm of a typical WHMCS installation and they seem to have bigger things to worry about(it's been like 72hours since I've gotten a reply). I saw a couple people saying the same thing. So chances are you're probably right; the external domain is my main problem. Do you know of any way around this possibly? Any way to transfer over that session? That subdomain is on the same host(it's a local directory). I've seen it done so I know it's possible, many sites have it setup this way I believe.
  5. Could really use some help guys...WHMCS Support doesn't care.
  6. Hey guys, here's what I'm workin with: <?php require("clients/dbconnect.php"); if ($_SESSION['uid']) { echo "logged in"; } else { echo "NOT logged in"; } ?> This is http://www.hoststratus.com/test.php, but my WHMCS installation is in the clients/ directory under the subdomain https://clients.hoststratus.com(notice the SSL). I simply cant get the external page to pickup the sessionUID even though /clients/dbconnect.php is the directory location. I was assuming it was an issue with the subdomain and/or SSL certificate. Any help is much appreciated! Thanks!
  7. Sorry, wasn't trying to be rude, but was just very confused what you meant. I said the two sites were on different servers, but there is not actually 2 different WHMCS installations or anything. Just one external site, and 1 WHMCS installation.
  8. Update: I can login just fine with an external login form from http://www.hoststratus.com in the upper right of the page. However, with https://clients.hoststratus.com I can not login from the client area default login form.
  9. Not sure if a mod deleted my reply or what. I have already figured this out brian, that part was fairly simple for me. The issue im having now is getting an output on the external site based on whether the user is logged in on the WHMCS site. - - - Updated - - - one WHMCS install for two different domains...? Umm, no? Sorry, that doesn't make a whole lot of sense. Not sure what exactly you mean. I have one WHMCS install, one WHMCS domain and an external homepage that I want to be able to determine whether the user is logged in or not to the WHMCS site.
  10. Did an upgrade a while back and the system got stuck in maintenance mode and I was experiencing a lot of issues. So I tried to fix the issues by doing a new install over the old existing database. This appeared to solve all my issues(even this login issue) but as of today it's back again. Not sure what changed to be honest. I have verified that it's not a template issue by changing the template back to default. What should I do at this point? I really want to avoid doing a complete fresh install as I would lose so much settings data as well as clients/packages/etc....Is there anyway to do a fresh install and then copy over just those specific tables? Really lost here and I feel hopeless as I'm on a leased license. Clients are getting really frustrated as am I(they cant pay invoices and thus my income is at 0).
  11. They are on different servers, as they are two different sites. I can not link to a relative URL obviously... - - - Updated - - - Yeah, checked fopen. allow_url_fopen = ON
  12. Hello I am not sure what has changed recently with my files setup, but no user can login what so ever. Always gives login details incorrect error. Here is my header.tpl code for my custom template: <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset={$charset}" /> <title>{if $kbarticle.title}{$kbarticle.title} - {/if}{$pagetitle} - {$companyname}</title> {if $systemurl}<base href="{$systemurl}" /> {/if} {if $livehelpjs}{$livehelpjs} {/if} <link href="templates/{$template}/css/bootstrap.css" rel="stylesheet"> <link href="templates/{$template}/css/whmcs.css" rel="stylesheet"> <link href="templates/{$template}/css/main.css" rel="stylesheet"> <script src="templates/{$template}/js/jquery-1.7.1.min.js"></script> <script src="templates/{$template}/js/whmcs.js"></script> {$headoutput} </head> <body> {$headeroutput} <script type="text/javascript"> {literal} // <![CDATA[ $(document).ready(function() { $( "#testimonials" ).load( "https://clients.hoststratus.com/templates/stratus/testimonials.php"); }); // ]]> {/literal} </script> <div id="top" style="margin-bottom:40px;"> <a href="https://hoststratus.com/index.php" id="logo"> <img src="templates/{$template}/img_main/logo.png" alt="" /> </a> <ul id="navigation"> <li class="home"> <a href="index.php"></a> </li> <li> <a href="">Web Hosting</a> </li> <li> <a href="">Reseller</a> </li> <li> <a href="">VPS</a> </li> <li> <a href="">Other</a> </li> <li> <a href="">Why Us</a> </li> <li> <a href="">Contact</a> </li> <li> <a href="">Support</a> </li> </ul> <div id="top-right"> <div class="login-action"> </div> <div class="cp-action"> <a href="cp.php"> </a> </div> </div> <div id="login-popup"> <span class="login-pop-up-icon"></span><div>Client Login</div> <form action="login.php" method="POST"> <input type="text" placeholder="username" name="username" required> <input type="password" placeholder="password" name="password" required> <input type="submit" value="login"> <div><a href="recover.php">forgot password?</a></div> </form> </div> </div> <!-- new part --> <!-- <div id="whmcsheader"> <div class="whmcscontainer"> <div id="whmcstxtlogo"><a href="index.php">{$companyname}</a></div> <div id="whmcsimglogo"><a href="index.php"><img src="templates/{$template}/img/whmcslogo.png" alt="{$companyname}" /></a></div> </div> </div> --> <div class="navbar navbar-fixed-top"> <div class="navbar-inner"> <div class="container"> <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </a> <div class="nav-collapse"> <ul class="nav"> <li><a href="{if $loggedin}clientarea{else}index{/if}.php">{$LANG.hometitle}</a></li> </ul> {if $loggedin} <ul class="nav"> <li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="#">{$LANG.navservices} <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="clientarea.php?action=products">{$LANG.clientareanavservices}</a></li> {if $condlinks.pmaddon}<li><a href="index.php?m=project_management">{$LANG.clientareaprojects}</a></li>{/if} <li class="divider"></li> <li><a href="cart.php">{$LANG.navservicesorder}</a></li> <li><a href="cart.php?gid=addons">{$LANG.clientareaviewaddons}</a></li> </ul> </li> </ul> {if $condlinks.domainreg || $condlinks.domaintrans}<ul class="nav"> <li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="#">{$LANG.navdomains} <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="clientarea.php?action=domains">{$LANG.clientareanavdomains}</a></li> <li class="divider"></li> <li><a href="cart.php?gid=renewals">{$LANG.navrenewdomains}</a></li> {if $condlinks.domainreg}<li><a href="cart.php?a=add&domain=register">{$LANG.navregisterdomain}</a></li>{/if} {if $condlinks.domaintrans}<li><a href="cart.php?a=add&domain=transfer">{$LANG.navtransferdomain}</a></li>{/if} {if $enomnewtldsenabled}<li><a href="index.php?m=enomnewtlds">Preregister New TLDs</a></li>{/if} <li class="divider"></li> <li><a href="domainchecker.php">{$LANG.navwhoislookup}</a></li> </ul> </li> </ul>{/if} <ul class="nav"> <li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="#">{$LANG.navbilling} <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="clientarea.php?action=invoices">{$LANG.invoices}</a></li> <li><a href="clientarea.php?action=quotes">{$LANG.quotestitle}</a></li> <li class="divider"></li> {if $condlinks.addfunds}<li><a href="clientarea.php?action=addfunds">{$LANG.addfunds}</a></li>{/if} {if $condlinks.masspay}<li><a href="clientarea.php?action=masspay&all=true">{$LANG.masspaytitle}</a></li>{/if} {if $condlinks.updatecc}<li><a href="clientarea.php?action=creditcard">{$LANG.navmanagecc}</a></li>{/if} </ul> </li> </ul> <ul class="nav"> <li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="#">{$LANG.navsupport} <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="supporttickets.php">{$LANG.navtickets}</a></li> <li><a href="knowledgebase.php">{$LANG.knowledgebasetitle}</a></li> <li><a href="downloads.php">{$LANG.downloadstitle}</a></li> <li><a href="serverstatus.php">{$LANG.networkstatustitle}</a></li> </ul> </li> </ul> <ul class="nav"> <li><a href="submitticket.php">{$LANG.navopenticket}</a></li> </ul> {if $condlinks.affiliates}<ul class="nav"> <li><a href="affiliates.php">{$LANG.affiliatestitle}</a></li> </ul>{/if} <ul class="nav pull-right"> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">{$LANG.hello}, {$loggedinuser.firstname}! <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="clientarea.php?action=details">{$LANG.editaccountdetails}</a></li> {if $condlinks.updatecc}<li><a href="clientarea.php?action=creditcard">{$LANG.navmanagecc}</a></li>{/if} <li><a href="clientarea.php?action=contacts">{$LANG.clientareanavcontacts}</a></li> {if $condlinks.addfunds}<li><a href="clientarea.php?action=addfunds">{$LANG.addfunds}</a></li>{/if} <li><a href="clientarea.php?action=emails">{$LANG.navemailssent}</a></li> <li><a href="clientarea.php?action=changepw">{$LANG.clientareanavchangepw}</a></li> <li class="divider"></li> <li><a href="logout.php">{$LANG.logouttitle}</a></li> </ul> </li> </ul> {else} <ul class="nav"> <li><a href="announcements.php">{$LANG.announcementstitle}</a></li> </ul> <ul class="nav"> <li><a href="knowledgebase.php">{$LANG.knowledgebasetitle}</a></li> </ul> <ul class="nav"> <li><a href="serverstatus.php">{$LANG.networkstatustitle}</a></li> </ul> <ul class="nav"> <li><a href="affiliates.php">{$LANG.affiliatestitle}</a></li> </ul> <ul class="nav"> <li><a href="contact.php">{$LANG.contactus}</a></li> </ul> <ul class="nav pull-right"> <li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="#">{$LANG.account} <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="clientarea.php">{$LANG.login}</a></li> <li><a href="register.php">{$LANG.register}</a></li> <li class="divider"></li> <li><a href="pwreset.php">{$LANG.forgotpw}</a></li> </ul> </li> </ul> {/if} </div><!-- /.nav-collapse --> </div> </div><!-- /navbar-inner --> </div><!-- /navbar --> <div class="whmcscontainer"> <div class="contentpadded"> {if $pagetitle eq $LANG.carttitle}<div id="whmcsorderfrm">{/if}
  13. I've been digging through threads for days and I still can't find the snippets I'm looking for. My current external login form looks like this: <div id="login-popup"> <span class="login-pop-up-icon"></span><div>Client Login</div> <form action="login.php" method="POST"> <input type="text" placeholder="username" name="username" required> <input type="password" placeholder="password" name="password" required> <input type="submit" value="login"> <div><a href="recover.php">forgot password?</a></div> </form> I want to make this login work just like the standard login, where it logs the user in and directs them to the client area. And if they're already logged in then how can I make it redirect them to the client area? I hate to be spoon fed, but I've spent hours going through other examples of snippets and such and I just can't seem to find what I'm looking for. Thanks in advance guys!
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated