Advertisement
Guest User

Untitled

a guest
Jan 7th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.86 KB | None | 0 0
  1. /* тема/subject */
  2. $subject = "Вы успешно зарегистрировались в юредическом компании ";
  3.  
  4. /* сообщение */
  5. $message = "Поздравляем с успешной регистрацией!<br /><br /> Ваш логин: $user_name<br /> Ваш пароль: $passwd";
  6.  
  7. /* Для отправки HTML-почты вы можете установить шапку Content-type. */
  8. $headers= "MIME-Version: 1.0rn";
  9. $headers .= "Content-type: text/html; charset=iso-8859-1rn";
  10.  
  11. /* дополнительные шапки */
  12. $headers .= "From: Yurist.tj <info@yurist.tj>rn";
  13. $headers .= "Cc: info@yurist.tjrn";
  14. $headers .= "Bcc: info@yurist.tjrn";
  15.  
  16. /* и теперь отправим из */
  17. mail($to, $subject, $message, $headers);
  18.  
  19. $res = $wpdb->query(
  20. $wpdb->prepare(
  21. "
  22. INSERT INTO lwr_details
  23. (
  24. experience_since_year,
  25. address,
  26. phone_no,
  27. website,
  28. current_work_org,
  29. work_position,
  30. city,
  31. education,
  32. about_me,
  33. show_email,
  34. avatar_post_id,
  35. user_id
  36. )
  37. values
  38. (
  39. %s,
  40. %s,
  41. %s,
  42. %s,
  43. %s,
  44. %s,
  45. %s,
  46. %s,
  47. %s,
  48. %s,
  49. %d,
  50. %d
  51. )
  52. ",
  53. $experience_since_year,
  54. $address,
  55. $tel_no,
  56. $site,
  57. $current_work_org,
  58. $work_position,
  59. $city,
  60. $education,
  61. $about_me,
  62. $show_email,
  63. $avatar_post_id,
  64. $user_id
  65. )
  66. );
  67.  
  68. /* тема/subject */
  69. $subject = "Вы успешно зарегистрировались в юредическом компании ";
  70.  
  71. /* сообщение */
  72. $message = "Поздравляем с успешной регистрацией!<br /><br /> Ваш логин: $user_name<br /> Ваш пароль: $passwd";
  73.  
  74. /* Для отправки HTML-почты вы можете установить шапку Content-type. */
  75. $headers= "MIME-Version: 1.0rn";
  76. $headers .= "Content-type: text/html; charset=iso-8859-1rn";
  77.  
  78. /* дополнительные шапки */
  79. $headers .= "From: Yurist.tj <info@yurist.tj>rn";
  80. $headers .= "Cc: info@yurist.tjrn";
  81. $headers .= "Bcc: info@yurist.tjrn";
  82.  
  83. /* и теперь отправим из */
  84. mail($to, $subject, $message, $headers);
  85.  
  86. $res = $wpdb->query(
  87. $wpdb->prepare(
  88. "
  89. INSERT INTO lwr_details
  90. (
  91. experience_since_year,
  92. address,
  93. phone_no,
  94. website,
  95. current_work_org,
  96. work_position,
  97. city,
  98. education,
  99. about_me,
  100. show_email,
  101. avatar_post_id,
  102. user_id
  103. )
  104. values
  105. (
  106. %s,
  107. %s,
  108. %s,
  109. %s,
  110. %s,
  111. %s,
  112. %s,
  113. %s,
  114. %s,
  115. %s,
  116. %d,
  117. %d
  118. )
  119. ",
  120. $experience_since_year,
  121. $address,
  122. $tel_no,
  123. $site,
  124. $current_work_org,
  125. $work_position,
  126. $city,
  127. $education,
  128. $about_me,
  129. $show_email,
  130. $avatar_post_id,
  131. $user_id
  132. )
  133. );
  134.  
  135. } else {
  136. $random_password = __('User already exists. Password inherited.');
  137. echo $random_password;
  138. }
  139. ?>`
  140.  
  141. if ( is_wp_error( $attachment_id ) ) {
  142. echo "There was an error uploading the image.";
  143. } else {
  144.  
  145. echo "Ошибка безопасности";
  146. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement