Advertisement
Guest User

Untitled

a guest
Apr 2nd, 2012
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.33 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by deZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 1.1.4.0
  8. * @ Author : DeZender
  9. * @ Release on : 30.03.2012
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function webnames_idn_getconfigarray() {
  15. $cgagjahg = array( 'Username' => array( 'Type' => 'text', 'Size' => '40', 'Description' => '' ), 'Password' => array( 'Type' => 'password', 'Size' => '40', 'Description' => '' ), 'Test' => array( 'Type' => 'yesno', 'Size' => '20', 'Description' => 'Tick to use test mode' ), 'Language' => array( 'Type' => 'yesno', 'Description' => 'Tick to use russian answers from API' ), 'Balance' => array( 'Type' => 'yesno', 'Size' => '20', 'Description' => 'Show your account balance on the admin homepage' ) );
  16. return $cgagjahg;
  17. }
  18.  
  19. function webnames_idn_registerdomain($bhbhgehbj) {
  20. $bchbchcihg .= 'interface_revision=1&thisPage=pispRegistration&';
  21. if ($bhbhgehbj['Test']) {
  22. $bchbchcihg .= 'username=test&';
  23. $bchbchcihg .= 'password=test&';
  24. $ccjjabjhcf = 'https://www.webnames.ru:81/RegTimeSRS.pl';
  25. } else {
  26. $bchbchcihg .= 'username=' . $bhbhgehbj['Username'] . '&';
  27. $bchbchcihg .= 'password=' . $bhbhgehbj['Password'] . '&';
  28. $ccjjabjhcf = 'https://www.webnames.ru:81/RegTimeSRS.pl';
  29. }
  30.  
  31. $bchbchcihg .= 'domain_name=' . wn_idn_encode( $bhbhgehbj['sld'] ) . '.' . wn_idn_encode( $bhbhgehbj['tld'] ) . '&';
  32. if ($bhbhgehbj['Language'] == 'on') {
  33. $bchbchcihg .= 'interface_lang=ru&';
  34. } else {
  35. $bchbchcihg .= 'interface_lang=en&';
  36. }
  37.  
  38. $bchbchcihg .= 'period=' . $bhbhgehbj['regperiod'] . '&';
  39. if (preg_match( '' . '/(^ru$)|(^xn--p1ai$)|(^su$)|(^' . back_wn_idn_encode( 'ðô' ) . ( '' . '$)/i' ), $bhbhgehbj['tld'] )) {
  40. $bchbchcihg .= 'descr=' . $bhbhgehbj['additionalfields']['Domain_Description'] . '&';
  41. if (( preg_match( '/Private/i', $bhbhgehbj['additionalfields']['Register_To'] ) || preg_match( '/' . back_wn_idn_encode( '×àñòíîå' ) . '/i', $bhbhgehbj['additionalfields']['Register_To'] ) )) {
  42. $bchbchcihg .= 'private_person=1&';
  43. $hhbhiihje = wn_idn_translit( wn_idn_encode( $bhbhgehbj['additionalfields']['Registrant_MiddleName'] ) );
  44. $bchbchcihg .= 'person=' . wn_idn_translit( wn_idn_encode( $bhbhgehbj['additionalfields']['Registrant_FirstName'] ) ) . ' ' . $hhbhiihje[0] . ' ' . wn_idn_translit( wn_idn_encode( $bhbhgehbj['additionalfields']['Registrant_LastName'] ) ) . '&';
  45. $bchbchcihg .= 'person_r=' . wn_idn_encode( $bhbhgehbj['additionalfields']['Registrant_LastName'] . ' ' . $bhbhgehbj['additionalfields']['Registrant_FirstName'] . ' ' . $bhbhgehbj['additionalfields']['Registrant_MiddleName'] ) . '&';
  46. $bchbchcihg .= 'passport=' . wn_idn_encode( $bhbhgehbj['additionalfields']['Passport_Num'] ) . ', âûäàí ' . wn_idn_encode( $bhbhgehbj['additionalfields']['Passport_Issue'] ) . ' ' . wn_idn_encode( $bhbhgehbj['additionalfields']['Passport_Date'] ) . '&';
  47. $bchbchcihg .= 'birth_date=' . $bhbhgehbj['additionalfields']['Registrant_Birth_Date'] . '&';
  48. $daicdjjfhe = wn_idn_encode( $bhbhgehbj['additionalfields']['Registrant_Zip'] ) . ', ';
  49. if ($bhbhgehbj['additionalfields']['Registrant_State'] != '') {
  50. $daicdjjfhe .= wn_idn_encode( $bhbhgehbj['additionalfields']['Registrant_State'] ) . ', ';
  51. }
  52.  
  53. $daicdjjfhe .= wn_idn_encode( $bhbhgehbj['additionalfields']['Registrant_City'] ) . ', ' . wn_idn_encode( $bhbhgehbj['additionalfields']['Registrant_Street'] );
  54. $bchbchcihg .= 'residence=' . $daicdjjfhe . '&';
  55. $diafcccdea = wn_idn_encode( $bhbhgehbj['additionalfields']['Registrant_FirstName'] );
  56. $ddiicidafi = wn_idn_encode( $bhbhgehbj['additionalfields']['Registrant_MiddleName'] );
  57. $bchbchcihg .= 'p_addr=' . $daicdjjfhe . ', ' . wn_idn_encode( $bhbhgehbj['additionalfields']['Registrant_LastName'] ) . ' ' . $diafcccdea[0] . '. ' . $ddiicidafi[0] . '.&';
  58. } else {
  59. $jhcgjgec = wn_idn_encode( $bhbhgehbj['additionalfields']['Company_Name'] );
  60. $jhcgjgec = preg_replace( '/[^a-zA-Zà-ÿÀ-ß0-9 _]+/', '', $jhcgjgec );
  61. $jhcgjgec = preg_replace( '/quot/', '', $jhcgjgec );
  62. $bchbchcihg .= 'org=' . wn_idn_translit( $jhcgjgec ) . '&';
  63. $bchbchcihg .= 'org_r=' . $jhcgjgec . '&';
  64. $daicdjjfhe = wn_idn_encode( $bhbhgehbj['additionalfields']['Registrant_Zip'] ) . ', ';
  65. if ($bhbhgehbj['additionalfields']['Registrant_State'] != '') {
  66. $daicdjjfhe .= wn_idn_encode( $bhbhgehbj['additionalfields']['Registrant_State'] ) . ', ';
  67. }
  68.  
  69. $daicdjjfhe .= wn_idn_encode( $bhbhgehbj['additionalfields']['Registrant_City'] ) . ', ' . wn_idn_encode( $bhbhgehbj['additionalfields']['Registrant_Street'] );
  70. $bchbchcihg .= 'address_r=' . $daicdjjfhe . '&';
  71. $diafcccdea = wn_idn_encode( $bhbhgehbj['additionalfields']['Registrant_FirstName'] );
  72. $ddiicidafi = wn_idn_encode( $bhbhgehbj['additionalfields']['Registrant_MiddleName'] );
  73. $bchbchcihg .= 'p_addr=' . $daicdjjfhe . ', ' . $jhcgjgec . ', äëÿ ' . wn_idn_encode( $bhbhgehbj['additionalfields']['Registrant_LastName'] ) . ' ' . $diafcccdea[0] . '. ' . $ddiicidafi[0] . '.&';
  74. if ($bhbhgehbj['additionalfields']['Company_KPP'] != '') {
  75. $bchbchcihg .= 'kpp=' . wn_idn_encode( $bhbhgehbj['additionalfields']['Company_KPP'] ) . '&';
  76. }
  77. }
  78.  
  79. $bchbchcihg .= 'country=' . $bhbhgehbj['additionalfields']['Registrant_Country'] . '&';
  80. if ($bhbhgehbj['additionalfields']['Company_INN'] != '') {
  81. $bchbchcihg .= 'code=' . wn_idn_encode( $bhbhgehbj['additionalfields']['Company_INN'] ) . '&';
  82. }
  83.  
  84. $bchbchcihg .= 'phone=' . urlencode( $bhbhgehbj['additionalfields']['Registrant_Phone'] ) . '&';
  85. $bchbchcihg .= 'e_mail=' . urlencode( $bhbhgehbj['adminemail'] ) . '&';
  86. } else {
  87. if (preg_match( '' . '/(^CN$)|(^EU$)|(^IN$)|(^NAME$)|(^WS$)/i', $bhbhgehbj['tld'] )) {
  88. $bjgejaaiih = wn_idn_translit( wn_idn_encode( $bhbhgehbj['adminfirstname'] ) );
  89. $cajbbibhcf = wn_idn_translit( wn_idn_encode( $bhbhgehbj['adminlastname'] ) );
  90. $ibgibhc = urlencode( $bhbhgehbj['adminfullphonenumber'] );
  91. $jjgfdfjdh = wn_idn_translit( wn_idn_encode( $bhbhgehbj['adminaddress1'] ) );
  92. $dchcdiicjf = wn_idn_translit( wn_idn_encode( $bhbhgehbj['city'] ) );
  93. $dgjcjgjdcd = wn_idn_translit( wn_idn_encode( $bhbhgehbj['state'] ) );
  94. $djafbbcaeh = wn_idn_translit( wn_idn_encode( $bhbhgehbj['postcode'] ) );
  95. $ecieeeffef = $bhbhgehbj['country'];
  96. $gijiichga = $bhbhgehbj['adminemail'];
  97. if (wn_idn_translit( wn_idn_encode( $bhbhgehbj['companyname'] ) ) == '') {
  98. $fgfdbhbif = 'Private Person';
  99. } else {
  100. $fgfdbhbif = wn_idn_translit( wn_idn_encode( $bhbhgehbj['companyname'] ) );
  101. }
  102.  
  103. $cgcjeccgaf = 'RP_company=' . $fgfdbhbif . '&RP_first_name=' . $bjgejaaiih . '&RP_last_name=' . $cajbbibhcf . '&RP_email=' . $gijiichga . '&';
  104. $cgcjeccgaf .= 'RP_phone=' . $ibgibhc . '&RP_addr=' . $jjgfdfjdh . '&RP_city=' . $dchcdiicjf . '&';
  105. $cgcjeccgaf .= 'RP_state=' . $dgjcjgjdcd . '&RP_postcode=' . $djafbbcaeh . '&RP_country_code=' . $ecieeeffef . '&';
  106. $bchbchcihg .= str_replace( 'RP', 'o', $cgcjeccgaf ) . str_replace( 'RP', 'a', $cgcjeccgaf ) . str_replace( 'RP', 't', $cgcjeccgaf );
  107. } else {
  108. if (preg_match( '' . '/(^COM$)|(^NET$)|(^ORG$)|(^BIZ$)|(^INFO$)|(^ME$)|(^TV$)|(^CC$)|(^MOBI$)/i', $bhbhgehbj['tld'] )) {
  109. $bjgejaaiih = wn_idn_translit( wn_idn_encode( $bhbhgehbj['adminfirstname'] ) );
  110. $cajbbibhcf = wn_idn_translit( wn_idn_encode( $bhbhgehbj['adminlastname'] ) );
  111. $ibgibhc = urlencode( $bhbhgehbj['adminfullphonenumber'] );
  112. $jjgfdfjdh = wn_idn_translit( wn_idn_encode( $bhbhgehbj['adminaddress1'] ) );
  113. $dchcdiicjf = wn_idn_translit( wn_idn_encode( $bhbhgehbj['city'] ) );
  114. $dgjcjgjdcd = wn_idn_translit( wn_idn_encode( $bhbhgehbj['state'] ) );
  115. $djafbbcaeh = wn_idn_translit( wn_idn_encode( $bhbhgehbj['postcode'] ) );
  116. $ecieeeffef = $bhbhgehbj['country'];
  117. $gijiichga = $bhbhgehbj['adminemail'];
  118. if (wn_idn_translit( wn_idn_encode( $bhbhgehbj['companyname'] ) ) == '') {
  119. $fgfdbhbif = 'Private Person';
  120. } else {
  121. $fgfdbhbif = wn_idn_translit( wn_idn_encode( $bhbhgehbj['companyname'] ) );
  122. }
  123.  
  124. $cgcjeccgaf = 'RP_company=' . $fgfdbhbif . '&RP_first_name=' . $bjgejaaiih . '&RP_last_name=' . $cajbbibhcf . '&RP_email=' . $gijiichga . '&';
  125. $cgcjeccgaf .= 'RP_phone=' . $ibgibhc . '&RP_addr=' . $jjgfdfjdh . '&RP_city=' . $dchcdiicjf . '&';
  126. $cgcjeccgaf .= 'RP_state=' . $dgjcjgjdcd . '&RP_postcode=' . $djafbbcaeh . '&RP_country_code=' . $ecieeeffef . '&';
  127. $bchbchcihg .= str_replace( 'RP', 'o', $cgcjeccgaf ) . str_replace( 'RP', 'a', $cgcjeccgaf ) . str_replace( 'RP', 't', $cgcjeccgaf ) . str_replace( 'RP', 'b', $cgcjeccgaf );
  128. } else {
  129. if (preg_match( '' . '/(^KZ$)/i', $bhbhgehbj['tld'] )) {
  130. $bjgejaaiih = wn_idn_translit( wn_idn_encode( $bhbhgehbj['adminfirstname'] ) );
  131. $cajbbibhcf = wn_idn_translit( wn_idn_encode( $bhbhgehbj['adminlastname'] ) );
  132. $ibgibhc = urlencode( $bhbhgehbj['adminfullphonenumber'] );
  133. $jjgfdfjdh = wn_idn_translit( wn_idn_encode( $bhbhgehbj['adminaddress1'] ) );
  134. $dchcdiicjf = wn_idn_translit( wn_idn_encode( $bhbhgehbj['city'] ) );
  135. $dgjcjgjdcd = wn_idn_translit( wn_idn_encode( $bhbhgehbj['state'] ) );
  136. $djafbbcaeh = wn_idn_translit( wn_idn_encode( $bhbhgehbj['postcode'] ) );
  137. $ecieeeffef = $bhbhgehbj['country'];
  138. $gijiichga = $bhbhgehbj['adminemail'];
  139. if (wn_idn_translit( wn_idn_encode( $bhbhgehbj['companyname'] ) ) == '') {
  140. $fgfdbhbif = 'Private Person';
  141. } else {
  142. $fgfdbhbif = wn_idn_translit( wn_idn_encode( $bhbhgehbj['companyname'] ) );
  143. }
  144.  
  145. $cgcjeccgaf = 'RP_company=' . $fgfdbhbif . '&RP_first_name=' . $bjgejaaiih . '&RP_last_name=' . $cajbbibhcf . '&RP_email=' . $gijiichga . '&';
  146. $cgcjeccgaf .= 'RP_phone=' . $ibgibhc . '&RP_addr=' . $jjgfdfjdh . '&RP_city=' . $dchcdiicjf . '&';
  147. $cgcjeccgaf .= 'RP_state=' . $dgjcjgjdcd . '&RP_postcode=' . $djafbbcaeh . '&RP_country_code=' . $ecieeeffef . '&';
  148. $bchbchcihg .= 'sp=' . wn_idn_translit( wn_idn_encode( $bhbhgehbj['additionalfields']['Registrant_State'] ) ) . '&';
  149. $bchbchcihg .= 'city=' . wn_idn_translit( wn_idn_encode( $bhbhgehbj['additionalfields']['Registrant_City'] ) ) . '&';
  150. $bchbchcihg .= 'street=' . wn_idn_translit( wn_idn_encode( $bhbhgehbj['additionalfields']['Registrant_Street'] ) ) . '&';
  151. $bchbchcihg .= str_replace( 'RP', 'o', $cgcjeccgaf ) . str_replace( 'RP', 'a', $cgcjeccgaf ) . str_replace( 'RP', 't', $cgcjeccgaf ) . str_replace( 'RP', 'b', $cgcjeccgaf );
  152. } else {
  153. if (preg_match( '' . '/(^US$)/i', $bhbhgehbj['tld'] )) {
  154. $bjgejaaiih = wn_idn_translit( wn_idn_encode( $bhbhgehbj['adminfirstname'] ) );
  155. $cajbbibhcf = wn_idn_translit( wn_idn_encode( $bhbhgehbj['adminlastname'] ) );
  156. $ibgibhc = urlencode( $bhbhgehbj['adminfullphonenumber'] );
  157. $jjgfdfjdh = wn_idn_translit( wn_idn_encode( $bhbhgehbj['adminaddress1'] ) );
  158. $dchcdiicjf = wn_idn_translit( wn_idn_encode( $bhbhgehbj['city'] ) );
  159. $dgjcjgjdcd = wn_idn_translit( wn_idn_encode( $bhbhgehbj['state'] ) );
  160. $djafbbcaeh = wn_idn_translit( wn_idn_encode( $bhbhgehbj['postcode'] ) );
  161. $ecieeeffef = $bhbhgehbj['country'];
  162. $gijiichga = $bhbhgehbj['adminemail'];
  163. if (wn_idn_translit( wn_idn_encode( $bhbhgehbj['companyname'] ) ) == '') {
  164. $fgfdbhbif = 'Private Person';
  165. } else {
  166. $fgfdbhbif = wn_idn_translit( wn_idn_encode( $bhbhgehbj['companyname'] ) );
  167. }
  168.  
  169. $cgcjeccgaf = 'RP_company=' . $fgfdbhbif . '&RP_first_name=' . $bjgejaaiih . '&RP_last_name=' . $cajbbibhcf . '&RP_email=' . $gijiichga . '&';
  170. $cgcjeccgaf .= 'RP_phone=' . $ibgibhc . '&RP_addr=' . $jjgfdfjdh . '&RP_city=' . $dchcdiicjf . '&';
  171. $cgcjeccgaf .= 'RP_state=' . $dgjcjgjdcd . '&RP_postcode=' . $djafbbcaeh . '&RP_country_code=' . $ecieeeffef . '&';
  172. $bchbchcihg .= str_replace( 'RP', 'o', $cgcjeccgaf ) . str_replace( 'RP', 'a', $cgcjeccgaf ) . str_replace( 'RP', 't', $cgcjeccgaf );
  173. $beihhcfijh = $bhbhgehbj['additionalfields']['Application Purpose'];
  174. $beihhcfijh = preg_replace( '/Business use for profit/i', 'P1', $beihhcfijh );
  175. $beihhcfijh = preg_replace( '/Non-profit business/i', 'P2', $beihhcfijh );
  176. $beihhcfijh = preg_replace( '/Club/i', 'P2', $beihhcfijh );
  177. $beihhcfijh = preg_replace( '/Association/i', 'P2', $beihhcfijh );
  178. $beihhcfijh = preg_replace( '/Religious Organization/i', 'P2', $beihhcfijh );
  179. $beihhcfijh = preg_replace( '/Personal Use/i', 'P3', $beihhcfijh );
  180. $beihhcfijh = preg_replace( '/Educational purposes/i', 'P4', $beihhcfijh );
  181. $beihhcfijh = preg_replace( '/Government purposes/i', 'P5', $beihhcfijh );
  182. $bchbchcihg .= '&RselnexusAppPurpose=' . $beihhcfijh . '&';
  183. $bchbchcihg .= '&RselnexusCategory=' . $bhbhgehbj['additionalfields']['Nexus Category'] . '&';
  184. } else {
  185. $cejbaejfgh['error'] = 'Module error: <br /> not supported TLD ( .' . $bhbhgehbj['tld'] . ' )';
  186. return $cejbaejfgh;
  187. }
  188. }
  189. }
  190. }
  191. }
  192.  
  193. $ddjbihaiah = explode( ' ', $bhbhgehbj['ns1'] );
  194. $fibeighhi = explode( ' ', $bhbhgehbj['ns2'] );
  195. $bccehhdabg = explode( ' ', $bhbhgehbj['ns3'] );
  196. $ebhcjijgcc = explode( ' ', $bhbhgehbj['ns4'] );
  197. $bchbchcihg .= 'ns0=' . $ddjbihaiah['0'] . '&ns1=' . $fibeighhi['0'] . '&';
  198. if (!empty( $ddjbihaiah['1'] )) {
  199. $bchbchcihg .= 'ns0ip=' . $ddjbihaiah['1'] . '&';
  200. }
  201.  
  202. if (!empty( $fibeighhi['1'] )) {
  203. $bchbchcihg .= 'ns1ip=' . $fibeighhi['1'] . '&';
  204. }
  205.  
  206. if (!empty( $bccehhdabg['0'] )) {
  207. $bchbchcihg .= 'ns2=' . $bccehhdabg['0'] . '&';
  208. }
  209.  
  210. if (!empty( $ebhcjijgcc['0'] )) {
  211. $bchbchcihg .= 'ns3=' . $ebhcjijgcc['0'] . '&';
  212. }
  213.  
  214. if (!empty( $bccehhdabg['1'] )) {
  215. $bchbchcihg .= 'ns2ip=' . $bccehhdabg['1'] . '&';
  216. }
  217.  
  218. if (!empty( $ebhcjijgcc['1'] )) {
  219. $bchbchcihg .= 'ns3ip=' . $ebhcjijgcc['1'] . '&';
  220. }
  221.  
  222. $hficjhgei = wn_idn_query( $ccjjabjhcf, $bchbchcihg );
  223. if ($hficjhgei['error_nom'] != '0') {
  224. $cejbaejfgh['error'] = 'cURL error(# ' . $hficjhgei['error_nom'] . '): <br />' . $hficjhgei['error_str'];
  225. return $cejbaejfgh;
  226. }
  227.  
  228. if (preg_match( '/Error:/', $hficjhgei['result'] )) {
  229. $cejbaejfgh['error'] = 'WebNames error: <br />' . back_wn_idn_encode( $hficjhgei['result'] );
  230. return $cejbaejfgh;
  231. }
  232.  
  233. return $cejbaejfgh;
  234. }
  235. ..............................................
  236. ............................
  237. ........
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement