home *** CD-ROM | disk | FTP | other *** search
Wrap
<?php //////////////////////////////////////////////////////////////////////////////// // <!--Copyright (c) 2005 Pure Networks Inc. All rights reserved.--> //////////////////////////////////////////////////////////////////////////////// // // Build: 3.0.6121.0 (Stable) // $Revision: #2 $ // $errcode = ""; $sNavLocation = "login"; require '_session_common.php'; $sLocation = "Shared Folders"; // should we turn the transfer url (if any) off? - Likely they hit the login button on the network panel if ($_GET['xfr'] == "off") { // we just do this here, as login process page don't set a transfer cookie, and it's easier to do when login // is entered rather than try to pass a GET/POST var through all the various potential login error cases to do // this after login is complete clear_transfer_cookie(); } // are we locked out of login? require "_loginutils.php"; $bIsLockedOut = false; if (isLockedOut()) { $bIsLockedOut = true; } require "_header.php"; //echo ( ?> <?php // echo (number_format((time()*1000),0,'.','') . "<br/>"); ?> <script type="text/javascript" language="JavaScript"> // verify cookies are enabled before allowing login and show error if they are not. // NOTE: When testing in IE6, you can not use localhost, as it will still pretend it // can access non existent cookies and this all goes to heck. Use 127.0.0.1 writeWATestCookie(); cookiesEnabled=(document.cookie.indexOf("WA")!=-1)? true : false; var bLockoutEnabled = false; <?php if ($bIsLockedOut) { ?> bLockoutEnabled = true; <?php } ?> var bFatalError = !cookiesEnabled || bLockoutEnabled; if (!bFatalError) { document.write('<form name="loginform" id="loginform" action="/_handle_login.php" method="post" onsubmit="authenticate_and_login(\'<?php echo session_id(); ?>\');">'); } </script> <table class="LoginTable" border="0" cellspacing="0" cellpadding="0" align="center"> <tr><td class="LoginTableTop"></td></tr> <tr> <td class="LoginTableMid"> <div class="LoginBox"> <div class="RASignInText">Sign In</div> <div class="LoginHR"><img src="/images/pixel.trans.gif" width="0" height="0" alt=""></div> <script type="text/javascript" language="JavaScript"> // cookies are disabled, let's throw an error for them if (bFatalError) { document.write('<div class="ErrorTableLogin">'); document.write('<table cellpadding="0" cellspacing="0" border="0" align="center">'); document.write('<tr><td class="WarnTableTop"><div> </div></td></tr>'); document.write('<tr>'); document.write('<td class="WarnTableMid">'); document.write('<div class="LoginErrorContain">'); document.write('<div class="ErrorImage">'); document.write('<div class="ErrorText">'); if (bLockoutEnabled) { document.write('Please Wait Several Minutes to Try to Sign In'); document.write('</div>'); document.write('<div class="ErrorExplain">'); document.write('<?php echo (return_error_text(116, "", $arErrors));?>'); document.write('</div>'); } else if (!cookiesEnabled) { document.write('You need to allow Cookies in your Web browser.'); document.write('</div>'); document.write('<div class="ErrorExplain">'); document.write('<?php echo (return_error_text(105, "", $arErrors));?>'); document.write('</div>'); } document.write('<div class="LoginLinkOut" onclick="javascript:location.href=\'/folders\';"><a href="/folders" title="Go to public home page">Go to Public Home Page</a><\/div>'); document.write('<div class="LoginLinkOut" onclick="javascript:(location.href=\'/login\');"><a href="/login" title="Return to sign in screen">Return to Sign In Screen</a></div>'); document.write('</div></div>'); document.write('</td>'); document.write('</tr>'); document.write('<tr><td class="WarnTableBot"><img src="/images/pixel.trans.gif" width="1" height="1" alt=""/></td></tr>'); document.write('</table>'); document.write('</div><br/>'); } <?php if ($btBrowserType == "ie") { ?> else { // Let's check for clock skew here and present a warning if the user's clock is off by more than the session length in milliseconds var today = new Date(); // document.write (today.getTime()); if ((today.getTime() - <?php echo (number_format((time()*1000),0,'.','')); ?>) > <?php echo (ini_get('session.cookie_lifetime')*1000);?> ) { document.write('<div class="ErrorTableLogin">'); document.write('<table cellpadding="0" cellspacing="0" border="0" align="center">'); document.write('<tr><td class="WarnTableTop"><div> </div></td></tr>'); document.write('<tr>'); document.write('<td class="WarnTableMid">'); document.write('<div class="LoginErrorContain">'); document.write('<div class="WarnImage">'); document.write('<div class="WarnText">'); document.write('You cannot currently sign in.'); document.write('</div>'); document.write('<div class="WarnExplain">'); document.write('<?php echo (return_error_text(126, "", $arErrors));?>'); document.write('</div>'); document.write('</div></div>'); document.write('</td>'); document.write('</tr>'); document.write('<tr><td class="WarnTableBot"><img src="/images/pixel.trans.gif" width="1" height="1" alt=""/></td></tr>'); document.write('</table>'); document.write('</div><br/>'); } } <?php } ?> if (!bFatalError) { document.write('<table width="100%" cellspacing="0" cellpadding="0"><tr>'); document.write('<td colspan="3">Enter the <?php echo ($sProductNameInformal); ?> password to connect to: <span class="LoginFormLabel"><?php echo str_replace(" ", " ",truncate_string(htmlspecialchars(str_replace("'","\'",$sNetworkName)), $iLoginNetworkNameTruncateLength, "...", "right", true)) ?></span><br><br><\/td><\/tr>'); document.write('<tr><td colspan="3">'); } </script> <div class="WarnTableAdmin" style="display:none;" id="spWarn" name="spWarn"> <table cellpadding="0" cellspacing="0" border="0" align="center"> <tr><td class="SucceedTableTop"><div> </div></td></tr> <tr> <td class="SucceedTableMid"> <div class="LoginStatusContain"> <div class="LoginSucceedExplain" id="spWarnText" name="spWarnText"> Signing in to <?php echo str_replace(" ", " ",truncate_string(htmlspecialchars(str_replace("'","\'",$sNetworkName)), $iLoginNetworkNameTruncateLength, "...", "right", true)) ?>. Please wait... </div> <div class="LoginStatusMeter"> </div> </div> </td> </tr> <tr><td class="SucceedTableBot"><img src="/images/pixel.trans.gif" width="1" height="1" alt=""/></td></tr> <tr><td><img src="/images/pixel.trans.gif" width="1" height="5" alt=""/></td></tr> </table> </div> <script type="text/javascript"> if (!bFatalError) { document.write('</td></tr><tr><td colspan="3">'); } </script> <?php if (isset($_GET['errorcode']) and ($_GET['errorcode'] != '')) { $errcode = $_GET['errorcode']; } if ($errcode != "" && !$bIsLockedOut) { $errorType = return_error_type($errcode, $arErrors); //if ($errcode == 101) //{ switch ($errorType) { case 2: ?> <div class="SucceedTableLogin" id="spHide" name="spHide" style="display:inline;"> <table cellpadding="0" cellspacing="0" border="0" align="center"> <tr><td class="SucceedTableTop"><div> </div></td></tr> <tr> <td class="SucceedTableMid"> <div class="LoginInfoContain"> <div class="InfoImage"> <div class="LoginSucceedExplain" id="spErrorText" name="spErrorText"> <?php echo (return_error_text($errcode, "", $arErrors));?> </div> </div></div> </td> </tr> <tr><td class="SucceedTableBot"><img src="/images/pixel.trans.gif" width="1" height="1" alt=""/></td></tr> </table> </div> <?php break; default: ?> <div class="WarnTableLogin" id="spHide" name="spHide" style="display:inline;"> <table cellpadding="0" cellspacing="0" border="0" align="center"> <tr><td class="WarnTableTop"><div> </div></td></tr> <tr> <td class="WarnTableMid"> <div class="LoginWarnContain"> <div class="WarnImage"> <div class="LoginWarnExplain" id="spErrorText" name="spErrorText"> <?php echo (return_error_text($errcode, "", $arErrors));?> </div> </div></div> </td> </tr> <tr><td class="WarnTableBot"><img src="/images/pixel.trans.gif" width="1" height="1" alt=""/></td></tr> </table> </div> <br/> <?php } //} ?> <script type="text/javascript"> if (!bFatalError) { document.write('</td></tr>'); } </script> <?php } else { ?> <script type="text/javascript"> if (!bFatalError) { document.write('<tr><td colspan="3">'); document.write('<div class="WarnTableLogin" id="spHide" name="spHide" style="display:none;"></div>'); document.write('<\/td><\/tr>'); } </script> <?php } ?> <script type="text/javascript"> if (!bFatalError) { document.write('<tr><td class="LoginFormLabel"><label for="login">Password:</label><\/td>'); document.write('<td><input type="password" tabindex="1" name="login" id="login" size="<?php echo ($iLoginTextInputField); ?>" maxlength=64\/'); document.write('><\/td>'); document.write('<td align="right"><a id="Continue" class="LoginButton Button" onmouseover="this.className=\'LoginButton ButtonOver\'" onmouseout="this.className=\'LoginButton Button\'" href="javascript:submitViaButton(\'<?php echo session_id(); ?>\');">Continue</a><\/td><\/tr>'); document.write('<input type="hidden" name="hash" value=""\/>'); document.write('<input type="hidden" name="submitted" value=""\/>'); document.write('<input type="submit" name="submitbutton" value="" style="visibility:hidden;">'); document.write('<\/tr>'); document.write('<tr><td colspan="3"> <\/td><\/tr>'); document.write('<\/table>'); document.write('<div class="LoginHR"><img src="/images/pixel.trans.gif" width="0" height="0" alt=""></div>'); document.write('<div style="position:relative;"><span class="LoginLinkOut" onclick="javascript:location.href=\'/folders\';"><a href="/folders" title="Go to public home page">Go to Public Home Page</a><\/span><\/div>'); document.write('<div style="position:relative;">'); document.write('<span class="LinkOutHelp" onclick="javascript:openHelpWindow(\'/help/troubleshooting#forgotpass\');"><a href="javascript:openHelpWindow(\'/help/troubleshooting#forgotpass\');" title="I forgot my <?php echo ($sProductNameInformal); ?> password">I forgot my <?php echo ($sProductNameInformal); ?> password</a></span>'); document.write('</div>'); } else { if (bLockoutEnabled) { document.write('<div class="LoginHR"><img src="/images/pixel.trans.gif" width="0" height="0" alt=""></div>'); document.write('<div>'); document.write('<a class="LinkOutHelp" href="javascript:openHelpWindow(\'/help/troubleshooting#lockout\');" title="Why does <?php echo ($sProductNameInformal); ?> lock me out?">Why does <?php echo ($sProductNameInformal); ?> lock me out?</a></span>'); document.write('</div>'); } else if (!cookiesEnabled) { document.write('<div class="LoginHR"><img src="/images/pixel.trans.gif" width="0" height="0" alt=""></div>'); document.write('<div>'); document.write('<span class="LinkOutHelp" onclick="javascript:openHelpWindow(\'/help/troubleshooting#cookiesrequired\');"><a href="javascript:openHelpWindow(\'/help/troubleshooting#cookiesrequired\');" title="Why does <?php echo ($sProductNameInformal); ?> require cookies?">Why does <?php echo ($sProductNameInformal); ?> require cookies?</a></span>'); document.write('<br/>'); document.write('<span class="LinkOutHelp" onclick="javascript:openHelpWindow(\'/help/getstarted#bsetup\');"><a href="javascript:openHelpWindow(\'/help/getstarted#bsetup\');" title="How do I setup my Web browser to allow cookies?">How do I setup my Web browser to allow cookies?</a></span>'); document.write('</div>'); } } function focusLoginInput() { if (cookiesEnabled) { if (document.getElementById('login').value == "") { document.getElementById('login').focus(); document.getElementById('login').select(); } } else { document.getElementById('spHide').style.display = "none"; } } </script> <noscript> <div class="ErrorTableLogin"> <table cellpadding="0" cellspacing="0" border="0" align="center"> <tr><td class="WarnTableTop"><div> </div></td></tr> <tr> <td class="WarnTableMid"> <div class="LoginErrorContain"> <div class="ErrorImage"> <div class="ErrorText"> You need to allow JavaScript in your Web browser </div> <div class="ErrorExplain"> <?php echo (return_error_text(106, "", $arErrors));?> </div> <div class="LoginLinkOut" onclick="javascript:location.href='/folders';"><a href="/folders" title="Go to public home page">Go to Public Home Page</a></div> <div class="LoginLinkOut" onclick="javascript:location.href='/login';"><a href="/login" title="Go to sign in screen">Go to Sign In Screen</a></div> </div> </div> </td> </tr> <tr><td class="WarnTableBot"><img src="/images/pixel.trans.gif" width="1" height="1" alt=""/></td></tr> </table> </div> <br/> <div class="LoginHR"><img src="/images/pixel.trans.gif" width="0" height="0" alt=""></div> <div> <span class="LinkOutHelp" onclick="javascript:openHelpWindow('/help/troubleshooting#jscriptrequired');"><a href="javascript:openHelpWindow('/help/troubleshooting#jscriptrequired');" title="Why does <?php echo ($sProductNameInformal); ?> require JavaScript?">Why does <?php echo ($sProductNameInformal); ?> require JavaScript?</a></span> <br/> <span class="LinkOutHelp" onclick="javascript:openHelpWindow('/help/getstarted#bsetup');"><a href="javascript:openHelpWindow('/help/getstarted#bsetup');" title="How do I setup my Web browser to run JavaScript?">How do I setup my Web browser to run JavaScript?</a></span> </div> </noscript> </div> <!--LoginBox--> </td> </tr> <tr><td class="LoginTableBot"><img src="/images/pixel.trans.gif" width="1" height="1" alt=""></td></tr> </table> <script type="text/javascript"> if (!bFatalError) { document.write('<\/form>'); } </script> <?php require "_footer.php"; ?>