index.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. if (cfr('PDATA')) {
  3. if (wf_CheckGet(array('username'))) {
  4. $login=vf($_GET['username']);
  5. $passportdata= zb_UserPassportDataGet($login);
  6. //editing passport data
  7. if (wf_CheckPost(array('editbirthdate'))) {
  8. $newbirthdate=$_POST['editbirthdate'];
  9. $newpassportnum=$_POST['editpassportnum'];
  10. $newpassportdate=$_POST['editpassportdate'];
  11. $newpassportwho=$_POST['editpassportwho'];
  12. $newpcity=$_POST['editpcity'];
  13. $newpstreet=$_POST['editpstreet'];
  14. $newpbuild=$_POST['editpbuild'];
  15. $newpapt=$_POST['editpapt'];
  16. $newpinn=$_POST['editpinn'];
  17. zb_UserPassportDataChange($login, $newbirthdate, $newpassportnum, $newpassportdate, $newpassportwho, $newpcity, $newpstreet, $newpbuild, $newpapt, $newpinn);
  18. rcms_redirect("?module=pdataedit&username=".$login);
  19. }
  20. web_PassportDataEditFormShow($login,$passportdata);
  21. show_window('',web_UserControls($login));
  22. } else {
  23. show_window(__('Error'),__('Strange exeption'));
  24. }
  25. } else {
  26. show_error(__('You cant control this module'));
  27. }
  28. ?>