File tree Expand file tree Collapse file tree 7 files changed +17
-11
lines changed Expand file tree Collapse file tree 7 files changed +17
-11
lines changed Original file line number Diff line number Diff line change
1
+ <?php use App\Models\ Link ; ? >
1
2
<?php
2
3
/**
3
4
* Website: http://sourceforge.net/projects/simplehtmldom/
@@ -2434,11 +2435,16 @@ function get_headers($url,$format=0)
2434
2435
2435
2436
? >
2436
2437
2438
+
2437
2439
<?php
2438
- if ($_SERVER [' QUERY_STRING' ] !== ' ' and $_SERVER [' REMOTE_ADDR' ] == $_SERVER [' SERVER_ADDR' ]){
2440
+ if ($_SERVER [' QUERY_STRING' ] !== ' ' ){
2441
+ try {
2442
+ $link = Link:: find ($_SERVER [' QUERY_STRING' ]);
2443
+ $link = $link -> link ;
2439
2444
header (" HTTP/1.1 302 Found" );
2440
- $header = getFavIcon ($_SERVER [ ' QUERY_STRING ' ] );
2445
+ $header = getFavIcon ($link );
2441
2446
header (" Location: $header " );
2442
2447
exit ();
2448
+ } catch (exception $e ) {exit ();}
2443
2449
}
2444
2450
? >
Original file line number Diff line number Diff line change 5
5
6
6
<a class =" button button-custom button button-hover icon-hover" rel =" noopener noreferrer nofollow" href =" {{ route (' clickNumber' ) . ' /' . $link -> id . ' /' . $link -> link } }" @if (theme (' open_links_in_same_tab' ) != " true" )target =" _blank" @endif >
7
7
@if ($params -> GetSiteIcon ?? true )
8
- <img alt =" button-icon" class =" icon hvr-icon" src =" {{ url (' ico' ). ' ?' . $BaseURL } }" loading =" lazy" >
8
+ <img alt =" button-icon" class =" icon hvr-icon" src =" {{ asset ( ' studio/favicon/favicon.gif ' ) } } " onload = " this.src=' {{ url (' ico' ). ' ?' . $BaseURL } }' " loading =" lazy" >
9
9
@endif
10
10
11
11
{{ $link -> title } }
Original file line number Diff line number Diff line change @@ -213,9 +213,9 @@ function themeAsset($path){
213
213
@elseif ($button [' button' ] === " buy me a coffee" )
214
214
<div style =" --delay : {{ $initial ++ }}s " class =" button-entrance" ><a class =" button button-coffee button button-hover icon-hover" rel =" noopener noreferrer nofollow" href =" {{ $button [' link' ] } }" @if (theme (' open_links_in_same_tab' ) != " true" )target =" _blank" @endif ><img alt =" button-icon" class =" icon hvr-icon" src =" @if (theme (' use_custom_icons' ) == " true" ){{ url (' themes/' . $GLOBALS [' themeName' ] . ' /extra/custom-icons' ) } } /coffee{{ theme (' custom_icon_extension' )} } @else {{ asset (' \/littlelink/icons\/' ) } } coffee.svg @endif " >Buy me a Coffee</a ></div >
215
215
@elseif ($button [' button' ] === " custom_website" and ($button [' custom_css' ] === " " or $button [' custom_css' ] === " NULL" ) or (theme (' allow_custom_buttons' ) == " false" and $button [' button' ] === " custom_website" ) )
216
- <div style =" --delay : {{ $initial ++ }}s " class =" button-entrance" ><a class =" button button-custom_website button button-hover icon-hover" rel =" noopener noreferrer nofollow" href =" {{ $button [' link' ] } }" @if (theme (' open_links_in_same_tab' ) != " true" )target =" _blank" @endif ><img alt =" button-icon" class =" icon hvr-icon" src =" {{ url (' ico' ). ' ?' . $button [' link' ]} }" loading =" lazy" >{{ $button [' title' ] } } </a ></div >
216
+ <div style =" --delay : {{ $initial ++ }}s " class =" button-entrance" ><a class =" button button-custom_website button button-hover icon-hover" rel =" noopener noreferrer nofollow" href =" {{ $button [' link' ] } }" @if (theme (' open_links_in_same_tab' ) != " true" )target =" _blank" @endif ><img alt =" button-icon" class =" icon hvr-icon" src =" {{ asset ( ' studio/favicon/favicon.gif ' ) } } " onload = " this.src=' {{ url (' ico' ). ' ?' . $button [' link' ]} }' " loading =" lazy" >{{ $button [' title' ] } } </a ></div >
217
217
@elseif ($button [' button' ] === " custom_website" and $button [' custom_css' ] != " " )
218
- <div style =" --delay : {{ $initial ++ }}s " class =" button-entrance" ><a class =" button button-hover icon-hover" style =" {{ $button [' custom_css' ] } }" rel =" noopener noreferrer nofollow" href =" {{ $button [' link' ] } }" @if (theme (' open_links_in_same_tab' ) != " true" )target =" _blank" @endif ><img alt =" button-icon" class =" icon hvr-icon" src =" {{ url (' ico' ). ' ?' . $button [' link' ]} }" loading =" lazy" >{{ $button [' title' ] } } </a ></div >
218
+ <div style =" --delay : {{ $initial ++ }}s " class =" button-entrance" ><a class =" button button-hover icon-hover" style =" {{ $button [' custom_css' ] } }" rel =" noopener noreferrer nofollow" href =" {{ $button [' link' ] } }" @if (theme (' open_links_in_same_tab' ) != " true" )target =" _blank" @endif ><img alt =" button-icon" class =" icon hvr-icon" src =" {{ asset ( ' studio/favicon/favicon.gif ' ) } } " onload = " this.src=' {{ url (' ico' ). ' ?' . $button [' link' ]} }' " loading =" lazy" >{{ $button [' title' ] } } </a ></div >
219
219
@elseif ($button [' button' ] === " space" )
220
220
<?php
221
221
if (is_numeric ($button [' title' ]) and $button [' title' ] < 10 )
Original file line number Diff line number Diff line change @@ -275,9 +275,9 @@ function get_operating_system() {
275
275
@elseif ($link -> name === " mastodon" )
276
276
<div style =" --delay : {{ $initial ++ }}s " class =" button-entrance" ><a class =" button button-{{ $link -> name } } button button-hover icon-hover" rel =" me noopener noreferrer nofollow" href =" {{ route (' clickNumber' ) . ' /' . $link -> id } }" @if (theme (' open_links_in_same_tab' ) != " true" )target =" _blank" @endif ><img alt =" button-icon" class =" icon hvr-icon" src =" @if (theme (' use_custom_icons' ) == " true" ){{ url (' themes/' . $GLOBALS [' themeName' ] . ' /extra/custom-icons' ) } } /{{ $linkName } }{{ theme (' custom_icon_extension' )} } @else {{ asset (' \/littlelink/icons\/' ) . $linkName } } .svg @endif " >{{ $link -> title } } </a ></div >
277
277
@elseif ($link -> name === " custom_website" and $link -> custom_css === " " or $link -> custom_css === " NULL" or (theme (' allow_custom_buttons' ) == " false" and $link -> name === " custom" ) )
278
- <div style =" --delay : {{ $initial ++ }}s " class =" button-entrance" ><a class =" button button-custom_website button button-hover icon-hover" rel =" noopener noreferrer nofollow" href =" {{ route (' clickNumber' ) . ' /' . $link -> id } }" @if (theme (' open_links_in_same_tab' ) != " true" )target =" _blank" @endif ><img alt =" button-icon" class =" icon hvr-icon" src =" {{ url (' ico' ). ' ?' . $link -> link } }" loading =" lazy" >{{ $link -> title } } </a ></div >
278
+ <div style =" --delay : {{ $initial ++ }}s " class =" button-entrance" ><a class =" button button-custom_website button button-hover icon-hover" rel =" noopener noreferrer nofollow" href =" {{ route (' clickNumber' ) . ' /' . $link -> id } }" @if (theme (' open_links_in_same_tab' ) != " true" )target =" _blank" @endif ><img alt =" button-icon" class =" icon hvr-icon" src =" {{ url (' ico' ). ' ?' . $link -> id } }" loading =" lazy" >{{ $link -> title } } </a ></div >
279
279
@elseif ($link -> name === " custom_website" and $link -> custom_css != " " )
280
- <div style =" --delay : {{ $initial ++ }}s " class =" button-entrance" ><a class =" button button-hover icon-hover" style =" {{ $link -> custom_css } }" rel =" noopener noreferrer nofollow" href =" {{ route (' clickNumber' ) . ' /' . $link -> id } }" @if (theme (' open_links_in_same_tab' ) != " true" )target =" _blank" @endif ><img alt =" button-icon" class =" icon hvr-icon" src =" {{ url (' ico' ). ' ?' . $link -> link } }" loading =" lazy" >{{ $link -> title } } </a ></div >
280
+ <div style =" --delay : {{ $initial ++ }}s " class =" button-entrance" ><a class =" button button-hover icon-hover" style =" {{ $link -> custom_css } }" rel =" noopener noreferrer nofollow" href =" {{ route (' clickNumber' ) . ' /' . $link -> id } }" @if (theme (' open_links_in_same_tab' ) != " true" )target =" _blank" @endif ><img alt =" button-icon" class =" icon hvr-icon" src =" {{ url (' ico' ). ' ?' . $link -> id } }" loading =" lazy" >{{ $link -> title } } </a ></div >
281
281
@elseif ($link -> name === " space" )
282
282
<?php
283
283
if (is_numeric ($link -> title ) and $link -> title < 10 )
Original file line number Diff line number Diff line change 216
216
@if ($buttonId == 1 )
217
217
<center ><div id =" sample" style =" --delay : 1s ; border-radius :8px !important ; max-width : 400px ; width : 80% ; class =" button-entrance " ><div class=" button-demo button hvr-grow hvr-icon-wobble-vertical " ><img class=" icon hvr-icon " src=" {{ asset (' \/littlelink/icons\/' ) . ' custom' } }.svg " >{{ $title } } </div></div></center>
218
218
@else
219
- <center><div id=" sample " style=" --delay: 1s; border-radius:8px !important; max-width: 400px; width: 80%; class =" button-entrance" ><div class =" button-demo button hvr-grow hvr-icon-wobble-vertical" ><img class =" wicon hvr-icon" src =" {{ url (' ico' ). ' ?' . $link } }" loading =" lazy" >{{ $title } } </div ></div ></center >
219
+ <center><div id=" sample " style=" --delay: 1s; border-radius:8px !important; max-width: 400px; width: 80%; class =" button-entrance" ><div class =" button-demo button hvr-grow hvr-icon-wobble-vertical" ><img class =" wicon hvr-icon" src =" {{ asset ( ' studio/favicon/favicon.gif ' ) } } " onload = " this.src=' {{ url (' ico' ). ' ?' . $link } }' " loading =" lazy" >{{ $title } } </div ></div ></center >
220
220
@endif
221
221
222
222
</section >
255
255
@if ($custom_css === " " or $custom_css === " NULL" and $buttonId == 1 )
256
256
<center ><div style =" --delay : 1s " class =" button-entrance" ><div class =" button-demo button-custom button hvr-grow hvr-icon-wobble-vertical" ><img class =" icon hvr-icon fa {{ $custom_icon } }" >{{ $title } } </div ></div ></center >
257
257
@elseif ($custom_css === " " or $custom_css === " NULL" and $buttonId == 2 )
258
- <center ><div style =" --delay : 1s " class =" button-entrance" ><div class =" button-custom_website button hvr-grow hvr-icon-wobble-vertical" ><img class =" wicon hvr-icon" src =" {{ url (' ico' ). ' ?' . $link } }" loading =" lazy" >{{ $title } } </div ></div ></center >
258
+ <center ><div style =" --delay : 1s " class =" button-entrance" ><div class =" button-custom_website button hvr-grow hvr-icon-wobble-vertical" ><img class =" wicon hvr-icon" src =" {{ asset ( ' studio/favicon/favicon.gif ' ) } } " onload = " this.src=' {{ url (' ico' ). ' ?' . $link } }' " loading =" lazy" >{{ $title } } </div ></div ></center >
259
259
@elseif ($custom_css != " " and $buttonId == 2 )
260
- <center ><div style =" --delay : 1s " class =" button-entrance" ><div style =" {{ $custom_css } }" class =" button-custom_website button hvr-grow hvr-icon-wobble-vertical" ><img class =" wicon hvr-icon" src =" {{ url (' ico' ). ' ?' . $link } }" loading =" lazy" >{{ $title } } </div ></div ></center >
260
+ <center ><div style =" --delay : 1s " class =" button-entrance" ><div style =" {{ $custom_css } }" class =" button-custom_website button hvr-grow hvr-icon-wobble-vertical" ><img class =" wicon hvr-icon" src =" {{ asset ( ' studio/favicon/favicon.gif ' ) } } " onload = " this.src=' {{ url (' ico' ). ' ?' . $link } }' " loading =" lazy" >{{ $title } } </div ></div ></center >
261
261
@else
262
262
<center ><div style =" --delay : 1s " class =" button-entrance" ><div style =" {{ $custom_css } }" class =" button-demo hvr-grow hvr-icon-wobble-vertical" ><i style =" color : {{$custom_icon}}" class =" icon hvr-icon fa {{ $custom_icon } }" ></i >{{ $title } } </div ></div ></center >
263
263
@endif
Original file line number Diff line number Diff line change 68
68
<span class =' h6' >
69
69
<?php $button = Button:: find ($link -> button_id ); if (isset ($button -> name )){$buttonName = $button -> name ;}else {$buttonName = 0 ;} ? >
70
70
@if ($button -> name == " custom_website" )
71
- <span style =" border : 1px solid #d0d4d7 !important ;border-radius :5px ;background-color :#6c757d ;width :25px !important ;height :25px !important ;" ><img style =" margin-bottom :3px ;margin-left :4px ;margin-right :4px ;max-width :15px ;max-height :15px ;" alt =" button-icon" class =" icon hvr-icon" src =" {{ url (' ico' ). ' ?' . $link -> link } }" loading =" lazy" ></span >
71
+ <span style =" border : 1px solid #d0d4d7 !important ;border-radius :5px ;background-color :#6c757d ;width :25px !important ;height :25px !important ;" ><img style =" margin-bottom :3px ;margin-left :4px ;margin-right :4px ;max-width :15px ;max-height :15px ;" alt =" button-icon" class =" icon hvr-icon" src =" {{ asset ( ' studio/favicon/favicon.gif ' ) } } " onload = " this.src=' {{ url (' ico' ). ' ?' . $link -> link } }' " loading =" lazy" ></span >
72
72
@elseif ($button -> name == " space" )
73
73
<span style =" border : 1px solid #d0d4d7 !important ;border-radius :5px ;background-color :#6c757d ;width :25px !important ;height :25px !important ;" ><i style =" margin-left :2.83px ;margin-right :-1px ;color :#fff ;" class =' bi bi-distribute-vertical' >  ; </i ></span >
74
74
@elseif ($button -> name == " heading" )
You can’t perform that action at this time.
0 commit comments