Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TMP-2023-24-048
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Maneesha Fernando
TMP-2023-24-048
Commits
88cd8d26
Commit
88cd8d26
authored
Oct 03, 2023
by
Maneesha Fernando
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changes
parent
e9b0cd9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
admin-update.php
admin-update.php
+4
-2
No files found.
admin-update.php
View file @
88cd8d26
<?php
<?php
// Check if session is not already started, then start it
.
// Check if session is not already started, then start it
if
(
session_id
()
==
''
||
!
isset
(
$_SESSION
))
{
if
(
session_id
()
==
''
||
!
isset
(
$_SESSION
))
{
session_start
();
session_start
();
}
}
// Check if $_SESSION["type"] is set and not empty
// Check if $_SESSION["type"] is set and not empty
if
(
!
isset
(
$_SESSION
[
"type"
])
||
empty
(
$_SESSION
[
"type"
]))
{
if
(
isset
(
$_SESSION
[
"type"
])
&&
$_SESSION
[
"type"
]
!==
""
)
{
// The session variable "type" is set and not empty
}
else
{
header
(
"location:index.php"
);
header
(
"location:index.php"
);
exit
();
// Add an exit to prevent further execution
exit
();
// Add an exit to prevent further execution
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment