File tree Expand file tree Collapse file tree 4 files changed +16
-4
lines changed Expand file tree Collapse file tree 4 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 1
1
# Email verification=Changes if users have to verify their email after registration.
2
2
# =REGISTER_AUTH either auth or verified. If auth is selected, no verification is required. Default is verified.
3
- REGISTER_AUTH = verified
3
+ REGISTER_AUTH = auth
4
4
5
5
# Internal notifications=Changes if certain messages should be displayed or not.
6
6
# =NOTIFY_EVENTS notifies admins if an important event is happening, such as polls about the future of this project or security vulnerabilities.
@@ -15,10 +15,15 @@ DISPLAY_CREDIT=true
15
15
# =(e.g. 'admin' without the '@')
16
16
HOME_URL =
17
17
18
+ # ALLOW_USER_HTML=Changes if users are able to use custom HTML in their descriptions. Allows for more customized texts.
19
+ # =Either true or false. USE WITH CAUTION! If true, this enables users to use custom code, including JavaScript.
20
+ # =It is recommended to only turn this option on if you trust your users or only use this instance for yourself.
21
+ ALLOW_USER_HTML = false
22
+
18
23
# App Settings=Changes settings regarding your LittleLink Custom installation. You probably only want to change the App Name setting.
19
24
# =App_Name changes the displayed name for the App in the title, for example.
20
25
APP_NAME = " LittleLink Custom"
21
- APP_KEY =
26
+ APP_KEY = base64:YUFWn5swwXryVBujHaOdiPqNvLEsC7RZs8df3rb/DJs=
22
27
# =The APP_URL should be left empty under most circumstances. This setting is not required for LittleLink Custom, and you should only change this if required for your setup.
23
28
APP_URL =
24
29
Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ function get_operating_system() {
147
147
<h1 class =" fadein" >{{ $info -> name } } </h1 >
148
148
149
149
<!-- Short Bio -->
150
- <center ><p style =" width : 50% ; min-width : 300px ;" class =" fadein" >{{ $info -> littlelink_description } } </p ></center >
150
+ <center ><p style =" width : 50% ; min-width : 300px ;" class =" fadein" >@if ( env ( ' ALLOW_USER_HTML ' ) === true ) {!! $info -> littlelink_description ! !} @else {{ $info -> littlelink_description } }@endif </p ></center >
151
151
152
152
@endforeach
153
153
<!-- Buttons -->
Original file line number Diff line number Diff line change 2
2
3
3
@section (' content' )
4
4
5
+ @if (env (' ALLOW_USER_HTML' ) === true ) <script src =" {{ asset (' resources/ckeditor/ckeditor.js' ) } }" ></script > @endif
6
+
5
7
<h2 class =" mb-4" ><i class =" bi bi-file-earmark-break" > Page</i ></h2 >
6
8
7
9
<form action =" {{ route (' editPage' ) } }" enctype =" multipart/form-data" method =" post" >
41
43
42
44
<div class =" form-group col-lg-8" >
43
45
<label >Page Description</label >
44
- <textarea class =" form-control" name =" pageDescription" rows =" 3" >{{ $page -> littlelink_description ?? ' ' } } </textarea >
46
+ <textarea class =" form-control @if ( env ( ' ALLOW_USER_HTML ' ) === true ) ckeditor @endif " name =" pageDescription" rows =" 3" >{{ $page -> littlelink_description ?? ' ' } } </textarea >
45
47
</div >
46
48
@endforeach
47
49
<button type =" submit" class =" mt-3 ml-3 btn btn-info" >Submit</button >
Original file line number Diff line number Diff line change @@ -15,6 +15,11 @@ DISPLAY_CREDIT=true
15
15
#=(e.g. 'admin' without the '@')
16
16
HOME_URL=
17
17
18
+ #ALLOW_USER_HTML=Changes if users are able to use custom HTML in their descriptions. Allows for more customized texts.
19
+ #=Either true or false. USE WITH CAUTION! If true, this enables users to use custom code, including JavaScript.
20
+ #=It is recommended to only turn this option on if you trust your users or only use this instance for yourself.
21
+ ALLOW_USER_HTML=false
22
+
18
23
#App Settings=Changes settings regarding your LittleLink Custom installation. You probably only want to change the App Name setting.
19
24
#=App_Name changes the displayed name for the App in the title, for example.
20
25
APP_NAME="LittleLink Custom"
You can’t perform that action at this time.
0 commit comments