Revision 1281
Added by Dietmar almost 15 years ago
branches/2.8.x/wb/admin/groups/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 |
branches/2.8.x/wb/admin/pages/modify.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 |
branches/2.8.x/wb/admin/interface/version.php | ||
---|---|---|
52 | 52 |
|
53 | 53 |
// check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled) |
54 | 54 |
if(!defined('VERSION')) define('VERSION', '2.8.1'); |
55 |
if(!defined('REVISION')) define('REVISION', '1280');
|
|
55 |
if(!defined('REVISION')) define('REVISION', '1281');
|
|
56 | 56 |
|
57 | 57 |
?> |
branches/2.8.x/wb/admin/settings/save.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 |
branches/2.8.x/wb/admin/users/users.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 |
branches/2.8.x/wb/admin/users/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 |
branches/2.8.x/wb/admin/access/index.php | ||
---|---|---|
1 |
<?php |
|
2 |
|
|
3 |
// $Id$ |
|
4 |
|
|
5 |
/* |
|
6 |
|
|
7 |
Website Baker Project <http://www.websitebaker.org/> |
|
8 |
Copyright (C) 2004-2009, Ryan Djurovich |
|
9 |
|
|
10 |
Website Baker is free software; you can redistribute it and/or modify |
|
11 |
it under the terms of the GNU General Public License as published by |
|
12 |
the Free Software Foundation; either version 2 of the License, or |
|
13 |
(at your option) any later version. |
|
14 |
|
|
15 |
Website Baker is distributed in the hope that it will be useful, |
|
16 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
17 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
18 |
GNU General Public License for more details. |
|
19 |
|
|
20 |
You should have received a copy of the GNU General Public License |
|
21 |
along with Website Baker; if not, write to the Free Software |
|
22 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
23 |
|
|
24 |
*/ |
|
25 |
|
|
26 |
require('../../config.php'); |
|
27 |
require_once(WB_PATH.'/framework/class.admin.php'); |
|
28 |
$admin = new admin('Access', 'access'); |
|
29 |
|
|
30 |
// Setup template object |
|
31 |
$template = new Template(THEME_PATH.'/templates'); |
|
32 |
$template->set_file('page', 'access.htt'); |
|
33 |
|
|
34 |
$template->set_block('page', 'main_block', 'main'); |
|
35 |
$template->set_block('main_block', 'users_block', 'user'); |
|
36 |
$template->set_block('main_block', 'groups_block', 'group'); |
|
37 |
|
|
38 |
// Insert values into the template object |
|
39 |
$template->set_var(array( |
|
40 |
'ADMIN_URL' => ADMIN_URL, |
|
41 |
'THEME_URL' => THEME_URL, |
|
42 |
'WB_URL' => WB_URL |
|
43 |
) |
|
44 |
); |
|
45 |
|
|
46 |
/** |
|
47 |
* Insert permission values into the template object |
|
48 |
* Deprecated - as we are using blocks. |
|
49 |
*/ |
|
50 |
$display_none = "style=\"display: none;\""; |
|
51 |
if($admin->get_permission('users') != true) $template->set_var('DISPLAY_USERS', $display_none); |
|
52 |
if($admin->get_permission('groups') != true) $template->set_var('DISPLAY_GROUPS', $display_none); |
|
53 |
|
|
54 |
// Insert section names and descriptions |
|
55 |
$template->set_var(array( |
|
56 |
'USERS' => $MENU['USERS'], |
|
57 |
'GROUPS' => $MENU['GROUPS'], |
|
58 |
'ACCESS' => $MENU['ACCESS'], |
|
59 |
'USERS_OVERVIEW' => $OVERVIEW['USERS'], |
|
60 |
'GROUPS_OVERVIEW' => $OVERVIEW['GROUPS'], |
|
61 |
) |
|
62 |
); |
|
63 |
|
|
64 |
if ( $admin->get_permission('users') == true ) $template->parse('main_block', "users_block", true); |
|
65 |
if ( $admin->get_permission('groups') == true ) $template->parse('main_block', "groups_block", true); |
|
66 |
|
|
67 |
// Parse template object |
|
68 |
$template->parse('main', 'main_block', false); |
|
69 |
$template->pparse('output', 'page'); |
|
70 |
|
|
71 |
// Print admin footer |
|
72 |
$admin->print_footer(); |
|
73 |
|
|
1 |
<?php |
|
2 |
/** |
|
3 |
* |
|
4 |
* @category admin |
|
5 |
* @package access |
|
6 |
* @author WebsiteBaker Project |
|
7 |
* @copyright 2004-2009, Ryan Djurovich |
|
8 |
* @copyright 2009-2010, Website Baker Org. e.V. |
|
9 |
* @link http://www.websitebaker2.org/ |
|
10 |
* @license http://www.gnu.org/licenses/gpl.html |
|
11 |
* @platform WebsiteBaker 2.8.x |
|
12 |
* @requirements PHP 4.3.4 and higher |
|
13 |
* @version $Id$ |
|
14 |
* @filesource $HeadURL: $ |
|
15 |
* @lastmodified $Date: $ |
|
16 |
* |
|
17 |
* |
|
18 |
|
|
19 |
require('../../config.php'); |
|
20 |
require_once(WB_PATH.'/framework/class.admin.php'); |
|
21 |
$admin = new admin('Access', 'access'); |
|
22 |
|
|
23 |
// Setup template object |
|
24 |
$template = new Template(THEME_PATH.'/templates'); |
|
25 |
$template->set_file('page', 'access.htt'); |
|
26 |
|
|
27 |
$template->set_block('page', 'main_block', 'main'); |
|
28 |
$template->set_block('main_block', 'users_block', 'user'); |
|
29 |
$template->set_block('main_block', 'groups_block', 'group'); |
|
30 |
|
|
31 |
// Insert values into the template object |
|
32 |
$template->set_var(array( |
|
33 |
'ADMIN_URL' => ADMIN_URL, |
|
34 |
'THEME_URL' => THEME_URL, |
|
35 |
'WB_URL' => WB_URL |
|
36 |
) |
|
37 |
); |
|
38 |
|
|
39 |
/** |
|
40 |
* Insert permission values into the template object |
|
41 |
* Deprecated - as we are using blocks. |
|
42 |
*/ |
|
43 |
$display_none = "style=\"display: none;\""; |
|
44 |
if($admin->get_permission('users') != true) $template->set_var('DISPLAY_USERS', $display_none); |
|
45 |
if($admin->get_permission('groups') != true) $template->set_var('DISPLAY_GROUPS', $display_none); |
|
46 |
|
|
47 |
// Insert section names and descriptions |
|
48 |
$template->set_var(array( |
|
49 |
'USERS' => $MENU['USERS'], |
|
50 |
'GROUPS' => $MENU['GROUPS'], |
|
51 |
'ACCESS' => $MENU['ACCESS'], |
|
52 |
'USERS_OVERVIEW' => $OVERVIEW['USERS'], |
|
53 |
'GROUPS_OVERVIEW' => $OVERVIEW['GROUPS'], |
|
54 |
) |
|
55 |
); |
|
56 |
|
|
57 |
if ( $admin->get_permission('users') == true ) $template->parse('main_block', "users_block", true); |
|
58 |
if ( $admin->get_permission('groups') == true ) $template->parse('main_block', "groups_block", true); |
|
59 |
|
|
60 |
// Parse template object |
|
61 |
$template->parse('main', 'main_block', false); |
|
62 |
$template->pparse('output', 'page'); |
|
63 |
|
|
64 |
// Print admin footer |
|
65 |
$admin->print_footer(); |
|
66 |
|
|
74 | 67 |
?> |
branches/2.8.x/wb/admin/addons/reload.php | ||
---|---|---|
1 |
<?php |
|
2 |
/** |
|
3 |
* $Id$ |
|
4 |
* Website Baker Add-On reload |
|
5 |
* |
|
6 |
* This file contains the function to update the Add-on information from the |
|
7 |
* database with the ones stored in the Add-on files (e.g. info.php or EN.php) |
|
8 |
* |
|
9 |
* LICENSE: GNU Lesser General Public License 3.0 |
|
10 |
* |
|
11 |
* @author Christian Sommer |
|
12 |
* @copyright (c) 2009 |
|
13 |
* @license http://www.gnu.org/copyleft/lesser.html |
|
14 |
* @version 0.1.1 |
|
15 |
* @platform Website Baker 2.7 |
|
16 |
* |
|
17 |
* Website Baker Project <http://www.websitebaker.org/> |
|
18 |
* Copyright (C) 2004-2009, Ryan Djurovich |
|
19 |
* |
|
20 |
* Website Baker is free software; you can redistribute it and/or modify |
|
21 |
* it under the terms of the GNU General Public License as published by |
|
22 |
* the Free Software Foundation; either version 2 of the License, or |
|
23 |
* (at your option) any later version. |
|
24 |
* |
|
25 |
* Website Baker is distributed in the hope that it will be useful, |
|
26 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
27 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
28 |
* GNU General Public License for more details. |
|
29 |
* |
|
30 |
* You should have received a copy of the GNU General Public License |
|
31 |
* along with Website Baker; if not, write to the Free Software |
|
32 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
33 |
*/ |
|
34 |
|
|
35 |
/** |
|
36 |
* check if there is anything to do |
|
37 |
*/ |
|
38 |
$post_check = array('reload_modules', 'reload_templates', 'reload_languages'); |
|
39 |
foreach ($post_check as $index => $key) { |
|
40 |
if (!isset($_POST[$key])) unset($post_check[$index]); |
|
41 |
} |
|
42 |
if (count($post_check) == 0) die(header('Location: index.php?advanced')); |
|
43 |
|
|
44 |
/** |
|
45 |
* check if user has permissions to access this file |
|
46 |
*/ |
|
47 |
// include WB configuration file and WB admin class |
|
48 |
require_once('../../config.php'); |
|
49 |
require_once('../../framework/class.admin.php'); |
|
50 |
|
|
51 |
// check user permissions for admintools (redirect users with wrong permissions) |
|
52 |
$admin = new admin('Admintools', 'admintools', false, false); |
|
53 |
if ($admin->get_permission('admintools') == false) die(header('Location: ../../index.php')); |
|
54 |
|
|
55 |
// check if the referer URL if available |
|
56 |
$referer = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : |
|
57 |
(isset($HTTP_SERVER_VARS['HTTP_REFERER']) ? $HTTP_SERVER_VARS['HTTP_REFERER'] : ''); |
|
58 |
|
|
59 |
// if referer is set, check if script was invoked from "admin/modules/index.php" |
|
60 |
$required_url = ADMIN_URL . '/addons/index.php'; |
|
61 |
if ($referer != '' && (!(strpos($referer, $required_url) !== false || strpos($referer, $required_url) !== false))) |
|
62 |
die(header('Location: ../../index.php')); |
|
63 |
|
|
64 |
// include WB functions file |
|
65 |
require_once(WB_PATH . '/framework/functions.php'); |
|
66 |
|
|
67 |
// load WB language file |
|
68 |
require_once(WB_PATH . '/languages/' . LANGUAGE .'.php'); |
|
69 |
|
|
70 |
// create Admin object with admin header |
|
71 |
$admin = new admin('Addons', '', true, false); |
|
72 |
$js_back = ADMIN_URL . '/addons/index.php?advanced'; |
|
73 |
|
|
74 |
/** |
|
75 |
* Reload all specified Addons |
|
76 |
*/ |
|
77 |
$msg = array(); |
|
78 |
$table = TABLE_PREFIX . 'addons'; |
|
79 |
|
|
80 |
foreach ($post_check as $key) { |
|
81 |
switch ($key) { |
|
82 |
case 'reload_modules': |
|
83 |
if ($handle = opendir(WB_PATH . '/modules')) { |
|
84 |
// delete modules from database |
|
85 |
$sql = "DELETE FROM `$table` WHERE `type` = 'module'"; |
|
86 |
$database->query($sql); |
|
87 |
|
|
88 |
// loop over all modules |
|
89 |
while(false !== ($file = readdir($handle))) { |
|
90 |
if ($file != '' && substr($file, 0, 1) != '.' && $file != 'admin.php' && $file != 'index.php') { |
|
91 |
load_module(WB_PATH . '/modules/' . $file); |
|
92 |
} |
|
93 |
} |
|
94 |
closedir($handle); |
|
95 |
// add success message |
|
96 |
$msg[] = $MESSAGE['ADDON']['MODULES_RELOADED']; |
|
97 |
|
|
98 |
} else { |
|
99 |
// provide error message and stop |
|
100 |
$admin->print_error($MESSAGE['ADDON']['ERROR_RELOAD'], $js_back); |
|
101 |
} |
|
102 |
break; |
|
103 |
|
|
104 |
case 'reload_templates': |
|
105 |
if ($handle = opendir(WB_PATH . '/templates')) { |
|
106 |
// delete templates from database |
|
107 |
$sql = "DELETE FROM `$table` WHERE `type` = 'template'"; |
|
108 |
$database->query($sql); |
|
109 |
|
|
110 |
// loop over all templates |
|
111 |
while(false !== ($file = readdir($handle))) { |
|
112 |
if($file != '' AND substr($file, 0, 1) != '.' AND $file != 'index.php') { |
|
113 |
load_template(WB_PATH . '/templates/' . $file); |
|
114 |
} |
|
115 |
} |
|
116 |
closedir($handle); |
|
117 |
// add success message |
|
118 |
$msg[] = $MESSAGE['ADDON']['TEMPLATES_RELOADED']; |
|
119 |
|
|
120 |
} else { |
|
121 |
// provide error message and stop |
|
122 |
$admin->print_error($MESSAGE['ADDON']['ERROR_RELOAD'], $js_back); |
|
123 |
} |
|
124 |
break; |
|
125 |
|
|
126 |
case 'reload_languages': |
|
127 |
if ($handle = opendir(WB_PATH . '/languages/')) { |
|
128 |
// delete languages from database |
|
129 |
$sql = "DELETE FROM `$table` WHERE `type` = 'language'"; |
|
130 |
$database->query($sql); |
|
131 |
|
|
132 |
// loop over all languages |
|
133 |
while(false !== ($file = readdir($handle))) { |
|
134 |
if ($file != '' && substr($file, 0, 1) != '.' && $file != 'index.php') { |
|
135 |
load_language(WB_PATH . '/languages/' . $file); |
|
136 |
} |
|
137 |
} |
|
138 |
closedir($handle); |
|
139 |
// add success message |
|
140 |
$msg[] = $MESSAGE['ADDON']['LANGUAGES_RELOADED']; |
|
141 |
|
|
142 |
} else { |
|
143 |
// provide error message and stop |
|
144 |
$admin->print_error($MESSAGE['ADDON']['ERROR_RELOAD'], $js_back); |
|
145 |
} |
|
146 |
break; |
|
147 |
} |
|
148 |
} |
|
149 |
|
|
150 |
// output success message |
|
151 |
$admin->print_success(implode($msg, '<br />'), $js_back); |
|
152 |
|
|
1 |
<?php |
|
2 |
/** |
|
3 |
* |
|
4 |
* @category admin |
|
5 |
* @package addons |
|
6 |
* @author WebsiteBaker Project |
|
7 |
* @copyright 2004-2009, Ryan Djurovich |
|
8 |
* @copyright 2009-2010, Website Baker Org. e.V. |
|
9 |
* @link http://www.websitebaker2.org/ |
|
10 |
* @license http://www.gnu.org/licenses/gpl.html |
|
11 |
* @platform WebsiteBaker 2.8.x |
|
12 |
* @requirements PHP 4.3.4 and higher |
|
13 |
* @version $Id$ |
|
14 |
* @filesource $HeadURL: $ |
|
15 |
* @lastmodified $Date: $ |
|
16 |
* |
|
17 |
*/ |
|
18 |
|
|
19 |
/** |
|
20 |
* check if there is anything to do |
|
21 |
*/ |
|
22 |
$post_check = array('reload_modules', 'reload_templates', 'reload_languages'); |
|
23 |
foreach ($post_check as $index => $key) { |
|
24 |
if (!isset($_POST[$key])) unset($post_check[$index]); |
|
25 |
} |
|
26 |
if (count($post_check) == 0) die(header('Location: index.php?advanced')); |
|
27 |
|
|
28 |
/** |
|
29 |
* check if user has permissions to access this file |
|
30 |
*/ |
|
31 |
// include WB configuration file and WB admin class |
|
32 |
require_once('../../config.php'); |
|
33 |
require_once('../../framework/class.admin.php'); |
|
34 |
|
|
35 |
// check user permissions for admintools (redirect users with wrong permissions) |
|
36 |
$admin = new admin('Admintools', 'admintools', false, false); |
|
37 |
if ($admin->get_permission('admintools') == false) die(header('Location: ../../index.php')); |
|
38 |
|
|
39 |
// check if the referer URL if available |
|
40 |
$referer = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : |
|
41 |
(isset($HTTP_SERVER_VARS['HTTP_REFERER']) ? $HTTP_SERVER_VARS['HTTP_REFERER'] : ''); |
|
42 |
|
|
43 |
// if referer is set, check if script was invoked from "admin/modules/index.php" |
|
44 |
$required_url = ADMIN_URL . '/addons/index.php'; |
|
45 |
if ($referer != '' && (!(strpos($referer, $required_url) !== false || strpos($referer, $required_url) !== false))) |
|
46 |
die(header('Location: ../../index.php')); |
|
47 |
|
|
48 |
// include WB functions file |
|
49 |
require_once(WB_PATH . '/framework/functions.php'); |
|
50 |
|
|
51 |
// load WB language file |
|
52 |
require_once(WB_PATH . '/languages/' . LANGUAGE .'.php'); |
|
53 |
|
|
54 |
// create Admin object with admin header |
|
55 |
$admin = new admin('Addons', '', true, false); |
|
56 |
$js_back = ADMIN_URL . '/addons/index.php?advanced'; |
|
57 |
|
|
58 |
/** |
|
59 |
* Reload all specified Addons |
|
60 |
*/ |
|
61 |
$msg = array(); |
|
62 |
$table = TABLE_PREFIX . 'addons'; |
|
63 |
|
|
64 |
foreach ($post_check as $key) { |
|
65 |
switch ($key) { |
|
66 |
case 'reload_modules': |
|
67 |
if ($handle = opendir(WB_PATH . '/modules')) { |
|
68 |
// delete modules from database |
|
69 |
$sql = "DELETE FROM `$table` WHERE `type` = 'module'"; |
|
70 |
$database->query($sql); |
|
71 |
|
|
72 |
// loop over all modules |
|
73 |
while(false !== ($file = readdir($handle))) { |
|
74 |
if ($file != '' && substr($file, 0, 1) != '.' && $file != 'admin.php' && $file != 'index.php') { |
|
75 |
load_module(WB_PATH . '/modules/' . $file); |
|
76 |
} |
|
77 |
} |
|
78 |
closedir($handle); |
|
79 |
// add success message |
|
80 |
$msg[] = $MESSAGE['ADDON']['MODULES_RELOADED']; |
|
81 |
|
|
82 |
} else { |
|
83 |
// provide error message and stop |
|
84 |
$admin->print_error($MESSAGE['ADDON']['ERROR_RELOAD'], $js_back); |
|
85 |
} |
|
86 |
break; |
|
87 |
|
|
88 |
case 'reload_templates': |
|
89 |
if ($handle = opendir(WB_PATH . '/templates')) { |
|
90 |
// delete templates from database |
|
91 |
$sql = "DELETE FROM `$table` WHERE `type` = 'template'"; |
|
92 |
$database->query($sql); |
|
93 |
|
|
94 |
// loop over all templates |
|
95 |
while(false !== ($file = readdir($handle))) { |
|
96 |
if($file != '' AND substr($file, 0, 1) != '.' AND $file != 'index.php') { |
|
97 |
load_template(WB_PATH . '/templates/' . $file); |
|
98 |
} |
|
99 |
} |
|
100 |
closedir($handle); |
|
101 |
// add success message |
|
102 |
$msg[] = $MESSAGE['ADDON']['TEMPLATES_RELOADED']; |
|
103 |
|
|
104 |
} else { |
|
105 |
// provide error message and stop |
|
106 |
$admin->print_error($MESSAGE['ADDON']['ERROR_RELOAD'], $js_back); |
|
107 |
} |
|
108 |
break; |
|
109 |
|
|
110 |
case 'reload_languages': |
|
111 |
if ($handle = opendir(WB_PATH . '/languages/')) { |
|
112 |
// delete languages from database |
|
113 |
$sql = "DELETE FROM `$table` WHERE `type` = 'language'"; |
|
114 |
$database->query($sql); |
|
115 |
|
|
116 |
// loop over all languages |
|
117 |
while(false !== ($file = readdir($handle))) { |
|
118 |
if ($file != '' && substr($file, 0, 1) != '.' && $file != 'index.php') { |
|
119 |
load_language(WB_PATH . '/languages/' . $file); |
|
120 |
} |
|
121 |
} |
|
122 |
closedir($handle); |
|
123 |
// add success message |
|
124 |
$msg[] = $MESSAGE['ADDON']['LANGUAGES_RELOADED']; |
|
125 |
|
|
126 |
} else { |
|
127 |
// provide error message and stop |
|
128 |
$admin->print_error($MESSAGE['ADDON']['ERROR_RELOAD'], $js_back); |
|
129 |
} |
|
130 |
break; |
|
131 |
} |
|
132 |
} |
|
133 |
|
|
134 |
// output success message |
|
135 |
$admin->print_success(implode($msg, '<br />'), $js_back); |
|
136 |
$admin->print_footer(); |
|
137 |
|
|
153 | 138 |
?> |
branches/2.8.x/wb/admin/addons/index.php | ||
---|---|---|
1 |
<?php |
|
2 |
|
|
3 |
// $Id$ |
|
4 |
|
|
5 |
/* |
|
6 |
|
|
7 |
Website Baker Project <http://www.websitebaker.org/> |
|
8 |
Copyright (C) 2004-2009, Ryan Djurovich |
|
9 |
|
|
10 |
Website Baker is free software; you can redistribute it and/or modify |
|
11 |
it under the terms of the GNU General Public License as published by |
|
12 |
the Free Software Foundation; either version 2 of the License, or |
|
13 |
(at your option) any later version. |
|
14 |
|
|
15 |
Website Baker is distributed in the hope that it will be useful, |
|
16 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
17 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
18 |
GNU General Public License for more details. |
|
19 |
|
|
20 |
You should have received a copy of the GNU General Public License |
|
21 |
along with Website Baker; if not, write to the Free Software |
|
22 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
23 |
|
|
24 |
*/ |
|
25 |
|
|
26 |
require('../../config.php'); |
|
27 |
require_once(WB_PATH.'/framework/class.admin.php'); |
|
28 |
$admin = new admin('Addons', 'addons'); |
|
29 |
|
|
30 |
// Setup template object |
|
31 |
$template = new Template(THEME_PATH.'/templates'); |
|
32 |
$template->set_file('page', 'addons.htt'); |
|
33 |
$template->set_block('page', 'main_block', 'main'); |
|
34 |
|
|
35 |
// Insert values into the template object |
|
36 |
$template->set_var(array( |
|
37 |
'ADMIN_URL' => ADMIN_URL, |
|
38 |
'THEME_URL' => THEME_URL, |
|
39 |
'WB_URL' => WB_URL |
|
40 |
) |
|
41 |
); |
|
42 |
|
|
43 |
/** |
|
44 |
* Setting up the blocks |
|
45 |
*/ |
|
46 |
$template->set_block('main_block', "modules_block", "modules"); |
|
47 |
$template->set_block('main_block', "templates_block", "templates"); |
|
48 |
$template->set_block('main_block', "languages_block", "languages"); |
|
49 |
$template->set_block('main_block', "reload_block", "reload"); |
|
50 |
|
|
51 |
/** |
|
52 |
* Insert permission values into the template object |
|
53 |
* Obsolete as we are using blocks ... see "parsing the blocks" section |
|
54 |
*/ |
|
55 |
$display_none = "style=\"display: none;\""; |
|
56 |
if($admin->get_permission('modules') != true) $template->set_var('DISPLAY_MODULES', $display_none); |
|
57 |
if($admin->get_permission('templates') != true) $template->set_var('DISPLAY_TEMPLATES', $display_none); |
|
58 |
if($admin->get_permission('languages') != true) $template->set_var('DISPLAY_LANGUAGES', $display_none); |
|
59 |
if(!isset($_GET['advanced']) || $admin->get_permission('admintools') != true) |
|
60 |
$template->set_var('DISPLAY_RELOAD', $display_none); |
|
61 |
|
|
62 |
/** |
|
63 |
* Insert section names and descriptions |
|
64 |
*/ |
|
65 |
$template->set_var(array( |
|
66 |
'ADDONS_OVERVIEW' => $MENU['ADDONS'], |
|
67 |
'MODULES' => $MENU['MODULES'], |
|
68 |
'TEMPLATES' => $MENU['TEMPLATES'], |
|
69 |
'LANGUAGES' => $MENU['LANGUAGES'], |
|
70 |
'MODULES_OVERVIEW' => $OVERVIEW['MODULES'], |
|
71 |
'TEMPLATES_OVERVIEW' => $OVERVIEW['TEMPLATES'], |
|
72 |
'LANGUAGES_OVERVIEW' => $OVERVIEW['LANGUAGES'], |
|
73 |
'TXT_ADMIN_SETTINGS' => $TEXT['ADMIN'] . ' ' . $TEXT['SETTINGS'], |
|
74 |
'MESSAGE_RELOAD_ADDONS' => $MESSAGE['ADDON']['RELOAD'], |
|
75 |
'TEXT_RELOAD' => $TEXT['RELOAD'], |
|
76 |
'RELOAD_URL' => ADMIN_URL . '/addons/reload.php', |
|
77 |
'URL_ADVANCED' => $admin->get_permission('admintools') ? |
|
78 |
'<a href="' . ADMIN_URL . '/addons/index.php?advanced">' . $TEXT['ADVANCED'] . '</a>' : '' |
|
79 |
) |
|
80 |
); |
|
81 |
|
|
82 |
/** |
|
83 |
* Parsing the blocks ... |
|
84 |
*/ |
|
85 |
if ( $admin->get_permission('modules') == true) $template->parse('main_block', "modules_block", true); |
|
86 |
if ( $admin->get_permission('templates') == true) $template->parse('main_block', "templates_block", true); |
|
87 |
if ( $admin->get_permission('languages') == true) $template->parse('main_block', "languages_block", true); |
|
88 |
if ( isset($_GET['advanced']) AND $admin->get_permission('admintools') == true) $template->parse('main_block', "reload_block", true); |
|
89 |
|
|
90 |
/** |
|
91 |
* Parse template object |
|
92 |
*/ |
|
93 |
$template->parse('main', 'main_block', false); |
|
94 |
$template->pparse('output', 'page'); |
|
95 |
|
|
96 |
/** |
|
97 |
* Print admin footer |
|
98 |
*/ |
|
99 |
$admin->print_footer(); |
|
100 |
|
|
1 |
<?php |
|
2 |
/** |
|
3 |
* |
|
4 |
* @category admin |
|
5 |
* @package addons |
|
6 |
* @author WebsiteBaker Project |
|
7 |
* @copyright 2004-2009, Ryan Djurovich |
|
8 |
* @copyright 2009-2010, Website Baker Org. e.V. |
|
9 |
* @link http://www.websitebaker2.org/ |
|
10 |
* @license http://www.gnu.org/licenses/gpl.html |
|
11 |
* @platform WebsiteBaker 2.8.x |
|
12 |
* @requirements PHP 4.3.4 and higher |
|
13 |
* @version $Id$ |
|
14 |
* @filesource $HeadURL: $ |
|
15 |
* @lastmodified $Date: $ |
|
16 |
* |
|
17 |
*/ |
|
18 |
|
|
19 |
require('../../config.php'); |
|
20 |
require_once(WB_PATH.'/framework/class.admin.php'); |
|
21 |
$admin = new admin('Addons', 'addons'); |
|
22 |
|
|
23 |
// Setup template object |
|
24 |
$template = new Template(THEME_PATH.'/templates'); |
|
25 |
$template->set_file('page', 'addons.htt'); |
|
26 |
$template->set_block('page', 'main_block', 'main'); |
|
27 |
|
|
28 |
// Insert values into the template object |
|
29 |
$template->set_var(array( |
|
30 |
'ADMIN_URL' => ADMIN_URL, |
|
31 |
'THEME_URL' => THEME_URL, |
|
32 |
'WB_URL' => WB_URL |
|
33 |
) |
|
34 |
); |
|
35 |
|
|
36 |
/** |
|
37 |
* Setting up the blocks |
|
38 |
*/ |
|
39 |
$template->set_block('main_block', "modules_block", "modules"); |
|
40 |
$template->set_block('main_block', "templates_block", "templates"); |
|
41 |
$template->set_block('main_block', "languages_block", "languages"); |
|
42 |
$template->set_block('main_block', "reload_block", "reload"); |
|
43 |
|
|
44 |
/** |
|
45 |
* Insert permission values into the template object |
|
46 |
* Obsolete as we are using blocks ... see "parsing the blocks" section |
|
47 |
*/ |
|
48 |
$display_none = "style=\"display: none;\""; |
|
49 |
if($admin->get_permission('modules') != true) $template->set_var('DISPLAY_MODULES', $display_none); |
|
50 |
if($admin->get_permission('templates') != true) $template->set_var('DISPLAY_TEMPLATES', $display_none); |
|
51 |
if($admin->get_permission('languages') != true) $template->set_var('DISPLAY_LANGUAGES', $display_none); |
|
52 |
if($admin->get_permission('admintools') != true) $template->set_var('DISPLAY_ADVANCED', $display_none); |
|
53 |
|
|
54 |
if(!isset($_GET['advanced']) || $admin->get_permission('admintools') != true) |
|
55 |
$template->set_var('DISPLAY_RELOAD', $display_none); |
|
56 |
|
|
57 |
/** |
|
58 |
* Insert section names and descriptions |
|
59 |
*/ |
|
60 |
$template->set_var(array( |
|
61 |
'ADDONS_OVERVIEW' => $MENU['ADDONS'], |
|
62 |
'MODULES' => $MENU['MODULES'], |
|
63 |
'TEMPLATES' => $MENU['TEMPLATES'], |
|
64 |
'LANGUAGES' => $MENU['LANGUAGES'], |
|
65 |
'MODULES_OVERVIEW' => $OVERVIEW['MODULES'], |
|
66 |
'TEMPLATES_OVERVIEW' => $OVERVIEW['TEMPLATES'], |
|
67 |
'LANGUAGES_OVERVIEW' => $OVERVIEW['LANGUAGES'], |
|
68 |
'TXT_ADMIN_SETTINGS' => $TEXT['ADMIN'] . ' ' . $TEXT['SETTINGS'], |
|
69 |
'MESSAGE_RELOAD_ADDONS' => $MESSAGE['ADDON']['RELOAD'], |
|
70 |
'TEXT_RELOAD' => $TEXT['RELOAD'], |
|
71 |
'RELOAD_URL' => ADMIN_URL . '/addons/reload.php', |
|
72 |
'URL_ADVANCED' => $admin->get_permission('admintools') |
|
73 |
? '<a href="' . ADMIN_URL . '/addons/index.php?advanced">' . $TEXT['ADVANCED'] . '</a>' : '', |
|
74 |
'ADVANCED_URL' => $admin->get_permission('admintools') ? ADMIN_URL . '/addons/index.php' : '', |
|
75 |
'TEXT_ADVANCED' => $TEXT['ADVANCED'], |
|
76 |
|
|
77 |
) |
|
78 |
); |
|
79 |
|
|
80 |
/** |
|
81 |
* Parsing the blocks ... |
|
82 |
*/ |
|
83 |
if ( $admin->get_permission('modules') == true) $template->parse('main_block', "modules_block", true); |
|
84 |
if ( $admin->get_permission('templates') == true) $template->parse('main_block', "templates_block", true); |
|
85 |
if ( $admin->get_permission('languages') == true) $template->parse('main_block', "languages_block", true); |
|
86 |
if ( isset($_GET['advanced']) AND $admin->get_permission('admintools') == true) $template->parse('main_block', "reload_block", true); |
|
87 |
|
|
88 |
/** |
|
89 |
* Parse template object |
|
90 |
*/ |
|
91 |
$template->parse('main', 'main_block', false); |
|
92 |
$template->pparse('output', 'page'); |
|
93 |
|
|
94 |
/** |
|
95 |
* Print admin footer |
|
96 |
*/ |
|
97 |
$admin->print_footer(); |
|
98 |
|
|
101 | 99 |
?> |
branches/2.8.x/wb/admin/login/forgot/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 |
branches/2.8.x/wb/admin/login/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 |
branches/2.8.x/wb/account/preferences_form.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 frontend |
branches/2.8.x/wb/account/signup.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 frontend |
branches/2.8.x/wb/account/signup2.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 frontend |
branches/2.8.x/wb/account/signup_form.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 frontend |
branches/2.8.x/wb/framework/class.admin.php | ||
---|---|---|
134 | 134 |
'TITLE_HELP' => $MENU['HELP'], |
135 | 135 |
'TITLE_LOGOUT' => $MENU['LOGOUT'], |
136 | 136 |
'URL_VIEW' => $view_url, |
137 |
'URL_HELP' => 'http://help.websitebaker.org/',
|
|
137 |
'URL_HELP' => 'http://www.websitebaker.org/',
|
|
138 | 138 |
'BACKEND_MODULE_CSS' => $this->register_backend_modfiles('css'), // adds backend.css |
139 | 139 |
'BACKEND_MODULE_JS' => $this->register_backend_modfiles('js') // adds backend.js |
140 | 140 |
) |
branches/2.8.x/wb/search/search.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 frontend |
branches/2.8.x/wb/search/search_convert.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 |
* Character Conversion file |
|
29 |
* for search-/highlighting-related character-translations |
|
30 |
* |
|
31 |
*/ |
|
32 | 2 |
/** |
33 | 3 |
* |
34 | 4 |
* @category frontend |
branches/2.8.x/wb/search/search_modext.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 frontend |
branches/2.8.x/wb/search/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 frontend |
branches/2.8.x/wb/modules/menu_link/save.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 modules |
branches/2.8.x/wb/modules/menu_link/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 modules |
branches/2.8.x/wb/modules/menu_link/modify.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 modules |
branches/2.8.x/wb/modules/wysiwyg/save.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 backend |
branches/2.8.x/wb/modules/wysiwyg/modify.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 |
* @category module |
|
4 |
* @category modules
|
|
33 | 5 |
* @package wysiwyg |
34 |
* @author Ryan Djurovich
|
|
6 |
* @author WebsiteBaker Project
|
|
35 | 7 |
* @copyright 2004-2009, Ryan Djurovich |
36 | 8 |
* @copyright 2009-2010, Website Baker Org. e.V. |
37 |
* @filesource $HeadURL$ |
|
38 |
* @author Ryan Djurovich |
|
39 |
* @copyright 2004-2009, Ryan Djurovich |
|
40 |
* |
|
41 |
* @author WebsiteBaker Project |
|
42 | 9 |
* @link http://www.websitebaker2.org/ |
43 |
* @copyright 2009-2010, Website Baker Org. e.V. |
|
44 |
* @link http://start.websitebaker2.org/impressum-datenschutz.php |
|
45 | 10 |
* @license http://www.gnu.org/licenses/gpl.html |
46 |
* @version $Id$ |
|
47 | 11 |
* @platform WebsiteBaker 2.8.x |
48 | 12 |
* @requirements PHP 4.3.4 and higher |
13 |
* @version $Id$ |
|
14 |
* @filesource $HeadURL$ |
|
49 | 15 |
* @lastmodified $Date$ |
50 | 16 |
* |
51 | 17 |
*/ |
branches/2.8.x/wb/modules/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 backend |
branches/2.8.x/wb/modules/captcha_control/languages/SK.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 |
* |
Also available in: Unified diff
continue update headertext
Ticket #930 disabled SyntaxHighlighter from default WB Installation
change help url to www.websitebaker2.org