Revision 1262
Added by Luisehahne almost 16 years ago
| branches/2.8.x/CHANGELOG | ||
|---|---|---|
| 12 | 12 |
|
| 13 | 13 |
------------------------------------- 2.8.1 ------------------------------------- |
| 14 | 14 |
21-Jan-2010 Dietmar Woellbrink (Luisehahne) |
| 15 |
! Beginning header information update |
|
| 16 |
21-Jan-2010 Dietmar Woellbrink (Luisehahne) |
|
| 15 | 17 |
# fix login_form.php sometimes produce javascript errors in IE |
| 16 | 18 |
21-Jan-2010 Dietmar Woellbrink (Luisehahne) |
| 17 | 19 |
# fix more small css-errors in WB Backend (thanks to Ruebenwurzel) |
| branches/2.8.x/wb/admin/interface/version.php | ||
|---|---|---|
| 55 | 55 |
|
| 56 | 56 |
// check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled) |
| 57 | 57 |
if(!defined('VERSION')) define('VERSION', '2.8.1');
|
| 58 |
if(!defined('REVISION')) define('REVISION', '1261');
|
|
| 58 |
if(!defined('REVISION')) define('REVISION', '1262');
|
|
| 59 | 59 |
|
| 60 | 60 |
?> |
| branches/2.8.x/wb/account/logout.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 |
|
|
| 28 |
if(isset($_COOKIE['REMEMBER_KEY'])) {
|
|
| 29 |
setcookie('REMEMBER_KEY', '', time()-3600, '/');
|
|
| 30 |
} |
|
| 31 |
|
|
| 32 |
$_SESSION['USER_ID'] = null; |
|
| 33 |
$_SESSION['GROUP_ID'] = null; |
|
| 34 |
$_SESSION['GROUPS_ID'] = null; |
|
| 35 |
$_SESSION['USERNAME'] = null; |
|
| 36 |
$_SESSION['PAGE_PERMISSIONS'] = null; |
|
| 37 |
$_SESSION['SYSTEM_PERMISSIONS'] = null; |
|
| 38 |
$_SESSION = array(); |
|
| 39 |
session_unset(); |
|
| 40 |
unset($_COOKIE[session_name()]); |
|
| 41 |
session_destroy(); |
|
| 42 |
|
|
| 43 |
if(INTRO_PAGE) {
|
|
| 44 |
header('Location: '.WB_URL.PAGES_DIRECTORY.'/index.php');
|
|
| 45 |
} else {
|
|
| 46 |
header('Location: '.WB_URL.'/index.php');
|
|
| 47 |
} |
|
| 48 |
|
|
| 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 |
/** |
|
| 31 |
* |
|
| 32 |
* @category frontend |
|
| 33 |
* @package account |
|
| 34 |
* @author Ryan Djurovich |
|
| 35 |
* @copyright 2004-2009, Ryan Djurovich |
|
| 36 |
* @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 |
* @link http://www.websitebaker2.org/ |
|
| 43 |
* @copyright 2009-2010, Website Baker Org. e.V. |
|
| 44 |
* @link http://start.websitebaker2.org/impressum-datenschutz.php |
|
| 45 |
* @license http://www.gnu.org/licenses/gpl.html |
|
| 46 |
* @version $Id$ |
|
| 47 |
* @platform WebsiteBaker 2.8.x |
|
| 48 |
* @requirements PHP 4.3.4 and higher |
|
| 49 |
* @lastmodified $Date$ |
|
| 50 |
* |
|
| 51 |
*/ |
|
| 52 |
|
|
| 53 |
require("../config.php");
|
|
| 54 |
|
|
| 55 |
if(isset($_COOKIE['REMEMBER_KEY'])) {
|
|
| 56 |
setcookie('REMEMBER_KEY', '', time()-3600, '/');
|
|
| 57 |
} |
|
| 58 |
|
|
| 59 |
$_SESSION['USER_ID'] = null; |
|
| 60 |
$_SESSION['GROUP_ID'] = null; |
|
| 61 |
$_SESSION['GROUPS_ID'] = null; |
|
| 62 |
$_SESSION['USERNAME'] = null; |
|
| 63 |
$_SESSION['PAGE_PERMISSIONS'] = null; |
|
| 64 |
$_SESSION['SYSTEM_PERMISSIONS'] = null; |
|
| 65 |
$_SESSION = array(); |
|
| 66 |
session_unset(); |
|
| 67 |
unset($_COOKIE[session_name()]); |
|
| 68 |
session_destroy(); |
|
| 69 |
|
|
| 70 |
if(INTRO_PAGE) {
|
|
| 71 |
header('Location: '.WB_URL.PAGES_DIRECTORY.'/index.php');
|
|
| 72 |
} else {
|
|
| 73 |
header('Location: '.WB_URL.'/index.php');
|
|
| 74 |
} |
|
| 75 |
|
|
| 49 | 76 |
?> |
| 50 | 77 | |
| branches/2.8.x/wb/account/login_form.php | ||
|---|---|---|
| 1 | 1 |
<?php |
| 2 |
|
|
| 3 |
// $Id$ |
|
| 4 |
|
|
| 5 | 2 |
/* |
| 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 |
|
|
| 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 |
* |
|
| 24 | 29 |
*/ |
| 30 |
/** |
|
| 31 |
* |
|
| 32 |
* @category frontend |
|
| 33 |
* @package account |
|
| 34 |
* @author Ryan Djurovich |
|
| 35 |
* @copyright 2004-2009, Ryan Djurovich |
|
| 36 |
* @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 |
* @link http://www.websitebaker2.org/ |
|
| 43 |
* @copyright 2009-2010, Website Baker Org. e.V. |
|
| 44 |
* @link http://start.websitebaker2.org/impressum-datenschutz.php |
|
| 45 |
* @license http://www.gnu.org/licenses/gpl.html |
|
| 46 |
* @version $Id$ |
|
| 47 |
* @platform WebsiteBaker 2.8.x |
|
| 48 |
* @requirements PHP 4.3.4 and higher |
|
| 49 |
* @lastmodified $Date$ |
|
| 50 |
* |
|
| 51 |
*/ |
|
| 25 | 52 |
|
| 26 | 53 |
if(!defined('WB_URL')) die(header('Location: ../../index.php'));
|
| 27 | 54 |
|
| 28 | 55 | |
| branches/2.8.x/wb/account/forgot.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_once('../config.php');
|
|
| 27 |
|
|
| 28 |
// Required page details |
|
| 29 |
$page_id = 0; |
|
| 30 |
$page_description = ''; |
|
| 31 |
$page_keywords = ''; |
|
| 32 |
define('PAGE_ID', 0);
|
|
| 33 |
define('ROOT_PARENT', 0);
|
|
| 34 |
define('PARENT', 0);
|
|
| 35 |
define('LEVEL', 0);
|
|
| 36 |
define('PAGE_TITLE', $MENU['FORGOT']);
|
|
| 37 |
define('MENU_TITLE', $MENU['FORGOT']);
|
|
| 38 |
define('VISIBILITY', 'public');
|
|
| 39 |
|
|
| 40 |
if(!FRONTEND_LOGIN) {
|
|
| 41 |
if(INTRO_PAGE) {
|
|
| 42 |
header('Location: '.WB_URL.PAGES_DIRECTORY.'/index.php');
|
|
| 43 |
exit(0); |
|
| 44 |
} else {
|
|
| 45 |
header('Location: '.WB_URL.'/index.php');
|
|
| 46 |
exit(0); |
|
| 47 |
} |
|
| 48 |
} |
|
| 49 |
|
|
| 50 |
// Set the page content include file |
|
| 51 |
define('PAGE_CONTENT', WB_PATH.'/account/forgot_form.php');
|
|
| 52 |
|
|
| 53 |
// Set auto authentication to false |
|
| 54 |
$auto_auth = false; |
|
| 55 |
|
|
| 56 |
// Include the index (wrapper) file |
|
| 57 |
require(WB_PATH.'/index.php'); |
|
| 58 |
|
|
| 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 |
/** |
|
| 31 |
* |
|
| 32 |
* @category frontend |
|
| 33 |
* @package account |
|
| 34 |
* @author Ryan Djurovich |
|
| 35 |
* @copyright 2004-2009, Ryan Djurovich |
|
| 36 |
* @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 |
* @link http://www.websitebaker2.org/ |
|
| 43 |
* @copyright 2009-2010, Website Baker Org. e.V. |
|
| 44 |
* @link http://start.websitebaker2.org/impressum-datenschutz.php |
|
| 45 |
* @license http://www.gnu.org/licenses/gpl.html |
|
| 46 |
* @version $Id$ |
|
| 47 |
* @platform WebsiteBaker 2.8.x |
|
| 48 |
* @requirements PHP 4.3.4 and higher |
|
| 49 |
* @lastmodified $Date$ |
|
| 50 |
* |
|
| 51 |
*/ |
|
| 52 |
|
|
| 53 |
require_once('../config.php');
|
|
| 54 |
|
|
| 55 |
// Required page details |
|
| 56 |
$page_id = 0; |
|
| 57 |
$page_description = ''; |
|
| 58 |
$page_keywords = ''; |
|
| 59 |
define('PAGE_ID', 0);
|
|
| 60 |
define('ROOT_PARENT', 0);
|
|
| 61 |
define('PARENT', 0);
|
|
| 62 |
define('LEVEL', 0);
|
|
| 63 |
define('PAGE_TITLE', $MENU['FORGOT']);
|
|
| 64 |
define('MENU_TITLE', $MENU['FORGOT']);
|
|
| 65 |
define('VISIBILITY', 'public');
|
|
| 66 |
|
|
| 67 |
if(!FRONTEND_LOGIN) {
|
|
| 68 |
if(INTRO_PAGE) {
|
|
| 69 |
header('Location: '.WB_URL.PAGES_DIRECTORY.'/index.php');
|
|
| 70 |
exit(0); |
|
| 71 |
} else {
|
|
| 72 |
header('Location: '.WB_URL.'/index.php');
|
|
| 73 |
exit(0); |
|
| 74 |
} |
|
| 75 |
} |
|
| 76 |
|
|
| 77 |
// Set the page content include file |
|
| 78 |
define('PAGE_CONTENT', WB_PATH.'/account/forgot_form.php');
|
|
| 79 |
|
|
| 80 |
// Set auto authentication to false |
|
| 81 |
$auto_auth = false; |
|
| 82 |
|
|
| 83 |
// Include the index (wrapper) file |
|
| 84 |
require(WB_PATH.'/index.php'); |
|
| 85 |
|
|
| 59 | 86 |
?> |
| 60 | 87 | |
| branches/2.8.x/wb/account/preferences.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_once('../config.php');
|
|
| 27 |
|
|
| 28 |
if(!FRONTEND_LOGIN) {
|
|
| 29 |
if(INTRO_PAGE) {
|
|
| 30 |
header('Location: '.WB_URL.PAGES_DIRECTORY.'/index.php');
|
|
| 31 |
exit(0); |
|
| 32 |
} else {
|
|
| 33 |
header('Location: '.WB_URL.'/index.php');
|
|
| 34 |
exit(0); |
|
| 35 |
} |
|
| 36 |
} |
|
| 37 |
|
|
| 38 |
require_once(WB_PATH.'/framework/class.wb.php'); |
|
| 39 |
$wb_inst = new wb(); |
|
| 40 |
if ($wb_inst->is_authenticated()==false) {
|
|
| 41 |
header('Location: '.WB_URL.'/account/login.php');
|
|
| 42 |
exit(0); |
|
| 43 |
} |
|
| 44 |
|
|
| 45 |
// Required page details |
|
| 46 |
$page_id = 0; |
|
| 47 |
$page_description = ''; |
|
| 48 |
$page_keywords = ''; |
|
| 49 |
define('PAGE_ID', 0);
|
|
| 50 |
define('ROOT_PARENT', 0);
|
|
| 51 |
define('PARENT', 0);
|
|
| 52 |
define('LEVEL', 0);
|
|
| 53 |
define('PAGE_TITLE', $MENU['PREFERENCES']);
|
|
| 54 |
define('MENU_TITLE', $MENU['PREFERENCES']);
|
|
| 55 |
define('MODULE', '');
|
|
| 56 |
define('VISIBILITY', 'public');
|
|
| 57 |
|
|
| 58 |
// Set the page content include file |
|
| 59 |
if(isset($_POST['current_password']) AND isset($_POST['new_password'])) {
|
|
| 60 |
define('PAGE_CONTENT', WB_PATH.'/account/password.php');
|
|
| 61 |
} elseif(isset($_POST['current_password']) AND isset($_POST['email'])) {
|
|
| 62 |
define('PAGE_CONTENT', WB_PATH.'/account/email.php');
|
|
| 63 |
} elseif(isset($_POST['display_name'])) {
|
|
| 64 |
define('PAGE_CONTENT', WB_PATH.'/account/details.php');
|
|
| 65 |
} else {
|
|
| 66 |
define('PAGE_CONTENT', WB_PATH.'/account/preferences_form.php');
|
|
| 67 |
} |
|
| 68 |
|
|
| 69 |
// Include the index (wrapper) file |
|
| 70 |
require(WB_PATH.'/index.php'); |
|
| 71 |
|
|
| 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 |
/** |
|
| 31 |
* |
|
| 32 |
* @category frontend |
|
| 33 |
* @package account |
|
| 34 |
* @author Ryan Djurovich |
|
| 35 |
* @copyright 2004-2009, Ryan Djurovich |
|
| 36 |
* @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 |
* @link http://www.websitebaker2.org/ |
|
| 43 |
* @copyright 2009-2010, Website Baker Org. e.V. |
|
| 44 |
* @link http://start.websitebaker2.org/impressum-datenschutz.php |
|
| 45 |
* @license http://www.gnu.org/licenses/gpl.html |
|
| 46 |
* @version $Id$ |
|
| 47 |
* @platform WebsiteBaker 2.8.x |
|
| 48 |
* @requirements PHP 4.3.4 and higher |
|
| 49 |
* @lastmodified $Date$ |
|
| 50 |
* |
|
| 51 |
*/ |
|
| 52 |
|
|
| 53 |
require_once('../config.php');
|
|
| 54 |
|
|
| 55 |
if(!FRONTEND_LOGIN) {
|
|
| 56 |
if(INTRO_PAGE) {
|
|
| 57 |
header('Location: '.WB_URL.PAGES_DIRECTORY.'/index.php');
|
|
| 58 |
exit(0); |
|
| 59 |
} else {
|
|
| 60 |
header('Location: '.WB_URL.'/index.php');
|
|
| 61 |
exit(0); |
|
| 62 |
} |
|
| 63 |
} |
|
| 64 |
|
|
| 65 |
require_once(WB_PATH.'/framework/class.wb.php'); |
|
| 66 |
$wb_inst = new wb(); |
|
| 67 |
if ($wb_inst->is_authenticated()==false) {
|
|
| 68 |
header('Location: '.WB_URL.'/account/login.php');
|
|
| 69 |
exit(0); |
|
| 70 |
} |
|
| 71 |
|
|
| 72 |
// Required page details |
|
| 73 |
$page_id = 0; |
|
| 74 |
$page_description = ''; |
|
| 75 |
$page_keywords = ''; |
|
| 76 |
define('PAGE_ID', 0);
|
|
| 77 |
define('ROOT_PARENT', 0);
|
|
| 78 |
define('PARENT', 0);
|
|
| 79 |
define('LEVEL', 0);
|
|
| 80 |
define('PAGE_TITLE', $MENU['PREFERENCES']);
|
|
| 81 |
define('MENU_TITLE', $MENU['PREFERENCES']);
|
|
| 82 |
define('MODULE', '');
|
|
| 83 |
define('VISIBILITY', 'public');
|
|
| 84 |
|
|
| 85 |
// Set the page content include file |
|
| 86 |
if(isset($_POST['current_password']) AND isset($_POST['new_password'])) {
|
|
| 87 |
define('PAGE_CONTENT', WB_PATH.'/account/password.php');
|
|
| 88 |
} elseif(isset($_POST['current_password']) AND isset($_POST['email'])) {
|
|
| 89 |
define('PAGE_CONTENT', WB_PATH.'/account/email.php');
|
|
| 90 |
} elseif(isset($_POST['display_name'])) {
|
|
| 91 |
define('PAGE_CONTENT', WB_PATH.'/account/details.php');
|
|
| 92 |
} else {
|
|
| 93 |
define('PAGE_CONTENT', WB_PATH.'/account/preferences_form.php');
|
|
| 94 |
} |
|
| 95 |
|
|
| 96 |
// Include the index (wrapper) file |
|
| 97 |
require(WB_PATH.'/index.php'); |
|
| 98 |
|
|
| 72 | 99 |
?> |
| 73 | 100 | |
| branches/2.8.x/wb/account/password.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 |
if(!defined('WB_URL')) {
|
|
| 27 |
header('Location: ../index.php');
|
|
| 28 |
exit(0); |
|
| 29 |
} |
|
| 30 |
|
|
| 31 |
// Get the values entered |
|
| 32 |
$current_password = $_POST['current_password']; |
|
| 33 |
$new_password = $_POST['new_password']; |
|
| 34 |
$new_password2 = $_POST['new_password2']; |
|
| 35 |
|
|
| 36 |
// Create a javascript back link |
|
| 37 |
$js_back = "javascript: history.go(-1);"; |
|
| 38 |
|
|
| 39 |
// Get existing password |
|
| 40 |
$database = new database(); |
|
| 41 |
$query = "SELECT user_id FROM ".TABLE_PREFIX."users WHERE user_id = '".$wb->get_user_id()."' AND password = '".md5($current_password)."'"; |
|
| 42 |
$results = $database->query($query); |
|
| 43 |
|
|
| 44 |
// Validate values |
|
| 45 |
if($results->numRows() == 0) {
|
|
| 46 |
$wb->print_error($MESSAGE['PREFERENCES']['CURRENT_PASSWORD_INCORRECT'], $js_back, false); |
|
| 47 |
} |
|
| 48 |
if(strlen($new_password) < 3) {
|
|
| 49 |
$wb->print_error($MESSAGE['USERS']['PASSWORD_TOO_SHORT'], $js_back, false); |
|
| 50 |
} |
|
| 51 |
if($new_password != $new_password2) {
|
|
| 52 |
$wb->print_error($MESSAGE['USERS']['PASSWORD_MISMATCH'], $js_back, false); |
|
| 53 |
} |
|
| 54 |
|
|
| 55 |
// MD5 the password |
|
| 56 |
$md5_password = md5($new_password); |
|
| 57 |
|
|
| 58 |
// Update the database |
|
| 59 |
$database = new database(); |
|
| 60 |
$query = "UPDATE ".TABLE_PREFIX."users SET password = '$md5_password' WHERE user_id = '".$wb->get_user_id()."'"; |
|
| 61 |
$database->query($query); |
|
| 62 |
if($database->is_error()) {
|
|
| 63 |
$wb->print_error($database->get_error, 'index.php', false); |
|
| 64 |
} else {
|
|
| 65 |
$wb->print_success($MESSAGE['PREFERENCES']['PASSWORD_CHANGED'], WB_URL.'/account/preferences.php'); |
|
| 66 |
} |
|
| 67 |
|
|
| 68 |
|
|
| 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 |
/** |
|
| 31 |
* |
|
| 32 |
* @category frontend |
|
| 33 |
* @package account |
|
| 34 |
* @author Ryan Djurovich |
|
| 35 |
* @copyright 2004-2009, Ryan Djurovich |
|
| 36 |
* @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 |
* @link http://www.websitebaker2.org/ |
|
| 43 |
* @copyright 2009-2010, Website Baker Org. e.V. |
|
| 44 |
* @link http://start.websitebaker2.org/impressum-datenschutz.php |
|
| 45 |
* @license http://www.gnu.org/licenses/gpl.html |
|
| 46 |
* @version $Id$ |
|
| 47 |
* @platform WebsiteBaker 2.8.x |
|
| 48 |
* @requirements PHP 4.3.4 and higher |
|
| 49 |
* @lastmodified $Date$ |
|
| 50 |
* |
|
| 51 |
*/ |
|
| 52 |
|
|
| 53 |
if(!defined('WB_URL')) {
|
|
| 54 |
header('Location: ../index.php');
|
|
| 55 |
exit(0); |
|
| 56 |
} |
|
| 57 |
|
|
| 58 |
// Get the values entered |
|
| 59 |
$current_password = $_POST['current_password']; |
|
| 60 |
$new_password = $_POST['new_password']; |
|
| 61 |
$new_password2 = $_POST['new_password2']; |
|
| 62 |
|
|
| 63 |
// Create a javascript back link |
|
| 64 |
$js_back = "javascript: history.go(-1);"; |
|
| 65 |
|
|
| 66 |
// Get existing password |
|
| 67 |
$database = new database(); |
|
| 68 |
$query = "SELECT user_id FROM ".TABLE_PREFIX."users WHERE user_id = '".$wb->get_user_id()."' AND password = '".md5($current_password)."'"; |
|
| 69 |
$results = $database->query($query); |
|
| 70 |
|
|
| 71 |
// Validate values |
|
| 72 |
if($results->numRows() == 0) {
|
|
| 73 |
$wb->print_error($MESSAGE['PREFERENCES']['CURRENT_PASSWORD_INCORRECT'], $js_back, false); |
|
| 74 |
} |
|
| 75 |
if(strlen($new_password) < 3) {
|
|
| 76 |
$wb->print_error($MESSAGE['USERS']['PASSWORD_TOO_SHORT'], $js_back, false); |
|
| 77 |
} |
|
| 78 |
if($new_password != $new_password2) {
|
|
| 79 |
$wb->print_error($MESSAGE['USERS']['PASSWORD_MISMATCH'], $js_back, false); |
|
| 80 |
} |
|
| 81 |
|
|
| 82 |
// MD5 the password |
|
| 83 |
$md5_password = md5($new_password); |
|
| 84 |
|
|
| 85 |
// Update the database |
|
| 86 |
$database = new database(); |
|
| 87 |
$query = "UPDATE ".TABLE_PREFIX."users SET password = '$md5_password' WHERE user_id = '".$wb->get_user_id()."'"; |
|
| 88 |
$database->query($query); |
|
| 89 |
if($database->is_error()) {
|
|
| 90 |
$wb->print_error($database->get_error, 'index.php', false); |
|
| 91 |
} else {
|
|
| 92 |
$wb->print_success($MESSAGE['PREFERENCES']['PASSWORD_CHANGED'], WB_URL.'/account/preferences.php'); |
|
| 93 |
} |
|
| 94 |
|
|
| 95 |
|
|
| 69 | 96 |
?> |
| 70 | 97 | |
| branches/2.8.x/wb/account/forgot_form.php | ||
|---|---|---|
| 1 | 1 |
<?php |
| 2 |
|
|
| 3 |
// $Id$ |
|
| 4 |
|
|
| 5 | 2 |
/* |
| 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 |
|
|
| 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 |
* |
|
| 24 | 29 |
*/ |
| 30 |
/** |
|
| 31 |
* |
|
| 32 |
* @category frontend |
|
| 33 |
* @package account |
|
| 34 |
* @author Ryan Djurovich |
|
| 35 |
* @copyright 2004-2009, Ryan Djurovich |
|
| 36 |
* @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 |
* @link http://www.websitebaker2.org/ |
|
| 43 |
* @copyright 2009-2010, Website Baker Org. e.V. |
|
| 44 |
* @link http://start.websitebaker2.org/impressum-datenschutz.php |
|
| 45 |
* @license http://www.gnu.org/licenses/gpl.html |
|
| 46 |
* @version $Id$ |
|
| 47 |
* @platform WebsiteBaker 2.8.x |
|
| 48 |
* @requirements PHP 4.3.4 and higher |
|
| 49 |
* @lastmodified $Date$ |
|
| 50 |
* |
|
| 51 |
*/ |
|
| 25 | 52 |
|
| 26 | 53 |
if(!defined('WB_URL')) {
|
| 27 | 54 |
header('Location: ../pages/index.php');
|
| 28 | 55 | |
| branches/2.8.x/wb/account/preferences_form.php | ||
|---|---|---|
| 1 | 1 |
<?php |
| 2 |
|
|
| 3 |
/**************************************************************************** |
|
| 4 |
* SVN Version information: |
|
| 2 |
/* |
|
| 5 | 3 |
* |
| 6 |
* $Id$
|
|
| 4 |
* About WebsiteBaker
|
|
| 7 | 5 |
* |
| 8 |
***************************************************************************** |
|
| 9 |
* |
|
| 10 |
***************************************************************************** |
|
| 11 |
* WebsiteBaker |
|
| 12 |
* |
|
| 13 |
* WebsiteBaker Project <http://www.websitebaker2.org/> |
|
| 14 |
* Copyright (C) 2009, Website Baker Org. e.V. |
|
| 15 |
* http://start.websitebaker2.org/impressum-datenschutz.php |
|
| 16 |
* Copyright (C) 2004-2009, Ryan Djurovich |
|
| 17 |
* |
|
| 18 |
* About WebsiteBaker |
|
| 19 |
* |
|
| 20 | 6 |
* Website Baker is a PHP-based Content Management System (CMS) |
| 21 | 7 |
* designed with one goal in mind: to enable its users to produce websites |
| 22 | 8 |
* with ease. |
| 23 | 9 |
* |
| 24 |
*****************************************************************************
|
|
| 10 |
* LICENSE INFORMATION
|
|
| 25 | 11 |
* |
| 26 |
***************************************************************************** |
|
| 27 |
* WebsiteBaker Extra Information (where needed) |
|
| 28 |
* |
|
| 29 |
* @author : Ryan Djurovich, stefan, Matthias Gallas, Manuel Lang |
|
| 30 |
* @platform : WebsiteBaker 2.8 |
|
| 31 |
* |
|
| 32 |
***************************************************************************** |
|
| 33 |
* |
|
| 34 |
***************************************************************************** |
|
| 35 |
* LICENSE INFORMATION |
|
| 36 |
* |
|
| 37 | 12 |
* WebsiteBaker is free software; you can redistribute it and/or |
| 38 | 13 |
* modify it under the terms of the GNU General Public License |
| 39 | 14 |
* as published by the Free Software Foundation; either version 2 |
| ... | ... | |
| 47 | 22 |
* You should have received a copy of the GNU General Public License |
| 48 | 23 |
* along with this program; if not, write to the Free Software |
| 49 | 24 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 50 |
*****************************************************************************/ |
|
| 25 |
* |
|
| 26 |
* WebsiteBaker Extra Information |
|
| 27 |
* |
|
| 28 |
* |
|
| 29 |
*/ |
|
| 30 |
/** |
|
| 31 |
* |
|
| 32 |
* @category frontend |
|
| 33 |
* @package account |
|
| 34 |
* @author Ryan Djurovich |
|
| 35 |
* @copyright 2004-2009, Ryan Djurovich |
|
| 36 |
* @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 |
* @link http://www.websitebaker2.org/ |
|
| 43 |
* @copyright 2009-2010, Website Baker Org. e.V. |
|
| 44 |
* @link http://start.websitebaker2.org/impressum-datenschutz.php |
|
| 45 |
* @license http://www.gnu.org/licenses/gpl.html |
|
| 46 |
* @version $Id$ |
|
| 47 |
* @platform WebsiteBaker 2.8.x |
|
| 48 |
* @requirements PHP 4.3.4 and higher |
|
| 49 |
* @lastmodified $Date$ |
|
| 50 |
* |
|
| 51 |
*/ |
|
| 51 | 52 |
|
| 52 | 53 |
if(!defined('WB_URL')) die(header('Location: ../../index.php'));
|
| 53 | 54 |
|
| 54 | 55 | |
| branches/2.8.x/wb/account/details.php | ||
|---|---|---|
| 1 |
<?php |
|
| 2 |
|
|
| 3 |
/**************************************************************************** |
|
| 4 |
* SVN Version information: |
|
| 5 |
* |
|
| 6 |
* $Id$ |
|
| 7 |
* |
|
| 8 |
***************************************************************************** |
|
| 9 |
* |
|
| 10 |
***************************************************************************** |
|
| 11 |
* WebsiteBaker |
|
| 12 |
* |
|
| 13 |
* WebsiteBaker Project <http://www.websitebaker2.org/> |
|
| 14 |
* Copyright (C) 2009, Website Baker Org. e.V. |
|
| 15 |
* http://start.websitebaker2.org/impressum-datenschutz.php |
|
| 16 |
* Copyright (C) 2004-2009, Ryan Djurovich |
|
| 17 |
* |
|
| 18 |
* About WebsiteBaker |
|
| 19 |
* |
|
| 20 |
* Website Baker is a PHP-based Content Management System (CMS) |
|
| 21 |
* designed with one goal in mind: to enable its users to produce websites |
|
| 22 |
* with ease. |
|
| 23 |
* |
|
| 24 |
***************************************************************************** |
|
| 25 |
* |
|
| 26 |
***************************************************************************** |
|
| 27 |
* WebsiteBaker Extra Information |
|
| 28 |
* |
|
| 29 |
* @author : Ryan Djurovich, stefan, Matthias Gallas, thorn, Manuel Lang |
|
| 30 |
* @platform : WebsiteBaker 2.8 |
|
| 31 |
* |
|
| 32 |
***************************************************************************** |
|
| 33 |
* |
|
| 34 |
***************************************************************************** |
|
| 35 |
* LICENSE INFORMATION |
|
| 36 |
* |
|
| 37 |
* WebsiteBaker is free software; you can redistribute it and/or |
|
| 38 |
* modify it under the terms of the GNU General Public License |
|
| 39 |
* as published by the Free Software Foundation; either version 2 |
|
| 40 |
* of the License, or (at your option) any later version. |
|
| 41 |
* |
|
| 42 |
* WebsiteBaker is distributed in the hope that it will be useful, |
|
| 43 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 44 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
| 45 |
* See the GNU General Public License for more details. |
|
| 46 |
* |
|
| 47 |
* You should have received a copy of the GNU General Public License |
|
| 48 |
* along with this program; if not, write to the Free Software |
|
| 49 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
| 50 |
*****************************************************************************/ |
|
| 51 |
|
|
| 52 |
if(!defined('WB_URL')) {
|
|
| 53 |
header('Location: ../pages/index.php');
|
|
| 54 |
exit(0); |
|
| 55 |
} |
|
| 56 |
|
|
| 57 |
// Get entered values |
|
| 58 |
$display_name = $wb->add_slashes(strip_tags($wb->get_post('display_name')));
|
|
| 59 |
$language = $wb->get_post_escaped('language');
|
|
| 60 |
$timezone = $wb->get_post_escaped('timezone')*60*60;
|
|
| 61 |
$date_format = $wb->get_post_escaped('date_format');
|
|
| 62 |
$time_format = $wb->get_post_escaped('time_format');
|
|
| 63 |
|
|
| 64 |
// Create a javascript back link |
|
| 65 |
$js_back = "javascript: history.go(-1);"; |
|
| 66 |
|
|
| 67 |
// Update the database |
|
| 68 |
$database = new database(); |
|
| 69 |
$query = "UPDATE ".TABLE_PREFIX."users SET display_name = '$display_name', language = '$language', timezone = '$timezone', date_format = '$date_format', time_format = '$time_format' WHERE user_id = '".$wb->get_user_id()."'"; |
|
| 70 |
$database->query($query); |
|
| 71 |
if($database->is_error()) {
|
|
| 72 |
$wb->print_error($database->get_error,'index.php',false); |
|
| 73 |
} else {
|
|
| 74 |
$wb->print_success($MESSAGE['PREFERENCES']['DETAILS_SAVED'], WB_URL.'/account/preferences.php'); |
|
| 75 |
$_SESSION['DISPLAY_NAME'] = $display_name; |
|
| 76 |
$_SESSION['LANGUAGE'] = $language; |
|
| 77 |
// Update date format |
|
| 78 |
if($date_format != '') {
|
|
| 79 |
$_SESSION['DATE_FORMAT'] = $date_format; |
|
| 80 |
if(isset($_SESSION['USE_DEFAULT_DATE_FORMAT'])) { unset($_SESSION['USE_DEFAULT_DATE_FORMAT']); }
|
|
| 81 |
} else {
|
|
| 82 |
$_SESSION['USE_DEFAULT_DATE_FORMAT'] = true; |
|
| 83 |
if(isset($_SESSION['DATE_FORMAT'])) { unset($_SESSION['DATE_FORMAT']); }
|
|
| 84 |
} |
|
| 85 |
// Update time format |
|
| 86 |
if($time_format != '') {
|
|
| 87 |
$_SESSION['TIME_FORMAT'] = $time_format; |
|
| 88 |
if(isset($_SESSION['USE_DEFAULT_TIME_FORMAT'])) { unset($_SESSION['USE_DEFAULT_TIME_FORMAT']); }
|
|
| 89 |
} else {
|
|
| 90 |
$_SESSION['USE_DEFAULT_TIME_FORMAT'] = true; |
|
| 91 |
if(isset($_SESSION['TIME_FORMAT'])) { unset($_SESSION['TIME_FORMAT']); }
|
|
| 92 |
} |
|
| 93 |
// Update timezone |
|
| 94 |
if($timezone != '-72000') {
|
|
| 95 |
$_SESSION['TIMEZONE'] = $timezone; |
|
| 96 |
if(isset($_SESSION['USE_DEFAULT_TIMEZONE'])) { unset($_SESSION['USE_DEFAULT_TIMEZONE']); }
|
|
| 97 |
} else {
|
|
| 98 |
$_SESSION['USE_DEFAULT_TIMEZONE'] = true; |
|
| 99 |
if(isset($_SESSION['TIMEZONE'])) { unset($_SESSION['TIMEZONE']); }
|
|
| 100 |
} |
|
| 101 |
} |
|
| 102 |
|
|
| 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 |
/** |
|
| 31 |
* |
|
| 32 |
* @category frontend |
|
| 33 |
* @package account |
|
| 34 |
* @author Ryan Djurovich |
|
| 35 |
* @copyright 2004-2009, Ryan Djurovich |
|
| 36 |
* @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 |
* @link http://www.websitebaker2.org/ |
|
| 43 |
* @copyright 2009-2010, Website Baker Org. e.V. |
|
| 44 |
* @link http://start.websitebaker2.org/impressum-datenschutz.php |
|
| 45 |
* @license http://www.gnu.org/licenses/gpl.html |
|
| 46 |
* @version $Id$ |
|
| 47 |
* @platform WebsiteBaker 2.8.x |
|
| 48 |
* @requirements PHP 4.3.4 and higher |
|
| 49 |
* @lastmodified $Date$ |
|
| 50 |
* |
|
| 51 |
*/ |
|
| 52 |
|
|
| 53 |
if(!defined('WB_URL')) {
|
|
| 54 |
header('Location: ../pages/index.php');
|
|
| 55 |
exit(0); |
|
| 56 |
} |
|
| 57 |
|
|
| 58 |
// Get entered values |
|
| 59 |
$display_name = $wb->add_slashes(strip_tags($wb->get_post('display_name')));
|
|
| 60 |
$language = $wb->get_post_escaped('language');
|
|
| 61 |
$timezone = $wb->get_post_escaped('timezone')*60*60;
|
|
| 62 |
$date_format = $wb->get_post_escaped('date_format');
|
|
| 63 |
$time_format = $wb->get_post_escaped('time_format');
|
|
| 64 |
|
|
| 65 |
// Create a javascript back link |
|
| 66 |
$js_back = "javascript: history.go(-1);"; |
|
| 67 |
|
|
| 68 |
// Update the database |
|
| 69 |
$database = new database(); |
|
| 70 |
$query = "UPDATE ".TABLE_PREFIX."users SET display_name = '$display_name', language = '$language', timezone = '$timezone', date_format = '$date_format', time_format = '$time_format' WHERE user_id = '".$wb->get_user_id()."'"; |
|
| 71 |
$database->query($query); |
|
| 72 |
if($database->is_error()) {
|
|
| 73 |
$wb->print_error($database->get_error,'index.php',false); |
|
| 74 |
} else {
|
|
| 75 |
$wb->print_success($MESSAGE['PREFERENCES']['DETAILS_SAVED'], WB_URL.'/account/preferences.php'); |
|
| 76 |
$_SESSION['DISPLAY_NAME'] = $display_name; |
|
| 77 |
$_SESSION['LANGUAGE'] = $language; |
|
| 78 |
// Update date format |
|
| 79 |
if($date_format != '') {
|
|
| 80 |
$_SESSION['DATE_FORMAT'] = $date_format; |
|
| 81 |
if(isset($_SESSION['USE_DEFAULT_DATE_FORMAT'])) { unset($_SESSION['USE_DEFAULT_DATE_FORMAT']); }
|
|
| 82 |
} else {
|
|
| 83 |
$_SESSION['USE_DEFAULT_DATE_FORMAT'] = true; |
|
| 84 |
if(isset($_SESSION['DATE_FORMAT'])) { unset($_SESSION['DATE_FORMAT']); }
|
|
| 85 |
} |
|
| 86 |
// Update time format |
|
| 87 |
if($time_format != '') {
|
|
| 88 |
$_SESSION['TIME_FORMAT'] = $time_format; |
|
| 89 |
if(isset($_SESSION['USE_DEFAULT_TIME_FORMAT'])) { unset($_SESSION['USE_DEFAULT_TIME_FORMAT']); }
|
|
| 90 |
} else {
|
|
| 91 |
$_SESSION['USE_DEFAULT_TIME_FORMAT'] = true; |
|
| 92 |
if(isset($_SESSION['TIME_FORMAT'])) { unset($_SESSION['TIME_FORMAT']); }
|
|
| 93 |
} |
|
| 94 |
// Update timezone |
|
| 95 |
if($timezone != '-72000') {
|
|
| 96 |
$_SESSION['TIMEZONE'] = $timezone; |
|
| 97 |
if(isset($_SESSION['USE_DEFAULT_TIMEZONE'])) { unset($_SESSION['USE_DEFAULT_TIMEZONE']); }
|
|
| 98 |
} else {
|
|
| 99 |
$_SESSION['USE_DEFAULT_TIMEZONE'] = true; |
|
| 100 |
if(isset($_SESSION['TIMEZONE'])) { unset($_SESSION['TIMEZONE']); }
|
|
| 101 |
} |
|
| 102 |
} |
|
| 103 |
|
|
| 103 | 104 |
?> |
| 104 | 105 | |
| branches/2.8.x/wb/account/signup.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_once('../config.php');
|
|
| 27 |
|
|
| 28 |
if(!is_numeric(FRONTEND_SIGNUP)) {
|
|
| 29 |
if(INTRO_PAGE) {
|
|
| 30 |
header('Location: '.WB_URL.PAGES_DIRECTORY.'/index.php');
|
|
| 31 |
exit(0); |
|
| 32 |
} else {
|
|
| 33 |
header('Location: '.WB_URL.'/index.php');
|
|
| 34 |
exit(0); |
|
| 35 |
} |
|
| 36 |
} |
|
| 37 |
|
|
| 38 |
if(ENABLED_ASP && isset($_POST['username']) && ( // form faked? Check the honeypot-fields. |
|
| 39 |
(!isset($_POST['submitted_when']) OR !isset($_SESSION['submitted_when'])) OR |
|
| 40 |
($_POST['submitted_when'] != $_SESSION['submitted_when']) OR |
|
| 41 |
(!isset($_POST['email-address']) OR $_POST['email-address']) OR |
|
| 42 |
(!isset($_POST['name']) OR $_POST['name']) OR |
|
| 43 |
(!isset($_POST['full_name']) OR $_POST['full_name']) |
|
| 44 |
)) {
|
|
| 45 |
exit(header("Location: ".WB_URL.PAGES_DIRECTORY.""));
|
|
| 46 |
} |
|
| 47 |
|
|
| 48 |
// Load the language file |
|
| 49 |
if(!file_exists(WB_PATH.'/languages/'.DEFAULT_LANGUAGE.'.php')) {
|
|
| 50 |
exit('Error loading language file '.DEFAULT_LANGUAGE.', please check configuration');
|
|
| 51 |
} else {
|
|
| 52 |
require_once(WB_PATH.'/languages/'.DEFAULT_LANGUAGE.'.php'); |
|
| 53 |
$load_language = false; |
|
| 54 |
} |
|
| 55 |
|
|
| 56 |
|
|
| 57 |
// Required page details |
|
| 58 |
$page_id = 0; |
|
| 59 |
$page_description = ''; |
|
| 60 |
$page_keywords = ''; |
|
| 61 |
define('PAGE_ID', 0);
|
|
| 62 |
define('ROOT_PARENT', 0);
|
|
| 63 |
define('PARENT', 0);
|
|
| 64 |
define('LEVEL', 0);
|
|
| 65 |
define('PAGE_TITLE', $TEXT['SIGNUP']);
|
|
| 66 |
define('MENU_TITLE', $TEXT['SIGNUP']);
|
|
| 67 |
define('MODULE', '');
|
|
| 68 |
define('VISIBILITY', 'public');
|
|
| 69 |
|
|
| 70 |
// Set the page content include file |
|
| 71 |
if(isset($_POST['username'])) {
|
|
| 72 |
define('PAGE_CONTENT', WB_PATH.'/account/signup2.php');
|
|
| 73 |
} else {
|
|
| 74 |
define('PAGE_CONTENT', WB_PATH.'/account/signup_form.php');
|
|
| 75 |
} |
|
| 76 |
|
|
| 77 |
// Set auto authentication to false |
|
| 78 |
$auto_auth = false; |
|
| 79 |
|
|
| 80 |
// Include the index (wrapper) file |
|
| 81 |
require(WB_PATH.'/index.php'); |
|
| 82 |
|
|
| 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 |
/** |
|
| 31 |
* |
|
| 32 |
* @category frontend |
|
| 33 |
* @package account |
|
| 34 |
* @author Ryan Djurovich |
|
| 35 |
* @copyright 2004-2009, Ryan Djurovich |
|
| 36 |
* @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 |
* @link http://www.websitebaker2.org/ |
|
| 43 |
* @copyright 2009-2010, Website Baker Org. e.V. |
|
| 44 |
* @link http://start.websitebaker2.org/impressum-datenschutz.php |
|
| 45 |
* @license http://www.gnu.org/licenses/gpl.html |
|
| 46 |
* @version $Id$ |
|
| 47 |
* @platform WebsiteBaker 2.8.x |
|
| 48 |
* @requirements PHP 4.3.4 and higher |
|
| 49 |
* @lastmodified $Date$ |
|
| 50 |
* |
|
| 51 |
*/ |
|
| 52 |
|
|
| 53 |
require_once('../config.php');
|
|
| 54 |
|
|
| 55 |
if(!is_numeric(FRONTEND_SIGNUP)) {
|
|
| 56 |
if(INTRO_PAGE) {
|
|
| 57 |
header('Location: '.WB_URL.PAGES_DIRECTORY.'/index.php');
|
|
| 58 |
exit(0); |
|
| 59 |
} else {
|
|
| 60 |
header('Location: '.WB_URL.'/index.php');
|
|
| 61 |
exit(0); |
|
| 62 |
} |
|
| 63 |
} |
|
| 64 |
|
|
| 65 |
if(ENABLED_ASP && isset($_POST['username']) && ( // form faked? Check the honeypot-fields. |
|
| 66 |
(!isset($_POST['submitted_when']) OR !isset($_SESSION['submitted_when'])) OR |
|
| 67 |
($_POST['submitted_when'] != $_SESSION['submitted_when']) OR |
|
| 68 |
(!isset($_POST['email-address']) OR $_POST['email-address']) OR |
|
| 69 |
(!isset($_POST['name']) OR $_POST['name']) OR |
|
| 70 |
(!isset($_POST['full_name']) OR $_POST['full_name']) |
|
| 71 |
)) {
|
|
| 72 |
exit(header("Location: ".WB_URL.PAGES_DIRECTORY.""));
|
|
| 73 |
} |
|
| 74 |
|
|
| 75 |
// Load the language file |
|
| 76 |
if(!file_exists(WB_PATH.'/languages/'.DEFAULT_LANGUAGE.'.php')) {
|
|
| 77 |
exit('Error loading language file '.DEFAULT_LANGUAGE.', please check configuration');
|
|
| 78 |
} else {
|
|
| 79 |
require_once(WB_PATH.'/languages/'.DEFAULT_LANGUAGE.'.php'); |
|
| 80 |
$load_language = false; |
|
| 81 |
} |
|
| 82 |
|
|
| 83 |
|
|
| 84 |
// Required page details |
|
| 85 |
$page_id = 0; |
|
| 86 |
$page_description = ''; |
|
| 87 |
$page_keywords = ''; |
|
| 88 |
define('PAGE_ID', 0);
|
|
| 89 |
define('ROOT_PARENT', 0);
|
|
| 90 |
define('PARENT', 0);
|
|
| 91 |
define('LEVEL', 0);
|
|
| 92 |
define('PAGE_TITLE', $TEXT['SIGNUP']);
|
|
| 93 |
define('MENU_TITLE', $TEXT['SIGNUP']);
|
|
| 94 |
define('MODULE', '');
|
|
| 95 |
define('VISIBILITY', 'public');
|
|
| 96 |
|
|
| 97 |
// Set the page content include file |
|
| 98 |
if(isset($_POST['username'])) {
|
|
| 99 |
define('PAGE_CONTENT', WB_PATH.'/account/signup2.php');
|
|
| 100 |
} else {
|
|
| 101 |
define('PAGE_CONTENT', WB_PATH.'/account/signup_form.php');
|
|
| 102 |
} |
|
| 103 |
|
|
| 104 |
// Set auto authentication to false |
|
| 105 |
$auto_auth = false; |
|
| 106 |
|
|
| 107 |
// Include the index (wrapper) file |
|
| 108 |
require(WB_PATH.'/index.php'); |
|
| 109 |
|
|
| 83 | 110 |
?> |
| 84 | 111 | |
| branches/2.8.x/wb/account/email.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 |
if(!defined('WB_URL')) {
|
|
| 27 |
header('Location: ../index.php');
|
|
| 28 |
exit(0); |
|
| 29 |
} |
|
| 30 |
|
|
| 31 |
// Get the values entered |
|
| 32 |
$current_password = $wb->get_post('current_password');
|
|
| 33 |
$email = $wb->get_post('email');
|
|
| 34 |
|
|
| 35 |
// Create a javascript back link |
|
| 36 |
$js_back = "javascript: history.go(-1);"; |
|
| 37 |
|
|
| 38 |
// Get existing password |
|
| 39 |
$database = new database(); |
|
| 40 |
$query = "SELECT user_id FROM ".TABLE_PREFIX."users WHERE user_id = '".$wb->get_user_id()."' AND password = '".md5($current_password)."'"; |
|
| 41 |
$results = $database->query($query); |
|
| 42 |
|
|
| 43 |
// Validate values |
|
| 44 |
if($results->numRows() == 0) {
|
|
| 45 |
$wb->print_error($MESSAGE['PREFERENCES']['CURRENT_PASSWORD_INCORRECT'], $js_back, false); |
|
| 46 |
} |
|
| 47 |
// Validate values |
|
| 48 |
if(!$wb->validate_email($email)) {
|
|
| 49 |
$wb->print_error($MESSAGE['USERS']['INVALID_EMAIL'], $js_back, false); |
|
| 50 |
} |
|
| 51 |
|
|
| 52 |
$email = $wb->add_slashes($email); |
|
| 53 |
|
|
| 54 |
// Update the database |
|
| 55 |
$database = new database(); |
|
| 56 |
$query = "UPDATE ".TABLE_PREFIX."users SET email = '$email' WHERE user_id = '".$wb->get_user_id()."' AND password = '".md5($current_password)."'"; |
|
| 57 |
$database->query($query); |
|
| 58 |
if($database->is_error()) {
|
|
| 59 |
$wb->print_error($database->get_error,'index.php', false); |
|
| 60 |
} else {
|
|
| 61 |
$wb->print_success($MESSAGE['PREFERENCES']['EMAIL_UPDATED'], WB_URL.'/account/preferences.php'); |
|
| 62 |
$_SESSION['EMAIL'] = $email; |
|
| 63 |
} |
|
| 64 |
|
|
| 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. |
|
Also available in: Unified diff
Beginning header information update