Project

General

Profile

1 1537 Luisehahne
<?php
2
/**
3
 *
4
 * @category        modules
5
 * @package         menu_link
6
 * @author          WebsiteBaker Project
7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9
 * @link			http://www.websitebaker2.org/
10
 * @license         http://www.gnu.org/licenses/gpl.html
11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 5.2.2 and higher
13
 * @version      	$Id$
14
 * @filesource		$HeadURL$
15
 * @lastmodified    $Date$
16
 *
17
 */
18
19
// Must include code to stop this file being access directly
20
/* -------------------------------------------------------- */
21
if(defined('WB_PATH') == false)
22
{
23
	// Stop this file being access directly
24
		die('<head><title>Access denied</title></head><body><h2 style="color:red;margin:3em auto;text-align:center;">Cannot access this file directly</h2></body></html>');
25
}
26
/* -------------------------------------------------------- */
27
28
$table = TABLE_PREFIX ."mod_menu_link";
29
$database->query("DROP TABLE IF EXISTS `$table`");
30
31
$database->query("
32
	CREATE TABLE IF NOT EXISTS `$table` (
33
		`section_id` INT(11) NOT NULL DEFAULT '0',
34
		`page_id` INT(11) NOT NULL DEFAULT '0',
35
		`target_page_id` INT(11) NOT NULL DEFAULT '0',
36
		`redirect_type` INT NOT NULL DEFAULT '302',
37
		`anchor` VARCHAR(255) NOT NULL DEFAULT '0' ,
38
		`extern` VARCHAR(255) NOT NULL DEFAULT '' ,
39
		PRIMARY KEY (`section_id`)
40
	) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
41
");