Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
fusiondirectory
fusiondirectory
Commits
2713ed39
Verified
Commit
2713ed39
authored
3 weeks ago
by
dockx thibault
Browse files
Options
Download
Patches
Plain Diff
(setup) - fixes setup p1
backup and some fixes in setup.
parent
b3387ed3
core-php8
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
html/setup.php
+1
-5
html/setup.php
setup/class_setupStep.inc
+24
-0
setup/class_setupStep.inc
with
25 additions
and
5 deletions
+25
-5
html/setup.php
+
1
−
5
View file @
2713ed39
...
@@ -59,11 +59,7 @@ ini_set("session.gc_maxlifetime", 24 * 60 * 60);
...
@@ -59,11 +59,7 @@ ini_set("session.gc_maxlifetime", 24 * 60 * 60);
session
::
start
();
session
::
start
();
session
::
set
(
'DEBUGLEVEL'
,
0
);
session
::
set
(
'DEBUGLEVEL'
,
0
);
try
{
CSRFProtection
::
check
();
CSRFProtection
::
check
();
}
catch
(
FusionDirectoryException
$e
)
{
}
/* Attribute initialization, reset errors */
/* Attribute initialization, reset errors */
reset_errors
();
reset_errors
();
...
...
This diff is collapsed.
Click to expand it.
setup/class_setupStep.inc
+
24
−
0
View file @
2713ed39
...
@@ -42,6 +42,30 @@ class setupStep extends simplePlugin
...
@@ -42,6 +42,30 @@ class setupStep extends simplePlugin
$this
->
update_strings
();
$this
->
update_strings
();
}
}
public
function
__serialize
():
array
{
return
[
's_short_name'
=>
$this
->
s_short_name
,
's_title'
=>
$this
->
s_title
,
's_description'
=>
$this
->
s_description
,
'is_active'
=>
$this
->
is_active
,
'is_enabled'
=>
$this
->
is_enabled
,
'is_completed'
=>
$this
->
is_completed
,
'header_image'
=>
$this
->
header_image
,
];
}
public
function
__unserialize
(
array
$data
):
void
{
$this
->
s_short_name
=
$data
[
's_short_name'
]
??
'Still undefined'
;
$this
->
s_title
=
$data
[
's_title'
]
??
'Still undefined'
;
$this
->
s_description
=
$data
[
's_description'
]
??
'Still undefined'
;
$this
->
is_active
=
$data
[
'is_active'
]
??
FALSE
;
$this
->
is_enabled
=
$data
[
'is_enabled'
]
??
FALSE
;
$this
->
is_completed
=
$data
[
'is_completed'
]
??
FALSE
;
$this
->
header_image
=
$data
[
'header_image'
]
??
''
;
}
function
update_strings
()
function
update_strings
()
{
{
die
(
'abstract method'
);
die
(
'abstract method'
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets