-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCOMMANDS.txt
63 lines (42 loc) · 1.17 KB
/
COMMANDS.txt
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
<?php
$xml->Hello();
$xml->Login();
$xml->Poll(); // Poll($op = 'req', $msgID = null)
$xml->Poll('ack', 12345);
$xml->Check("domain", "jine.se");
$xml->Check("host", "ns1.iis.se");
$xml->Check("domain", array("jine.se","hax.se","h0x.se","hmm.se","wat.se"));
$xml->Info("host", "ns1.example.se");
$xml->Info("domain", "jine.se");
$xml->Delete('domain', 'jine.se');
$xml->Delete('contact', 'jimnel0115-00001');
$xml->Logout();
$domain = array(
'name' => 'epptestjine.se',
'period' => 12, // Months
'ns' => array('ns1.jine.se', 'ns2.jine.se'),
'registrant' => 'jimnel0115-00001',
'pw' => '.Hax0r+1zZ!.',
);
$xml->Create("domain", $domain);
$host = array(
'name' => 'ns1.jine.se',
'addr' => array(
#array('v6', '2001:0db8::1428:07ab/64'),
array('v4', '91.142.189.235'),
)
);
$xml->Create("host", $host);
$contact = array(
'id' => 'jimnel0118-0001',
'name' => 'Jim Nelin',
'org' => 'Jine',
'street' => array('C/O Anka', 'Vägen 1'),
'city' => 'Stockholm',
'pc' => '12345',
'cc' => 'SE',
'orgno' => '[SE]901019-0578',
'vatno' => 'SE901019057801',
);
$xml->Create("contact", $contact);
$xml->getXML();