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.5.0
- * @ Author : DeZender
- * @ Release on : 09.06.2012
- * @ Official site : http://DeZender.Net
- *
- */
- function onlinenic_getConfigArray() {
- $query = 'CREATE TABLE IF NOT EXISTS `mod_onlinenic` (`id` int(10) NOT NULL auto_increment,`domain` VARCHAR(255) NOT NULL,`lockstatus` BOOL NOT NULL DEFAULT \'0\',PRIMARY KEY (`id`),KEY `domainid` (`domain`))';
- $result = mysql_query( $query );
- $configarray = array( 'FriendlyName' => array( 'Type' => 'System', 'Value' => 'OnlineNIC' ), 'Username' => array( 'Type' => 'text', 'Size' => '20', 'Description' => 'Onlinenic ID' ), 'Password' => array( 'Type' => 'password', 'Size' => '20', 'Description' => 'Password' ), 'TestMode' => array( 'Type' => 'yesno' ), 'SyncNextDueDate' => array( 'Type' => 'yesno', 'Description', 'Tick this box if you want the expiry date sync script to update the expiry and next due dates (cron must be configured)' ) );
- return $configarray;
- }
- function onlinenic_GetNameservers($params) {
- $username = $params['Username'];
- $password = md5( $params['Password'] );
- $testmode = $params['TestMode'];
- $tld = $params['tld'];
- $sld = $params['sld'];
- $domain = $sld . '.' . $tld;
- if ($testmode) {
- $username = 135613;
- $password = md5( '654123' );
- }
- $values = onlinenic_Login( $fp, $username, $password, $testmode );
- if ($values['error']) {
- return $values;
- }
- $domain_type = onlinenic_getDomainType( $tld );
- $clTrid = substr( md5( $domain ), 0, 10 ) . mt_rand( 1000000000, 9999999999 );
- $checksum = md5( $username . $password . $clTrid . 'getdomaininfo' );
- $xml = '<?xml version="1.0" encoding="UTF-8" standalone="no"?>
- <epp>
- <command>
- <getdomaininfo>
- <clID>' . $username . '</clID>
- <domain>' . $domain . '</domain>
- <domain:type>' . $domain_type . '</domain:type>
- <options>
- <version>1.0</version>
- <lang>en</lang>
- </options>
- </getdomaininfo>
- <clTRID>' . $clTrid . '</clTRID>
- <chksum>' . $checksum . '</chksum>
- </command>
- </epp>';
- $result = onlinenic_sendCommand( $fp, $xml );
- if (!$result) {
- return array( 'error' => 'Domain not found' );
- }
- $resultcode = onlinenic_getResultCode( $result );
- onlinenic_Logout( $fp, $username, $password );
- if ($resultcode != '1000') {
- $msg = onlinenic_GetValue( $result, '<msg>', '</msg>' );
- $error = onlinenic_GetValue( $result, '<value>', '</value>' );
- $error = $msg . ' - ' . $error;
- $errormsg = onlinenic_getResultText( $resultcode );
- $values['error'] = '' . $resultcode . ' - ' . $errormsg . ': ' . $error;
- } else {
- $nameserver1 = onlinenic_GetValue( $result, '<dns1>', '</dns1>' );
- $nameserver2 = onlinenic_GetValue( $result, '<dns2>', '</dns2>' );
- $values['ns1'] = trim( $nameserver1 );
- $values['ns2'] = trim( $nameserver2 );
- $values['ns3'] = trim( $nameserver3 );
- $values['ns4'] = trim( $nameserver4 );
- $values['ns5'] = trim( $nameserver5 );
- }
- return $values;
- }
- function onlinenic_SaveNameservers($params) {
- $username = $params['Username'];
- $password = md5( $params['Password'] );
- $testmode = $params['TestMode'];
- $tld = $params['tld'];
- $sld = $params['sld'];
- if ($testmode) {
- $username = 135613;
- $password = md5( '654123' );
- }
- $domain = $sld . '.' . $tld;
- $values = onlinenic_Login( $fp, $username, $password, $testmode );
- if ($values['error']) {
- return $values;
- }
- $domain_type = onlinenic_getDomainType( $tld );
- $dns1 = $params['ns1'];
- $dns2 = $params['ns2'];
- $dns3 = $params['ns3'];
- $dns4 = $params['ns4'];
- $dns5 = $params['ns5'];
- .............................................................
- ..................................
- ...............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement