Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
ISPConfig 3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
isp
ISPConfig 3
Commits
6d826cf0
Commit
6d826cf0
authored
13 years ago
by
Falko Timme
Browse files
Options
Downloads
Patches
Plain Diff
- Fixed #1799.
parent
305b98ec
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
interface/web/help/lib/module.conf.php
+17
-8
17 additions, 8 deletions
interface/web/help/lib/module.conf.php
interface/web/help/version.php
+4
-2
4 additions, 2 deletions
interface/web/help/version.php
with
21 additions
and
10 deletions
interface/web/help/lib/module.conf.php
+
17
−
8
View file @
6d826cf0
...
@@ -10,10 +10,15 @@ $module['title'] = 'top_menu_help';
...
@@ -10,10 +10,15 @@ $module['title'] = 'top_menu_help';
$module
[
'template'
]
=
'module.tpl.htm'
;
$module
[
'template'
]
=
'module.tpl.htm'
;
//* The page that is displayed when the module is loaded. the path must is relative to the web directory
//* The page that is displayed when the module is loaded. the path must is relative to the web directory
if
(
isset
(
$_GET
[
'go2_faq_sections_list'
]))
if
(
isset
(
$_GET
[
'go2_faq_sections_list'
]))
{
$module
[
'startpage'
]
=
'help/faq_sections_list.php'
;
$module
[
'startpage'
]
=
'help/faq_sections_list.php'
;
else
}
else
{
$module
[
'startpage'
]
=
'help/version.php'
;
if
(
$_SESSION
[
's'
][
'user'
][
'typ'
]
==
'admin'
)
{
$module
[
'startpage'
]
=
'help/version.php'
;
}
else
{
$module
[
'startpage'
]
=
'help/support_message_list.php'
;
}
}
//* The width of the tab. Normally you should leave this empty and let the browser define the width automatically.
//* The width of the tab. Normally you should leave this empty and let the browser define the width automatically.
$module
[
'tab_width'
]
=
''
;
$module
[
'tab_width'
]
=
''
;
...
@@ -52,24 +57,28 @@ if($_SESSION['s']['user']['typ'] == 'admin') {
...
@@ -52,24 +57,28 @@ if($_SESSION['s']['user']['typ'] == 'admin') {
$itemsfaq
[]
=
array
(
'title'
=>
'Manage Sections'
,
$itemsfaq
[]
=
array
(
'title'
=>
'Manage Sections'
,
'target'
=>
'content'
,
'target'
=>
'content'
,
'link'
=>
'help/faq_sections_list.php'
);
'link'
=>
'help/faq_sections_list.php'
);
$module
[
'nav'
][]
=
array
(
'title'
=>
'FAQ'
,
'open'
=>
1
,
'items'
=>
$itemsfaq
);
}
}
else
else
{
//* the user
{
//* the user
$sql
=
"SELECT * FROM help_faq_sections"
;
$sql
=
"SELECT * FROM help_faq_sections"
;
$res
=
$app
->
db
->
queryAllRecords
(
$sql
);
$res
=
$app
->
db
->
queryAllRecords
(
$sql
);
//* all the content sections
//* all the content sections
if
(
is_array
(
$res
))
{
if
(
is_array
(
$res
)
&&
!
empty
(
$res
)
)
{
foreach
(
$res
as
$v
)
{
foreach
(
$res
as
$v
)
{
$itemsfaq
[]
=
array
(
'title'
=>
$v
[
'hfs_name'
],
$itemsfaq
[]
=
array
(
'title'
=>
$v
[
'hfs_name'
],
'target'
=>
'content'
,
'target'
=>
'content'
,
'link'
=>
'help/faq_list.php?hfs_id='
.
$v
[
'hfs_id'
]);
'link'
=>
'help/faq_list.php?hfs_id='
.
$v
[
'hfs_id'
]);
}
}
// Display 'FAQ' menu only if there are sections
$module
[
'nav'
][]
=
array
(
'title'
=>
'FAQ'
,
'open'
=>
1
,
'items'
=>
$itemsfaq
);
}
}
}
}
$module
[
'nav'
][]
=
array
(
'title'
=>
'FAQ'
,
'open'
=>
1
,
'items'
=>
$itemsfaq
);
//* -- end of the FAQ menu section
//* -- end of the FAQ menu section
...
...
This diff is collapsed.
Click to expand it.
interface/web/help/version.php
+
4
−
2
View file @
6d826cf0
...
@@ -43,8 +43,10 @@ require_once('../../lib/config.inc.php');
...
@@ -43,8 +43,10 @@ require_once('../../lib/config.inc.php');
require_once
(
'../../lib/app.inc.php'
);
require_once
(
'../../lib/app.inc.php'
);
//* Check permissions for module
//* Check permissions for module
$app
->
auth
->
check_module_permissions
(
'
admin
'
);
$app
->
auth
->
check_module_permissions
(
'
help
'
);
echo
'<p> </p><p> </p><p class="frmTextHead" style="text-align:center;">'
.
$app
->
lng
(
'ISPConfig Version:'
)
.
' '
.
ISPC_APP_VERSION
.
'</p>'
;
if
(
$_SESSION
[
's'
][
'user'
][
'typ'
]
==
'admin'
)
{
echo
'<p> </p><p> </p><p class="frmTextHead" style="text-align:center;">'
.
$app
->
lng
(
'ISPConfig Version:'
)
.
' '
.
ISPC_APP_VERSION
.
'</p>'
;
}
?>
?>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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