This repository has been archived by the owner on May 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
trademarkClaim.php
executable file
·149 lines (128 loc) · 5.62 KB
/
trademarkClaim.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
<?php
define("CLIENTAREA", true);
//define("FORCESSL", true); // Uncomment to force the page to use https://
if (file_exists('dbconnect.php')) {
require('dbconnect.php');
} else {
require("init.php");
}
$ca = new WHMCS_ClientArea();
$ca->setPageTitle("Trademark Claims Notice");
$ca->addToBreadCrumb('trademarkClaim.php', 'Trademark Claims Notice');
$ca->initPage();
$cart = $_SESSION["cart"];
if (count($cart) > 0) {
$currentDomainKey = $_SESSION["currentdomainKey"];
$domainName = $cart['domains'][$currentDomainKey]['domain'];
$lookupKey = $cart['domains'][$currentDomainKey]['TMCH'][$domainName]['lookupkey'];
$data = internetbs_TmchInfo($lookupKey);
$markCnt = 0;
foreach ($data as $key => $value) {
if (strpos($key, "markname") !== false) {
$markCnt++;
}
}
$markName = "";
$markHolder = "";
$goodsAndService = "";
$class = "";
$markDetails = array();
for ($cnt = 0; $cnt < $markCnt; $cnt++) {
$marknamevar = "tmch_" . $cnt . "_markname";
$markholdervar = "tmch_" . $cnt . "_org";
$markclassvar = "tmch_" . $cnt . "_classdesc";
$markgoodsvar = "tmch_" . $cnt . "_goodsandservices";
$markJurisdictionvar = "tmch_" . $cnt . "_jurdesc";
$markholderstreetvar = "tmch_" . $cnt . "_addr_street";
$markholdercityvar = "tmch_" . $cnt . "_addr_city";
$markholderpcvar = "tmch_" . $cnt . "_addr_pc";
$markholderstatevar = "tmch_" . $cnt . "_addr_state";
$markholdercountryvar = "tmch_" . $cnt . "_addr_country";
$markcontactnamevar = "tmch_" . $cnt . "_contact_name";
$markcontactorgvar = "tmch_" . $cnt . "_contact_org";
$markcontactstreetvar = "tmch_" . $cnt . "_contact_addr_street";
$markcontactcityvar = "tmch_" . $cnt . "_contact_addr_city";
$markcontactpcvar = "tmch_" . $cnt . "_contact_addr_pc";
$markcontactstatevar = "tmch_" . $cnt . "_contact_addr_state";
$markcontactcountryvar = "tmch_" . $cnt . "_contact_addr_country";
$markcontactphonevar = "tmch_" . $cnt . "_contact_voice";
$markcontactfaxvar = "tmch_" . $cnt . "_contact_fax";
$markcontactemailvar = "tmch_" . $cnt . "_contact_email";
if (isset($data[$marknamevar])) {
$markDetails[$cnt]['markName'] = $data[$marknamevar];
}
if (isset($data[$markholdervar])) {
$markDetails[$cnt]['markHolder'] = $data[$markholdervar];
}
if (isset($data[$markclassvar])) {
$markDetails[$cnt]['class'] = $data[$markclassvar];
}
if (isset($data[$markgoodsvar])) {
$markDetails[$cnt]['goodsAndService'] = $data[$markgoodsvar];
}
if (isset($data[$markJurisdictionvar])) {
$markDetails[$cnt]['markJurisdiction'] = $data[$markJurisdictionvar];
}
if (isset($data[$markholderstreetvar])) {
$markDetails[$cnt]['holderStreet'] = $data[$markholderstreetvar];
}
if (isset($data[$markholdercityvar])) {
$markDetails[$cnt]['holderCity'] = $data[$markholdercityvar];
}
if (isset($data[$markholderpcvar])) {
$markDetails[$cnt]['holderPc'] = $data[$markholderpcvar];
}
if (isset($data[$markholdercountryvar])) {
$markDetails[$cnt]['holderCountry'] = $data[$markholdercountryvar];
}
if (isset($data[$markholderstatevar])) {
$markDetails[$cnt]['holderState'] = $data[$markholderstatevar];
}
if (isset($data[$markcontactorgvar])) {
$markDetails[$cnt]['contactOrg'] = $data[$markcontactorgvar];
}
if (isset($data[$markcontactnamevar])) {
$markDetails[$cnt]['contactName'] = $data[$markcontactnamevar];
}
if (isset($data[$markcontactstreetvar])) {
$markDetails[$cnt]['contactStreet'] = $data[$markcontactstreetvar];
}
if (isset($data[$markcontactcityvar])) {
$markDetails[$cnt]['contactCity'] = $data[$markcontactcityvar];
}
if (isset($data[$markcontactpcvar])) {
$markDetails[$cnt]['contactPc'] = $data[$markcontactpcvar];
}
if (isset($data[$markcontactcountryvar])) {
$markDetails[$cnt]['contactCountry'] = $data[$markcontactcountryvar];
}
if (isset($data[$markcontactstatevar])) {
$markDetails[$cnt]['contactState'] = $data[$markcontactstatevar];
}
if (isset($data[$markcontactphonevar])) {
$markDetails[$cnt]['contactInfo'] = "Phone number: " . $data[$markcontactphonevar];
}
if (isset($data[$markcontactfaxvar])) {
$markDetails[$cnt]['contactInfo'] .= ", Fax: " . $data[$markcontactfaxvar];
}
if (isset($data[$markcontactemailvar])) {
$markDetails[$cnt]['contactEmail'] = $data[$markcontactemailvar];
}
}
$ca->assign('cnt', $markCnt - 1);
$ca->assign('domainKey', $currentDomainKey);
$ca->assign('domain', $domainName);
$ca->assign('markDetails', $markDetails);
if (isset($_POST["accepttm"])) {
$_SESSION["cart"]["domains"][$currentDomainKey]["TMCH"][$domainName]['tcnAccept'] = 1;
$_SESSION["cart"]["domains"][$currentDomainKey]['tmchid'] = $data["tmch_id"];
$_SESSION["cart"]["domains"][$currentDomainKey]['tmchnotafterdate'] = $data["tmch_notafter"];
$_SESSION["cart"]["domains"][$currentDomainKey]['accepteddate'] = date("Y-m-d H:i:s");
header("Location: cart.php?a=view");
}
} else {
$ca->assign("error", "Cart is Empty");
}
$ca->setTemplate('trademarkClaim');
$ca->output();
header("Location: cart.php?a=view");