@@ -102,6 +102,10 @@ |
||
102 | 102 | return $result; |
103 | 103 | } |
104 | 104 | |
105 | + /** |
|
106 | + * @param string $text |
|
107 | + * @param string $url |
|
108 | + */ |
|
105 | 109 | public function showUrl($domain, $text, $url, $show_url) |
106 | 110 | { |
107 | 111 | $result = ''; |
@@ -35,7 +35,7 @@ |
||
35 | 35 | |
36 | 36 | foreach ($result_account as $row) { |
37 | 37 | |
38 | - ob_start(); ?> |
|
38 | + ob_start(); ?> |
|
39 | 39 | |
40 | 40 | <td align="left" valign="top"> |
41 | 41 | <strong>Created:</strong> <?php echo date("Y M jS", $row->unix_startdate); ?><BR> |
@@ -51,7 +51,10 @@ discard block |
||
51 | 51 | <strong>Shell:</strong> <?php echo $row->shell; ?><BR> |
52 | 52 | <strong>Home:</strong> /<?php echo $row->partition; ?> /<?php echo $row->user; ?><BR> |
53 | 53 | <strong>HD Quota:</strong> <?php echo $row->disklimit; ?> |
54 | - <?php if ($row->disklimit != "unlimited") echo " MB"; ?><BR> |
|
54 | + <?php if ($row->disklimit != "unlimited") { |
|
55 | + echo " MB"; |
|
56 | +} |
|
57 | +?><BR> |
|
55 | 58 | <strong>HD Used:</strong> <?php echo number_format($row->diskused); ?> MB |
56 | 59 | </td> |
57 | 60 | <td align="left" valign="top"> |
@@ -93,7 +96,7 @@ discard block |
||
93 | 96 | } |
94 | 97 | |
95 | 98 | public function accountSidebar($server_name, $domain, $show_heading, $show_url) |
96 | - { |
|
99 | + { |
|
97 | 100 | ob_start(); |
98 | 101 | echo $this->showHeading($domain, $show_heading); |
99 | 102 | $server_wrapped = wordwrap($server_name, 20, "<BR>", true); |
@@ -115,7 +118,7 @@ discard block |
||
115 | 118 | } |
116 | 119 | |
117 | 120 | public function showUrl($domain, $text, $url, $show_url) |
118 | - { |
|
121 | + { |
|
119 | 122 | $result = ''; |
120 | 123 | |
121 | 124 | if ($show_url == '1') { |
@@ -125,7 +128,7 @@ discard block |
||
125 | 128 | } |
126 | 129 | |
127 | 130 | public function zone($server_id, $domain) |
128 | - { |
|
131 | + { |
|
129 | 132 | ob_start(); |
130 | 133 | |
131 | 134 | $result_zones = $this->getZone($server_id, $domain); |
@@ -162,7 +165,7 @@ discard block |
||
162 | 165 | } |
163 | 166 | |
164 | 167 | public function zoneSidebar($server_id, $domain, $show_heading, $show_url) |
165 | - { |
|
168 | + { |
|
166 | 169 | ob_start(); |
167 | 170 | $zone = $this->getZonefile($server_id, $domain); |
168 | 171 | echo $this->showHeading($zone, $show_heading); |
@@ -150,8 +150,12 @@ |
||
150 | 150 | |
151 | 151 | if ($_SERVER['REQUEST_METHOD'] == 'POST') { |
152 | 152 | |
153 | - if ($new_name == '') $_SESSION['s_message_danger'] .= 'Enter the Display Name<BR>'; |
|
154 | - if (!$custom_field->checkFieldFormat($new_field_name)) $_SESSION['s_message_danger'] .= 'The Database Field Name format is incorrect<BR>'; |
|
153 | + if ($new_name == '') { |
|
154 | + $_SESSION['s_message_danger'] .= 'Enter the Display Name<BR>'; |
|
155 | + } |
|
156 | + if (!$custom_field->checkFieldFormat($new_field_name)) { |
|
157 | + $_SESSION['s_message_danger'] .= 'The Database Field Name format is incorrect<BR>'; |
|
158 | + } |
|
155 | 159 | |
156 | 160 | } |
157 | 161 |
@@ -120,7 +120,9 @@ |
||
120 | 120 | |
121 | 121 | if ($_SERVER['REQUEST_METHOD'] == 'GET') { |
122 | 122 | |
123 | - if ($new_username == '') $_SESSION['s_message_danger'] .= 'Enter the username<BR>'; |
|
123 | + if ($new_username == '') { |
|
124 | + $_SESSION['s_message_danger'] .= 'Enter the username<BR>'; |
|
125 | + } |
|
124 | 126 | |
125 | 127 | header("Location: index.php"); |
126 | 128 | exit; |
@@ -220,7 +220,10 @@ |
||
220 | 220 | <!-- search form --> |
221 | 221 | <form action="<?php echo $web_root; ?>/domains/index.php" method="get" class="sidebar-form"> |
222 | 222 | <div class="input-group"> |
223 | - <input type="text" name="search_for" class="form-control" placeholder="Domain Keyword Search"<?php if ($search_for && $search_for != '') echo 'value="' . $search_for . '"'; ?>"'> |
|
223 | + <input type="text" name="search_for" class="form-control" placeholder="Domain Keyword Search"<?php if ($search_for && $search_for != '') { |
|
224 | + echo 'value="' . $search_for . '"'; |
|
225 | +} |
|
226 | +?>"'> |
|
224 | 227 | <span class="input-group-btn"> |
225 | 228 | <button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i> |
226 | 229 | </button> |
@@ -244,16 +244,16 @@ |
||
244 | 244 | |
245 | 245 | <span class="visible-sm visible-md visible-lg"> |
246 | 246 | <?php |
247 | - $breadcrumb_position = 'left'; |
|
248 | - require_once DIR_INC . '/layout/breadcrumbs.inc.php'; |
|
249 | - ?> |
|
247 | + $breadcrumb_position = 'left'; |
|
248 | + require_once DIR_INC . '/layout/breadcrumbs.inc.php'; |
|
249 | + ?> |
|
250 | 250 | </span> |
251 | 251 | |
252 | 252 | <span class="visible-xs"> |
253 | 253 | <?php |
254 | - $breadcrumb_position = 'right'; |
|
255 | - require_once DIR_INC . '/layout/breadcrumbs.inc.php'; |
|
256 | - ?> |
|
254 | + $breadcrumb_position = 'right'; |
|
255 | + require_once DIR_INC . '/layout/breadcrumbs.inc.php'; |
|
256 | + ?> |
|
257 | 257 | </span> |
258 | 258 | <BR> |
259 | 259 |
@@ -48,8 +48,12 @@ discard block |
||
48 | 48 | |
49 | 49 | if ($_SERVER['REQUEST_METHOD'] == 'POST') { |
50 | 50 | |
51 | - if (is_null($domain_column_options)) $domain_column_options = array(''); |
|
52 | - if (is_null($ssl_column_options)) $ssl_column_options = array(''); |
|
51 | + if (is_null($domain_column_options)) { |
|
52 | + $domain_column_options = array(''); |
|
53 | + } |
|
54 | + if (is_null($ssl_column_options)) { |
|
55 | + $ssl_column_options = array(''); |
|
56 | + } |
|
53 | 57 | |
54 | 58 | if (in_array("expiry", $domain_column_options)) { $new_display_domain_expiry_date = '1'; } else { $new_display_domain_expiry_date = '0'; } |
55 | 59 | if (in_array("fee", $domain_column_options)) { $new_display_domain_fee = '1'; } else { $new_display_domain_fee = '0'; } |
@@ -138,8 +142,12 @@ discard block |
||
138 | 142 | |
139 | 143 | if ($_SERVER['REQUEST_METHOD'] == 'POST') { |
140 | 144 | |
141 | - if ($new_number_of_domains == "") $_SESSION['s_message_danger'] .= "Enter the default number of domains to display<BR>"; |
|
142 | - if ($new_number_of_ssl_certs == "") $_SESSION['s_message_danger'] .= "Enter the default number of SSL certficates to display<BR>"; |
|
145 | + if ($new_number_of_domains == "") { |
|
146 | + $_SESSION['s_message_danger'] .= "Enter the default number of domains to display<BR>"; |
|
147 | + } |
|
148 | + if ($new_number_of_ssl_certs == "") { |
|
149 | + $_SESSION['s_message_danger'] .= "Enter the default number of SSL certficates to display<BR>"; |
|
150 | + } |
|
143 | 151 | |
144 | 152 | } else { |
145 | 153 |
@@ -257,7 +257,13 @@ |
||
257 | 257 | <tr> |
258 | 258 | <td></td> |
259 | 259 | <td> |
260 | - <a href="edit/account-owner.php?oid=<?php echo $row->id; ?>"><?php echo $row->name; ?></a><?php if ($_SESSION['s_default_owner_domains'] == $row->id) echo '<strong>*</strong>'; ?><?php if ($_SESSION['s_default_owner_ssl'] == $row->id) echo '<strong>^</strong>'; ?> |
|
260 | + <a href="edit/account-owner.php?oid=<?php echo $row->id; ?>"><?php echo $row->name; ?></a><?php if ($_SESSION['s_default_owner_domains'] == $row->id) { |
|
261 | + echo '<strong>*</strong>'; |
|
262 | +} |
|
263 | +?><?php if ($_SESSION['s_default_owner_ssl'] == $row->id) { |
|
264 | + echo '<strong>^</strong>'; |
|
265 | +} |
|
266 | +?> |
|
261 | 267 | </td> |
262 | 268 | <td><?php |
263 | 269 |
@@ -218,7 +218,13 @@ |
||
218 | 218 | <tr> |
219 | 219 | <td></td> |
220 | 220 | <td> |
221 | - <a href="edit/ip-address.php?ipid=<?php echo $row->id; ?>"><?php echo $row->name; ?></a><?php if ($_SESSION['s_default_ip_address_domains'] == $row->id) echo '<strong>*</strong>'; ?><?php if ($_SESSION['s_default_ip_address_ssl'] == $row->id) echo '<strong>^</strong>'; ?> |
|
221 | + <a href="edit/ip-address.php?ipid=<?php echo $row->id; ?>"><?php echo $row->name; ?></a><?php if ($_SESSION['s_default_ip_address_domains'] == $row->id) { |
|
222 | + echo '<strong>*</strong>'; |
|
223 | +} |
|
224 | +?><?php if ($_SESSION['s_default_ip_address_ssl'] == $row->id) { |
|
225 | + echo '<strong>^</strong>'; |
|
226 | +} |
|
227 | +?> |
|
222 | 228 | </td> |
223 | 229 | <td> |
224 | 230 | <a href="edit/ip-address.php?ipid=<?php echo $row->id; ?>"><?php echo $row->ip; ?></a> |
@@ -216,7 +216,13 @@ |
||
216 | 216 | <tr> |
217 | 217 | <td></td> |
218 | 218 | <td> |
219 | - <a href="edit/category.php?pcid=<?php echo $row->id; ?>"><?php echo $row->name; ?></a><?php if ($_SESSION['s_default_category_domains'] == $row->id) echo '<strong>*</strong>'; ?><?php if ($_SESSION['s_default_category_ssl'] == $row->id) echo '<strong>^</strong>'; ?> |
|
219 | + <a href="edit/category.php?pcid=<?php echo $row->id; ?>"><?php echo $row->name; ?></a><?php if ($_SESSION['s_default_category_domains'] == $row->id) { |
|
220 | + echo '<strong>*</strong>'; |
|
221 | +} |
|
222 | +?><?php if ($_SESSION['s_default_category_ssl'] == $row->id) { |
|
223 | + echo '<strong>^</strong>'; |
|
224 | +} |
|
225 | +?> |
|
220 | 226 | </td> |
221 | 227 | <td> |
222 | 228 | <a href="edit/category.php?pcid=<?php echo $row->id; ?>"><?php echo $row->stakeholder; ?></a> |
@@ -109,8 +109,12 @@ |
||
109 | 109 | |
110 | 110 | } else { |
111 | 111 | |
112 | - if ($new_initial_fee == '') $_SESSION['s_message_danger'] .= "Enter the initial fee<BR>"; |
|
113 | - if ($new_renewal_fee == '') $_SESSION['s_message_danger'] .= "Enter the renewal fee<BR>"; |
|
112 | + if ($new_initial_fee == '') { |
|
113 | + $_SESSION['s_message_danger'] .= "Enter the initial fee<BR>"; |
|
114 | + } |
|
115 | + if ($new_renewal_fee == '') { |
|
116 | + $_SESSION['s_message_danger'] .= "Enter the renewal fee<BR>"; |
|
117 | + } |
|
114 | 118 | |
115 | 119 | } |
116 | 120 |