-
Notifications
You must be signed in to change notification settings - Fork 1
/
run.php
163 lines (128 loc) · 4.25 KB
/
run.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<?php
ini_set("display_errors",1);
include 'config.php';
include 'EPP.class.php';
// Padding variable for debug.. :)
$_ = "===============================\n";
// Connect to the EPP Server
$epp = new EPP();
#$epp = new EPP(false); // Dont connect to epp server
/****************************************/
#echo $_."Logging in...\n".$_;
$epp->Login(); // Add login XML
$epp->Process();
/****************************************/
// Echos the result code and message
#echo $epp->getResultCode();
#echo "\n";
#echo $epp->getResultMsg();
/****************************************/
#echo $_."Renewing jinetest2.se with 12 months...\n".$_;
#$epp->Renew('jinetest2.se', '2011-08-08', 12);
#echo $epp->Process();
/****************************************/
/****************************************/
#echo $_."Showing messages...\n".$_;
#$epp->Poll();
#echo $epp->Process();
/****************************************/
/****************************************/
#echo $_."Remove message...\n".$_;
#$epp->Poll('ack', 12632);
#echo $epp->Process();
/****************************************/
/****************************************/
#echo $_."Show info 'bout jinetest2.se...\n".$_;
#$epp->Info('domain', 'jinetest2.se');
#echo $epp->Process();
/****************************************/
/****************************************/
echo $_."Show info 'bout contact jimjin2467-00001...\n".$_;
$epp->Info('contact', 'jimjin2467-00001');
echo $epp->Process();
/****************************************/
#echo $_."Running custom XML...\n".$_;
/*$custom = '<?xml version="1.0" encoding="UTF-8" standalone="no"?><epp xmlns="urn:ietf:params:xml:ns:epp-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd"> <command> <update> <domain:update xmlns:domain="urn:ietf:params:xml:ns:domain-1.0" xsi:schemaLocation="urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd"><domain:name>jinetest2.se</domain:name><domain:add> <domain:contact type="tech">jimjin2467-00001</domain:contact></domain:add> </domain:update> </update> </command></epp>';
$epp->setXML($custom);*/
#echo $epp->getXML(false);
#echo $epp->Process();
/****************************************/
#echo $_."Transfering jinetest2.se to me...\n".$_;
#$epp->Transfer('xn--sngubbe-b1a.se', 'EmilV123-☃');
#echo $epp->Process();
/****************************************/
#$epp->Update('domain',2);
#echo $epp->getXML();
/****************************************/
#echo $_."Checking jinetest.se...\n".$_;
#$epp->Check('domain', 'jinetest.se');
#echo $epp->Process();
/****************************************/
#'xn--sngubbe-b1a.se', 'EmilV123-☃'
/****************************************/
echo $_."Updating jinetest2...\n".$_;
/*
$update = array(
'chg' => array(
'pw' => 'EmilV123-☃',
#'registrant' => 'iostream',
),
'rem' => array(
'ns' => array('ns1.iis.se'),
),
'add' => array(
'ns' => array('ns1.iis.se', 'ns1.jine.se'),
),
);
$update = array(
'rem' => array(
'hosts' => array(
#array('v6', 'enipv6'),
#array('v4', '172.172.171.21'),
),
),
'add' => array(
'hosts' => array(
array('v4', '81.123.123.1'),
),
),
);
$epp->Update('host', 'ns1.jine.se', $update);*/
$update = array(
'chg' => array(
'name' => 'Jim Nelin',
'vatno' => '',
#'org' => 'HAX AB',
#'street' => array('Härbrevägen 37'),
#'city' => 'Skogås',
#'pc' => '14234',
#'cc' => 'BR',
#'fax' => '',
#'email' => 'hax@jne.se',
#'voice' => '+46.737586061',
),
);
$epp->Update('contact', 'jimjin2467-00001', $update);
echo $epp->getXML(false);
echo $epp->Process();
/****************************************/
/****************************************/
#echo $_."Checking jinetest2.se...\n".$_;
#$epp->Info('contact', 'jimjin2467-00001'); // Add check-domain XML
#echo $epp->Process();
/****************************************/
/****************************************/
#echo $_."Creating jinetest2.se...\n".$_;
#$domain = array(
# 'name' => 'jinetest2.se',
# 'period' => 18, // Months
# 'ns' => array('ns1.jine.se'),
# 'registrant' => 'jimnel0115-00001',
# 'pw' => '.Hax0r+1zzZ!.',
#);
#$epp->Create("domain", $domain);
#echo $epp->Process();
/****************************************/
// Close connection!
#echo $_."Closing connection...\n".$_;
$epp->Disconnect();