$val) { $magic_quotes_gpc=ini_get('magic_quotes_gpc')?true:false; if(is_string($val)) { if($magic_quotes_gpc) { $val=stripslashes($val); } $val=trim($val); $_POST[$key]=$val; } elseif(is_array($val)) { foreach($val as $key2=>$val2) { if($magic_quotes_gpc) { $val2=stripslashes($val2); } $val2=trim($val2); $_POST[$key][$key2]=$val2; } } $GLOBALS[$key]=$_POST[$key]; } } // The Steps $total_steps=7; if (!$_POST) { $current_step=1; } elseif (!empty($_POST['language_list']) or !empty($_POST['step1']) or ((!empty($_POST['step2_update_8']) or (!empty($_POST['step2_update_6']))) && ($emptyUpdatePath or $badUpdatePath))) { $current_step=2; } elseif (!empty($_POST['step2']) or (!empty($_POST['step2_update_8']) or (!empty($_POST['step2_update_6'])) )) { $current_step=3; } elseif (!empty($_POST['step3'])) { $current_step=4; } elseif (!empty($_POST['step4'])) { $current_step=5; } elseif (!empty($_POST['step5'])) { $current_step=6; } // Managing the $encryptPassForm if ($encryptPassForm=='1' ) { $encryptPassForm = 'md5'; } elseif ($encryptPassForm=='0') { $encryptPassForm = 'none'; } ?>