Project

General

Profile

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