Project

General

Profile

« Previous | Next » 

Revision 515

Added by ryan over 17 years ago

Created 2.6.7 tag

View differences:

tags/2.6.7/wb/admin/interface/version.php
1
<?php
2

  
3
// $Id$
4

  
5
/*
6

  
7
 Website Baker Project <http://www.websitebaker.org/>
8
 Copyright (C) 2004-2007, 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
Version file
29

  
30
This file is where the WB release version is stored.
31

  
32
*/
33

  
34
if(!defined('WB_URL')) {
35
	header('Location: ../index.php');
36
	exit(0);
37
}
38

  
39
define('VERSION', '2.6.7');
40

  
41
?>
0 42

  
tags/2.6.7/wb/admin/interface/header.html
1
<!-- BEGIN header_block -->
2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
<head>
5
<title>{WEBSITE_TITLE} >> {TEXT_ADMINISTRATION} - {SECTION_NAME}</title>
6
<link href="{INTERFACE_DIR}/stylesheet.css" rel="stylesheet" type="text/css" />
7
<meta http-equiv="content-type" content="text/html; charset={CHARSET}" />
8
{BACKEND_MODULE_CSS}
9
{BACKEND_MODULE_JS}
10
<script type="text/javascript" src="{WB_URL}/include/codepress/codepress.js"></script>
11
<script language="javascript" type="text/javascript">
12
function confirm_link(message, url) {
13
	if(confirm(message)) location.href = url;
14
}</script>
15
</head>
16

  
17
<table cellpadding="0" cellspacing="0" border="0" width="770" align="center">
18
<tr>
19
	<td width="60" valign="top">
20
		<img src="{INTERFACE_DIR}/logo.png" border="0" width="60" height="60" alt="Logo" />
21
	</td>
22
	<td width="5">&nbsp;</td>
23
	<td style="font-size: 20px;">
24
		<font style="color: #FFFFFF;">Website Baker</font>
25
		<font style="color: #DDDDDD;">{TEXT_ADMINISTRATION}</font>
26
	</td>
27
	<td width="100" align="right" style="padding-top: 10px; padding-right: 15px; color: #D0D0D0;">
28
	Version {VERSION}
29
	</td>
30
</tr>
31
</table>
32

  
33
<table cellpadding="0" cellspacing="0" border="0" width="770" align="center">
34
<tr>
35
	<td>
36
		<ul class="menu">
37
			<!-- BEGIN linkBlock -->
38
			<li class="{CLASS}"><a href="{LINK}" target="{TARGET}">{TITLE}</a></li>
39
			<!-- END linkBlock -->
40
		</ul>
41
	</td>
42
</tr>
43
<tr>
44
	<td class="content">
