Project

General

Profile

« Previous | Next » 

Revision 1277

Added by Dietmar almost 15 years ago

update headertext

View differences:

index.php
1 1
<?php
2
/*
3
*
4
*                       About WebsiteBaker
5
*
6
* Website Baker is a PHP-based Content Management System (CMS)
7
* designed with one goal in mind: to enable its users to produce websites
8
* with ease.
9
*
10
*                       LICENSE INFORMATION
11
*
12
* WebsiteBaker is free software; you can redistribute it and/or
13
* modify it under the terms of the GNU General Public License
14
* as published by the Free Software Foundation; either version 2
15
* of the License, or (at your option) any later version.
16
*
17
* WebsiteBaker is distributed in the hope that it will be useful,
18
* but WITHOUT ANY WARRANTY; without even the implied warranty of
19
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20
* See the GNU General Public License for more details.
21
*
22
* You should have received a copy of the GNU General Public License
23
* along with this program; if not, write to the Free Software
24
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
25
*
26
*                   WebsiteBaker Extra Information
27
*
28
*
29
*/
30 2
/**
31 3
 *
32 4
 * @category        admin
......
66 38
						);
67 39

  
68 40
// Insert permission values into the template object
69
if($admin->get_permission('pages') != true) {
41
if($admin->get_permission('pages') != true)
42
{
70 43
	$template->set_var('DISPLAY_PAGES', 'display:none;');
71 44
}
72
if($admin->get_permission('media') != true) {
45
if($admin->get_permission('media') != true)
46
{
73 47
	$template->set_var('DISPLAY_MEDIA', 'display:none;');
74 48
}
75
if($admin->get_permission('addons') != true) {
49
if($admin->get_permission('addons') != true)
50
{
76 51
	$template->set_var('DISPLAY_ADDONS', 'display:none;');
77 52
}
78
if($admin->get_permission('access') != true) {
53
if($admin->get_permission('access') != true)
54
{
79 55
	$template->set_var('DISPLAY_ACCESS', 'display:none;');
80 56
}
81
if($admin->get_permission('settings') != true) {
57
if($admin->get_permission('settings') != true)
58
{
82 59
	$template->set_var('DISPLAY_SETTINGS', 'display:none;');
83 60
}
84
if($admin->get_permission('admintools') != true) {
61
if($admin->get_permission('admintools') != true)
62
{
85 63
	$template->set_var('DISPLAY_ADMINTOOLS', 'display:none;');
86 64
}
87 65

  
88 66
// Check if installation directory still exists
89 67
if(file_exists(WB_PATH.'/install/')) {
90 68
	// Check if user is part of Adminstrators group
91
	if(in_array(1, $admin->get_groups_id())) {
69
	if(in_array(1, $admin->get_groups_id()))
70
    {
92 71
		$template->set_var('WARNING', $MESSAGE['START']['INSTALL_DIR_EXISTS']);
93 72
	} else {
94 73
		$template->set_var('DISPLAY_WARNING', 'display:none;');
......
100 79
// Insert "Add-ons" section overview (pretty complex compared to normal)
101 80
$addons_overview = $TEXT['MANAGE'].' ';
102 81
$addons_count = 0;
103
if($admin->get_permission('modules') == true) {
82
if($admin->get_permission('modules') == true)
83
{
104 84
	$addons_overview .= '<a href="'.ADMIN_URL.'/modules/index.php">'.$MENU['MODULES'].'</a>';
105 85
	$addons_count = 1;
106 86
}
107
if($admin->get_permission('templates') == true) {
87
if($admin->get_permission('templates') == true)
88
{
108 89
	if($addons_count == 1) { $addons_overview .= ', '; }
109 90
	$addons_overview .= '<a href="'.ADMIN_URL.'/templates/index.php">'.$MENU['TEMPLATES'].'</a>';
110 91
	$addons_count = 1;
111 92
}
112
if($admin->get_permission('languages') == true) {
93
if($admin->get_permission('languages') == true)
94
{
113 95
	if($addons_count == 1) { $addons_overview .= ', '; }
114 96
	$addons_overview .= '<a href="'.ADMIN_URL.'/languages/index.php">'.$MENU['LANGUAGES'].'</a>';
115 97
}

Also available in: Unified diff