@@ -62,7 +62,8 @@ discard block |
||
| 62 | 62 | </tbdoy> |
| 63 | 63 | </table> |
| 64 | 64 | </div> |
| 65 | - <?php else: ?> |
|
| 65 | + <?php else { |
|
| 66 | + : ?> |
|
| 66 | 67 | <div id="so-table-loading" class="so-datatables"> |
| 67 | 68 | <div class="lds-css ng-scope"> |
| 68 | 69 | <div class="lds-ripple"> |
@@ -71,7 +72,9 @@ discard block |
||
| 71 | 72 | </div> |
| 72 | 73 | </div> |
| 73 | 74 | </div> |
| 74 | - <?php endif; ?> |
|
| 75 | + <?php endif; |
|
| 76 | +} |
|
| 77 | +?> |
|
| 75 | 78 | <div id="so-table-container" class="so-datatables" style="display: none;"> |
| 76 | 79 | <table id="so-datalog" class="cell-border compact stripe responsive" cellspacing="0" width="100%"> |
| 77 | 80 | <thead> |
@@ -304,9 +304,12 @@ |
||
| 304 | 304 | <div> |
| 305 | 305 | <?php if ($this->mode === 'demo') : ?> |
| 306 | 306 | <code id="code1" style="display: none">* * * * * root bash your_project_folder/vendor/shieldon/bin/iptables_bridge.sh --watch=your_watching_folder >> /var/log/shieldon.log 2>&1</code> |
| 307 | - <?php else: ?> |
|
| 307 | + <?php else { |
|
| 308 | + : ?> |
|
| 308 | 309 | <code id="code1" style="display: none">* * * * * root bash <?php echo realpath(__DIR__ . '/../../../bin/iptables_bridge.sh') ?> --watch=<span id="iptables-watch-folder"></span> >> /var/log/shieldon.log 2>&1</code> |
| 309 | - <?php endif; ?> |
|
| 310 | + <?php endif; |
|
| 311 | +} |
|
| 312 | +?> |
|
| 310 | 313 | |
| 311 | 314 | <textarea id="code2" class="form-control" rows="4" style="font-size: 12px; font-family: monospace;"></textarea> |
| 312 | 315 | </div><br /> |
@@ -263,13 +263,16 @@ |
||
| 263 | 263 | <?php endif; ?> |
| 264 | 264 | </span> |
| 265 | 265 | </div> |
| 266 | - <?php else: ?> |
|
| 266 | + <?php else { |
|
| 267 | + : ?> |
|
| 267 | 268 | <div class="icon-box"> |
| 268 | 269 | <span class="message-icon"> |
| 269 | 270 | <i class="fas fa-exclamation-circle"></i> |
| 270 | 271 | </span> |
| 271 | 272 | </div> |
| 272 | - <?php endif; ?> |
|
| 273 | + <?php endif; |
|
| 274 | +} |
|
| 275 | +?> |
|
| 273 | 276 | </div> |
| 274 | 277 | <button type="button" class="close" data-dismiss="modal" aria-label="Close"> |
| 275 | 278 | <span aria-hidden="true">×</span> |
@@ -67,7 +67,8 @@ discard block |
||
| 67 | 67 | </tbdoy> |
| 68 | 68 | </table> |
| 69 | 69 | </div> |
| 70 | - <?php else: ?> |
|
| 70 | + <?php else { |
|
| 71 | + : ?> |
|
| 71 | 72 | <div id="so-table-loading" class="so-datatables"> |
| 72 | 73 | <div class="lds-css ng-scope"> |
| 73 | 74 | <div class="lds-ripple"> |
@@ -76,7 +77,9 @@ discard block |
||
| 76 | 77 | </div> |
| 77 | 78 | </div> |
| 78 | 79 | </div> |
| 79 | - <?php endif; ?> |
|
| 80 | + <?php endif; |
|
| 81 | +} |
|
| 82 | +?> |
|
| 80 | 83 | <?php if (!empty($rule_list)) : ?> |
| 81 | 84 | <div id="so-table-container" class="so-datatables" style="display: none;"> |
| 82 | 85 | <table id="so-datalog" class="cell-border compact stripe responsive" cellspacing="0" width="100%"> |
@@ -42,8 +42,11 @@ discard block |
||
| 42 | 42 | <div class="nums"> |
| 43 | 43 | <?php if (!empty($filter_cookie)) : ?> |
| 44 | 44 | <a href="#" onclick="displayLogs('frequency');"><?php echo $filter_cookie; ?></a> |
| 45 | - <?php else : ?> |
|
| 46 | - <?php echo $filter_cookie; ?> |
|
| 45 | + <?php else { |
|
| 46 | + : ?> |
|
| 47 | + <?php echo $filter_cookie; |
|
| 48 | +} |
|
| 49 | +?> |
|
| 47 | 50 | <?php endif; ?> |
| 48 | 51 | </div> |
| 49 | 52 | <div class="note"><?php _e('panel', 'overview_note_cookie', 'Check whether visitors can create cookies with JavaScript'); ?></div> |
@@ -58,8 +61,11 @@ discard block |
||
| 58 | 61 | <div class="nums"> |
| 59 | 62 | <?php if (!empty($filter_session)) : ?> |
| 60 | 63 | <a href="#" onclick="displayLogs('session');"><?php echo $filter_session; ?></a> |
| 61 | - <?php else : ?> |
|
| 62 | - <?php echo $filter_session; ?> |
|
| 64 | + <?php else { |
|
| 65 | + : ?> |
|
| 66 | + <?php echo $filter_session; |
|
| 67 | +} |
|
| 68 | +?> |
|
| 63 | 69 | <?php endif; ?> |
| 64 | 70 | </div> |
| 65 | 71 | <div class="note"><?php _e('panel', 'overview_note_session', 'Detect whether multiple sessions were created by the same visitor.'); ?></div> |
@@ -74,8 +80,11 @@ discard block |
||
| 74 | 80 | <div class="nums"> |
| 75 | 81 | <?php if (!empty($filter_frequency)) : ?> |
| 76 | 82 | <a href="#" onclick="displayLogs('frequency');"><?php echo $filter_frequency; ?></a> |
| 77 | - <?php else : ?> |
|
| 78 | - <?php echo $filter_frequency; ?> |
|
| 83 | + <?php else { |
|
| 84 | + : ?> |
|
| 85 | + <?php echo $filter_frequency; |
|
| 86 | +} |
|
| 87 | +?> |
|
| 79 | 88 | <?php endif; ?> |
| 80 | 89 | </div> |
| 81 | 90 | <div class="note"><?php _e('panel', 'overview_note_frequency', 'Check how often a visitor views pages.'); ?></div> |
@@ -90,8 +99,11 @@ discard block |
||
| 90 | 99 | <div class="nums"> |
| 91 | 100 | <?php if (!empty($filter_referer)) : ?> |
| 92 | 101 | <a href="#" onclick="displayLogs('referer');"><?php echo $filter_referer; ?></a> |
| 93 | - <?php else : ?> |
|
| 94 | - <?php echo $filter_referer; ?> |
|
| 102 | + <?php else { |
|
| 103 | + : ?> |
|
| 104 | + <?php echo $filter_referer; |
|
| 105 | +} |
|
| 106 | +?> |
|
| 95 | 107 | <?php endif; ?> |
| 96 | 108 | </div> |
| 97 | 109 | <div class="note"><?php _e('panel', 'overview_note_referer', 'Check HTTP referrer information.'); ?></div> |
@@ -116,8 +128,11 @@ discard block |
||
| 116 | 128 | <div class="nums"> |
| 117 | 129 | <?php if (!empty($component_ip)) : ?> |
| 118 | 130 | <a href="#" onclick="displayLogs('ip');"><?php echo $component_ip; ?></a> |
| 119 | - <?php else : ?> |
|
| 120 | - <?php echo $component_ip; ?> |
|
| 131 | + <?php else { |
|
| 132 | + : ?> |
|
| 133 | + <?php echo $component_ip; |
|
| 134 | +} |
|
| 135 | +?> |
|
| 121 | 136 | <?php endif; ?> |
| 122 | 137 | </div> |
| 123 | 138 | <div class="note"><?php _e('panel', 'operation_note_ip', 'Advanced IP address mangement.'); ?></div> |
@@ -132,8 +147,11 @@ discard block |
||
| 132 | 147 | <div class="nums"> |
| 133 | 148 | <?php if (!empty($component_trustedbot)) : ?> |
| 134 | 149 | <a href="#" onclick="displayLogs('trustedbot');"><?php echo $component_trustedbot; ?></a> |
| 135 | - <?php else : ?> |
|
| 136 | - <?php echo $component_trustedbot; ?> |
|
| 150 | + <?php else { |
|
| 151 | + : ?> |
|
| 152 | + <?php echo $component_trustedbot; |
|
| 153 | +} |
|
| 154 | +?> |
|
| 137 | 155 | <?php endif; ?> |
| 138 | 156 | </div> |
| 139 | 157 | <div class="note"><?php _e('panel', 'operation_note_trustedbot', 'Allow popular search engines to crawl your website.'); ?></div> |
@@ -148,8 +166,11 @@ discard block |
||
| 148 | 166 | <div class="nums"> |
| 149 | 167 | <?php if (!empty($component_header)) : ?> |
| 150 | 168 | <a href="#" onclick="displayLogs('header');"><?php echo $component_header; ?></a> |
| 151 | - <?php else : ?> |
|
| 152 | - <?php echo $component_header; ?> |
|
| 169 | + <?php else { |
|
| 170 | + : ?> |
|
| 171 | + <?php echo $component_header; |
|
| 172 | +} |
|
| 173 | +?> |
|
| 153 | 174 | <?php endif; ?> |
| 154 | 175 | </div> |
| 155 | 176 | <div class="note"><?php _e('panel', 'operation_note_header', 'Analyze visitors header information.'); ?></div> |
@@ -164,8 +185,11 @@ discard block |
||
| 164 | 185 | <div class="nums"> |
| 165 | 186 | <?php if (!empty($component_rdns)) : ?> |
| 166 | 187 | <a href="#" onclick="displayLogs('rdns');"><?php echo $component_rdns; ?></a> |
| 167 | - <?php else : ?> |
|
| 168 | - <?php echo $component_rdns; ?> |
|
| 188 | + <?php else { |
|
| 189 | + : ?> |
|
| 190 | + <?php echo $component_rdns; |
|
| 191 | +} |
|
| 192 | +?> |
|
| 169 | 193 | <?php endif; ?> |
| 170 | 194 | </div> |
| 171 | 195 | <div class="note"><?php _e('panel', 'operation_note_rdns', 'Identify visitor IP resolved hostname (RDNS).'); ?></div> |
@@ -180,8 +204,11 @@ discard block |
||
| 180 | 204 | <div class="nums"> |
| 181 | 205 | <?php if (!empty($component_useragent)) : ?> |
| 182 | 206 | <a href="#" onclick="displayLogs('useragent');"><?php echo $component_useragent; ?></a> |
| 183 | - <?php else : ?> |
|
| 184 | - <?php echo $component_useragent; ?> |
|
| 207 | + <?php else { |
|
| 208 | + : ?> |
|
| 209 | + <?php echo $component_useragent; |
|
| 210 | +} |
|
| 211 | +?> |
|
| 185 | 212 | <?php endif; ?> |
| 186 | 213 | </div> |
| 187 | 214 | <div class="note"><?php _e('panel', 'operation_note_useragent', 'Analysis user-agent information from visitors.'); ?></div> |