} } else { echo "<script>alert('Different password'); history.go(-1);</script>"; } } else { echo "<script>alert('password must be 6~20 bytes!'); history.go(-1);</script>"; } } } else { if ($psw == "" || $psw_confirm == "" || $realname == "") { echo "<script>alert('please check the information!'); history.go(-1);</script>"; } else { if (pass_validate($psw) && pass_validate($psw_confirm)) { if ($psw == $psw_confirm) { if (IsUserExists($realname)) { if (ModifyPassword($realname, $psw)) { session_start(); $_SESSION['user'] = $realname; $result = FindbyUserId($realname); $identify = $result[0][4]; if ($identify == '') { echo "<script>alert('Success,go to the index!');window.location.href = 'http://2.whoisyourdaddy.sinaapp.com/index.php?s=/addon/WeiSite/WeiSite/index/publicid/154.html';</script>"; } else { echo "<script>alert('Success,go to the index!');window.location.href = 'http://2.whoisyourdaddy.sinaapp.com/index.php?s=/addon/WeiSite/WeiSite/index/publicid/154.html';</script>"; } // echo "<a href=''>返回</a>"; } else { echo "<script>alert('System Busy'); history.go(-1);</script>"; } } else { echo "<script>alert('该用户不存在!'); history.go(-1);</script>";
$message .= '<br>You Must enter a password to continue!</br>'; } else { if ($_POST['password1'] == $_POST['password2']) { $domain_pass = $_POST['password1']; } else { $domain_pass = FALSE; $message .= '<br>Your Passwords did not match!</br>'; } } //End form validation if ($domain_pass) { // If it passed validation, lets do it. include "include/EnomInterface_inc.php"; include "include/DomainFns_inc.php"; if (WasPasswordModified() == 1) { ModifyPassword(); $status = "center> <span class=\"basictext\">{$message}</span>\n\t\t\t\t\t<br> <center><a href=\"dmain.php?sld={$sld}&tld={$tld}\"><img src=\"images/btn_back.gif\" border=\"0\"></a></center>"; } } } $page = "myaccount"; $PageTitle = $SiteTitle . " - Change or Assign a Domain access Password"; ?> <link rel="stylesheet" href="css/styles.css" type="text/css"> <table width="964" align="center" valign="center" class="tableOO"> <td><?php include 'include/header.php'; ?> </tr> </table><?php include 'include/topmenu.php';