public
Description: A Simple domain monitoring application
Homepage: http://www.domainhunter.org.tr
Clone URL: git://github.com/bmericc/domainhunter.git
Click here to lend your support to: domainhunter and make a donation at www.pledgie.com !
bmericc (author)
Wed Jul 09 11:28:48 -0700 2008
domainhunter / satir_func.php
100755 112 lines (78 sloc) 3.126 kb
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
<?php
/*
+-----------------------------------------------------------------------+
| Domain Hunter - A Simple Domain Monitoring Application |
| Version 0.1.0 |
| |
| Copyright (C) 2006-2007, DomainLabs.EU - Turkey |
| Licensed under the GNU GPLv3 |
| |
+-----------------------------------------------------------------------+
| Author: Bahri Meric CANLI <bahri@bahri.info> |
+-----------------------------------------------------------------------+
 
*/
 
function satirbul($satir) {
 
$satir = trim($satir);
 
/*********************** Domain Name *******************************/
 
$tok = strpos($satir, "Domain Name");
if ($tok !== false) {
$satir_sonuc[0] = "Domain Name";
$satir_sonuc[1] = str_replace("Domain Name: ", "", $satir);
}
 
/*********************** Registrar *******************************/
 
$tok = strpos($satir, "Registrar");
if ($tok !== false) {
$satir_sonuc[0] = "Registrar";
$satir_sonuc[1] = str_replace("Registrar: ", "", $satir);
}
 
/*********************** Whois Server *******************************/
 
$tok = strpos($satir, "Whois Server");
if ($tok !== false) {
$satir_sonuc[0] = "Whois Server";
$satir_sonuc[1] = str_replace("Whois Server: ", "", $satir);
}
 
/*********************** Referral URL *******************************/
 
$tok = strpos($satir, "Referral URL");
if ($tok !== false) {
$satir_sonuc[0] = "Referral URL";
$satir_sonuc[1] = str_replace("Referral URL: ", "", $satir);
}
 
/*********************** Name Server *******************************/
 
$tok = strpos($satir, "Name Server");
if ($tok !== false) {
$satir_sonuc[0] = "Name Server";
$satir_sonuc[1] = str_replace("Name Server: ", "", $satir);
}
 
/*********************** Status *******************************/
 
$tok = strpos($satir, "Status");
if ($tok !== false) {
$satir_sonuc[0] = "Status";
$satir_sonuc[1] = str_replace("Status: ", "", $satir);
}
 
/*********************** EPP Status *******************************/
 
$tok = strpos($satir, "EPP Status");
if ($tok !== false) {
$satir_sonuc[0] = "EPP Status";
$satir_sonuc[1] = str_replace("EPP Status: ", "", $satir);
}
 
/*********************** Updated Date *******************************/
 
$tok = strpos($satir, "Updated Date");
if ($tok !== false) {
$satir_sonuc[0] = "Updated Date";
$satir_sonuc[1] = str_replace("Updated Date: ", "", $satir);
}
 
/*********************** Creation Date *******************************/
 
$tok = strpos($satir, "Creation Date");
if ($tok !== false) {
$satir_sonuc[0] = "Creation Date";
$satir_sonuc[1] = str_replace("Creation Date: ", "", $satir);
}
 
/*********************** Expiration Date *******************************/
 
$tok = strpos($satir, "Expiration Date");
if ($tok !== false) {
$satir_sonuc[0] = "Expiration Date";
$satir_sonuc[1] = str_replace("Expiration Date: ", "", $satir);
}
 
 
 
return $satir_sonuc;
}
 
 
 
 
 
 
 
?>