Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by deZender.Net
- * @ deZender (PHP5 Decoder for ionCube Encoder)
- *
- * @ Version : 1.1.4.0
- * @ Author : DeZender
- * @ Release on : 30.03.2012
- * @ Official site : http://DeZender.Net
- *
- */
- function webnames_idn_getconfigarray() {
- $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' ) );
- return $cgagjahg;
- }
- function webnames_idn_registerdomain($bhbhgehbj) {
- $bchbchcihg .= 'interface_revision=1&thisPage=pispRegistration&';
- if ($bhbhgehbj['Test']) {
- $bchbchcihg .= 'username=test&';
- $bchbchcihg .= 'password=test&';
- $ccjjabjhcf = 'https://www.webnames.ru:81/RegTimeSRS.pl';
- } else {
- $bchbchcihg .= 'username=' . $bhbhgehbj['Username'] . '&';
- $bchbchcihg .= 'password=' . $bhbhgehbj['Password'] . '&';
- $ccjjabjhcf = 'https://www.webnames.ru:81/RegTimeSRS.pl';
- }
- $bchbchcihg .= 'domain_name=' . wn_idn_encode( $bhbhgehbj['sld'] ) . '.' . wn_idn_encode( $bhbhgehbj['tld'] ) . '&';
- if ($bhbhgehbj['Language'] == 'on') {
- $bchbchcihg .= 'interface_lang=ru&';
- } else {
- $bchbchcihg .= 'interface_lang=en&';
- }
- $bchbchcihg .= 'period=' . $bhbhgehbj['regperiod'] . '&';
- if (preg_match( '' . '/(^ru$)|(^xn--p1ai$)|(^su$)|(^' . back_wn_idn_encode( 'ðô' ) . ( '' . '$)/i' ), $bhbhgehbj['tld'] )) {
- $bchbchcihg .= 'descr=' . $bhbhgehbj['additionalfields']['Domain_Description'] . '&';
- if (( preg_match( '/Private/i', $bhbhgehbj['additionalfields']['Register_To'] ) || preg_match( '/' . back_wn_idn_encode( '×àñòíîå' ) . '/i', $bhbhgehbj['additionalfields']['Register_To'] ) )) {
- $bchbchcihg .= 'private_person=1&';
- $hhbhiihje = wn_idn_translit( wn_idn_encode( $bhbhgehbj['additionalfields']['Registrant_MiddleName'] ) );
- $bchbchcihg .= 'person=' . wn_idn_translit( wn_idn_encode( $bhbhgehbj['additionalfields']['Registrant_FirstName'] ) ) . ' ' . $hhbhiihje[0] . ' ' . wn_idn_translit( wn_idn_encode( $bhbhgehbj['additionalfields']['Registrant_LastName'] ) ) . '&';
- $bchbchcihg .= 'person_r=' . wn_idn_encode( $bhbhgehbj['additionalfields']['Registrant_LastName'] . ' ' . $bhbhgehbj['additionalfields']['Registrant_FirstName'] . ' ' . $bhbhgehbj['additionalfields']['Registrant_MiddleName'] ) . '&';
- $bchbchcihg .= 'passport=' . wn_idn_encode( $bhbhgehbj['additionalfields']['Passport_Num'] ) . ', âûäàí ' . wn_idn_encode( $bhbhgehbj['additionalfields']['Passport_Issue'] ) . ' ' . wn_idn_encode( $bhbhgehbj['additionalfields']['Passport_Date'] ) . '&';
- $bchbchcihg .= 'birth_date=' . $bhbhgehbj['additionalfields']['Registrant_Birth_Date'] . '&';
- $daicdjjfhe = wn_idn_encode( $bhbhgehbj['additionalfields']['Registrant_Zip'] ) . ', ';
- if ($bhbhgehbj['additionalfields']['Registrant_State'] != '') {
- $daicdjjfhe .= wn_idn_encode( $bhbhgehbj['additionalfields']['Registrant_State'] ) . ', ';
- }
- $daicdjjfhe .= wn_idn_encode( $bhbhgehbj['additionalfields']['Registrant_City'] ) . ', ' . wn_idn_encode( $bhbhgehbj['additionalfields']['Registrant_Street'] );
- $bchbchcihg .= 'residence=' . $daicdjjfhe . '&';
- $diafcccdea = wn_idn_encode( $bhbhgehbj['additionalfields']['Registrant_FirstName'] );
- $ddiicidafi = wn_idn_encode( $bhbhgehbj['additionalfields']['Registrant_MiddleName'] );
- $bchbchcihg .= 'p_addr=' . $daicdjjfhe . ', ' . wn_idn_encode( $bhbhgehbj['additionalfields']['Registrant_LastName'] ) . ' ' . $diafcccdea[0] . '. ' . $ddiicidafi[0] . '.&';
- } else {
- $jhcgjgec = wn_idn_encode( $bhbhgehbj['additionalfields']['Company_Name'] );
- $jhcgjgec = preg_replace( '/[^a-zA-Zà-ÿÀ-ß0-9 _]+/', '', $jhcgjgec );
- $jhcgjgec = preg_replace( '/quot/', '', $jhcgjgec );
- $bchbchcihg .= 'org=' . wn_idn_translit( $jhcgjgec ) . '&';
- $bchbchcihg .= 'org_r=' . $jhcgjgec . '&';
- $daicdjjfhe = wn_idn_encode( $bhbhgehbj['additionalfields']['Registrant_Zip'] ) . ', ';
- if ($bhbhgehbj['additionalfields']['Registrant_State'] != '') {
- $daicdjjfhe .= wn_idn_encode( $bhbhgehbj['additionalfields']['Registrant_State'] ) . ', ';
- }
- $daicdjjfhe .= wn_idn_encode( $bhbhgehbj['additionalfields']['Registrant_City'] ) . ', ' . wn_idn_encode( $bhbhgehbj['additionalfields']['Registrant_Street'] );
- $bchbchcihg .= 'address_r=' . $daicdjjfhe . '&';
- $diafcccdea = wn_idn_encode( $bhbhgehbj['additionalfields']['Registrant_FirstName'] );
- $ddiicidafi = wn_idn_encode( $bhbhgehbj['additionalfields']['Registrant_MiddleName'] );
- $bchbchcihg .= 'p_addr=' . $daicdjjfhe . ', ' . $jhcgjgec . ', äëÿ ' . wn_idn_encode( $bhbhgehbj['additionalfields']['Registrant_LastName'] ) . ' ' . $diafcccdea[0] . '. ' . $ddiicidafi[0] . '.&';
- if ($bhbhgehbj['additionalfields']['Company_KPP'] != '') {
- $bchbchcihg .= 'kpp=' . wn_idn_encode( $bhbhgehbj['additionalfields']['Company_KPP'] ) . '&';
- }
- }
- $bchbchcihg .= 'country=' . $bhbhgehbj['additionalfields']['Registrant_Country'] . '&';
- if ($bhbhgehbj['additionalfields']['Company_INN'] != '') {
- $bchbchcihg .= 'code=' . wn_idn_encode( $bhbhgehbj['additionalfields']['Company_INN'] ) . '&';
- }
- $bchbchcihg .= 'phone=' . urlencode( $bhbhgehbj['additionalfields']['Registrant_Phone'] ) . '&';
- $bchbchcihg .= 'e_mail=' . urlencode( $bhbhgehbj['adminemail'] ) . '&';
- } else {
- if (preg_match( '' . '/(^CN$)|(^EU$)|(^IN$)|(^NAME$)|(^WS$)/i', $bhbhgehbj['tld'] )) {
- $bjgejaaiih = wn_idn_translit( wn_idn_encode( $bhbhgehbj['adminfirstname'] ) );
- $cajbbibhcf = wn_idn_translit( wn_idn_encode( $bhbhgehbj['adminlastname'] ) );
- $ibgibhc = urlencode( $bhbhgehbj['adminfullphonenumber'] );
- $jjgfdfjdh = wn_idn_translit( wn_idn_encode( $bhbhgehbj['adminaddress1'] ) );
- $dchcdiicjf = wn_idn_translit( wn_idn_encode( $bhbhgehbj['city'] ) );
- $dgjcjgjdcd = wn_idn_translit( wn_idn_encode( $bhbhgehbj['state'] ) );
- $djafbbcaeh = wn_idn_translit( wn_idn_encode( $bhbhgehbj['postcode'] ) );
- $ecieeeffef = $bhbhgehbj['country'];
- $gijiichga = $bhbhgehbj['adminemail'];
- if (wn_idn_translit( wn_idn_encode( $bhbhgehbj['companyname'] ) ) == '') {
- $fgfdbhbif = 'Private Person';
- } else {
- $fgfdbhbif = wn_idn_translit( wn_idn_encode( $bhbhgehbj['companyname'] ) );
- }
- $cgcjeccgaf = 'RP_company=' . $fgfdbhbif . '&RP_first_name=' . $bjgejaaiih . '&RP_last_name=' . $cajbbibhcf . '&RP_email=' . $gijiichga . '&';
- $cgcjeccgaf .= 'RP_phone=' . $ibgibhc . '&RP_addr=' . $jjgfdfjdh . '&RP_city=' . $dchcdiicjf . '&';
- $cgcjeccgaf .= 'RP_state=' . $dgjcjgjdcd . '&RP_postcode=' . $djafbbcaeh . '&RP_country_code=' . $ecieeeffef . '&';
- $bchbchcihg .= str_replace( 'RP', 'o', $cgcjeccgaf ) . str_replace( 'RP', 'a', $cgcjeccgaf ) . str_replace( 'RP', 't', $cgcjeccgaf );
- } else {
- if (preg_match( '' . '/(^COM$)|(^NET$)|(^ORG$)|(^BIZ$)|(^INFO$)|(^ME$)|(^TV$)|(^CC$)|(^MOBI$)/i', $bhbhgehbj['tld'] )) {
- $bjgejaaiih = wn_idn_translit( wn_idn_encode( $bhbhgehbj['adminfirstname'] ) );
- $cajbbibhcf = wn_idn_translit( wn_idn_encode( $bhbhgehbj['adminlastname'] ) );
- $ibgibhc = urlencode( $bhbhgehbj['adminfullphonenumber'] );
- $jjgfdfjdh = wn_idn_translit( wn_idn_encode( $bhbhgehbj['adminaddress1'] ) );
- $dchcdiicjf = wn_idn_translit( wn_idn_encode( $bhbhgehbj['city'] ) );
- $dgjcjgjdcd = wn_idn_translit( wn_idn_encode( $bhbhgehbj['state'] ) );
- $djafbbcaeh = wn_idn_translit( wn_idn_encode( $bhbhgehbj['postcode'] ) );
- $ecieeeffef = $bhbhgehbj['country'];
- $gijiichga = $bhbhgehbj['adminemail'];
- if (wn_idn_translit( wn_idn_encode( $bhbhgehbj['companyname'] ) ) == '') {
- $fgfdbhbif = 'Private Person';
- } else {
- $fgfdbhbif = wn_idn_translit( wn_idn_encode( $bhbhgehbj['companyname'] ) );
- }
- $cgcjeccgaf = 'RP_company=' . $fgfdbhbif . '&RP_first_name=' . $bjgejaaiih . '&RP_last_name=' . $cajbbibhcf . '&RP_email=' . $gijiichga . '&';
- $cgcjeccgaf .= 'RP_phone=' . $ibgibhc . '&RP_addr=' . $jjgfdfjdh . '&RP_city=' . $dchcdiicjf . '&';
- $cgcjeccgaf .= 'RP_state=' . $dgjcjgjdcd . '&RP_postcode=' . $djafbbcaeh . '&RP_country_code=' . $ecieeeffef . '&';
- $bchbchcihg .= str_replace( 'RP', 'o', $cgcjeccgaf ) . str_replace( 'RP', 'a', $cgcjeccgaf ) . str_replace( 'RP', 't', $cgcjeccgaf ) . str_replace( 'RP', 'b', $cgcjeccgaf );
- } else {
- if (preg_match( '' . '/(^KZ$)/i', $bhbhgehbj['tld'] )) {
- $bjgejaaiih = wn_idn_translit( wn_idn_encode( $bhbhgehbj['adminfirstname'] ) );
- $cajbbibhcf = wn_idn_translit( wn_idn_encode( $bhbhgehbj['adminlastname'] ) );
- $ibgibhc = urlencode( $bhbhgehbj['adminfullphonenumber'] );
- $jjgfdfjdh = wn_idn_translit( wn_idn_encode( $bhbhgehbj['adminaddress1'] ) );
- $dchcdiicjf = wn_idn_translit( wn_idn_encode( $bhbhgehbj['city'] ) );
- $dgjcjgjdcd = wn_idn_translit( wn_idn_encode( $bhbhgehbj['state'] ) );
- $djafbbcaeh = wn_idn_translit( wn_idn_encode( $bhbhgehbj['postcode'] ) );
- $ecieeeffef = $bhbhgehbj['country'];
- $gijiichga = $bhbhgehbj['adminemail'];
- if (wn_idn_translit( wn_idn_encode( $bhbhgehbj['companyname'] ) ) == '') {
- $fgfdbhbif = 'Private Person';
- } else {
- $fgfdbhbif = wn_idn_translit( wn_idn_encode( $bhbhgehbj['companyname'] ) );
- }
- $cgcjeccgaf = 'RP_company=' . $fgfdbhbif . '&RP_first_name=' . $bjgejaaiih . '&RP_last_name=' . $cajbbibhcf . '&RP_email=' . $gijiichga . '&';
- $cgcjeccgaf .= 'RP_phone=' . $ibgibhc . '&RP_addr=' . $jjgfdfjdh . '&RP_city=' . $dchcdiicjf . '&';
- $cgcjeccgaf .= 'RP_state=' . $dgjcjgjdcd . '&RP_postcode=' . $djafbbcaeh . '&RP_country_code=' . $ecieeeffef . '&';
- $bchbchcihg .= 'sp=' . wn_idn_translit( wn_idn_encode( $bhbhgehbj['additionalfields']['Registrant_State'] ) ) . '&';
- $bchbchcihg .= 'city=' . wn_idn_translit( wn_idn_encode( $bhbhgehbj['additionalfields']['Registrant_City'] ) ) . '&';
- $bchbchcihg .= 'street=' . wn_idn_translit( wn_idn_encode( $bhbhgehbj['additionalfields']['Registrant_Street'] ) ) . '&';
- $bchbchcihg .= str_replace( 'RP', 'o', $cgcjeccgaf ) . str_replace( 'RP', 'a', $cgcjeccgaf ) . str_replace( 'RP', 't', $cgcjeccgaf ) . str_replace( 'RP', 'b', $cgcjeccgaf );
- } else {
- if (preg_match( '' . '/(^US$)/i', $bhbhgehbj['tld'] )) {
- $bjgejaaiih = wn_idn_translit( wn_idn_encode( $bhbhgehbj['adminfirstname'] ) );
- $cajbbibhcf = wn_idn_translit( wn_idn_encode( $bhbhgehbj['adminlastname'] ) );
- $ibgibhc = urlencode( $bhbhgehbj['adminfullphonenumber'] );
- $jjgfdfjdh = wn_idn_translit( wn_idn_encode( $bhbhgehbj['adminaddress1'] ) );
- $dchcdiicjf = wn_idn_translit( wn_idn_encode( $bhbhgehbj['city'] ) );
- $dgjcjgjdcd = wn_idn_translit( wn_idn_encode( $bhbhgehbj['state'] ) );
- $djafbbcaeh = wn_idn_translit( wn_idn_encode( $bhbhgehbj['postcode'] ) );
- $ecieeeffef = $bhbhgehbj['country'];
- $gijiichga = $bhbhgehbj['adminemail'];
- if (wn_idn_translit( wn_idn_encode( $bhbhgehbj['companyname'] ) ) == '') {
- $fgfdbhbif = 'Private Person';
- } else {
- $fgfdbhbif = wn_idn_translit( wn_idn_encode( $bhbhgehbj['companyname'] ) );
- }
- $cgcjeccgaf = 'RP_company=' . $fgfdbhbif . '&RP_first_name=' . $bjgejaaiih . '&RP_last_name=' . $cajbbibhcf . '&RP_email=' . $gijiichga . '&';
- $cgcjeccgaf .= 'RP_phone=' . $ibgibhc . '&RP_addr=' . $jjgfdfjdh . '&RP_city=' . $dchcdiicjf . '&';
- $cgcjeccgaf .= 'RP_state=' . $dgjcjgjdcd . '&RP_postcode=' . $djafbbcaeh . '&RP_country_code=' . $ecieeeffef . '&';
- $bchbchcihg .= str_replace( 'RP', 'o', $cgcjeccgaf ) . str_replace( 'RP', 'a', $cgcjeccgaf ) . str_replace( 'RP', 't', $cgcjeccgaf );
- $beihhcfijh = $bhbhgehbj['additionalfields']['Application Purpose'];
- $beihhcfijh = preg_replace( '/Business use for profit/i', 'P1', $beihhcfijh );
- $beihhcfijh = preg_replace( '/Non-profit business/i', 'P2', $beihhcfijh );
- $beihhcfijh = preg_replace( '/Club/i', 'P2', $beihhcfijh );
- $beihhcfijh = preg_replace( '/Association/i', 'P2', $beihhcfijh );
- $beihhcfijh = preg_replace( '/Religious Organization/i', 'P2', $beihhcfijh );
- $beihhcfijh = preg_replace( '/Personal Use/i', 'P3', $beihhcfijh );
- $beihhcfijh = preg_replace( '/Educational purposes/i', 'P4', $beihhcfijh );
- $beihhcfijh = preg_replace( '/Government purposes/i', 'P5', $beihhcfijh );
- $bchbchcihg .= '&RselnexusAppPurpose=' . $beihhcfijh . '&';
- $bchbchcihg .= '&RselnexusCategory=' . $bhbhgehbj['additionalfields']['Nexus Category'] . '&';
- } else {
- $cejbaejfgh['error'] = 'Module error: <br /> not supported TLD ( .' . $bhbhgehbj['tld'] . ' )';
- return $cejbaejfgh;
- }
- }
- }
- }
- }
- $ddjbihaiah = explode( ' ', $bhbhgehbj['ns1'] );
- $fibeighhi = explode( ' ', $bhbhgehbj['ns2'] );
- $bccehhdabg = explode( ' ', $bhbhgehbj['ns3'] );
- $ebhcjijgcc = explode( ' ', $bhbhgehbj['ns4'] );
- $bchbchcihg .= 'ns0=' . $ddjbihaiah['0'] . '&ns1=' . $fibeighhi['0'] . '&';
- if (!empty( $ddjbihaiah['1'] )) {
- $bchbchcihg .= 'ns0ip=' . $ddjbihaiah['1'] . '&';
- }
- if (!empty( $fibeighhi['1'] )) {
- $bchbchcihg .= 'ns1ip=' . $fibeighhi['1'] . '&';
- }
- if (!empty( $bccehhdabg['0'] )) {
- $bchbchcihg .= 'ns2=' . $bccehhdabg['0'] . '&';
- }
- if (!empty( $ebhcjijgcc['0'] )) {
- $bchbchcihg .= 'ns3=' . $ebhcjijgcc['0'] . '&';
- }
- if (!empty( $bccehhdabg['1'] )) {
- $bchbchcihg .= 'ns2ip=' . $bccehhdabg['1'] . '&';
- }
- if (!empty( $ebhcjijgcc['1'] )) {
- $bchbchcihg .= 'ns3ip=' . $ebhcjijgcc['1'] . '&';
- }
- $hficjhgei = wn_idn_query( $ccjjabjhcf, $bchbchcihg );
- if ($hficjhgei['error_nom'] != '0') {
- $cejbaejfgh['error'] = 'cURL error(# ' . $hficjhgei['error_nom'] . '): <br />' . $hficjhgei['error_str'];
- return $cejbaejfgh;
- }
- if (preg_match( '/Error:/', $hficjhgei['result'] )) {
- $cejbaejfgh['error'] = 'WebNames error: <br />' . back_wn_idn_encode( $hficjhgei['result'] );
- return $cejbaejfgh;
- }
- return $cejbaejfgh;
- }
- ..............................................
- ............................
- ........
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement