Project

General

Profile

« Previous | Next » 

Revision 1349

Added by Dietmar almost 14 years ago

add ini_set('display_errors', 1) (Tks to Thorn)
update headerinfos

View differences:

branches/2.8.x/LICENSE
2 2
=======
3 3
WebsiteBaker is released under the GNU General Public License,
4 4
Copyright (C) 2004-2009 Ryan Djurovich.
5
Copyright (C) 2009-2010 Website Baker Org. e.V.
5
Copyright (C) 2009-2011 Website Baker Org. e.V.
6 6
Please refer to the COPYING file for a copy of the license.
7 7

  
8 8
LICENSE INFORMATION
branches/2.8.x/CHANGELOG
10 10
# = Bugfix
11 11
! = Update/Change
12 12

  
13
------------------------------------- 2.8.1 -------------------------------------
13
------------------------------------- 2.8.2 -------------------------------------
14
19 Dec-2010 Dietmar Woellbrink (Luisehahne)
15
+ add ini_set('display_errors', 1) (Tks to Thorn)
16
! update headerinfos
14 17
17 Dec-2010 Dietmar Woellbrink (Luisehahne)
15 18
# fix save access rights in settings
16 19
23 Nov-2010 Dietmar Woellbrink (Luisehahne)
......
166 169
!	optimize function getVersion in /framework/addon.precheck.inc.php
167 170
19-Feb-2010 Dietmar Woellbrink (Luisehahne)
168 171
!	change constant EDIT_ONE_SECTION to default false	
172
------------------------------------- 2.8.1 -------------------------------------
169 173
08-Feb-2010 Dietmar Woellbrink (Luisehahne)
170 174
!	missunderstanding back to old logo
171 175
08-Feb-2010 Dietmar Woellbrink (Luisehahne)
branches/2.8.x/wb/upgrade-script.php
5 5
 * @package         installation
6 6
 * @author          WebsiteBaker Project
7 7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9 9
 * @link			http://www.websitebaker2.org/
10 10
 * @license         http://www.gnu.org/licenses/gpl.html
11 11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.3.4 and higher
12
 * @requirements    PHP 5.2.2 and higher
13 13
 * @version         $Id$
14 14
 * @filesource		$HeadURL$
15 15
 * @lastmodified    $Date$
......
24 24
	echo '<'.$element .' class="' .$class .'">' .$message .'</' .$element.'>';
25 25
}
26 26

  
27
$version = '2.8.1';
27
$version = '2.8.2';
28 28
// database tables including in WB package
29 29
$table_list = array (
30 30
    'settings','groups','addons','pages','sections','search','users',
......
484 484
        }
485 485

  
486 486

  
487
      if ((version_compare(WB_VERSION, '2.8.0') <= 0) && file_exists(WB_PATH."/modules/news/upgrade.php"))
487
      if ((version_compare(WB_VERSION, '2.8.1') <= 0) && file_exists(WB_PATH."/modules/news/upgrade.php"))
488 488
      {
489 489
              echo '<h4>Upgrade existings postfiles to new format</h4><br />';
490 490
              // change old postfiles to new postfiles
......
497 497
}
498 498

  
499 499
/**********************************************************
500
 *  - Set Version to WB 2.8.1
500
 *  - Set Version to WB 2.8.2
501 501
 */
502
echo "<br />Update database version number to 2.8.1 : ";
502
echo "<br />Update database version number to 2.8.2 : ";
503 503
echo ($database->query("UPDATE `".TABLE_PREFIX."settings` SET `value` = '$version' WHERE `name` = 'wb_version'")) ? " $OK<br />" : " $FAIL<br />";
504 504

  
505 505
/**********************************************************
branches/2.8.x/wb/include/yui/connection/index.php
5 5
 * @package         yui
6 6
 * @author          WebsiteBaker Project
7 7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9 9
 * @link			http://www.websitebaker2.org/
10 10
 * @license         http://www.gnu.org/licenses/gpl.html
11 11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.3.4 and higher
12
 * @requirements    PHP 5.2.2 and higher
13 13
 * @version      	$Id$
14 14
 * @filesource		$HeadURL$
15 15
 * @lastmodified    $Date$
branches/2.8.x/wb/include/yui/dom/index.php
5 5
 * @package         yui
6 6
 * @author          WebsiteBaker Project
7 7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9 9
 * @link			http://www.websitebaker2.org/
10 10
 * @license         http://www.gnu.org/licenses/gpl.html
11 11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.3.4 and higher
12
 * @requirements    PHP 5.2.2 and higher
13 13
 * @version      	$Id$
14 14
 * @filesource		$HeadURL$
15 15
 * @lastmodified    $Date$
branches/2.8.x/wb/include/yui/yahoo/index.php
5 5
 * @package         yui
6 6
 * @author          WebsiteBaker Project
7 7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9 9
 * @link			http://www.websitebaker2.org/
10 10
 * @license         http://www.gnu.org/licenses/gpl.html
11 11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.3.4 and higher
12
 * @requirements    PHP 5.2.2 and higher
13 13
 * @version         $Id$
14 14
 * @filesource		$HeadURL$
15 15
 * @lastmodified    $Date$
branches/2.8.x/wb/include/yui/event/index.php
5 5
 * @package         yui
6 6
 * @author          WebsiteBaker Project
7 7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9 9
 * @link			http://www.websitebaker2.org/
10 10
 * @license         http://www.gnu.org/licenses/gpl.html
11 11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.3.4 and higher
12
 * @requirements    PHP 5.2.2 and higher
13 13
 * @version         $Id$
14 14
 * @filesource		$HeadURL$
15 15
 * @lastmodified    $Date$
branches/2.8.x/wb/include/yui/dragdrop/index.php
6 6
 * @package         yui
7 7
 * @author          WebsiteBaker Project
8 8
 * @copyright       2004-2009, Ryan Djurovich
9
 * @copyright       2009-2010, Website Baker Org. e.V.
9
 * @copyright       2009-2011, Website Baker Org. e.V.
10 10
 * @link			http://www.websitebaker2.org/
11 11
 * @license         http://www.gnu.org/licenses/gpl.html
12 12
 * @platform        WebsiteBaker 2.8.x
13
 * @requirements    PHP 4.3.4 and higher
13
 * @requirements    PHP 5.2.2 and higher
14 14
 * @version         $Id$
15 15
 * @filesource		$HeadURL$
16 16
 * @lastmodified    $Date$
branches/2.8.x/wb/include/editarea/reg_syntax/index.php
6 6
 * @author		    Christophe Dolivet (EditArea), Christian Sommer (WB wrapper)
7 7
 * @author          WebsiteBaker Project
8 8
 * @copyright       2004-2009, Ryan Djurovich
9
 * @copyright       2009-2010, Website Baker Org. e.V.
9
 * @copyright       2009-2011, Website Baker Org. e.V.
10 10
 * @link			http://www.websitebaker2.org/
11 11
 * @license         http://www.gnu.org/licenses/gpl.html
12 12
 * @platform        WebsiteBaker 2.8.x
13
 * @requirements    PHP 4.3.4 and higher
13
 * @requirements    PHP 5.2.2 and higher
14 14
 * @version         $Id$
15 15
 * @filesource		$HeadURL$
16 16
 * @lastmodified    $Date$
branches/2.8.x/wb/include/editarea/langs/index.php
6 6
 * @author		    Christophe Dolivet (EditArea), Christian Sommer (WB wrapper)
7 7
 * @author          WebsiteBaker Project
8 8
 * @copyright       2004-2009, Ryan Djurovich
9
 * @copyright       2009-2010, Website Baker Org. e.V.
9
 * @copyright       2009-2011, Website Baker Org. e.V.
10 10
 * @link			http://www.websitebaker2.org/
11 11
 * @license         http://www.gnu.org/licenses/gpl.html
12 12
 * @platform        WebsiteBaker 2.8.x
13
 * @requirements    PHP 4.3.4 and higher
13
 * @requirements    PHP 5.2.2 and higher
14 14
 * @version         $Id$
15 15
 * @filesource		$HeadURL$
16 16
 * @lastmodified    $Date$
branches/2.8.x/wb/include/editarea/images/index.php
6 6
 * @author		    Christophe Dolivet (EditArea), Christian Sommer (WB wrapper)
7 7
 * @author          WebsiteBaker Project
8 8
 * @copyright       2004-2009, Ryan Djurovich
9
 * @copyright       2009-2010, Website Baker Org. e.V.
9
 * @copyright       2009-2011, Website Baker Org. e.V.
10 10
 * @link			http://www.websitebaker2.org/
11 11
 * @license         http://www.gnu.org/licenses/gpl.html
12 12
 * @platform        WebsiteBaker 2.8.x
13
 * @requirements    PHP 4.3.4 and higher
13
 * @requirements    PHP 5.2.2 and higher
14 14
 * @version         $Id$
15 15
 * @filesource		$HeadURL$
16 16
 * @lastmodified    $Date$
branches/2.8.x/wb/include/editarea/wb_wrapper_edit_area.php
6 6
 * @author		    Christophe Dolivet (EditArea), Christian Sommer (WB wrapper)
7 7
 * @author          WebsiteBaker Project
8 8
 * @copyright       2004-2009, Ryan Djurovich
9
 * @copyright       2009-2010, Website Baker Org. e.V.
9
 * @copyright       2009-2011, Website Baker Org. e.V.
10 10
 * @link			http://www.websitebaker2.org/
11 11
 * @license         http://www.gnu.org/licenses/gpl.html
12 12
 * @platform        WebsiteBaker 2.8.x
13
 * @requirements    PHP 4.3.4 and higher
13
 * @requirements    PHP 5.2.2 and higher
14 14
 * @version         $Id$
15 15
 * @filesource		$HeadURL$
16 16
 * @lastmodified    $Date$
branches/2.8.x/wb/include/editarea/index.php
6 6
 * @author		    Christophe Dolivet (EditArea), Christian Sommer (WB wrapper)
7 7
 * @author          WebsiteBaker Project
8 8
 * @copyright       2004-2009, Ryan Djurovich
9
 * @copyright       2009-2010, Website Baker Org. e.V.
9
 * @copyright       2009-2011, Website Baker Org. e.V.
10 10
 * @link			http://www.websitebaker2.org/
11 11
 * @license         http://www.gnu.org/licenses/gpl.html
12 12
 * @platform        WebsiteBaker 2.8.x
13
 * @requirements    PHP 4.3.4 and higher
13
 * @requirements    PHP 5.2.2 and higher
14 14
 * @version         $Id$
15 15
 * @filesource		$HeadURL$
16 16
 * @lastmodified    $Date$
branches/2.8.x/wb/admin/groups/groups.php
5 5
 * @package         groups
6 6
 * @author          WebsiteBaker Project
7 7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9 9
 * @link			http://www.websitebaker2.org/
10 10
 * @license         http://www.gnu.org/licenses/gpl.html
11 11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.3.4 and higher
12
 * @requirements    PHP 5.2.2 and higher
13 13
 * @version         $Id$
14 14
 * @filesource		$HeadURL$
15 15
 * @lastmodified    $Date$
branches/2.8.x/wb/admin/groups/index.php
5 5
 * @package         groups
6 6
 * @author          WebsiteBaker Project
7 7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9 9
 * @link			http://www.websitebaker2.org/
10 10
 * @license         http://www.gnu.org/licenses/gpl.html
11 11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.3.4 and higher
12
 * @requirements    PHP 5.2.2 and higher
13 13
 * @version         $Id$
14 14
 * @filesource		$HeadURL$
15 15
 * @lastmodified    $Date$
branches/2.8.x/wb/admin/start/index.php
5 5
 * @package         start
6 6
 * @author          WebsiteBaker Project
7 7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9 9
 * @link			http://www.websitebaker2.org/
10 10
 * @license         http://www.gnu.org/licenses/gpl.html
11 11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.3.4 and higher
12
 * @requirements    PHP 5.2.2 and higher
13 13
 * @version         $Id$
14 14
 * @filesource		$HeadURL$
15 15
 * @lastmodified    $Date$
branches/2.8.x/wb/admin/pages/save.php
5 5
 * @package         pages
6 6
 * @author          WebsiteBaker Project
7 7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9 9
 * @link			http://www.websitebaker2.org/
10 10
 * @license         http://www.gnu.org/licenses/gpl.html
11 11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.3.4 and higher
12
 * @requirements    PHP 5.2.2 and higher
13 13
 * @version         $Id$
14 14
 * @filesource		$HeadURL$
15 15
 * @lastmodified    $Date$
branches/2.8.x/wb/admin/pages/settings.php
5 5
 * @package         pages
6 6
 * @author          WebsiteBaker Project
7 7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9 9
 * @link			http://www.websitebaker2.org/
10 10
 * @license         http://www.gnu.org/licenses/gpl.html
11 11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.3.4 and higher
12
 * @requirements    PHP 5.2.2 and higher
13 13
 * @version         $Id$
14 14
 * @filesource		$HeadURL$
15 15
 * @lastmodified    $Date$
branches/2.8.x/wb/admin/pages/index.php
5 5
 * @package         pages
6 6
 * @author          WebsiteBaker Project
7 7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9 9
 * @link			http://www.websitebaker2.org/
10 10
 * @license         http://www.gnu.org/licenses/gpl.html
11 11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.3.4 and higher
12
 * @requirements    PHP 5.2.2 and higher
13 13
 * @version         $Id$
14 14
 * @filesource		$HeadURL:  $
15 15
 * @lastmodified    $Date:  $
branches/2.8.x/wb/admin/pages/settings2.php
5 5
 * @package         pages
6 6
 * @author          WebsiteBaker Project
7 7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9 9
 * @link			http://www.websitebaker2.org/
10 10
 * @license         http://www.gnu.org/licenses/gpl.html
11 11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.3.4 and higher
12
 * @requirements    PHP 5.2.2 and higher
13 13
 * @version         $Id$
14 14
 * @filesource		$HeadURL$
15 15
 * @lastmodified    $Date$
branches/2.8.x/wb/admin/pages/modify.php
5 5
 * @package         pages
6 6
 * @author          WebsiteBaker Project
7 7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9 9
 * @link			http://www.websitebaker2.org/
10 10
 * @license         http://www.gnu.org/licenses/gpl.html
11 11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.3.4 and higher
12
 * @requirements    PHP 5.2.2 and higher
13 13
 * @version         $Id$
14 14
 * @filesource		$HeadURL$
15 15
 * @lastmodified    $Date$
branches/2.8.x/wb/admin/pages/sections.php
5 5
 * @package         pages
6 6
 * @author          WebsiteBaker Project
7 7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9 9
 * @link			http://www.websitebaker2.org/
10 10
 * @license         http://www.gnu.org/licenses/gpl.html
11 11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.3.4 and higher
12
 * @requirements    PHP 5.2.2 and higher
13 13
 * @version         $Id$
14 14
 * @filesource		$HeadURL$
15 15
 * @lastmodified    $Date$
branches/2.8.x/wb/admin/pages/add.php
5 5
 * @package         pages
6 6
 * @author          WebsiteBaker Project
7 7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9 9
 * @link			http://www.websitebaker2.org/
10 10
 * @license         http://www.gnu.org/licenses/gpl.html
11 11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.3.4 and higher
12
 * @requirements    PHP 5.2.2 and higher
13 13
 * @version         $Id$
14 14
 * @filesource		$HeadURL$
15 15
 * @lastmodified    $Date$
branches/2.8.x/wb/admin/interface/time_formats.php
5 5
 * @package         interface
6 6
 * @author          WebsiteBaker Project
7 7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9 9
 * @link            http://www.websitebaker2.org/
10 10
 * @license         http://www.gnu.org/licenses/gpl.html
11 11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.4.9 and higher
12
 * @requirements    PHP 5.2.2 and higher
13 13
 * @version         $Id$
14 14
 * @filesource      $HeadURL$
15 15
 * @lastmodified    $Date$
branches/2.8.x/wb/admin/interface/charsets.php
5 5
 * @package         interface
6 6
 * @author          WebsiteBaker Project
7 7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9 9
 * @link            http://www.websitebaker2.org/
10 10
 * @license         http://www.gnu.org/licenses/gpl.html
11 11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.4.9 and higher
12
 * @requirements    PHP 5.2.2 and higher
13 13
 * @version         $Id$
14 14
 * @filesource      $HeadURL$
15 15
 * @lastmodified    $Date$
branches/2.8.x/wb/admin/interface/timezones.php
5 5
 * @package         interface
6 6
 * @author          WebsiteBaker Project
7 7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9 9
 * @link            http://www.websitebaker2.org/
10 10
 * @license         http://www.gnu.org/licenses/gpl.html
11 11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.4.9 and higher
12
 * @requirements    PHP 5.2.2 and higher
13 13
 * @version         $Id$
14 14
 * @filesource      $HeadURL$
15 15
 * @lastmodified    $Date$
branches/2.8.x/wb/admin/interface/er_levels.php
5 5
 * @package         interface
6 6
 * @author          WebsiteBaker Project
7 7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9 9
 * @link            http://www.websitebaker2.org/
10 10
 * @license         http://www.gnu.org/licenses/gpl.html
11 11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.4.9 and higher
12
 * @requirements    PHP 5.2.2 and higher
13 13
 * @version         $Id$
14 14
 * @filesource      $HeadURL$
15 15
 * @lastmodified    $Date$
branches/2.8.x/wb/admin/interface/version.php
33 33
 * @package      	interface
34 34
 * @author          WebsiteBaker Project
35 35
 * @copyright       2004-2009, Ryan Djurovich
36
 * @copyright       2009-2010, Website Baker Org. e.V.
36
 * @copyright       2009-2011, Website Baker Org. e.V.
37 37
 * @link			http://www.websitebaker2.org/
38 38
 * @license         http://www.gnu.org/licenses/gpl.html
39
 * @platform        WebsiteBaker 2.8.1
40
 * @requirements    PHP 4.3.4 and higher
39
 * @platform        WebsiteBaker 2.8.x
40
 * @requirements    PHP 5.2.2 and higher
41 41
 * @revision     	$Revision$
42 42
 * @version      	$Id$
43 43
 * @filesource		$HeadURL$
......
51 51
}
52 52

  
53 53
// check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled)
54
if(!defined('VERSION')) define('VERSION', '2.8.1');
55
if(!defined('REVISION')) define('REVISION', '1348');
54
if(!defined('VERSION')) define('VERSION', '2.8.2.RC1');
55
if(!defined('REVISION')) define('REVISION', '1349');
56 56

  
57 57
?>
branches/2.8.x/wb/admin/interface/index.php
5 5
 * @package         interface
6 6
 * @author          WebsiteBaker Project
7 7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9 9
 * @link            http://www.websitebaker2.org/
10 10
 * @license         http://www.gnu.org/licenses/gpl.html
11 11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.4.9 and higher
12
 * @requirements    PHP 5.2.2 and higher
13 13
 * @version         $Id$
14 14
 * @filesource      $HeadURL$
15 15
 * @lastmodified    $Date$
branches/2.8.x/wb/admin/interface/date_formats.php
5 5
 * @package         interface
6 6
 * @author          WebsiteBaker Project
7 7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9 9
 * @link            http://www.websitebaker2.org/
10 10
 * @license         http://www.gnu.org/licenses/gpl.html
11 11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.4.9 and higher
12
 * @requirements    PHP 5.2.2 and higher
13 13
 * @version         $Id$
14 14
 * @filesource      $HeadURL$
15 15
 * @lastmodified    $Date$
branches/2.8.x/wb/admin/settings/save.php
5 5
 * @package         settings
6 6
 * @author          WebsiteBaker Project
7 7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9 9
 * @link			http://www.websitebaker2.org/
10 10
 * @license         http://www.gnu.org/licenses/gpl.html
11 11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.3.4 and higher
12
 * @requirements    PHP 5.2.2 and higher
13 13
 * @version         $Id$
14 14
 * @filesource		$HeadURL$
15 15
 * @lastmodified    $Date$
branches/2.8.x/wb/admin/settings/index.php
5 5
 * @package         settings
6 6
 * @author          WebsiteBaker Project
7 7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9 9
 * @link			http://www.websitebaker2.org/
10 10
 * @license         http://www.gnu.org/licenses/gpl.html
11 11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.3.4 and higher
12
 * @requirements    PHP 5.2.2 and higher
13 13
 * @version         $Id$
14 14
 * @filesource		$HeadURL$
15 15
 * @lastmodified    $Date$
branches/2.8.x/wb/admin/users/save.php
5 5
 * @package         users
6 6
 * @author          WebsiteBaker Project
7 7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9 9
 * @link			http://www.websitebaker2.org/
10 10
 * @license         http://www.gnu.org/licenses/gpl.html
11 11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.4.9 and higher
12
 * @requirements    PHP 5.2.2 and higher
13 13
 * @version         $Id$
14 14
 * @filesource		$HeadURL$
15 15
 * @lastmodified    $Date$
branches/2.8.x/wb/admin/users/users.php
5 5
 * @package         users
6 6
 * @author          WebsiteBaker Project
7 7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9 9
 * @link			http://www.websitebaker2.org/
10 10
 * @license         http://www.gnu.org/licenses/gpl.html
11 11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.3.4 and higher
12
 * @requirements    PHP 5.2.2 and higher
13 13
 * @version         $Id$
14 14
 * @filesource		$HeadURL$
15 15
 * @lastmodified    $Date$
branches/2.8.x/wb/admin/users/index.php
5 5
 * @package         users
6 6
 * @author          WebsiteBaker Project
7 7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9 9
 * @link			http://www.websitebaker2.org/
10 10
 * @license         http://www.gnu.org/licenses/gpl.html
11 11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.3.4 and higher
12
 * @requirements    PHP 5.2.2 and higher
13 13
 * @version         $Id$
14 14
 * @filesource		$HeadURL$
15 15
 * @lastmodified    $Date$
branches/2.8.x/wb/admin/users/add.php
5 5
 * @package         users
6 6
 * @author          WebsiteBaker Project
7 7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9 9
 * @link			http://www.websitebaker2.org/
10 10
 * @license         http://www.gnu.org/licenses/gpl.html
11 11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.4.9 and higher
12
 * @requirements    PHP 5.2.2 and higher
13 13
 * @version         $Id$
14 14
 * @filesource		$HeadURL$
15 15
 * @lastmodified    $Date$
branches/2.8.x/wb/admin/access/index.php
5 5
 * @package         access
6 6
 * @author          WebsiteBaker Project
7 7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9 9
 * @link			http://www.websitebaker2.org/
10 10
 * @license         http://www.gnu.org/licenses/gpl.html
11 11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.3.4 and higher
12
 * @requirements    PHP 5.2.2 and higher
13 13
 * @version         $Id$
14 14
 * @filesource		$HeadURL:  $
15 15
 * @lastmodified    $Date:  $
branches/2.8.x/wb/admin/preferences/save.php
6 6
 * @author          Independend-Software-Team
7 7
 * @author          WebsiteBaker Project
8 8
 * @copyright       2004-2009, Ryan Djurovich
9
 * @copyright       2009-2010, Website Baker Org. e.V.
9
 * @copyright       2009-2011, Website Baker Org. e.V.
10 10
 * @link			http://www.websitebaker2.org/
11 11
 * @license         http://www.gnu.org/licenses/gpl.html
12 12
 * @platform        WebsiteBaker 2.8.x
13
 * @requirements    PHP 4.4.9 and higher
13
 * @requirements    PHP 5.2.2 and higher
14 14
 * @version         $Id$
15 15
 * @filesource		$HeadURL$
16 16
 * @lastmodified    $Date$
branches/2.8.x/wb/admin/preferences/index.php
6 6
 * @author          Independend-Software-Team
7 7
 * @author          WebsiteBaker Project
8 8
 * @copyright       2004-2009, Ryan Djurovich
9
 * @copyright       2009-2010, Website Baker Org. e.V.
9
 * @copyright       2009-2011, Website Baker Org. e.V.
10 10
 * @link			http://www.websitebaker2.org/
11 11
 * @license         http://www.gnu.org/licenses/gpl.html
12 12
 * @platform        WebsiteBaker 2.8.x
13
 * @requirements    PHP 4.4.9 and higher
13
 * @requirements    PHP 5.2.2 and higher
14 14
 * @version         $Id$
15 15
 * @filesource		$HeadURL$
16 16
 * @lastmodified    $Date$
branches/2.8.x/wb/admin/addons/reload.php
5 5
 * @package         addons
6 6
 * @author          WebsiteBaker Project
7 7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9 9
 * @link			http://www.websitebaker2.org/
10 10
 * @license         http://www.gnu.org/licenses/gpl.html
11 11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.3.4 and higher
12
 * @requirements    PHP 5.2.2 and higher
13 13
 * @version         $Id$
14 14
 * @filesource		$HeadURL:  $
15 15
 * @lastmodified    $Date:  $
branches/2.8.x/wb/admin/addons/index.php
5 5
 * @package         addons
6 6
 * @author          WebsiteBaker Project
7 7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9 9
 * @link			http://www.websitebaker2.org/
10 10
 * @license         http://www.gnu.org/licenses/gpl.html
11 11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.3.4 and higher
12
 * @requirements    PHP 5.2.2 and higher
13 13
 * @version         $Id$
14 14
 * @filesource		$HeadURL:  $
15 15
 * @lastmodified    $Date:  $
branches/2.8.x/wb/admin/login/forgot/index.php
5 5
 * @package         login
6 6
 * @author          WebsiteBaker Project
7 7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9 9
 * @link			http://www.websitebaker2.org/
10 10
 * @license         http://www.gnu.org/licenses/gpl.html
11 11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.3.4 and higher
12
 * @requirements    PHP 5.2.2 and higher
13 13
 * @version         $Id$
14 14
 * @filesource		$HeadURL$
15 15
 * @lastmodified    $Date$
branches/2.8.x/wb/admin/login/index.php
5 5
 * @package         login
6 6
 * @author          WebsiteBaker Project
7 7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9 9
 * @link			http://www.websitebaker2.org/
10 10
 * @license         http://www.gnu.org/licenses/gpl.html
11 11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.3.4 and higher
12
 * @requirements    PHP 5.2.2 and higher
13 13
 * @version         $Id$
14 14
 * @filesource		$HeadURL$
15 15
 * @lastmodified    $Date$
branches/2.8.x/wb/admin/modules/manual_install.php
6 6
 * @author          Christian Sommer
7 7
 * @author          WebsiteBaker Project
8 8
 * @copyright       2004-2009, Ryan Djurovich
9
 * @copyright       2009-2010, Website Baker Org. e.V.
9
 * @copyright       2009-2011, Website Baker Org. e.V.
10 10
 * @link			http://www.websitebaker2.org/
11 11
 * @license         http://www.gnu.org/licenses/gpl.html
12 12
 * @platform        WebsiteBaker 2.8.x
13
 * @requirements    PHP 4.4.9 and higher
13
 * @requirements    PHP 5.2.2 and higher
14 14
 * @version         $Id$
15 15
 * @filesource		$HeadURL$
16 16
 * @lastmodified    $Date$
branches/2.8.x/wb/admin/modules/install.php
5 5
 * @package         modules
6 6
 * @author          WebsiteBaker Project
7 7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9 9
 * @link			http://www.websitebaker2.org/
10 10
 * @license         http://www.gnu.org/licenses/gpl.html
11 11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.4.9 and higher
12
 * @requirements    PHP 5.2.2 and higher
13 13
 * @version         $Id$
14 14
 * @filesource		$HeadURL$
15 15
 * @lastmodified    $Date$
branches/2.8.x/wb/account/logout.php
5 5
 * @package         account
6 6
 * @author          WebsiteBaker Project
7 7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9 9
 * @link			http://www.websitebaker2.org/
10 10
 * @license         http://www.gnu.org/licenses/gpl.html
11 11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.3.4 and higher
12
 * @requirements    PHP 5.2.2 and higher
13 13
 * @version         $Id$
14 14
 * @filesource		$HeadURL$
15 15
 * @lastmodified    $Date$
branches/2.8.x/wb/account/login_form.php
5 5
 * @package         account
6 6
 * @author          WebsiteBaker Project
7 7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9 9
 * @link			http://www.websitebaker2.org/
10 10
 * @license         http://www.gnu.org/licenses/gpl.html
11 11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.3.4 and higher
12
 * @requirements    PHP 5.2.2 and higher
13 13
 * @version         $Id$
14 14
 * @filesource		$HeadURL$
15 15
 * @lastmodified    $Date$
branches/2.8.x/wb/account/forgot.php
5 5
 * @package         account
6 6
 * @author          WebsiteBaker Project
7 7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9 9
 * @link			http://www.websitebaker2.org/
10 10
 * @license         http://www.gnu.org/licenses/gpl.html
11 11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.3.4 and higher
12
 * @requirements    PHP 5.2.2 and higher
13 13
 * @version         $Id$
14 14
 * @filesource		$HeadURL$
15 15
 * @lastmodified    $Date$
branches/2.8.x/wb/account/preferences.php
5 5
 * @package         account
6 6
 * @author          WebsiteBaker Project
7 7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9 9
 * @link			http://www.websitebaker2.org/
10 10
 * @license         http://www.gnu.org/licenses/gpl.html
11 11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.3.4 and higher
12
 * @requirements    PHP 5.2.2 and higher
13 13
 * @version         $Id$
14 14
 * @filesource		$HeadURL$
15 15
 * @lastmodified    $Date$
branches/2.8.x/wb/account/password.php
5 5
 * @package         account
6 6
 * @author          WebsiteBaker Project
7 7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9 9
 * @link			http://www.websitebaker2.org/
10 10
 * @license         http://www.gnu.org/licenses/gpl.html
11 11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.3.4 and higher
12
 * @requirements    PHP 5.2.2 and higher
13 13
 * @version         $Id$
14 14
 * @filesource		$HeadURL$
15 15
 * @lastmodified    $Date$
branches/2.8.x/wb/account/forgot_form.php
5 5
 * @package         account
6 6
 * @author          WebsiteBaker Project
7 7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9 9
 * @link			http://www.websitebaker2.org/
10 10
 * @license         http://www.gnu.org/licenses/gpl.html
11 11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.3.4 and higher
12
 * @requirements    PHP 5.2.2 and higher
13 13
 * @version         $Id$
14 14
 * @filesource		$HeadURL$
15 15
 * @lastmodified    $Date$
branches/2.8.x/wb/account/preferences_form.php
5 5
 * @package         account
6 6
 * @author          WebsiteBaker Project
7 7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9 9
 * @link			http://www.websitebaker2.org/
10 10
 * @license         http://www.gnu.org/licenses/gpl.html
11 11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.3.4 and higher
12
 * @requirements    PHP 5.2.2 and higher
13 13
 * @version         $Id$
14 14
 * @filesource		$HeadURL$
15 15
 * @lastmodified    $Date$
branches/2.8.x/wb/account/details.php
5 5
 * @package         account
6 6
 * @author          WebsiteBaker Project
7 7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9 9
 * @link			http://www.websitebaker2.org/
10 10
 * @license         http://www.gnu.org/licenses/gpl.html
11 11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.3.4 and higher
12
 * @requirements    PHP 5.2.2 and higher
13 13
 * @version         $Id$
14 14
 * @filesource		$HeadURL$
15 15
 * @lastmodified    $Date$
branches/2.8.x/wb/account/signup.php
5 5
 * @package         account
6 6
 * @author          WebsiteBaker Project
7 7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9 9
 * @link			http://www.websitebaker2.org/
10 10
 * @license         http://www.gnu.org/licenses/gpl.html
11 11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.3.4 and higher
12
 * @requirements    PHP 5.2.2 and higher
13 13
 * @version         $Id$
14 14
 * @filesource		$HeadURL$
15 15
 * @lastmodified    $Date$
branches/2.8.x/wb/account/email.php
5 5
 * @package         account
6 6
 * @author          WebsiteBaker Project
7 7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9 9
 * @link			http://www.websitebaker2.org/
10 10
 * @license         http://www.gnu.org/licenses/gpl.html
11 11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.3.4 and higher
12
 * @requirements    PHP 5.2.2 and higher
13 13
 * @version         $Id$
14 14
 * @filesource		$HeadURL$
15 15
 * @lastmodified    $Date$
branches/2.8.x/wb/account/index.php
5 5
 * @package         account
6 6
 * @author          WebsiteBaker Project
7 7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9 9
 * @link			http://www.websitebaker2.org/
10 10
 * @license         http://www.gnu.org/licenses/gpl.html
11 11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.3.4 and higher
12
 * @requirements    PHP 5.2.2 and higher
13 13
 * @version         $Id$
14 14
 * @filesource		$HeadURL$
15 15
 * @lastmodified    $Date$
branches/2.8.x/wb/account/signup2.php
5 5
 * @package         account
6 6
 * @author          WebsiteBaker Project
7 7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9 9
 * @link			http://www.websitebaker2.org/
10 10
 * @license         http://www.gnu.org/licenses/gpl.html
11 11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.3.4 and higher
12
 * @requirements    PHP 5.2.2 and higher
13 13
 * @version         $Id$
14 14
 * @filesource		$HeadURL$
15 15
 * @lastmodified    $Date$
branches/2.8.x/wb/account/login.php
5 5
 * @package         account
6 6
 * @author          WebsiteBaker Project
7 7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9 9
 * @link			http://www.websitebaker2.org/
10 10
 * @license         http://www.gnu.org/licenses/gpl.html
11 11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.3.4 and higher
12
 * @requirements    PHP 5.2.2 and higher
13 13
 * @version         $Id$
14 14
 * @filesource		$HeadURL$
15 15
 * @lastmodified    $Date$
branches/2.8.x/wb/account/signup_form.php
5 5
 * @package         account
6 6
 * @author          WebsiteBaker Project
7 7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9 9
 * @link			http://www.websitebaker2.org/
10 10
 * @license         http://www.gnu.org/licenses/gpl.html
11 11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.3.4 and higher
12
 * @requirements    PHP 5.2.2 and higher
13 13
 * @version         $Id$
14 14
 * @filesource		$HeadURL$
15 15
 * @lastmodified    $Date$
branches/2.8.x/wb/framework/class.admin.php
5 5
 * @package         account
6 6
 * @author          WebsiteBaker Project
7 7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9 9
 * @link			http://www.websitebaker2.org/
10 10
 * @license         http://www.gnu.org/licenses/gpl.html
11 11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.3.4 and higher
12
 * @requirements    PHP 5.2.2 and higher
13 13
 * @version         $Id$
14 14
 * @filesource		$HeadURL$
15 15
 * @lastmodified    $Date$
branches/2.8.x/wb/framework/initialize.php
1
<?php
2
/**
3
 *
4
 * @category        framework
5
 * @package         initialize
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.4.9 and higher
13
 * @version         $Id$
14
 * @filesource		$HeadURL$
15
 * @lastmodified    $Date$
16
 *
17
 */
18

  
19
//set_include_path(get_include_path() . PATH_SEPARATOR . WB_PATH);
20

  
21
if (file_exists(WB_PATH.'/framework/class.database.php')) {
22

  
23
	require_once(WB_PATH.'/framework/class.database.php');
24

  
25
	// Create database class
26
	$database = new database();
27

  
28
    if(version_compare(PHP_VERSION, '5.3.0', '<'))
29
    {
30
        set_magic_quotes_runtime(0); // Disable magic_quotes_runtime
31
    }
32
	// Get website settings (title, keywords, description, header, and footer)
33
	$query_settings = "SELECT name,value FROM ".TABLE_PREFIX."settings";
34
	$get_settings = $database->query($query_settings);
35
	if($database->is_error()) { die($database->get_error()); }
36
	if($get_settings->numRows() == 0) { die("Settings not found"); }
37
	while($setting = $get_settings->fetchRow()) {
38
		$setting_name=strtoupper($setting['name']);
39
		$setting_value=$setting['value'];
40
		if ($setting_value=='false')
41
			$setting_value=false;
42
		if ($setting_value=='true')
43
			$setting_value=true;
44
		@define($setting_name,$setting_value);
45
	}
46
	$string_file_mode = STRING_FILE_MODE;
47
	define('OCTAL_FILE_MODE',(int) octdec($string_file_mode));
48
	$string_dir_mode = STRING_DIR_MODE;
49
	define('OCTAL_DIR_MODE',(int) octdec($string_dir_mode));
50
	
51
	if (!defined("WB_INSTALL_PROCESS")) {
52
		// get CAPTCHA and ASP settings
53
		$table = TABLE_PREFIX.'mod_captcha_control';
54
		if($get_settings = $database->query("SELECT * FROM $table LIMIT 1")) {
55
			if($get_settings->numRows() == 0) { die("CAPTCHA-Settings not found"); }
56
			$setting = $get_settings->fetchRow();
57
			if($setting['enabled_captcha'] == '1') define('ENABLED_CAPTCHA', true);
58
			else define('ENABLED_CAPTCHA', false);
59
			if($setting['enabled_asp'] == '1') define('ENABLED_ASP', true);
60
			else define('ENABLED_ASP', false);
61
			define('CAPTCHA_TYPE', $setting['captcha_type']);
62
			define('ASP_SESSION_MIN_AGE', (int)$setting['asp_session_min_age']);
63
			define('ASP_VIEW_MIN_AGE', (int)$setting['asp_view_min_age']);
64
			define('ASP_INPUT_MIN_AGE', (int)$setting['asp_input_min_age']);
65
		}
66
	}
67
	// set error-reporting
68
	if(is_numeric(ER_LEVEL)) {
69
		error_reporting(ER_LEVEL);
70
	}
71

  
72
	// Start a session
73
	if(!defined('SESSION_STARTED')) {
74
		session_name(APP_NAME.'_session_id');
75
		@session_start();
76
		define('SESSION_STARTED', true);
77
	}
78
	if(defined('ENABLED_ASP') && ENABLED_ASP && !isset($_SESSION['session_started']))
79
		$_SESSION['session_started'] = time();
80

  
81
	// Get users language
82
	if(isset($_GET['lang']) AND $_GET['lang'] != '' AND !is_numeric($_GET['lang']) AND strlen($_GET['lang']) == 2) {
83
	  	define('LANGUAGE', strtoupper($_GET['lang']));
84
		$_SESSION['LANGUAGE']=LANGUAGE;
85
	} else {
86
		if(isset($_SESSION['LANGUAGE']) AND $_SESSION['LANGUAGE'] != '') {
87
			define('LANGUAGE', $_SESSION['LANGUAGE']);
88
		} else {
89
			define('LANGUAGE', DEFAULT_LANGUAGE);
90
		}
91
	}
92
	
93
	// Load Language file
94
	if(!defined('LANGUAGE_LOADED')) {
95
		if(!file_exists(WB_PATH.'/languages/'.LANGUAGE.'.php')) {
96
			exit('Error loading language file '.LANGUAGE.', please check configuration');
97
		} else {
98
			require_once(WB_PATH.'/languages/'.LANGUAGE.'.php');
99
		}
100
	}
101
	
102
	// Get users timezone
103
	if(isset($_SESSION['TIMEZONE'])) {
104
		define('TIMEZONE', $_SESSION['TIMEZONE']);
105
	} else {
106
		define('TIMEZONE', DEFAULT_TIMEZONE);
107
	}
108
	// Get users date format
109
	if(isset($_SESSION['DATE_FORMAT'])) {
110
		define('DATE_FORMAT', $_SESSION['DATE_FORMAT']);
111
	} else {
112
		define('DATE_FORMAT', DEFAULT_DATE_FORMAT);
113
	}
114
	// Get users time format
115
	if(isset($_SESSION['TIME_FORMAT'])) {
116
		define('TIME_FORMAT', $_SESSION['TIME_FORMAT']);
117
	} else {
118
		define('TIME_FORMAT', DEFAULT_TIME_FORMAT);
119
	}
120

  
121
	// Set Theme dir
122
	define('THEME_URL', WB_URL.'/templates/'.DEFAULT_THEME);
123
	define('THEME_PATH', WB_PATH.'/templates/'.DEFAULT_THEME);
124

  
125
    // extended wb_settings
126
	define('EDIT_ONE_SECTION', false);
127

  
128
	define('EDITOR_WIDTH', 0);
129

  
130
}
131

  
1
<?php
2
/**
3
 *
4
 * @category        framework
5
 * @package         initialize
6
 * @author          WebsiteBaker Project
7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2011, 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 5.2.2 and higher
13
 * @version         $Id$
14
 * @filesource		$HeadURL$
15
 * @lastmodified    $Date$
16
 *
17
 */
18

  
19
//set_include_path(get_include_path() . PATH_SEPARATOR . WB_PATH);
20

  
21
if (file_exists(WB_PATH.'/framework/class.database.php')) {
22

  
23
	require_once(WB_PATH.'/framework/class.database.php');
24

  
25
	// Create database class
26
	$database = new database();
27

  
28
    if(version_compare(PHP_VERSION, '5.3.0', '<'))
29
    {
30
        set_magic_quotes_runtime(0); // Disable magic_quotes_runtime
31
    }
32
	// Get website settings (title, keywords, description, header, and footer)
33
	$query_settings = "SELECT name,value FROM ".TABLE_PREFIX."settings";
34
	$get_settings = $database->query($query_settings);
35
	if($database->is_error()) { die($database->get_error()); }
36
	if($get_settings->numRows() == 0) { die("Settings not found"); }
37
	while($setting = $get_settings->fetchRow()) {
38
		$setting_name=strtoupper($setting['name']);
39
		$setting_value=$setting['value'];
40
		if ($setting_value=='false')
41
			$setting_value=false;
42
		if ($setting_value=='true')
43
			$setting_value=true;
44
		@define($setting_name,$setting_value);
45
	}
46
	$string_file_mode = STRING_FILE_MODE;
47
	define('OCTAL_FILE_MODE',(int) octdec($string_file_mode));
48
	$string_dir_mode = STRING_DIR_MODE;
49
	define('OCTAL_DIR_MODE',(int) octdec($string_dir_mode));
50
	
51
	if (!defined("WB_INSTALL_PROCESS")) {
52
		// get CAPTCHA and ASP settings
53
		$table = TABLE_PREFIX.'mod_captcha_control';
54
		if($get_settings = $database->query("SELECT * FROM $table LIMIT 1")) {
55
			if($get_settings->numRows() == 0) { die("CAPTCHA-Settings not found"); }
56
			$setting = $get_settings->fetchRow();
57
			if($setting['enabled_captcha'] == '1') define('ENABLED_CAPTCHA', true);
58
			else define('ENABLED_CAPTCHA', false);
59
			if($setting['enabled_asp'] == '1') define('ENABLED_ASP', true);
60
			else define('ENABLED_ASP', false);
61
			define('CAPTCHA_TYPE', $setting['captcha_type']);
62
			define('ASP_SESSION_MIN_AGE', (int)$setting['asp_session_min_age']);
63
			define('ASP_VIEW_MIN_AGE', (int)$setting['asp_view_min_age']);
64
			define('ASP_INPUT_MIN_AGE', (int)$setting['asp_input_min_age']);
65
		}
66
	}
67

  
68
	// set error-reporting
69
	if(intval(ER_LEVEL) > 0 )
70
	{
71
		error_reporting(ER_LEVEL);
72
		if(ini_get ( 'display_errors' == 0 ) )
73
		{
74
			ini_set('display_errors', 1);
75
		}
76
	}
77
	// Start a session
78
	if(!defined('SESSION_STARTED')) {
79
		session_name(APP_NAME.'_session_id');
80
		@session_start();
81
		define('SESSION_STARTED', true);
82
	}
83
	if(defined('ENABLED_ASP') && ENABLED_ASP && !isset($_SESSION['session_started']))
84
		$_SESSION['session_started'] = time();
85

  
86
	// Get users language
87
	if(isset($_GET['lang']) AND $_GET['lang'] != '' AND !is_numeric($_GET['lang']) AND strlen($_GET['lang']) == 2) {
88
	  	define('LANGUAGE', strtoupper($_GET['lang']));
89
		$_SESSION['LANGUAGE']=LANGUAGE;
90
	} else {
91
		if(isset($_SESSION['LANGUAGE']) AND $_SESSION['LANGUAGE'] != '') {
92
			define('LANGUAGE', $_SESSION['LANGUAGE']);
93
		} else {
94
			define('LANGUAGE', DEFAULT_LANGUAGE);
95
		}
96
	}
97
	
98
	// Load Language file
99
	if(!defined('LANGUAGE_LOADED')) {
100
		if(!file_exists(WB_PATH.'/languages/'.LANGUAGE.'.php')) {
101
			exit('Error loading language file '.LANGUAGE.', please check configuration');
102
		} else {
103
			require_once(WB_PATH.'/languages/'.LANGUAGE.'.php');
104
		}
105
	}
106
	
107
	// Get users timezone
108
	if(isset($_SESSION['TIMEZONE'])) {
109
		define('TIMEZONE', $_SESSION['TIMEZONE']);
110
	} else {
111
		define('TIMEZONE', DEFAULT_TIMEZONE);
112
	}
113
	// Get users date format
114
	if(isset($_SESSION['DATE_FORMAT'])) {
115
		define('DATE_FORMAT', $_SESSION['DATE_FORMAT']);
116
	} else {
117
		define('DATE_FORMAT', DEFAULT_DATE_FORMAT);
118
	}
119
	// Get users time format
120
	if(isset($_SESSION['TIME_FORMAT'])) {
121
		define('TIME_FORMAT', $_SESSION['TIME_FORMAT']);
122
	} else {
123
		define('TIME_FORMAT', DEFAULT_TIME_FORMAT);
124
	}
125

  
126
	// Set Theme dir
127
	define('THEME_URL', WB_URL.'/templates/'.DEFAULT_THEME);
128
	define('THEME_PATH', WB_PATH.'/templates/'.DEFAULT_THEME);
129

  
130
    // extended wb_settings
131
	define('EDIT_ONE_SECTION', false);
132

  
133
	define('EDITOR_WIDTH', 0);
134

  
135
}
136

  
132 137
?>
branches/2.8.x/wb/framework/functions.php
5 5
 * @package         framework
