Project

General

Profile

« Previous | Next » 

Revision 621

Added by doc over 16 years ago

introduced the WB 2.7 backend style developed by Michael Brinsteiner (escpro), thanks man

View differences:

trunk/CHANGELOG
12 12

  
13 13
------------------------------------- 2.7.0 -------------------------------------
14 14
27-Jan-2008 Christian Sommer
15
!	introduced the WB 2.7 backend style developed by Michael Brinsteiner (escpro), thanks man
15 16
!	added missing ID tags
17
27-Jan-2008 Christian Sommer
18
!	added missing ID tags
16 19
!	added default language for users to avoid empty language fields
17 20
27-Jan-2008 Matthias Gallas
18 21
+	added kewyword id to new file
19 22
#	Fixed some spelling errors in german language file
20
27-Jan-2008 Thomas Hornik
21
!	Module form: user supplied input isn't lost on captcha-failure anymore.
22
#	fixed 100%-cpu-load-event in CAPTCHA admin-tool.
23
+	Added Calc_ttf_image CAPTCHA.
24
!	Changed captcha/captcha.php to use table-layout for CAPTCHA.
25
!	Some minor changes in CAPTCHA-code.
23
27-Jan-2008 Thomas Hornik

24
!	Module form: user supplied input isn't lost on captcha-failure anymore.

25
#	fixed 100%-cpu-load-event in CAPTCHA admin-tool.

26
+	Added Calc_ttf_image CAPTCHA.

27
!	Changed captcha/captcha.php to use table-layout for CAPTCHA.

28
!	Some minor changes in CAPTCHA-code.

26 29
!	Added some text to CAPTCHA admin-tool.
27 30
#	Module form: dropdown "success page" listed foreign private pages, too. Fixed.
28 31
+	Added preview-images for CAPTCHA.
trunk/wb/admin/start/index.php
59 59
if($admin->get_permission('settings') != true) {
60 60
	$template->set_var('DISPLAY_SETTINGS', 'none');
61 61
}
62
if($admin->get_permission('admintools') != true) {
63
	$template->set_var('DISPLAY_ADMINTOOLS', 'none');
64
}
62 65

  
63 66
// Check if installation directory still exists
64 67
if(file_exists(WB_PATH.'/install/')) {
......
104 107

  
105 108
// Insert section names and descriptions
106 109
$template->set_var(array(
107
								'HOME' => $MENU['START'],
108 110
								'PAGES' => $MENU['PAGES'],
109 111
								'MEDIA' => $MENU['MEDIA'],
110 112
								'ADDONS' => $MENU['ADDONS'],
111 113
								'ACCESS' => $MENU['ACCESS'],
112 114
								'PREFERENCES' => $MENU['PREFERENCES'],
113 115
								'SETTINGS' => $MENU['SETTINGS'],
114
								'HELP' => $MENU['HELP'],
115
								'VIEW' => $MENU['VIEW'],
116
								'ADMINTOOLS' => $MENU['ADMINTOOLS'],
116 117
								'HOME_OVERVIEW' => $OVERVIEW['START'],
117 118
								'PAGES_OVERVIEW' => $OVERVIEW['PAGES'],
118 119
								'MEDIA_OVERVIEW' => $OVERVIEW['MEDIA'],
......
120 121
								'ACCESS_OVERVIEW' => $access_overview,
121 122
								'PREFERENCES_OVERVIEW' => $OVERVIEW['PREFERENCES'],
122 123
								'SETTINGS_OVERVIEW' => $OVERVIEW['SETTINGS'],
123
								'HELP_OVERVIEW' => $OVERVIEW['HELP'],
124
								'VIEW_OVERVIEW' => $OVERVIEW['VIEW']
124
								'ADMINTOOLS_OVERVIEW' => $OVERVIEW['ADMINTOOLS']
125 125
								)
126 126
						);
127 127

  
trunk/wb/admin/start/template.html
69 69
		</tr>
70 70
		</table>
71 71
		
72
		<table cellpadding="0" cellspacing="0" border="0" class="section">
72
		<table cellpadding="0" cellspacing="0" border="0" class="section" style="display: {DISPLAY_ADDONS};">
73 73
		<tr>
74 74
			<td class="graphic" align="center" valign="middle" rowspan="2">
75
				<a href="{ADMIN_URL}/preferences/index.php">
76
					<img src="{ADMIN_URL}/images/icons/preferences.png" border="0" />
75
				<a href="{ADMIN_URL}/addons/index.php">
76
					<img src="{ADMIN_URL}/images/icons/addons.png" border="0" />
77 77
				</a>
78 78
			</td>
79 79
			<td class="title">
80
				<a href="{ADMIN_URL}/preferences/index.php">{PREFERENCES}</a>
80
				<a href="{ADMIN_URL}/addons/index.php">{ADDONS}</a>
81 81
			</td>
82 82
		</tr>
83 83
		<tr>
84 84
			<td class="description">
85
				{PREFERENCES_OVERVIEW}
85
				{ADDONS_OVERVIEW}
86 86
			</td>
87 87
		</tr>
88 88
		</table>
89
		
90
		<table cellpadding="0" cellspacing="0" border="0" class="section" style="display: {DISPLAY_ACCESS};">
89

  
90
		<table cellpadding="0" cellspacing="0" border="0" class="section" style="display: {DISPLAY_SETTINGS};">
91 91
		<tr>
92 92
			<td class="graphic" align="center" valign="middle" rowspan="2">
93
				<a href="{ADMIN_URL}/access/index.php">
94
					<img src="{ADMIN_URL}/images/icons/access.png" border="0" />
93
				<a href="{ADMIN_URL}/settings/index.php">
94
					<img src="{ADMIN_URL}/images/icons/settings.png" border="0" />
95 95
				</a>
96 96
			</td>
97 97
			<td class="title">
98
				<a href="{ADMIN_URL}/access/index.php">{ACCESS}</a>
98
				<a href="{ADMIN_URL}/settings/index.php">{SETTINGS}</a>
99 99
			</td>
100 100
		</tr>
101 101
		<tr>
102 102
			<td class="description">
103
				{ACCESS_OVERVIEW}
103
				{SETTINGS_OVERVIEW}
104 104
			</td>
105 105
		</tr>
106 106
		</table>
107
		
108
		<table cellpadding="0" cellspacing="0" border="0" class="section" style="display: {DISPLAY_SETTINGS};">
107

  
108
		<table cellpadding="0" cellspacing="0" border="0" class="section" style="display: {DISPLAY_ACCESS};">
109 109
		<tr>
110 110
			<td class="graphic" align="center" valign="middle" rowspan="2">
111
				<a href="{ADMIN_URL}/settings/index.php">
112
					<img src="{ADMIN_URL}/images/icons/settings.png" border="0" />
111
				<a href="{ADMIN_URL}/access/index.php">
112
					<img src="{ADMIN_URL}/images/icons/access.png" border="0" />
113 113
				</a>
114 114
			</td>
115 115
			<td class="title">
116
				<a href="{ADMIN_URL}/settings/index.php">{SETTINGS}</a>
116
				<a href="{ADMIN_URL}/access/index.php">{ACCESS}</a>
117 117
			</td>
118 118
		</tr>
119 119
		<tr>
120 120
			<td class="description">
121
				{SETTINGS_OVERVIEW}
121
				{ACCESS_OVERVIEW}
122 122
			</td>
123 123
		</tr>
124 124
		</table>
125
		
125

  
126 126
	</td>
127 127
	<td width="15">
128 128
		&nbsp;
......
146 146
			</td>
147 147
		</tr>
148 148
		</table>
149
		
149

  
150 150
		<table cellpadding="0" cellspacing="0" border="0" class="section">
151 151
		<tr>
152 152
			<td class="graphic" align="center" valign="middle" rowspan="2">
153
				<a href="http://www.websitebaker.org/go/help/{WB_VERSION}" target="_blank">
154
					<img src="{ADMIN_URL}/images/icons/help.png" border="0" />
153
				<a href="{ADMIN_URL}/preferences/index.php">
154
					<img src="{ADMIN_URL}/images/icons/preferences.png" border="0" />
155 155
				</a>
156 156
			</td>
157 157
			<td class="title">
158
				<a href="http://www.websitebaker.org/go/help/{WB_VERSION}" target="_blank">{HELP}</a>
158
				<a href="{ADMIN_URL}/preferences/index.php">{PREFERENCES}</a>
159 159
			</td>
160 160
		</tr>
161 161
		<tr>
162 162
			<td class="description">
163
				{HELP_OVERVIEW}
163
				{PREFERENCES_OVERVIEW}
164 164
			</td>
165 165
		</tr>
166 166
		</table>
167
		
168
		<table cellpadding="0" cellspacing="0" border="0" class="section" style="display: {DISPLAY_ADDONS};">
167

  
168
		<table cellpadding="0" cellspacing="0" border="0" class="section" style="display: {DISPLAY_ADMINTOOLS};">
169 169
		<tr>
170 170
			<td class="graphic" align="center" valign="middle" rowspan="2">
171
				<a href="{ADMIN_URL}/addons/index.php">
172
					<img src="{ADMIN_URL}/images/icons/addons.png" border="0" />
171
				<a href="{ADMIN_URL}/admintools/index.php">
172
					<img src="{ADMIN_URL}/images/icons/admintools.png" border="0" />
173 173
				</a>
174 174
			</td>
175 175
			<td class="title">
176
				<a href="{ADMIN_URL}/addons/index.php">{ADDONS}</a>
176
				<a href="{ADMIN_URL}/admintools/index.php">{ADMINTOOLS}</a>
177 177
			</td>
178 178
		</tr>
179 179
		<tr>
180 180
			<td class="description">
181
				{ADDONS_OVERVIEW}
181
				{ADMINTOOLS_OVERVIEW}
182 182
			</td>
183 183
		</tr>
184 184
		</table>
185
		
186
		<table cellpadding="0" cellspacing="0" border="0" class="section" style="width: 99%;" align="center">
187
		<tr>
188
			<td class="graphic" align="center" valign="middle" rowspan="2">
189
				<a href="{WB_URL}/" target="_blank">
190
					<img src="{ADMIN_URL}/images/icons/view.png" border="0" />
191
				</a>
192
			</td>
193
			<td class="title" width="88%">
194
				<a href="{WB_URL}/" target="_blank">{VIEW}</a>
195
			</td>
196
		</tr>
197
		<tr>
198
			<td class="description">
199
				{VIEW_OVERVIEW}
200
			</td>
201
		</tr>
202
		</table>
203
		
185

  
204 186
	</td>
205 187
</tr>
206 188
</table>
trunk/wb/admin/interface/stylesheet.css
4 4
	color: #000000;
5 5
}
6 6
body {
7
	background-color: #557799;
8
	background-image: url(../interface/background.png);
7
	background-color: #95C8F0;

8
	background-image: url(background.png);

9 9
	background-repeat: repeat-x;
10 10
	margin: 0px;
11 11
}
......
20 20
h1 {
21 21
	text-align: center;
22 22
	font-size: 20px;
23
	color: #003366;
23
	color: #000000;

24 24
	text-transform: uppercase;
25 25
}
26 26
h2 {
......
46 46
.menu {
47 47
	margin: 0;
48 48
	padding: 0;
49
	padding-top: 10px;
50
	padding-bottom: 4px;
49
	padding-top: 8px;

50
	padding-bottom: 10px;

51 51
	padding-left: 8px;
52
    background: #000 url(menu.png) ;
53
    background-repeat:repeat-x;
52 54
}
53 55
.menu li {
54 56
	list-style-type: none;
......
57 59
}
58 60
.menu a, .menu a:link, .menu a:active, .menu a:visited {
59 61
	border-bottom: 0;
60
	padding: 4px 3px 4px 3px;
61
	color: #003366;
62
	padding: 7px 11px 9px 11px;

63
	color: #fff;

62 64
}
63 65
.menu a:hover {
64 66
	text-decoration: none;
65
	color: #336699;
67
	color: #fff;
68
    background: #fff url(menuo.png) ;
69
    background-repeat:repeat-x;
66 70
}
67 71
.current a, .current a:link, .current a:active, .current a:visited {
68
	background-color: #FFFFFF;
69
	color: #000000;
72
	background: #fff url(menuo.png) ;
73
         background-repeat:repeat-x;
74
	color: #fff;
70 75
}
71 76
.content {
72
	background-color: #FFFFFF;
77
	background: #fff;
78
    background: #fff url(bgtitle.png) ;
79
    background-repeat:repeat-x;
73 80
	padding: 20px;
74 81
	height: 280px;
75 82
	width: 750px;
......
77 84
	vertical-align: top;
78 85
}
79 86
.row_a {
80
	background-color: #EEEEEE;
87
	background-color: #BDE4F4;

81 88
}
82 89
.row_b {
83
	background-color: #DDDDDD;
90
	background-color: #EBF7FC;

84 91
}
85 92
.hide {
86 93
	display: none;
trunk/wb/admin/interface/header.html
17 17
<table cellpadding="0" cellspacing="0" border="0" width="770" align="center">
18 18
<tr>
19 19
	<td width="60" valign="top">
20
		<img src="{INTERFACE_DIR}/logo.png" border="0" width="60" height="60" alt="Logo" />
20
		<a href="{WB_URL}/admin" title="Admin Startmenue"><img src="{INTERFACE_DIR}/logo.png" border="0" alt="Logo" /></a>

21 21
	</td>
22 22
	<td width="5">&nbsp;</td>
23
	<td style="font-size: 20px;">
24
		<font style="color: #FFFFFF;">Website Baker</font>
25
		<font style="color: #DDDDDD;">{TEXT_ADMINISTRATION}</font>
26
	</td>
27
	<td width="100" align="right" style="padding-top: 10px; padding-right: 15px; color: #D0D0D0;">
23
	<td style="font-size: 14px;" valign="top" align="right">
24
         <a href="{WB_URL}/admin" title="{TITLE_START}"><img src="{WB_URL}/admin/images/home.png" border="0" alt="{TITLE_START}" /></a>
25
         &nbsp;&nbsp;<a href="{URL_VIEW}/" target="_blank" title="{TITLE_VIEW}"><img src="{WB_URL}/admin/images/view.png" border="0" alt="{WB_URL}" /></a>
26
	&nbsp; <a href="{URL_HELP}" target="_blank" title="{TITLE_HELP}"><img src="{WB_URL}/admin/images/help.png" border="0" alt="{TITLE_HELP}" /></a>
27
         &nbsp; <a href="{WB_URL}/admin/logout" title="{TITLE_LOGOUT}"><img src="{WB_URL}/admin/images/dl.png" border="0" alt="TITLE_LOGOUT" /></a>
28
</td>
29
	<td width="100" align="right" style="padding-top: 10px; padding-right: 15px; color: #fff;">
28 30
	Version {VERSION}
29 31
	</td>
30 32
</tr>
trunk/wb/admin/login/forgot/template.html
11 11
<table cellpadding="0" cellspacing="0" border="0" width="770" align="center">
12 12
<tr>
13 13
	<td width="60" valign="top">
14
		<img src="{INTERFACE_URL}/logo.png" width="60" height="60" alt="Logo" />
14
		<img src="{INTERFACE_URL}/logo.png" alt="Logo" />

15 15
	</td>
16 16
	<td width="5">&nbsp;</td>
17 17
	<td style="font-size: 20px;">
18
		<font style="color: #FFFFFF;">Website Baker</font> 
18
		<font style="color: #FFFFFF;">Website Baker</font>

19 19
		<font style="color: #DDDDDD;">{SECTION_FORGOT}</font>
20 20
	</td>
21 21
</tr>
trunk/wb/admin/login/warning.html
9 9
	color: #000000;
10 10
}
11 11
body {
12
	background-color: #F8F8F8;
13 12
	margin: 0px;
13
    background: #fff url(../interface/background.png) ;
14
    background-repeat:repeat-x;
14 15
}
15 16
a:link, a:visited, a:active {
16 17
	color: #003366;
......
20 21
	text-decoration: underline;
21 22
	color: #336699;
22 23
}
24
h1 {
25
	text-align: center;
26
	font-size: 16px;
27
	color: #fff;
28
	text-transform: uppercase;
29
}
23 30
hr {
24 31
	height: 1px;
25 32
	color: #336699;
trunk/wb/admin/login/template.html
11 11
<table cellpadding="0" cellspacing="0" border="0" width="770" align="center">
12 12
<tr>
13 13
	<td width="60" valign="top">
14
		<img src="{INTERFACE_DIR_URL}/logo.png" width="60" height="60" alt="Logo" />
14
		<img src="{INTERFACE_DIR_URL}/logo.png" alt="Logo" />

15 15
	</td>
16 16
	<td width="5">&nbsp;</td>
17 17
	<td style="font-size: 20px;">
18
		<font style="color: #FFFFFF;">Website Baker</font> 
18
		<font style="color: #FFFFFF;">Website Baker</font>

19 19
		<font style="color: #DDDDDD;">{SECTION_LOGIN}</font>
20 20
	</td>
21 21
</tr>
trunk/wb/framework/class.admin.php
95 95
		} else {
96 96
			$charset='utf-8';
97 97
		}
98

  
99
		// work out the URL for the 'View menu' link in the WB backend
100
		// if the page_id is set, show this page otherwise show the root directory of WB
101
		$view_url = WB_URL;
102
		if(isset($_GET['page_id'])) {
103
			// extract page link from the database
104
			$result = @$database->query("SELECT link FROM " .TABLE_PREFIX ."pages WHERE page_id = '" .(int) $_GET['page_id'] ."'");
105
			$row = @$result->fetchRow();
106
			if($row) $view_url .= PAGES_DIRECTORY .$row['link']. PAGE_EXTENSION;
107
		}
108

  
98 109
		$header_template->set_var(	array(
99 110
													'SECTION_NAME' => $MENU[strtoupper($this->section_name)],
100 111
													'INTERFACE_DIR' => ADMIN_URL.'/interface',
......
104 115
													'CHARSET' => $charset,
105 116
													'VERSION' => VERSION,
106 117
													'WB_URL' => WB_URL,
118
													'TITLE_START' => $MENU['START'],
119
													'TITLE_VIEW' => $MENU['VIEW'],
120
													'TITLE_HELP' => $MENU['HELP'],
121
													'TITLE_LOGOUT' =>  $MENU['LOGOUT'],
122
													'URL_VIEW' => $view_url,
123
													'URL_HELP' => 'http://www.websitebaker.org/help/'.WB_VERSION,
107 124
													'BACKEND_MODULE_CSS' => $this->register_backend_modfiles('css'),	// adds backend.css
108 125
													'BACKEND_MODULE_JS'  => $this->register_backend_modfiles('js')		// adds backend.js
109 126
													)
110 127
											);
111 128

  
112
		// work out the URL for the 'View menu' link in the WB backend
113
		// if the page_id is set, show this page otherwise show the root directory of WB
114
		$view_url = WB_URL;
115
		if(isset($_GET['page_id'])) {
116
			// extract page link from the database
117
			$result = @$database->query("SELECT link FROM " .TABLE_PREFIX ."pages WHERE page_id = '" .(int) $_GET['page_id'] ."'");
118
			$row = @$result->fetchRow();
119
			if($row) $view_url .= PAGES_DIRECTORY .$row['link']. PAGE_EXTENSION;
120
		}
121

  
122 129
		// Create the menu
123 130
		$menu = array(
124
					array(ADMIN_URL.'/start/index.php', '', $MENU['START'], 'start', 0),
125 131
					array(ADMIN_URL.'/pages/index.php', '', $MENU['PAGES'], 'pages', 1),
126 132
					array(ADMIN_URL.'/media/index.php', '', $MENU['MEDIA'], 'media', 1),
127 133
					array(ADMIN_URL.'/addons/index.php', '', $MENU['ADDONS'], 'addons', 1),
128 134
					array(ADMIN_URL.'/preferences/index.php', '', $MENU['PREFERENCES'], 'preferences', 0),
129 135
					array(ADMIN_URL.'/settings/index.php', '', $MENU['SETTINGS'], 'settings', 1),
130 136
					array(ADMIN_URL.'/admintools/index.php', '', $MENU['ADMINTOOLS'], 'admintools', 1),
131
					array(ADMIN_URL.'/access/index.php', '', $MENU['ACCESS'], 'access', 1),
132
					array('http://www.websitebaker.org/help/'.WB_VERSION, '_blank', $MENU['HELP'], 'help', 0),
133
					array($view_url, '_blank', $MENU['VIEW'], 'view', 0),
134
					array(ADMIN_URL.'/logout/index.php', '', $MENU['LOGOUT'], 'logout', 0)
137
					array(ADMIN_URL.'/access/index.php', '', $MENU['ACCESS'], 'access', 1)
135 138
					);
136 139
		$header_template->set_block('header_block', 'linkBlock', 'link');
137 140
		foreach($menu AS $menu_item) {
trunk/wb/framework/class.frontend.php
390 390
		require_once(WB_PATH.'/languages/'.DEFAULT_LANGUAGE.'.php');
391 391
		echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
392 392
		<head><title>'.$MESSAGE['GENERIC']['WEBSITE_UNDER_CONSTRUCTION'].'</title>
393
		<style type="text/css"><!-- body { font-family: Verdana, Arial, Helvetica, sans-serif;
394
		font-size: 12px; color: #000000;	background-color: #FFFFFF;	margin: 20px; text-align: center; }
393
		<style type="text/css"><!-- body{ font-family: Verdana, Arial, Helvetica, sans-serif;font-size: 12px; background-image: url("admin/interface/background.png");background-repeat: repeat-x; margin: 20px; text-align: center; }
395 394
		h1 { margin: 0; padding: 0; }--></style></head><body>
396 395
		<h1>'.$MESSAGE['GENERIC']['WEBSITE_UNDER_CONSTRUCTION'].'</h1><br />
397 396
		'.$MESSAGE['GENERIC']['PLEASE_CHECK_BACK_SOON'].'</body></html>';
trunk/wb/install/index.php
76 76
<table cellpadding="0" cellspacing="0" border="0" width="750" align="center">
77 77
<tr>
78 78
	<td width="60" valign="top">
79
		<img src="../admin/interface/logo.png" width="60" height="60" alt="Logo" />
79
		<img src="../admin/interface/logo.png" alt="Logo" />
80 80
	</td>
81 81
	<td width="5">&nbsp;</td>
82 82
	<td style="font-size: 20px;">
trunk/wb/languages/EN.php
69 69
$OVERVIEW['GROUPS'] = 'Manage user groups and their system permissions...';
70 70
$OVERVIEW['HELP'] = 'Got a questions? Find your answer...';
71 71
$OVERVIEW['VIEW'] = 'Quickly view and browse your website in a new window...';
72
$OVERVIEW['ADMINTOOLS'] = 'Access the Website Baker administration tools...';
72 73

  
73 74
// Headings
74 75
$HEADING['MODIFY_DELETE_PAGE'] = 'Modify/Delete Page';
trunk/wb/languages/DE.php
69 69
$OVERVIEW['GROUPS'] = 'Verwaltung von Gruppen und Ihrer Zugangsberechtigungen...';
70 70
$OVERVIEW['HELP'] = 'Noch Fragen? Hier finden Sie Antworten';
71 71
$OVERVIEW['VIEW'] = 'Ansicht Ihrer Webseite in einem neuen Fenster...';
72
$OVERVIEW['ADMINTOOLS'] = 'Zugriff auf die Website Baker Verwaltungsprogramme...';
72 73

  
73 74
// Headings
74 75
$HEADING['MODIFY_DELETE_PAGE'] = 'Seite &auml;ndern/Seite l&ouml;schen';
trunk/wb/modules/fckeditor/wb_config/wb_fckconfig.js
129 129
   FCKConfig.FontNames	= 'Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana' ;
130 130
   FCKConfig.FontSizes	= 'smaller;larger;xx-small;x-small;small;medium;large;x-large;xx-large' ;
131 131

  
132
// make the offic2003 skin the default skin
133
   FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/office2003/'
132 134

  
133 135
/*
134 136
   -----------------------------------------------------------------------------------------

Also available in: Unified diff