Project

General

Profile

« Previous | Next » 

Revision 83

Added by ryan about 19 years ago

Moved Menu Link module

View differences:

trunk/wb/modules/menu_link/save.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
require('../../config.php');
27

  
28
// Include WB admin wrapper script
29
$update_when_modified = true; // Tells script to update when this page was last updated
30
require(WB_PATH.'/modules/admin.php');
31

  
32
$database = new database();
33

  
34
// Update the mod_menu_links table with the link
35
if(isset($_POST['link'])) {
36
	// Update link and target
37
	$link = $admin->add_slashes($_POST['link']);
38
	$target = $_POST['target'];
39
	$query = "UPDATE ".TABLE_PREFIX."pages SET link = '$link', target = '$target' WHERE page_id = '$page_id'";
40
	$database->query($query);
41
} else {
42
	$admin->print_error('Error in wb/modules/menu_link/save.php at line 35', $js_back);
43
}
44

  
45
// Check if there is a database error, otherwise say successful
46
if($database->is_error()) {
47
	$admin->print_error($database->get_error(), $js_back);
48
} else {
49
	$admin->print_success($MESSAGE['PAGES']['SAVED'], ADMIN_URL.'/pages/modify.php?page_id='.$page_id);
50
}
51

  
52
// Print admin footer
53
$admin->print_footer();
54

  
55
?>
56 0

  
trunk/wb/modules/menu_link/install.php
1
<?php
2

  
3
// $Id: install.php,v 1.1.1.1 2005/01/30 10:32:15 rdjurovich Exp $
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
// No table is needed for this module
27

  
28
?>
29 0

  
trunk/wb/modules/menu_link/modify.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
// Setup template object
27
$template = new Template(WB_PATH.'/modules/menu_link');
28
$template->set_file('page', 'modify.html');
29
$template->set_block('page', 'main_block', 'main');
30

  
31
// Get page link and target
32
$query_info = "SELECT link,target FROM ".TABLE_PREFIX."pages WHERE page_id = '$page_id'";
33
$get_info = $database->query($query_info);
34
$fetch_info = $get_info->fetchRow();
35
$link = $admin->strip_slashes_dummy($fetch_info['link']);
36
$target = $fetch_info['target'];
37

  
38
// Insert vars
39
$template->set_var(array(
40
								'PAGE_ID' => $page_id,
41
								'WB_URL' => WB_URL,
42
								'LINK' => $link,
43
								'TEXT_LINK' => $TEXT['LINK'],
44
								'TEXT_TARGET' => $TEXT['TARGET'],
45
								'TEXT_NEW_WINDOW' => $TEXT['NEW_WINDOW'],
46
								'TEXT_SAME_WINDOW' => $TEXT['SAME_WINDOW'],
47
								'TEXT_SAVE' => $TEXT['SAVE'],
48
								'TEXT_CANCEL' => $TEXT['CANCEL'],
49
								'TEXT_PLEASE_SELECT' => $TEXT['PLEASE_SELECT']
50
								)
51
						);
52

  
53
// Select target
54
if($target == '_blank') {
55
	$template->set_var('BLANK_SELECTED', ' selected');
56
} elseif($target == '_top') {
57
	$template->set_var('TOP_SELECTED', ' selected');
58
}
59

  
60
// Parse template object
61
$template->parse('main', 'main_block', false);
62
$template->pparse('output', 'page');
63

  
64
?>
65 0

  
trunk/wb/modules/menu_link/modify.html
1
<!-- BEGIN main_block -->
2

  
3
<form action="{WB_URL}/modules/menu_link/save.php" method="post">
4

  
5
<input type="hidden" name="page_id" value="{PAGE_ID}" />
6
<input type="hidden" name="section_id" value="{SECTION_ID}" />
7

  
8
<table cellpadding="0" cellspacing="0" border="0" width="100%">
9
<tr>
10
	<td>
11
		{TEXT_LINK}:
12
	</td>
13
	<td>
14
		<input type="text" id="link" name="link" style="width: 100%;" value="{LINK}" />
15
	</td>
16
</tr>
17
<tr>
18
	<td>
19
		{TEXT_TARGET}:
20
	</td>
21
	<td>
22
		<select name="target" style="width: 100%;" value="{TARGET}" />
23
			<option value="_top">{TEXT_PLEASE_SELECT}...</option>
24
			<option value="_blank"{BLANK_SELECTED}>{TEXT_NEW_WINDOW}</option>
25
			<option value="_top"{TOP_SELECTED}>{TEXT_SAME_WINDOW}</option>
26
		</select>
27
	</td>
28
</tr>
29
</table>
30

  
31
<br />
32

  
33
<table cellpadding="0" cellspacing="0" border="0" width="100%">
34
<tr>
35
	<td align="left">
36
		<input type="submit" value="{TEXT_SAVE}" style="width: 100px; margin-top: 5px;" />
37
	</td>
38
	<td align="right">
39
		</form>
40
		<input type="button" value="{TEXT_CANCEL}" onclick="javascript: window.location = 'index.php';" style="width: 100px; margin-top: 5px;" />
41
	</td>
42
</tr>
43
</table>
44

  
45
</form>
46

  
47
<!-- END main_block -->
48 0

  
trunk/wb/modules/menu_link/view.php
1
<?php
2

  
3
// $Id: view.php,v 1.1.1.1 2005/01/30 10:32:15 rdjurovich Exp $
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
/*
27
Since there is nothing to show and users shouldn't really know this
28
page exists, we might as well give them a link to the home page.
29
*/
30

  
31
?>
32
<a href="<?php echo WB_URL; ?>">
33
Click HERE to go to the main page
34
</a>
35 0

  
trunk/wb/modules/menu_link/add.php
1
<?php
2

  
3
// $Id: add.php,v 1.1.1.1 2005/01/30 10:32:15 rdjurovich Exp $
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
// Nothing needs to be inserted anywhere special
27

  
28
?>
29 0

  
trunk/wb/modules/menu_link/index.php
1
<?php
2

  
3
// $Id: index.php,v 1.1.1.1 2005/01/30 10:32:15 rdjurovich Exp $
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
header('Location: ../index.php');
27

  
28
?>
29 0

  
trunk/wb/modules/menu_link/delete.php
1
<?php
2

  
3
// $Id: delete.php,v 1.1.1.1 2005/01/30 10:32:15 rdjurovich Exp $
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
// Nothing special has to be deleted
27

  
28
?>
29 0

  
trunk/wb/modules/menu_link/info.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
$module_directory = 'menu_link';
27
$module_name = 'Menu Link';
28
$module_type = 'page';
29
$module_version = '2.5';
30
$module_designed_for = '2.x';
31
$module_author = 'Ryan Djurovich';
32
$module_description = 'This module allows you to insert a link into the menu.';
33

  
34
?>
35 0

  
addons/modules/menu_link/info.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
$module_directory = 'menu_link';
27
$module_name = 'Menu Link';
28
$module_type = 'page';
29
$module_version = '2.5';
30
$module_designed_for = '2.x';
31
$module_author = 'Ryan Djurovich';
32
$module_description = 'This module allows you to insert a link into the menu.';
33

  
34
?>
0 35

  
addons/modules/menu_link/modify.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
// Setup template object
27
$template = new Template(WB_PATH.'/modules/menu_link');
28
$template->set_file('page', 'modify.html');
29
$template->set_block('page', 'main_block', 'main');
30

  
31
// Get page link and target
32
$query_info = "SELECT link,target FROM ".TABLE_PREFIX."pages WHERE page_id = '$page_id'";
33
$get_info = $database->query($query_info);
34
$fetch_info = $get_info->fetchRow();
35
$link = $admin->strip_slashes_dummy($fetch_info['link']);
36
$target = $fetch_info['target'];
37

  
38
// Insert vars
39
$template->set_var(array(
40
								'PAGE_ID' => $page_id,
41
								'WB_URL' => WB_URL,
42
								'LINK' => $link,
43
								'TEXT_LINK' => $TEXT['LINK'],
44
								'TEXT_TARGET' => $TEXT['TARGET'],
45
								'TEXT_NEW_WINDOW' => $TEXT['NEW_WINDOW'],
46
								'TEXT_SAME_WINDOW' => $TEXT['SAME_WINDOW'],
47
								'TEXT_SAVE' => $TEXT['SAVE'],
48
								'TEXT_CANCEL' => $TEXT['CANCEL'],
49
								'TEXT_PLEASE_SELECT' => $TEXT['PLEASE_SELECT']
50
								)
51
						);
52

  
53
// Select target
54
if($target == '_blank') {
55
	$template->set_var('BLANK_SELECTED', ' selected');
56
} elseif($target == '_top') {
57
	$template->set_var('TOP_SELECTED', ' selected');
58
}
59

  
60
// Parse template object
61
$template->parse('main', 'main_block', false);
62
$template->pparse('output', 'page');
63

  
64
?>
0 65

  
addons/modules/menu_link/save.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
require('../../config.php');
27

  
28
// Include WB admin wrapper script
29
$update_when_modified = true; // Tells script to update when this page was last updated
30
require(WB_PATH.'/modules/admin.php');
31

  
32
$database = new database();
33

  
34
// Update the mod_menu_links table with the link
35
if(isset($_POST['link'])) {
36
	// Update link and target
37
	$link = $admin->add_slashes($_POST['link']);
38
	$target = $_POST['target'];
39
	$query = "UPDATE ".TABLE_PREFIX."pages SET link = '$link', target = '$target' WHERE page_id = '$page_id'";
40
	$database->query($query);
41
} else {
42
	$admin->print_error('Error in wb/modules/menu_link/save.php at line 35', $js_back);
43
}
44

  
45
// Check if there is a database error, otherwise say successful
46
if($database->is_error()) {
47
	$admin->print_error($database->get_error(), $js_back);
48
} else {
49
	$admin->print_success($MESSAGE['PAGES']['SAVED'], ADMIN_URL.'/pages/modify.php?page_id='.$page_id);
50
}
51

  
52
// Print admin footer
53
$admin->print_footer();
54

  
55
?>
0 56

  
addons/modules/menu_link/view.php
1
<?php
2

  
3
// $Id: view.php,v 1.1.1.1 2005/01/30 10:32:15 rdjurovich Exp $
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
/*
27
Since there is nothing to show and users shouldn't really know this
28
page exists, we might as well give them a link to the home page.
29
*/
30

  
31
?>
32
<a href="<?php echo WB_URL; ?>">
33
Click HERE to go to the main page
34
</a>
0 35

  
addons/modules/menu_link/delete.php
1
<?php
2

  
3
// $Id: delete.php,v 1.1.1.1 2005/01/30 10:32:15 rdjurovich Exp $
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
// Nothing special has to be deleted
27

  
28
?>
0 29

  
addons/modules/menu_link/modify.html
1
<!-- BEGIN main_block -->
2

  
3
<form action="{WB_URL}/modules/menu_link/save.php" method="post">
4

  
5
<input type="hidden" name="page_id" value="{PAGE_ID}" />
6
<input type="hidden" name="section_id" value="{SECTION_ID}" />
7

  
8
<table cellpadding="0" cellspacing="0" border="0" width="100%">
9
<tr>
10
	<td>
11
		{TEXT_LINK}:
12
	</td>
13
	<td>
14
		<input type="text" id="link" name="link" style="width: 100%;" value="{LINK}" />
15
	</td>
16
</tr>
17
<tr>
18
	<td>
19
		{TEXT_TARGET}:
20
	</td>
21
	<td>
22
		<select name="target" style="width: 100%;" value="{TARGET}" />
23
			<option value="_top">{TEXT_PLEASE_SELECT}...</option>
24
			<option value="_blank"{BLANK_SELECTED}>{TEXT_NEW_WINDOW}</option>
25
			<option value="_top"{TOP_SELECTED}>{TEXT_SAME_WINDOW}</option>
26
		</select>
27
	</td>
28
</tr>
29
</table>
30

  
31
<br />
32

  
33
<table cellpadding="0" cellspacing="0" border="0" width="100%">
34
<tr>
35
	<td align="left">
36
		<input type="submit" value="{TEXT_SAVE}" style="width: 100px; margin-top: 5px;" />
37
	</td>
38
	<td align="right">
39
		</form>
40
		<input type="button" value="{TEXT_CANCEL}" onclick="javascript: window.location = 'index.php';" style="width: 100px; margin-top: 5px;" />
41
	</td>
42
</tr>
43
</table>
44

  
45
</form>
46

  
47
<!-- END main_block -->
0 48

  
addons/modules/menu_link/install.php
1
<?php
2

  
3
// $Id: install.php,v 1.1.1.1 2005/01/30 10:32:15 rdjurovich Exp $
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
// No table is needed for this module
27

  
28
?>
0 29

  
addons/modules/menu_link/index.php
1
<?php
2

  
3
// $Id: index.php,v 1.1.1.1 2005/01/30 10:32:15 rdjurovich Exp $
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
header('Location: ../index.php');
27

  
28
?>
0 29

  
addons/modules/menu_link/add.php
1
<?php
2

  
3
// $Id: add.php,v 1.1.1.1 2005/01/30 10:32:15 rdjurovich Exp $
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
// Nothing needs to be inserted anywhere special
27

  
28
?>
0 29

  

Also available in: Unified diff