6 6
 * @author          WebsiteBaker Project
7 7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9 9
 * @link			http://www.websitebaker2.org/
10 10
 * @license         http://www.gnu.org/licenses/gpl.html
11 11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.3.4 and higher
12
 * @requirements    PHP 5.2.2 and higher
13 13
 * @version         $Id$
14 14
 * @filesource		$HeadURL$
15 15
 * @lastmodified    $Date$
branches/2.8.x/wb/framework/class.login.php
5 5
 * @package         login
6 6
 * @author          WebsiteBaker Project
7 7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9 9
 * @link			http://www.websitebaker2.org/
10 10
 * @license         http://www.gnu.org/licenses/gpl.html
11 11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.3.4 and higher
12
 * @requirements    PHP 5.2.2 and higher
13 13
 * @version         $Id$
14 14
 * @filesource		$HeadURL$
15 15
 * @lastmodified    $Date$
branches/2.8.x/wb/framework/class.wb.php
5 5
 * @package         framework
6 6
 * @author          WebsiteBaker Project
7 7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9 9
 * @link			http://www.websitebaker2.org/
10 10
 * @license         http://www.gnu.org/licenses/gpl.html
11 11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.3.4 and higher
12
 * @requirements    PHP 5.2.2 and higher
13 13
 * @version         $Id$
