open(TL,"$path_to_lang/$thislang/chngpw.txt"); while(){push(@LaNg,$_)} &exec_lang; print "Content-type: text/html\n\n"; ($usr,$current,$nu)=split(/\|/,$param1); $curr=crypt($current,"ce"); $NUPW=crypt($nu,"ce"); open(USR,"$path_to_users"); while(){ if(/^$usr=/){ ($un,$pw,$user_root,$buttons,$imagesize,$usermb,$user_files,$user_email,$super,$auths,$usrtype,$mode)=split(/=/); if($pw eq $curr){ $_=qq~$un=$NUPW=$user_root=$buttons=$imagesize=$usermb=$user_files=$user_email=$super=$auths=$usrtype=$mode~; }else{$nomatch=1} } $SAVE.=$_; } if($nomatch){ print qq~~; exit }else{ $PW=substr($NUPW,2); open(SES,"$path_to_sessions"); while(){ chomp(); ($U,$SES)=split(/=/); if($U eq $un){break} } $cookie="EditorLogin=$un|$PW|$SES;path=/"; open(USR,">$path_to_users"); print USR "$SAVE"; if($param2 eq "toolbar"){ print qq~~; }else{ print qq~~; } exit } 1;