45
<!-- END header_block -->
0 46

  
tags/2.6.7/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-2007, 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
if(isset($user_time) AND $user_time == true) {
49
	$mktime = mktime()+TIMEZONE;
50
} else {
51
	$mktime = mktime()+DEFAULT_TIMEZONE;
52
}
53

  
54
// Add values to list
55
$TIME_FORMATS['g:i|A'] = gmdate('g:i A', $mktime);
56
$TIME_FORMATS['g:i|a'] = gmdate('g:i a', $mktime);
57
$TIME_FORMATS['H:i:s'] = gmdate('H:i:s', $mktime);
58
$TIME_FORMATS['H:i'] = gmdate('H:i', $mktime);
59

  
60
// Add "System Default" to list (if we need to)
61
if(isset($user_time) AND $user_time == true) {
62
	if(isset($TEXT['SYSTEM_DEFAULT'])) {
63
		$TIME_FORMATS['system_default'] = gmdate(DEFAULT_TIME_FORMAT, $mktime).' ('.$TEXT['SYSTEM_DEFAULT'].')';
64
	} else {
65
		$TIME_FORMATS['system_default'] = gmdate(DEFAULT_TIME_FORMAT, $mktime).' (System Default)';
66
	}
67
}
68

  
69
// Reverse array so "System Default" is at the top
70
$TIME_FORMATS = array_reverse($TIME_FORMATS, true);
71

  
72
?>
0 73

  
tags/2.6.7/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-2007, 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

  
58
?>
0 59

  
tags/2.6.7/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-2007, 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

  
82
?>
0 83

  
tags/2.6.7/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-2007, 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['E_ERROR'] = 'E_ERROR';
55
$ER_LEVELS['E_WARNING'] = 'E_WARNING';
56
$ER_LEVELS['E_PARSE'] = 'E_PARSE';
57
$ER_LEVELS['E_NOTICE'] = 'E_NOTICE';
58
$ER_LEVELS['E_CORE_ERROR'] = 'E_CORE_ERROR';
59
$ER_LEVELS['E_CORE_WARNING'] = 'E_CORE_WARNING';
60
$ER_LEVELS['E_COMPILE_ERROR'] = 'E_COMPILE_ERROR';
61
$ER_LEVELS['E_COMPILE_WARNING'] = 'E_COMPILE_WARNING';
62
$ER_LEVELS['E_USER_ERROR'] = 'E_USER_ERROR';
63
$ER_LEVELS['E_USER_WARNING'] = 'E_USER_WARNING';
64
$ER_LEVELS['E_USER_NOTICE'] = 'E_USER_NOTICE';
65
$ER_LEVELS['E_ALL'] = 'E_ALL';
66
$ER_LEVELS['E_STRICT'] = 'E_STRICT';
67

  
68
?>
0 69

  
tags/2.6.7/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-2007, 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

  
29
?>
0 30

  
tags/2.6.7/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-2007, 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
if(isset($user_time) AND $user_time == true) {
49
	$mktime = mktime()+TIMEZONE;
50
} else {
51
	$mktime = mktime()+DEFAULT_TIMEZONE;
52
}
53

  
54
// Add values to list
55
$DATE_FORMATS['l,|jS|F,|Y'] = gmdate('l, jS F, Y', $mktime);
56
$DATE_FORMATS['jS|F,|Y'] = gmdate('jS F, Y', $mktime);
57
$DATE_FORMATS['d|M|Y'] = gmdate('d M Y', $mktime);
58
$DATE_FORMATS['M|d|Y'] = gmdate('M d Y', $mktime);
59
$DATE_FORMATS['D|M|d,|Y'] = gmdate('D M d, Y', $mktime);
60
$DATE_FORMATS['d-m-Y'] = gmdate('d-m-Y', $mktime).' (D-M-Y)';
61
$DATE_FORMATS['m-d-Y'] = gmdate('m-d-Y', $mktime).' (M-D-Y)';
62
$DATE_FORMATS['d.m.Y'] = gmdate('d.m.Y', $mktime).' (D.M.Y)';
63
$DATE_FORMATS['m.d.Y'] = gmdate('m.d.Y', $mktime).' (M.D.Y)';
64
$DATE_FORMATS['d/m/Y'] = gmdate('d/m/Y', $mktime).' (D/M/Y)';
65
$DATE_FORMATS['m/d/Y'] = gmdate('m/d/Y', $mktime).' (M/D/Y)';
66

  
67
// Add "System Default" to list (if we need to)
68
if(isset($user_time) AND $user_time == true) {
69
	if(isset($TEXT['SYSTEM_DEFAULT'])) {
70
		$DATE_FORMATS['system_default'] = gmdate(DEFAULT_DATE_FORMAT, $mktime).' ('.$TEXT['SYSTEM_DEFAULT'].')';
71
	} else {
72
		$DATE_FORMATS['system_default'] = gmdate(DEFAULT_DATE_FORMAT, $mktime).' (System Default)';
73
	}
74
}
75

  
76
// Reverse array so "System Default" is at the top
77
$DATE_FORMATS = array_reverse($DATE_FORMATS, true);
78

  
79
?>
0 80

  
tags/2.6.7/wb/admin/interface/footer.html
1
<!-- BEGIN footer_block -->
2
	</td>
3
</tr>
4
</table>
5

  
6
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="padding: 10px 0px 10px 0px;">
7
<tr>
8
	<td align="center" style="font-size: 10px;">
9
		<!-- Please note: the below reference to the GNU GPL should not be removed, as it provides a link for users to read about warranty, etc. -->
10
		<a href="http://www.websitebaker.org/" style="color: #000000;" target="_blank">Website Baker</a>
11
		is	released under the
12
		<a href="http://www.gnu.org/licenses/gpl.html" style="color: #000000;" target="_blank">GNU General Public License</a>
13
		<!-- Please note: the above reference to the GNU GPL should not be removed, as it provides a link for users to read about warranty, etc. -->
14
	</td>
15
</tr>
16
</table>
17

  
18
</body>
19
</html>
20
<!-- END footer_block -->
0 21

  
tags/2.6.7/wb/admin/interface/stylesheet.css
1
body,td,th,input,textarea {
2
	font-family: Verdana, Arial, Helvetica, sans-serif;
3
	font-size: 12px;
4
	color: #000000;
5
}
6
body {
7
	background-color: #557799;
8
	background-image: url(../interface/background.png);
9
	background-repeat: repeat-x;
10
	margin: 0px;
11
}
12
form {
13
	margin: 0;
14
}
15
hr {
16
	margin: 15px 0px 15px 0px;
17
	color: #003366;
18
	height: 1px;
19
}
20
h1 {
21
	text-align: center;
22
	font-size: 20px;
23
	color: #003366;
24
	text-transform: uppercase;
25
}
26
h2 {
27
	font-size: 15px;
28
	color: #336699;
29
	margin: 5px 0px 5px 0px;
30
}
31
a:link, a:visited, a:active {
32
	color: #003366;
33
	text-decoration: none;
34
}
35
a:hover {
36
	text-decoration: none;
37
	color: #336699;
38
}
39
.note {
40
	color: #666666;
41
	font-size: 10px;
42
}
43
label {
44
	cursor: pointer;
45
}
46
.menu {
47
	margin: 0;
48
	padding: 0;
49
	padding-top: 10px;
50
	padding-bottom: 4px;
51
	padding-left: 8px;
52
}
53
.menu li {
54
	list-style-type: none;
55
	display: inline;
56
	padding-right: 1px;
57
}
58
.menu a, .menu a:link, .menu a:active, .menu a:visited {
59
	border-bottom: 0;
60
	padding: 4px 3px 4px 3px;
61
	color: #003366;
62
}
63
.menu a:hover {
64
	text-decoration: none;
65
	color: #336699;
66
}
67
.current a, .current a:link, .current a:active, .current a:visited {
68
	background-color: #FFFFFF;
69
	color: #000000;
70
}
71
.content {
72
	background-color: #FFFFFF;
73
	padding: 20px;
74
	height: 280px;
75
	width: 750px;
76
	text-align: left;
77
	vertical-align: top;
78
}
79
.row_a {
80
	background-color: #EEEEEE;
81
}
82
.row_b {
83
	background-color: #DDDDDD;
84
}
85
.hide {
86
	display: none;
87
}
0 88

  
tags/2.6.7/wb/admin/interface/success.html
1
<!-- BEGIN main_block -->
2
<center>
3
	
4
	{MESSAGE}
5
	
6
	<script language="javascript" type="text/javascript">
7
		setTimeout("location.href='{REDIRECT}'", 0);
8
	</script>
9
	
10
	<noscript>
11
		<br /><br />
12
		<a href="{REDIRECT}">{NEXT}</a>
13
	</noscript>
14
	
15
</center>
16
<!-- END main_block -->
0 17

  
tags/2.6.7/wb/admin/interface/error.html
1
<!-- BEGIN main_block -->
2
<center>
3
	
4
	{MESSAGE}
5
	
6
	<br /><br />
7
	<a href="{LINK}">{BACK}</a>
8
	
9
</center>
10
<!-- END main_block -->
0 11

  
tags/2.6.7/wb/admin/pages/settings2.php
1
<?php
2

  
3
// $Id$
4

  
5
/*
6

  
7
 Website Baker Project <http://www.websitebaker.org/>
8
 Copyright (C) 2004-2007, 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
// Get page id
27
if(!isset($_POST['page_id']) OR !is_numeric($_POST['page_id'])) {
28
	header("Location: index.php");
29
	exit(0);
30
} else {
31
	$page_id = $_POST['page_id'];
32
}
33

  
34
// Create new admin object and print admin header
35
require('../../config.php');
36
require_once(WB_PATH.'/framework/class.admin.php');
37
$admin = new admin('Pages', 'pages_settings');
38

  
39
// Include the WB functions file
40
require_once(WB_PATH.'/framework/functions.php');
41

  
42
// Get values
43
$page_title = $admin->get_post_escaped('page_title');
44
$page_title = my_htmlspecialchars($page_title);
45
$menu_title = $admin->get_post_escaped('menu_title');
46
$menu_title = my_htmlspecialchars($menu_title);
47
$description = $admin->add_slashes($admin->get_post('description'));
48
$keywords = $admin->add_slashes($admin->get_post('keywords'));
49
$parent = $admin->get_post('parent');
50
$visibility = $admin->get_post('visibility');
51
$template = $admin->get_post('template');
52
$target = $admin->get_post('target');
53
$admin_groups = $admin->get_post('admin_groups');
54
$viewing_groups = $admin->get_post('viewing_groups');
55
$searching = $admin->get_post('searching');
56
$language = $admin->get_post('language');
57
$menu = $admin->get_post('menu');
58

  
59
// Validate data
60
if($page_title == '' || substr($page_title,0,1)=='.') {
61
	$admin->print_error($MESSAGE['PAGES']['BLANK_PAGE_TITLE']);
62
}
63
if($menu_title == '' || substr($menu_title,0,1)=='.') {
64
	$admin->print_error($MESSAGE['PAGES']['BLANK_MENU_TITLE']);
65
}
66

  
67
// Get existing perms
68
$database = new database();
69
$results = $database->query("SELECT parent,link,position,admin_groups,admin_users FROM ".TABLE_PREFIX."pages WHERE page_id = '$page_id'");
70
$results_array = $results->fetchRow();
71
$old_parent = $results_array['parent'];
72
$old_link = $results_array['link'];
73
$old_position = $results_array['position'];
74
$old_admin_groups = explode(',', str_replace('_', '', $results_array['admin_groups']));
75
$old_admin_users = explode(',', str_replace('_', '', $results_array['admin_users']));
76
if(!is_numeric(array_search($admin->get_group_id(), $old_admin_groups)) AND !is_numeric(array_search($admin->get_user_id(), $old_admin_users))) {
77
	$admin->print_error($MESSAGE['PAGES']['INSUFFICIENT_PERMISSIONS']);
78
}
79

  
80
// Setup admin groups
81
$admin_groups[] = 1;
82
if($admin->get_group_id() != 1) {
83
	$admin_groups[] = $admin->get_group_id();
84
}
85
$admin_groups = implode(',', $admin_groups);
86
// Setup viewing groups
87
$viewing_groups[] = 1;
88
if($admin->get_group_id() != 1) {
89
	$viewing_groups[] = $admin->get_group_id();
90
}
91
$viewing_groups = implode(',', $viewing_groups);
92

  
93
// If needed, get new order
94
if($parent != $old_parent) {
95
	// Include ordering class
96
	require(WB_PATH.'/framework/class.order.php');
97
	$order = new order(TABLE_PREFIX.'pages', 'position', 'page_id', 'parent');
98
	// Get new order
99
	$position = $order->get_new($parent);
100
	// Clean new order
101
	$order->clean($parent);
102
} else {
103
	$position = $old_position;
104
}
105

  
106
// Work out level and root parent
107
if ($parent!='0') {
108
	$level = level_count($parent)+1;
109
	$root_parent = root_parent($parent);
110
}
111
else {
112
	$level = '0';
113
	$root_parent = '0';
114
}
115

  
116
// Work-out what the link should be
117
if($parent == '0') {
118
	$link = '/'.page_filename($menu_title);
119
	$filename = WB_PATH.PAGES_DIRECTORY.'/'.page_filename($menu_title).'.php'; 
120
} else {
121
	$parent_section = '';
122
	$parent_titles = array_reverse(get_parent_titles($parent));
123
	foreach($parent_titles AS $parent_title) {
124
		$parent_section .= page_filename($parent_title).'/';
125
	}
126
	if($parent_section == '/') { $parent_section = ''; }
127
	$link = '/'.$parent_section.page_filename($menu_title);
128
	$filename = WB_PATH.PAGES_DIRECTORY.'/'.$parent_section.page_filename($menu_title).'.php';  
129
}
130

  
131
// Check if a page with same page filename exists
132
$database = new database();
133
$get_same_page = $database->query("SELECT page_id,page_title FROM ".TABLE_PREFIX."pages WHERE link = '$link' and page_id != '$page_id'");
134
if($get_same_page->numRows() > 0) {
135
	$admin->print_error($MESSAGE['PAGES']['PAGE_EXISTS']);
136
}
137

  
138
// Update page with new order
139
$query = "UPDATE ".TABLE_PREFIX."pages SET parent = '$parent', position = '$position' WHERE page_id = '$page_id'";
140
$database = new database();
141
$database->query($query);
142

  
143
// Get page trail
144
$page_trail = get_page_trail($page_id);
145

  
146
// Make sure link is not overwritten if page uses the menu link module
147
$query_sections = $database->query("SELECT section_id FROM ".TABLE_PREFIX."sections WHERE page_id = '$page_id' AND module = 'menu_link'");
148
if($query_sections->numRows() > 0) {
149
	$link = $old_link;
150
} 
151

  
152
// Update page settings in the pages table
153
$query = "UPDATE ".TABLE_PREFIX."pages SET parent = '$parent', page_title = '$page_title', menu_title = '$menu_title', menu = '$menu', level = '$level', page_trail = '$page_trail', root_parent = '$root_parent', link = '$link', template = '$template', target = '$target', description = '$description', keywords = '$keywords', position = '$position', visibility = '$visibility', searching = '$searching', language = '$language', admin_groups = '$admin_groups', viewing_groups = '$viewing_groups' WHERE page_id = '$page_id'";
154
$database->query($query);
155

  
156
// Clean old order if needed
157
if($parent != $old_parent) {
158
	$order->clean($old_parent);
159
}
160

  
161
/* BEGIN page "access file" code */
162

  
163
// Create a new file in the /pages dir if title changed
164
if(!is_writable(WB_PATH.PAGES_DIRECTORY.'/')) {
165
	$admin->print_error($MESSAGE['PAGES']['CANNOT_CREATE_ACCESS_FILE']);
166
} else {
167
	// First check if we need to create a new file
168
	if($old_link != $link) {
169
		// Delete old file
170
		$old_filename = WB_PATH.PAGES_DIRECTORY.$old_link.'.php';
171
		if(file_exists($old_filename)) {
172
			unlink($old_filename);
173
		}
174
		// Create access file
175
		create_access_file($filename,$page_id,$level);
176
		// Move a directory for this page
177
		if(file_exists(WB_PATH.PAGES_DIRECTORY.$old_link.'/') AND is_dir(WB_PATH.PAGES_DIRECTORY.$old_link.'/')) {
178
			rename(WB_PATH.PAGES_DIRECTORY.$old_link.'/', WB_PATH.PAGES_DIRECTORY.$link.'/');
179
		}
180
		// Update any pages that had the old link with the new one
181
		$old_link_len = strlen($old_link);
182
		$query_subs = $database->query("SELECT page_id,link,level FROM ".TABLE_PREFIX."pages WHERE link LIKE '%$old_link/%' ORDER BY LEVEL ASC");
183
		if($query_subs->numRows() > 0) {
184
			while($sub = $query_subs->fetchRow()) {
185
				// Double-check to see if it contains old link
186
				if(substr($sub['link'], 0, $old_link_len) == $old_link) {
187
					// Get new link
188
					$replace_this = $old_link;
189
					$old_sub_link_len =strlen($sub['link']);
190
					$new_sub_link = $link.'/'.substr($sub['link'],$old_link_len+1,$old_sub_link_len);
191
					// Work out level
192
					$new_sub_level = level_count($sub['page_id']);
193
					// Update level and link
194
					$database->query("UPDATE ".TABLE_PREFIX."pages SET link = '$new_sub_link', level = '$new_sub_level' WHERE page_id = '".$sub['page_id']."' LIMIT 1");
195
					// Re-write the access file for this page
196
					$old_subpage_file = WB_PATH.PAGES_DIRECTORY.$new_sub_link.'.php';
197
					if(file_exists($old_subpage_file)) {
198
						unlink($old_subpage_file);
199
					}
200
					create_access_file(WB_PATH.PAGES_DIRECTORY.$new_sub_link.'.php', $sub['page_id'], $new_sub_level);
201
				}
202
			}
203
		}
204
	}
205
}
206

  
207
// Function to fix page trail of subs
208
function fix_page_trail($parent,$root_parent) {
209
	// Get objects and vars from outside this function
210
	global $admin, $template, $database, $TEXT, $MESSAGE;
211
	// Get page list from database
212
	$database = new database();
213
	$query = "SELECT page_id FROM ".TABLE_PREFIX."pages WHERE parent = '$parent'";
214
	$get_pages = $database->query($query);
215
	// Insert values into main page list
216
	if($get_pages->numRows() > 0)	{
217
		while($page = $get_pages->fetchRow()) {
218
			// Fix page trail
219
			$database->query("UPDATE ".TABLE_PREFIX."pages SET ".($root_parent != 0 ?"root_parent = '$root_parent', ":"")." page_trail = '".get_page_trail($page['page_id'])."' WHERE page_id = '".$page['page_id']."'");
220
			// Run this query on subs
221
			fix_page_trail($page['page_id'],$root_parent);
222
		}
223
	}
224
}
225
// Fix sub-pages page trail
226
fix_page_trail($page_id,$root_parent);
227

  
228
/* END page "access file" code */
229

  
230
// Check if there is a db error, otherwise say successful
231
if($database->is_error()) {
232
	$admin->print_error($database->get_error(), ADMIN_URL.'/pages/settings.php?page_id='.$page_id);
233
} else {
234
	$admin->print_success($MESSAGE['PAGES']['SAVED_SETTINGS'], ADMIN_URL.'/pages/index.php');
235
}
236

  
237
// Print admin footer
238
$admin->print_footer();
239

  
240
?>
0 241

  
tags/2.6.7/wb/admin/pages/add.php
1
<?php
2

  
3
// $Id$
4

  
5
/*
6

  
7
 Website Baker Project <http://www.websitebaker.org/>
8
 Copyright (C) 2004-2005, 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
// Create new admin object and print admin header
27
require('../../config.php');
28
require_once(WB_PATH.'/framework/class.admin.php');
29
$admin = new admin('Pages', 'pages_add');
30

  
31
// Include the WB functions file
32
require_once(WB_PATH.'/framework/functions.php');
33

  
34
// Get values
35
$title = $admin->get_post_escaped('title');
36
$title = my_htmlspecialchars($title);
37
$module = $admin->get_post('type');
38
$parent = $admin->get_post('parent');
39
$visibility = $admin->get_post('visibility');
40
$admin_groups = $admin->get_post('admin_groups');
41
$viewing_groups = $admin->get_post('viewing_groups');
42

  
43
if ($parent!=0) {
44
	if (!$admin->get_page_permission($parent,'admin'))
45
		$admin->print_error($MESSAGE['PAGES']['INSUFFICIENT_PERMISSIONS']);
46
} elseif (!$admin->get_permission('pages_add_l0','system')) {
47
	$admin->print_error($MESSAGE['PAGES']['INSUFFICIENT_PERMISSIONS']);
48
}	
49

  
50
// Validate data
51
if($title == '' || substr($title,0,1)=='.') {
52
	$admin->print_error($MESSAGE['PAGES']['BLANK_PAGE_TITLE']);
53
}
54

  
55
// Setup admin groups
56
$admin_groups[] = 1;
57
if($admin->get_group_id() != 1) {
58
	$admin_groups[] = $admin->get_group_id();
59
}
60
$admin_groups = implode(',', $admin_groups);
61
// Setup viewing groups
62
$viewing_groups[] = 1;
63
if($admin->get_group_id() != 1) {
64
	$viewing_groups[] = $admin->get_group_id();
65
}
66
$viewing_groups = implode(',', $viewing_groups);
67

  
68
// Work-out what the link and page filename should be
69
if($parent == '0') {
70
	$link = '/'.page_filename($title);
71
	$filename = WB_PATH.PAGES_DIRECTORY.'/'.page_filename($title).'.php';
72
} else {
73
	$parent_section = '';
74
	$parent_titles = array_reverse(get_parent_titles($parent));
75
	foreach($parent_titles AS $parent_title) {
76
		$parent_section .= page_filename($parent_title).'/';
77
	}
78
	if($parent_section == '/') { $parent_section = ''; }
79
	$link = '/'.$parent_section.page_filename($title);
80
	$filename = WB_PATH.PAGES_DIRECTORY.'/'.$parent_section.page_filename($title).'.php';
81
	make_dir(WB_PATH.PAGES_DIRECTORY.'/'.$parent_section);
82
}
83

  
84
// Check if a page with same page filename exists
85
$get_same_page = $database->query("SELECT page_id FROM ".TABLE_PREFIX."pages WHERE link = '$link'");
86
if($get_same_page->numRows() > 0 OR file_exists(WB_PATH.PAGES_DIRECTORY.$link.'.php') OR file_exists(WB_PATH.PAGES_DIRECTORY.$link.'/')) {
87
	$admin->print_error($MESSAGE['PAGES']['PAGE_EXISTS']);
88
}
89

  
90
// Include the ordering class
91
require(WB_PATH.'/framework/class.order.php');
92
$order = new order(TABLE_PREFIX.'pages', 'position', 'page_id', 'parent');
93
// First clean order
94
$order->clean($parent);
95
// Get new order
96
$position = $order->get_new($parent);
97

  
98
// Work-out if the page parent (if selected) has a seperate template to the default
99
$query_parent = $database->query("SELECT template FROM ".TABLE_PREFIX."pages WHERE page_id = '$parent'");
100
if($query_parent->numRows() > 0) {
101
	$fetch_parent = $query_parent->fetchRow();
102
	$template = $fetch_parent['template'];
103
} else {
104
	$template = '';
105
}
106

  
107
// Insert page into pages table
108
$query = "INSERT INTO ".TABLE_PREFIX."pages (page_title,menu_title,parent,template,target,position,visibility,searching,menu,language,admin_groups,viewing_groups,modified_when,modified_by) VALUES ('$title','$title','$parent','$template','_top','$position','$visibility','1','1','".DEFAULT_LANGUAGE."','$admin_groups','$viewing_groups','".mktime()."','".$admin->get_user_id()."')";
109
$database->query($query);
110
if($database->is_error()) {
111
	$admin->print_error($database->get_error());
112
}
113

  
114
// Get the page id
115
$page_id = $database->get_one("SELECT LAST_INSERT_ID()");
116

  
117
// Work out level
118
$level = level_count($page_id);
119
// Work out root parent
120
$root_parent = root_parent($page_id);
121
// Work out page trail
122
$page_trail = get_page_trail($page_id);
123

  
124
// Update page with new level and link
125
$database->query("UPDATE ".TABLE_PREFIX."pages SET link = '$link', level = '$level', root_parent = '$root_parent', page_trail = '$page_trail' WHERE page_id = '$page_id'");
126

  
127
// Create a new file in the /pages dir
128
create_access_file($filename, $page_id, $level);
129

  
130
// Get new order for section
131
$order = new order(TABLE_PREFIX.'sections', 'position', 'section_id', 'page_id');
132
$position = $order->get_new($parent);
133

  
134
// Add new record into the sections table
135
$database->query("INSERT INTO ".TABLE_PREFIX."sections (page_id,position,module,block) VALUES ('$page_id','$position', '$module','1')");
136

  
137
// Get the section id
138
$section_id = $database->get_one("SELECT LAST_INSERT_ID()");
139

  
140
// Include the selected modules add file if it exists
141
if(file_exists(WB_PATH.'/modules/'.$module.'/add.php')) {
142
	require(WB_PATH.'/modules/'.$module.'/add.php');
143
}
144

  
145
// Check if there is a db error, otherwise say successful
146
if($database->is_error()) {
147
	$admin->print_error($database->get_error());
148
} else {
149
	$admin->print_success($MESSAGE['PAGES']['ADDED'], ADMIN_URL.'/pages/modify.php?page_id='.$page_id);
150
}
151

  
152
// Print admin footer
153
$admin->print_footer();
154

  
155
?>
0 156

  
tags/2.6.7/wb/admin/pages/index.php
1
<?php
2

  
3
// $Id$
4

  
5
/*
6

  
7
 Website Baker Project <http://www.websitebaker.org/>
8
 Copyright (C) 2004-2007, Ryan Djurovich
9

  
10
 Website Baker is free software; you can redistribute it and/or modify
11
 it under the terms of the GNU General Public License as published by
12
 the Free Software Foundation; either version 2 of the License, or
13
 (at your option) any later version.
14

  
15
 Website Baker is distributed in the hope that it will be useful,
16
 but WITHOUT ANY WARRANTY; without even the implied warranty of
17
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
 GNU General Public License for more details.
19

  
20
 You should have received a copy of the GNU General Public License
21
 along with Website Baker; if not, write to the Free Software
22
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23

  
24
*/
25

  
26
require('../../config.php');
27
require_once(WB_PATH.'/framework/class.admin.php');
28
$admin = new admin('Pages', 'pages');
29
// Include the WB functions file
30
require_once(WB_PATH.'/framework/functions.php');
31

  
32
?>
33
<!-- Addition for remembering expanded state of pages -->
34
<script language="JavaScript">
35
function writeSessionCookie (cookieName, cookieValue) {
36
    document.cookie = escape(cookieName) + "=" + escape(cookieValue) + ";";
37
}
38
</script>
39
<!-- End addition -->
40

  
41
<script type="text/javascript" language="javascript">
42
function toggle_viewers() {
43
	if(document.add.visibility.value == 'private') {
44
		document.getElementById('private_viewers').style.display = 'block';
45
		document.getElementById('registered_viewers').style.display = 'none';
46
	} else if(document.add.visibility.value == 'registered') {
47
		document.getElementById('private_viewers').style.display = 'none';
48
		document.getElementById('registered_viewers').style.display = 'block';
49
	} else {
50
		document.getElementById('private_viewers').style.display = 'none';
51
		document.getElementById('registered_viewers').style.display = 'none';
52
	}
53
}
54
function toggle_visibility(id){
55
	if(document.getElementById(id).style.display == "block") {
56
		document.getElementById(id).style.display = "none";
57
		writeSessionCookie (id, "0");//Addition for remembering expanded state of pages
58
	} else {
59
		document.getElementById(id).style.display = "block";
60
		writeSessionCookie (id, "1");//Addition for remembering expanded state of pages
61
	}
62
}
63
var plus = new Image;
64
plus.src = "<?php echo ADMIN_URL; ?>/images/plus_16.png";
65
var minus = new Image;
66
minus.src = "<?php echo ADMIN_URL; ?>/images/minus_16.png";
67
function toggle_plus_minus(id) {
68
	var img_src = document.images['plus_minus_' + id].src;
69
	if(img_src == plus.src) {
70
		document.images['plus_minus_' + id].src = minus.src;
71
	} else {
72
		document.images['plus_minus_' + id].src = plus.src;
73
	}
74
}
75
</script>
76

  
77
<style type="text/css">
78
.pages_list img {
79
	display: block;
80
}
81
ul, li {
82
	list-style: none;
83
	margin: 0;
84
	padding: 0;
85
}
86
.page_list {
87
	display: none;
88
}
89
</style>
90

  
91
<noscript>
92
	<style type="text/css">
93
	.page_list {
94
		display: block;
95
	}
96
	</style>
97
</noscript>
98
<?php
99

  
100
function make_list($parent, $editable_pages) {
101
	// Get objects and vars from outside this function
102
	global $admin, $template, $database, $TEXT, $MESSAGE;
103
	?>
104
	<ul id="p<?php echo $parent; ?>" <?php if($parent != 0) { echo 'class="page_list" '; if($_COOKIE["p".$parent] =="1"){echo'style="display:block;"'; }} ?>>
105
	<?php	
106
	// Get page list from database
107
	$database = new database();
108
	if(PAGE_TRASH != 'inline') {
109
		$query = "SELECT * FROM ".TABLE_PREFIX."pages WHERE parent = '$parent' AND visibility != 'deleted' ORDER BY position ASC";
110
	} else {
111
		$query = "SELECT * FROM ".TABLE_PREFIX."pages WHERE parent = '$parent' ORDER BY position ASC";
112
	}
113
	$get_pages = $database->query($query);
114
	
115
	// Insert values into main page list
116
	if($get_pages->numRows() > 0)	{
117
		while($page = $get_pages->fetchRow()) {
118
			// Get user perms
119
			$admin_groups = explode(',', str_replace('_', '', $page['admin_groups']));
120
			$admin_users = explode(',', str_replace('_', '', $page['admin_users']));
121
			if(is_numeric(array_search($admin->get_group_id(), $admin_groups)) OR is_numeric(array_search($admin->get_user_id(), $admin_users))) {
122
				if($page['visibility'] == 'deleted') {
123
					if(PAGE_TRASH == 'inline') {
124
						$can_modify = true;
125
						$editable_pages = $editable_pages+1;
126
					} else {
127
						$can_modify = false;
128
					}
129
				} elseif($page['visibility'] != 'deleted') {
130
					$can_modify = true;
131
					$editable_pages = $editable_pages+1;
132
				}
133
			} else {
134
				if($page['visibility'] == 'private') {
135
					continue;
136
				}
137
				else {
138
					$can_modify = false;
139
				}
140
			}
141
						
142
			// Work out if we should show a plus or not
143
			if(PAGE_TRASH != 'inline') {
144
				$get_page_subs = $database->query("SELECT page_id,admin_groups,admin_users FROM ".TABLE_PREFIX."pages WHERE parent = '".$page['page_id']."' AND visibility!='deleted'");
145
			} else {
146
				$get_page_subs = $database->query("SELECT page_id,admin_groups,admin_users FROM ".TABLE_PREFIX."pages WHERE parent = '".$page['page_id']."'");
147
			}
148
			if($get_page_subs->numRows() > 0) {
149
				$display_plus = true;
150
			} else {
151
				$display_plus = false;
152
			}
153
			
154
			// Work out how many pages there are for this parent
155
			$num_pages = $get_pages->numRows();
156
			?>
157
			
158
			<li id="p<?php echo $page['parent']; ?>" style="padding: 2px 0px 2px 0px;">
159
			<table width="720" cellpadding="1" cellspacing="0" border="0" style="background-color: #F0F0F0;">
160
			<tr>
161
				<td width="20" style="padding-left: <?php echo $page['level']*20; ?>px;">
162
					<?php
163
					if($display_plus == true) {
164
					?>
165
					<a href="javascript: toggle_visibility('p<?php echo $page['page_id']; ?>');" title="<?php echo $TEXT['EXPAND'].'/'.$TEXT['COLLAPSE']; ?>">
166
						<img src="<?php echo ADMIN_URL; ?>/images/<?php if($_COOKIE["p".$page['page_id']] =="1"){echo"minus";}else{echo"plus";}?>_16.png" onclick="toggle_plus_minus('<?php echo $page['page_id']; ?>');" name="plus_minus_<?php echo $page['page_id']; ?>" border="0" alt="+" />
167
					</a>
168
					<?php
169
					}
170
					?>
171
				</td>
172
				<?php if($admin->get_permission('pages_modify') == true AND $can_modify == true) { ?>
173
				<td>
174
					<a href="<?php echo ADMIN_URL; ?>/pages/modify.php?page_id=<?php echo $page['page_id']; ?>" title="<?php echo $TEXT['MODIFY']; ?>"><?php echo ($page['page_title']); ?></a>				
175
				</td>
176
				<?php } else { ?>
177
				<td>
178
					<?php echo ($page['page_title']); ?>
179
				</td>
180
				<?php } ?>
181
				<td align="left" width="232">
182
					<font color="#999999"><?php echo ($page['menu_title']); ?></font>
183
				</td>
184
				<td align="center" valign="middle" width="90">
185
				<?php if($page['visibility'] == 'public') { ?>
186
					<img src="<?php echo ADMIN_URL; ?>/images/visible_16.png" alt="<?php echo $TEXT['VISIBILITY']; ?>: <?php echo $TEXT['PUBLIC']; ?>" border="0" />
187
				<?php } elseif($page['visibility'] == 'private') { ?>
188
					<img src="<?php echo ADMIN_URL; ?>/images/private_16.png" alt="<?php echo $TEXT['VISIBILITY']; ?>: <?php echo $TEXT['PRIVATE']; ?>" border="0" />
189
				<?php } elseif($page['visibility'] == 'registered') { ?>
190
					<img src="<?php echo ADMIN_URL; ?>/images/keys_16.png" alt="<?php echo $TEXT['VISIBILITY']; ?>: <?php echo $TEXT['REGISTERED']; ?>" border="0" />
191
				<?php } elseif($page['visibility'] == 'hidden') { ?>
192
					<img src="<?php echo ADMIN_URL; ?>/images/hidden_16.png" alt="<?php echo $TEXT['VISIBILITY']; ?>: <?php echo $TEXT['HIDDEN']; ?>" border="0" />
193
				<?php } elseif($page['visibility'] == 'none') { ?>
194
					<img src="<?php echo ADMIN_URL; ?>/images/none_16.png" alt="<?php echo $TEXT['VISIBILITY']; ?>: <?php echo $TEXT['NONE']; ?>" border="0" />
195
				<?php } elseif($page['visibility'] == 'deleted') { ?>
196
					<img src="<?php echo ADMIN_URL; ?>/images/deleted_16.png" alt="<?php echo $TEXT['VISIBILITY']; ?>: <?php echo $TEXT['DELETED']; ?>" border="0" />
197
				<?php } ?>
198
				</td>
199
				<td width="20">
200
					<?php if($page['visibility'] != 'deleted') { ?>
201
						<?php if($admin->get_permission('pages_settings') == true AND $can_modify == true) { ?>
202
						<a href="<?php echo ADMIN_URL; ?>/pages/settings.php?page_id=<?php echo $page['page_id']; ?>" title="<?php echo $TEXT['SETTINGS']; ?>">
203
							<img src="<?php echo ADMIN_URL; ?>/images/modify_16.png" border="0" alt="<?php echo $TEXT['SETTINGS']; ?>" />
204
						</a>
205
						<?php } ?>
206
					<?php } else { ?>
207
						<a href="<?php echo ADMIN_URL; ?>/pages/restore.php?page_id=<?php echo $page['page_id']; ?>" title="<?php echo $TEXT['RESTORE']; ?>">
208
							<img src="<?php echo ADMIN_URL; ?>/images/restore_16.png" border="0" alt="<?php echo $TEXT['RESTORE']; ?>" />
209
						</a>
210
					<?php } ?>
211
				</td>
212
				<td width="20">
213
				<?php if($page['position'] != 1) { ?>
214
					<?php if($page['visibility'] != 'deleted') { ?>
215
						<?php if($admin->get_permission('pages_settings') == true AND $can_modify == true) { ?>
216
						<a href="<?php echo ADMIN_URL; ?>/pages/move_up.php?page_id=<?php echo $page['page_id']; ?>" title="<?php echo $TEXT['MOVE_UP']; ?>">
217
							<img src="<?php echo ADMIN_URL; ?>/images/up_16.png" border="0" alt="^" />
218
						</a>
219
						<?php } ?>
220
					<?php } ?>
221
				<?php } ?>
222
				</td>
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff