Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Password Area

Status
Not open for further replies.

guyphil

Programmer
Nov 2, 2004
27
IL
Hi,

My office is changing both Domain Name and Hosting Company.
As a service to our clients we have a login section in our site where clients can see how their work is progressing.
The problem is, the new site isn't accepting any of the usernames and passwords (loaded variables from a text file). I copied and pasted the files from the old host to new one (a couple of times actually) so the files and file structure are exactly the same.

the old site:
the new site:
after the intro text fields will appear on the bottom left.

Username: key
Password: guide

So as you will notice I can login the old site but cant on the new one.

Ive been throug the ActionScript over and over and cant see anything wrong.

I'm enclosing an excerpt of the relevant code:


first_vars_and_funcs()
function first_vars_and_funcs(){

loadVariables ("data/users_details.txt", "/" , "POST");
}


function wrong_user_details(){

the_form.password_var=""
the_form.user_var=""
fscommand ("alert_func", "Wrong user name. Try again or contact us: diamond@bezeqint.net: error1");
}
function wrong_user_details2(){

the_form.password_var=""
the_form.user_var=""
fscommand ("alert_func", "Wrong password. Try again or contact us: diamond@bezeqint.net: error2");
}
function check_user_details(user_var,password_var){
user_var_num="no_such_user"
for (i=1;i<total_num_of_users+1;i++) {
current_user_to_check = eval("user_" + i + "_name")
if(user_var==current_user_to_check){
user_var_num = i
}
}

if (user_var_num=="no_such_user"){
wrong_user_details();
} else {
current_password_to_check = eval("user_" + user_var_num + "_password")
if (password_var==current_password_to_check){
the_url = eval("user_" + user_var_num + "_url")
getURL(the_url);
} else {
wrong_user_details2();
}
}

}



The text file:

&total_num_of_users=1&

&user_1_name=key&
&user_1_password=guide&
&user_1_url=http://www.s-yahalom.co.il/customers/fran&


Thanks,

GuyPhil
 
Could this have anything to do with the server maybe?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top