File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -210,13 +210,13 @@ function URL_event_exists(string $url): bool
210
210
211
211
212
212
<a class=" nav-link " href=" {{ $EventJson [' link' ] } }" target=" {{ $EventJson [' target' ] } }" ><mark onMouseOver=" {{ $EventJson [' hoveron' ] } }" onMouseOut=" {{ $EventJson [' hoveroff' ] } }" style=" {{ $EventJson [' style' ] } }" title=" {{ $EventJson [' hover' ] } }" >{{ $EventJson [' title' ] } } </mark></a> <a href=" ?hide_event " title=" Click to hide this message " >❌</a>
213
- <?php
214
- if (strpos($_SERVER['REQUEST_URI'], " hide_event " ) !== false){
215
- setcookie(" HideEvent " ,$_COOKIE['ID'] = $EventJson['id'], time()+60*60*24*5, " /" );
216
- header('Location: ' . url('/panel/index'));
217
- exit();
218
- }
219
- ?>
213
+ <?php
214
+ if (strpos ($_SERVER [' REQUEST_URI' ], " hide_event" ) !== false ){
215
+ setcookie (" HideEvent" ,$_COOKIE [' ID' ] = $EventJson [' id' ], time ()+ 60 * 60 * 24 * 5 , " /" );
216
+ header (' Location: ' . url (' /panel/index' ));
217
+ exit ();
218
+ }
219
+ ? >
220
220
</div>
221
221
</nav>
222
222
@endif
You can’t perform that action at this time.
0 commit comments