<? if($new_pwd_id = $new_pwd_id2) { session_start(); include_once("config/dbconfig.inc.php"); include_once("class/acpram.inc.php"); $tn = new myACP(); $tn->dbConnect ($dbhost, $dbuser, $dbpassword, $dbdatabase) ; $tn->change_pwd($user_id,$new_pwd_id); $relative_url="after_pass_change.php"; header("Location: http://".$HTTP_SERVER_VARS['HTTP_HOST'] .dirname($HTTP_SERVER_VARS['PHP_SELF'])."/".$relative_url); exit; } else { $relative_url="pass_not_change.php"; header("Location: http://".$HTTP_SERVER_VARS['HTTP_HOST'] .dirname($HTTP_SERVER_VARS['PHP_SELF'])."/".$relative_url); exit; } ?>