14 14
 * @filesource		$HeadURL: $
15 15
 * @lastmodified    $Date:  $
branches/2.8.x/wb/framework/class.secureform.php
4 4
 * @category        security
5 5
 * @package         framework
6 6
 * @author          ISTeam easy-Project
7
 * @copyright       2009-2010, Independend-Software-Team
7
 * @copyright       2009-2011, Independend-Software-Team
8 8
 * @link            http://easy.isteam.de/
9 9
 * @license         http://creativecommons.org/licenses/by-nc-nd/3.0/de/
10 10
 * @platform        WebsiteBaker 2.8.x
11
 * @requirements    PHP 4.4.9 and higher
11
 * @requirements    PHP 5.2.2 and higher
12 12
 * @version         $Id$
13 13
 * @filesource      $HeadURL$
14 14
 * @lastmodified    $Date$
branches/2.8.x/wb/framework/addon.precheck.inc.php
5 5
 * @package         precheck
6 6
 * @author          WebsiteBaker Project
7 7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9 9
 * @link			http://www.websitebaker2.org/
10 10
 * @license         http://www.gnu.org/licenses/gpl.html
11 11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.4.9 and higher
12
 * @requirements    PHP 5.2.2 and higher
13 13
 * @version         $Id$
14 14
 * @filesource		$HeadURL$
15 15
 * @lastmodified    $Date$
branches/2.8.x/wb/framework/class.frontend.php
5 5
 * @package         framework
6 6
 * @author          WebsiteBaker Project
7 7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9 9
 * @link			http://www.websitebaker2.org/
10 10
 * @license         http://www.gnu.org/licenses/gpl.html
11 11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.3.4 and higher
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff