Revision 1326
Added by Dietmar over 14 years ago
branches/2.8.x/CHANGELOG | ||
---|---|---|
11 | 11 |
! = Update/Change |
12 | 12 |
|
13 | 13 |
------------------------------------- 2.8.1 ------------------------------------- |
14 |
15-Apr-2010 Dietmar Woellbrink (Luisehahne) |
|
15 |
! Update headerinfos admin/interface |
|
14 | 16 |
14-Apr-2010 Dietmar Woellbrink (Luisehahne) |
15 | 17 |
# changed e-mail notification for backend login |
16 | 18 |
! styling in preference.htt in themes |
branches/2.8.x/wb/admin/interface/time_formats.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 |
/* |
|
27 |
|
|
28 |
Time format list file |
|
29 |
|
|
30 |
This file is used to generate a list of time formats for the user to select |
|
31 |
|
|
32 |
*/ |
|
33 |
|
|
34 |
if(!defined('WB_URL')) { |
|
35 |
header('Location: ../../../index.php'); |
|
36 |
exit(0); |
|
37 |
} |
|
38 |
|
|
39 |
// Define that this file is loaded |
|
40 |
if(!defined('TIME_FORMATS_LOADED')) { |
|
41 |
define('TIME_FORMATS_LOADED', true); |
|
42 |
} |
|
43 |
|
|
44 |
// Create array |
|
45 |
$TIME_FORMATS = array(); |
|
46 |
|
|
47 |
// Get the current time (in the users timezone if required) |
|
48 |
$actual_time = time()+ ((isset($user_time) AND $user_time == true) ? TIMEZONE : DEFAULT_TIMEZONE); |
|
49 |
|
|
50 |
// Add values to list |
|
51 |
$TIME_FORMATS['g:i|A'] = gmdate('g:i A', $actual_time); |
|
52 |
$TIME_FORMATS['g:i|a'] = gmdate('g:i a', $actual_time); |
|
53 |
$TIME_FORMATS['H:i:s'] = gmdate('H:i:s', $actual_time); |
|
54 |
$TIME_FORMATS['H:i'] = gmdate('H:i', $actual_time); |
|
55 |
|
|
56 |
// Add "System Default" to list (if we need to) |
|
57 |
if(isset($user_time) AND $user_time == true) { |
|
58 |
if(isset($TEXT['SYSTEM_DEFAULT'])) { |
|
59 |
$TIME_FORMATS['system_default'] = gmdate(DEFAULT_TIME_FORMAT, $actual_time).' ('.$TEXT['SYSTEM_DEFAULT'].')'; |
|
60 |
} else { |
|
61 |
$TIME_FORMATS['system_default'] = gmdate(DEFAULT_TIME_FORMAT, $actual_time).' (System Default)'; |
|
62 |
} |
|
63 |
} |
|
64 |
|
|
65 |
// Reverse array so "System Default" is at the top |
|
66 |
$TIME_FORMATS = array_reverse($TIME_FORMATS, true); |
|
67 |
|
|
1 |
<?php |
|
2 |
/** |
|
3 |
* |
|
4 |
* @category admin |
|
5 |
* @package interface |
|
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 |
* Time format list file |
|
18 |
* This file is used to generate a list of time formats for the user to select |
|
19 |
* |
|
20 |
*/ |
|
21 |
|
|
22 |
if(!defined('WB_URL')) { |
|
23 |
header('Location: ../../../index.php'); |
|
24 |
exit(0); |
|
25 |
} |
|
26 |
|
|
27 |
// Define that this file is loaded |
|
28 |
if(!defined('TIME_FORMATS_LOADED')) { |
|
29 |
define('TIME_FORMATS_LOADED', true); |
|
30 |
} |
|
31 |
|
|
32 |
// Create array |
|
33 |
$TIME_FORMATS = array(); |
|
34 |
|
|
35 |
// Get the current time (in the users timezone if required) |
|
36 |
$actual_time = time()+ ((isset($user_time) AND $user_time == true) ? TIMEZONE : DEFAULT_TIMEZONE); |
|
37 |
|
|
38 |
// Add values to list |
|
39 |
$TIME_FORMATS['g:i|A'] = gmdate('g:i A', $actual_time); |
|
40 |
$TIME_FORMATS['g:i|a'] = gmdate('g:i a', $actual_time); |
|
41 |
$TIME_FORMATS['H:i:s'] = gmdate('H:i:s', $actual_time); |
|
42 |
$TIME_FORMATS['H:i'] = gmdate('H:i', $actual_time); |
|
43 |
|
|
44 |
// Add "System Default" to list (if we need to) |
|
45 |
if(isset($user_time) AND $user_time == true) { |
|
46 |
if(isset($TEXT['SYSTEM_DEFAULT'])) { |
|
47 |
$TIME_FORMATS['system_default'] = gmdate(DEFAULT_TIME_FORMAT, $actual_time).' ('.$TEXT['SYSTEM_DEFAULT'].')'; |
|
48 |
} else { |
|
49 |
$TIME_FORMATS['system_default'] = gmdate(DEFAULT_TIME_FORMAT, $actual_time).' (System Default)'; |
|
50 |
} |
|
51 |
} |
|
52 |
|
|
53 |
// Reverse array so "System Default" is at the top |
|
54 |
$TIME_FORMATS = array_reverse($TIME_FORMATS, true); |
|
55 |
|
|
68 | 56 |
?> |
69 | 57 |
branches/2.8.x/wb/admin/interface/charsets.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 |
/* |
|
27 |
|
|
28 |
Charset list file |
|
29 |
|
|
30 |
This file is used to generate a list of charsets for the user to select |
|
31 |
|
|
32 |
*/ |
|
33 |
|
|
34 |
if(!defined('WB_URL')) { |
|
35 |
header('Location: ../index.php'); |
|
36 |
exit(0); |
|
37 |
} |
|
38 |
|
|
39 |
// Create array |
|
40 |
$CHARSETS = array(); |
|
41 |
$CHARSETS['utf-8'] = 'Unicode (utf-8)'; |
|
42 |
$CHARSETS['iso-8859-1'] = 'Latin-1 Western European (iso-8859-1)'; |
|
43 |
$CHARSETS['iso-8859-2'] = 'Latin-2 Central European (iso-8859-2)'; |
|
44 |
$CHARSETS['iso-8859-3'] = 'Latin-3 Southern European (iso-8859-3)'; |
|
45 |
$CHARSETS['iso-8859-4'] = 'Latin-4 Baltic (iso-8859-4)'; |
|
46 |
$CHARSETS['iso-8859-5'] = 'Cyrillic (iso-8859-5)'; |
|
47 |
$CHARSETS['iso-8859-6'] = 'Arabic (iso-8859-6)'; |
|
48 |
$CHARSETS['iso-8859-7'] = 'Greek (iso-8859-7)'; |
|
49 |
$CHARSETS['iso-8859-8'] = 'Hebrew (iso-8859-8)'; |
|
50 |
$CHARSETS['iso-8859-9'] = 'Latin-5 Turkish (iso-8859-9)'; |
|
51 |
$CHARSETS['iso-8859-10'] = 'Latin-6 Nordic (iso-8859-10)'; |
|
52 |
$CHARSETS['iso-8859-11'] = 'Thai (iso-8859-11)'; |
|
53 |
$CHARSETS['gb2312'] = 'Chinese Simplified (gb2312)'; |
|
54 |
$CHARSETS['big5'] = 'Chinese Traditional (big5)'; |
|
55 |
$CHARSETS['iso-2022-jp'] = 'Japanese (iso-2022-jp)'; |
|
56 |
$CHARSETS['iso-2022-kr'] = 'Korean (iso-2022-kr)'; |
|
57 |
|
|
1 |
<?php |
|
2 |
/** |
|
3 |
* |
|
4 |
* @category admin |
|
5 |
* @package interface |
|
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 |
* Charset list file |
|
18 |
* This file is used to generate a list of charsets for the user to select |
|
19 |
* |
|
20 |
*/ |
|
21 |
|
|
22 |
if(!defined('WB_URL')) { |
|
23 |
header('Location: ../index.php'); |
|
24 |
exit(0); |
|
25 |
} |
|
26 |
|
|
27 |
// Create array |
|
28 |
$CHARSETS = array(); |
|
29 |
$CHARSETS['utf-8'] = 'Unicode (utf-8)'; |
|
30 |
$CHARSETS['iso-8859-1'] = 'Latin-1 Western European (iso-8859-1)'; |
|
31 |
$CHARSETS['iso-8859-2'] = 'Latin-2 Central European (iso-8859-2)'; |
|
32 |
$CHARSETS['iso-8859-3'] = 'Latin-3 Southern European (iso-8859-3)'; |
|
33 |
$CHARSETS['iso-8859-4'] = 'Latin-4 Baltic (iso-8859-4)'; |
|
34 |
$CHARSETS['iso-8859-5'] = 'Cyrillic (iso-8859-5)'; |
|
35 |
$CHARSETS['iso-8859-6'] = 'Arabic (iso-8859-6)'; |
|
36 |
$CHARSETS['iso-8859-7'] = 'Greek (iso-8859-7)'; |
|
37 |
$CHARSETS['iso-8859-8'] = 'Hebrew (iso-8859-8)'; |
|
38 |
$CHARSETS['iso-8859-9'] = 'Latin-5 Turkish (iso-8859-9)'; |
|
39 |
$CHARSETS['iso-8859-10'] = 'Latin-6 Nordic (iso-8859-10)'; |
|
40 |
$CHARSETS['iso-8859-11'] = 'Thai (iso-8859-11)'; |
|
41 |
$CHARSETS['gb2312'] = 'Chinese Simplified (gb2312)'; |
|
42 |
$CHARSETS['big5'] = 'Chinese Traditional (big5)'; |
|
43 |
$CHARSETS['iso-2022-jp'] = 'Japanese (iso-2022-jp)'; |
|
44 |
$CHARSETS['iso-2022-kr'] = 'Korean (iso-2022-kr)'; |
|
45 |
|
|
58 | 46 |
?> |
59 | 47 |
branches/2.8.x/wb/admin/interface/timezones.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 |
/* |
|
27 |
|
|
28 |
Timezone list file |
|
29 |
|
|
30 |
This file is used to generate a list of timezones for the user to select |
|
31 |
|
|
32 |
*/ |
|
33 |
|
|
34 |
if(!defined('WB_URL')) { |
|
35 |
header('Location: ../index.php'); |
|
36 |
exit(0); |
|
37 |
} |
|
38 |
|
|
39 |
// Create array |
|
40 |
$TIMEZONES = array(); |
|
41 |
|
|
42 |
// Add "System Default" to top of list |
|
43 |
if(isset($TEXT['SYSTEM_DEFAULT'])) { |
|
44 |
$TIMEZONES['-20'] = $TEXT['SYSTEM_DEFAULT']; |
|
45 |
} else { |
|
46 |
$TIMEZONES['-20'] = 'System Default'; |
|
47 |
} |
|
48 |
|
|
49 |
$TIMEZONES['-12'] = 'GMT - 12 Hours'; |
|
50 |
$TIMEZONES['-11'] = 'GMT -11 Hours'; |
|
51 |
$TIMEZONES['-10'] = 'GMT -10 Hours'; |
|
52 |
$TIMEZONES['-9'] = 'GMT -9 Hours'; |
|
53 |
$TIMEZONES['-8'] = 'GMT -8 Hours'; |
|
54 |
$TIMEZONES['-7'] = 'GMT -7 Hours'; |
|
55 |
$TIMEZONES['-6'] = 'GMT -6 Hours'; |
|
56 |
$TIMEZONES['-5'] = 'GMT -5 Hours'; |
|
57 |
$TIMEZONES['-4'] = 'GMT -4 Hours'; |
|
58 |
$TIMEZONES['-3.5'] = 'GMT -3.5 Hours'; |
|
59 |
$TIMEZONES['-3'] = 'GMT -3 Hours'; |
|
60 |
$TIMEZONES['-2'] = 'GMT -2 Hours'; |
|
61 |
$TIMEZONES['-1'] = 'GMT -1 Hour'; |
|
62 |
$TIMEZONES['0'] = 'GMT'; |
|
63 |
$TIMEZONES['1'] = 'GMT +1 Hour'; |
|
64 |
$TIMEZONES['2'] = 'GMT +2 Hours'; |
|
65 |
$TIMEZONES['3'] = 'GMT +3 Hours'; |
|
66 |
$TIMEZONES['3.5'] = 'GMT +3.5 Hours'; |
|
67 |
$TIMEZONES['4'] = 'GMT +4 Hours'; |
|
68 |
$TIMEZONES['4.5'] = 'GMT +4.5 Hours'; |
|
69 |
$TIMEZONES['5'] = 'GMT +5 Hours'; |
|
70 |
$TIMEZONES['5.5'] = 'GMT +5.5 Hours'; |
|
71 |
$TIMEZONES['6'] = 'GMT +6 Hours'; |
|
72 |
$TIMEZONES['6.5'] = 'GMT +6.5 Hours'; |
|
73 |
$TIMEZONES['7'] = 'GMT +7 Hours'; |
|
74 |
$TIMEZONES['8'] = 'GMT +8 Hours'; |
|
75 |
$TIMEZONES['9'] = 'GMT +9 Hours'; |
|
76 |
$TIMEZONES['9.5'] = 'GMT +9.5 Hours'; |
|
77 |
$TIMEZONES['10'] = 'GMT +10 Hours'; |
|
78 |
$TIMEZONES['11'] = 'GMT +11 Hours'; |
|
79 |
$TIMEZONES['12'] = 'GMT +12 Hours'; |
|
80 |
$TIMEZONES['13'] = 'GMT +13 Hours'; |
|
81 |
|
|
1 |
<?php |
|
2 |
/** |
|
3 |
* |
|
4 |
* @category admin |
|
5 |
* @package interface |
|
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 |
* Timezone list file |
|
18 |
* This file is used to generate a list of timezones for the user to select |
|
19 |
* |
|
20 |
*/ |
|
21 |
|
|
22 |
if(!defined('WB_URL')) { |
|
23 |
header('Location: ../index.php'); |
|
24 |
exit(0); |
|
25 |
} |
|
26 |
|
|
27 |
// Create array |
|
28 |
$TIMEZONES = array(); |
|
29 |
$actual_timezone = ( DEFAULT_TIMEZONE <> 0 ) ? DEFAULT_TIMEZONE/3600 : 0; |
|
30 |
|
|
31 |
$TIMEZONES['-12'] = 'GMT - 12 Hours'; |
|
32 |
$TIMEZONES['-11'] = 'GMT -11 Hours'; |
|
33 |
$TIMEZONES['-10'] = 'GMT -10 Hours'; |
|
34 |
$TIMEZONES['-9'] = 'GMT -9 Hours'; |
|
35 |
$TIMEZONES['-8'] = 'GMT -8 Hours'; |
|
36 |
$TIMEZONES['-7'] = 'GMT -7 Hours'; |
|
37 |
$TIMEZONES['-6'] = 'GMT -6 Hours'; |
|
38 |
$TIMEZONES['-5'] = 'GMT -5 Hours'; |
|
39 |
$TIMEZONES['-4'] = 'GMT -4 Hours'; |
|
40 |
$TIMEZONES['-3.5'] = 'GMT -3.5 Hours'; |
|
41 |
$TIMEZONES['-3'] = 'GMT -3 Hours'; |
|
42 |
$TIMEZONES['-2'] = 'GMT -2 Hours'; |
|
43 |
$TIMEZONES['-1'] = 'GMT -1 Hour'; |
|
44 |
$TIMEZONES['0'] = 'GMT'; |
|
45 |
$TIMEZONES['1'] = 'GMT +1 Hour'; |
|
46 |
$TIMEZONES['2'] = 'GMT +2 Hours'; |
|
47 |
$TIMEZONES['3'] = 'GMT +3 Hours'; |
|
48 |
$TIMEZONES['3.5'] = 'GMT +3.5 Hours'; |
|
49 |
$TIMEZONES['4'] = 'GMT +4 Hours'; |
|
50 |
$TIMEZONES['4.5'] = 'GMT +4.5 Hours'; |
|
51 |
$TIMEZONES['5'] = 'GMT +5 Hours'; |
|
52 |
$TIMEZONES['5.5'] = 'GMT +5.5 Hours'; |
|
53 |
$TIMEZONES['6'] = 'GMT +6 Hours'; |
|
54 |
$TIMEZONES['6.5'] = 'GMT +6.5 Hours'; |
|
55 |
$TIMEZONES['7'] = 'GMT +7 Hours'; |
|
56 |
$TIMEZONES['8'] = 'GMT +8 Hours'; |
|
57 |
$TIMEZONES['9'] = 'GMT +9 Hours'; |
|
58 |
$TIMEZONES['9.5'] = 'GMT +9.5 Hours'; |
|
59 |
$TIMEZONES['10'] = 'GMT +10 Hours'; |
|
60 |
$TIMEZONES['11'] = 'GMT +11 Hours'; |
|
61 |
$TIMEZONES['12'] = 'GMT +12 Hours'; |
|
62 |
$TIMEZONES['13'] = 'GMT +13 Hours'; |
|
63 |
|
|
64 |
// Add "System Default" to list (if we need to) |
|
65 |
if(isset($user_time) && $user_time == true) |
|
66 |
{ |
|
67 |
if(isset($TEXT['SYSTEM_DEFAULT'])) |
|
68 |
{ |
|
69 |
$TIMEZONES['system_default'] = $TIMEZONES[$actual_timezone].' ('.$TEXT['SYSTEM_DEFAULT'].')'; |
|
70 |
} else { |
|
71 |
$TIMEZONES['system_default'] = $TIMEZONES[$actual_timezone].' (System Default)'; |
|
72 |
} |
|
73 |
} |
|
74 |
|
|
75 |
// Reverse array so "System Default" is at the top |
|
76 |
$TIMEZONES = array_reverse($TIMEZONES, true); |
|
77 |
|
|
82 | 78 |
?> |
83 | 79 |
branches/2.8.x/wb/admin/interface/er_levels.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 |
/* |
|
27 |
|
|
28 |
Error Reporting Level's list file |
|
29 |
|
|
30 |
This file is used to generate a list of PHP |
|
31 |
Error Reporting Level's for the user to select |
|
32 |
|
|
33 |
*/ |
|
34 |
|
|
35 |
if(!defined('WB_URL')) { |
|
36 |
header('Location: ../index.php'); |
|
37 |
exit(0); |
|
38 |
} |
|
39 |
|
|
40 |
// Define that this file is loaded |
|
41 |
if(!defined('ERROR_REPORTING_LEVELS_LOADED')) { |
|
42 |
define('ERROR_REPORTING_LEVELS_LOADED', true); |
|
43 |
} |
|
44 |
|
|
45 |
// Create array |
|
46 |
$ER_LEVELS = array(); |
|
47 |
|
|
48 |
// Add values to list |
|
49 |
if(isset($TEXT['SYSTEM_DEFAULT'])) { |
|
50 |
$ER_LEVELS[''] = $TEXT['SYSTEM_DEFAULT']; |
|
51 |
} else { |
|
52 |
$ER_LEVELS[''] = 'System Default'; |
|
53 |
} |
|
54 |
$ER_LEVELS['6135'] = 'E_ALL^E_NOTICE'; // standard: E_ALL without E_NOTICE |
|
55 |
$ER_LEVELS['0'] = 'E_NONE'; |
|
56 |
$ER_LEVELS['6143'] = 'E_ALL'; |
|
57 |
$ER_LEVELS['8191'] = htmlentities('E_ALL&E_STRICT'); // for programmers |
|
58 |
|
|
1 |
<?php |
|
2 |
/** |
|
3 |
* |
|
4 |
* @category admin |
|
5 |
* @package interface |
|
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 |
* Error Reporting Level's list file |
|
18 |
* This file is used to generate a list of PHP |
|
19 |
* Error Reporting Level's for the user to select |
|
20 |
* |
|
21 |
*/ |
|
22 |
|
|
23 |
if(!defined('WB_URL')) { |
|
24 |
header('Location: ../index.php'); |
|
25 |
exit(0); |
|
26 |
} |
|
27 |
|
|
28 |
// Define that this file is loaded |
|
29 |
if(!defined('ERROR_REPORTING_LEVELS_LOADED')) { |
|
30 |
define('ERROR_REPORTING_LEVELS_LOADED', true); |
|
31 |
} |
|
32 |
|
|
33 |
// Create array |
|
34 |
$ER_LEVELS = array(); |
|
35 |
|
|
36 |
// Add values to list |
|
37 |
if(isset($TEXT['SYSTEM_DEFAULT'])) { |
|
38 |
$ER_LEVELS[''] = $TEXT['SYSTEM_DEFAULT']; |
|
39 |
} else { |
|
40 |
$ER_LEVELS[''] = 'System Default'; |
|
41 |
} |
|
42 |
$ER_LEVELS['6135'] = 'E_ALL^E_NOTICE'; // standard: E_ALL without E_NOTICE |
|
43 |
$ER_LEVELS['0'] = 'E_NONE'; |
|
44 |
$ER_LEVELS['6143'] = 'E_ALL'; |
|
45 |
$ER_LEVELS['8191'] = htmlentities('E_ALL&E_STRICT'); // for programmers |
|
46 |
|
|
59 | 47 |
?> |
60 | 48 |
branches/2.8.x/wb/admin/interface/version.php | ||
---|---|---|
52 | 52 |
|
53 | 53 |
// check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled) |
54 | 54 |
if(!defined('VERSION')) define('VERSION', '2.8.x'); |
55 |
if(!defined('REVISION')) define('REVISION', '1325');
|
|
55 |
if(!defined('REVISION')) define('REVISION', '1326');
|
|
56 | 56 |
|
57 | 57 |
?> |
branches/2.8.x/wb/admin/interface/index.php | ||
---|---|---|
1 |
<?php |
|
2 |
|
|
3 |
// $Id$ |
|
4 |
|
|
5 |
/* |
|
6 |
|
|
7 |
Website Baker Project <http://www.websitebaker.org/> |
|
8 |
Copyright (C) 2004-2009, Ryan Djurovich |
|
9 |
|
|
10 |
Website Baker is free software; you can redistribute it and/or modify |
|
11 |
it under the terms of the GNU General Public License as published by |
|
12 |
the Free Software Foundation; either version 2 of the License, or |
|
13 |
(at your option) any later version. |
|
14 |
|
|
15 |
Website Baker is distributed in the hope that it will be useful, |
|
16 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
17 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
18 |
GNU General Public License for more details. |
|
19 |
|
|
20 |
You should have received a copy of the GNU General Public License |
|
21 |
along with Website Baker; if not, write to the Free Software |
|
22 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
23 |
|
|
24 |
*/ |
|
25 |
|
|
26 |
require('../../config.php'); |
|
27 |
header('Location: '.ADMIN_URL.'/start/index.php'); |
|
28 |
|
|
1 |
<?php |
|
2 |
/** |
|
3 |
* |
|
4 |
* @category admin |
|
5 |
* @package interface |
|
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 |
require('../../config.php'); |
|
20 |
header('Location: '.ADMIN_URL.'/start/index.php'); |
|
21 |
|
|
29 | 22 |
?> |
30 | 23 |
branches/2.8.x/wb/admin/interface/date_formats.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 |
/* |
|
27 |
|
|
28 |
Date format list file |
|
29 |
|
|
30 |
This file is used to generate a list of date formats for the user to select |
|
31 |
|
|
32 |
*/ |
|
33 |
|
|
34 |
if(!defined('WB_URL')) { |
|
35 |
header('Location: ../../../index.php'); |
|
36 |
exit(0); |
|
37 |
} |
|
38 |
|
|
39 |
// Define that this file is loaded |
|
40 |
if(!defined('DATE_FORMATS_LOADED')) { |
|
41 |
define('DATE_FORMATS_LOADED', true); |
|
42 |
} |
|
43 |
|
|
44 |
// Create array |
|
45 |
$DATE_FORMATS = array(); |
|
46 |
|
|
47 |
// Get the current time (in the users timezone if required) |
|
48 |
$actual_time = time()+ ((isset($user_time) AND $user_time == true) ? TIMEZONE : DEFAULT_TIMEZONE); |
|
49 |
|
|
50 |
// Add values to list |
|
51 |
$DATE_FORMATS['l,|jS|F,|Y'] = gmdate('l, jS F, Y', $actual_time); |
|
52 |
$DATE_FORMATS['jS|F,|Y'] = gmdate('jS F, Y', $actual_time); |
|
53 |
$DATE_FORMATS['d|M|Y'] = gmdate('d M Y', $actual_time); |
|
54 |
$DATE_FORMATS['M|d|Y'] = gmdate('M d Y', $actual_time); |
|
55 |
$DATE_FORMATS['D|M|d,|Y'] = gmdate('D M d, Y', $actual_time); |
|
56 |
$DATE_FORMATS['d-m-Y'] = gmdate('d-m-Y', $actual_time).' (D-M-Y)'; |
|
57 |
$DATE_FORMATS['m-d-Y'] = gmdate('m-d-Y', $actual_time).' (M-D-Y)'; |
|
58 |
$DATE_FORMATS['d.m.Y'] = gmdate('d.m.Y', $actual_time).' (D.M.Y)'; |
|
59 |
$DATE_FORMATS['m.d.Y'] = gmdate('m.d.Y', $actual_time).' (M.D.Y)'; |
|
60 |
$DATE_FORMATS['d/m/Y'] = gmdate('d/m/Y', $actual_time).' (D/M/Y)'; |
|
61 |
$DATE_FORMATS['m/d/Y'] = gmdate('m/d/Y', $actual_time).' (M/D/Y)'; |
|
62 |
|
|
63 |
// Add "System Default" to list (if we need to) |
|
64 |
if(isset($user_time) AND $user_time == true) { |
|
65 |
if(isset($TEXT['SYSTEM_DEFAULT'])) { |
|
66 |
$DATE_FORMATS['system_default'] = gmdate(DEFAULT_DATE_FORMAT, $actual_time).' ('.$TEXT['SYSTEM_DEFAULT'].')'; |
|
67 |
} else { |
|
68 |
$DATE_FORMATS['system_default'] = gmdate(DEFAULT_DATE_FORMAT, $actual_time).' (System Default)'; |
|
69 |
} |
|
70 |
} |
|
71 |
|
|
72 |
// Reverse array so "System Default" is at the top |
|
73 |
$DATE_FORMATS = array_reverse($DATE_FORMATS, true); |
|
74 |
|
|
1 |
<?php |
|
2 |
/** |
|
3 |
* |
|
4 |
* @category admin |
|
5 |
* @package interface |
|
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 |
* Date format list file |
|
18 |
* This file is used to generate a list of date formats for the user to select |
|
19 |
* |
|
20 |
*/ |
|
21 |
|
|
22 |
if(!defined('WB_URL')) { |
|
23 |
header('Location: ../../../index.php'); |
|
24 |
exit(0); |
|
25 |
} |
|
26 |
|
|
27 |
// Define that this file is loaded |
|
28 |
if(!defined('DATE_FORMATS_LOADED')) { |
|
29 |
define('DATE_FORMATS_LOADED', true); |
|
30 |
} |
|
31 |
|
|
32 |
// Create array |
|
33 |
$DATE_FORMATS = array(); |
|
34 |
|
|
35 |
// Get the current time (in the users timezone if required) |
|
36 |
$actual_time = time()+ ((isset($user_time) && $user_time == true) ? TIMEZONE : DEFAULT_TIMEZONE); |
|
37 |
|
|
38 |
// Add values to list |
|
39 |
$DATE_FORMATS['l,|jS|F,|Y'] = gmdate('l, jS F, Y', $actual_time); |
|
40 |
$DATE_FORMATS['jS|F,|Y'] = gmdate('jS F, Y', $actual_time); |
|
41 |
$DATE_FORMATS['d|M|Y'] = gmdate('d M Y', $actual_time); |
|
42 |
$DATE_FORMATS['M|d|Y'] = gmdate('M d Y', $actual_time); |
|
43 |
$DATE_FORMATS['D|M|d,|Y'] = gmdate('D M d, Y', $actual_time); |
|
44 |
$DATE_FORMATS['d-m-Y'] = gmdate('d-m-Y', $actual_time).' (D-M-Y)'; |
|
45 |
$DATE_FORMATS['m-d-Y'] = gmdate('m-d-Y', $actual_time).' (M-D-Y)'; |
|
46 |
$DATE_FORMATS['d.m.Y'] = gmdate('d.m.Y', $actual_time).' (D.M.Y)'; |
|
47 |
$DATE_FORMATS['m.d.Y'] = gmdate('m.d.Y', $actual_time).' (M.D.Y)'; |
|
48 |
$DATE_FORMATS['d/m/Y'] = gmdate('d/m/Y', $actual_time).' (D/M/Y)'; |
|
49 |
$DATE_FORMATS['m/d/Y'] = gmdate('m/d/Y', $actual_time).' (M/D/Y)'; |
|
50 |
|
|
51 |
// Add "System Default" to list (if we need to) |
|
52 |
if(isset($user_time) && $user_time == true) |
|
53 |
{ |
|
54 |
if(isset($TEXT['SYSTEM_DEFAULT'])) |
|
55 |
{ |
|
56 |
$DATE_FORMATS['system_default'] = gmdate(DEFAULT_DATE_FORMAT, $actual_time).' ('.$TEXT['SYSTEM_DEFAULT'].')'; |
|
57 |
} else { |
|
58 |
$DATE_FORMATS['system_default'] = gmdate(DEFAULT_DATE_FORMAT, $actual_time).' (System Default)'; |
|
59 |
} |
|
60 |
} |
|
61 |
|
|
62 |
// Reverse array so "System Default" is at the top |
|
63 |
$DATE_FORMATS = array_reverse($DATE_FORMATS, true); |
|
64 |
|
|
75 | 65 |
?> |
76 | 66 |
Also available in: Unified diff
Update headerinfos admin/interface