1
|
<?php
|
2
|
/**
|
3
|
*
|
4
|
* @category modules
|
5
|
* @package menu_link
|
6
|
* @author Ryan Djurovich, WebsiteBaker Project
|
7
|
* @copyright 2009-2012, Website Baker Org. e.V.
|
8
|
* @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: install.php 1696 2012-08-27 11:24:21Z Luisehahne $
|
13
|
* @filesource $HeadURL: svn://isteam.dynxs.de/wb-archiv/branches/2.8.x/wb/modules/menu_link/install.php $
|
14
|
* @lastmodified $Date: 2012-08-27 13:24:21 +0200 (Mon, 27 Aug 2012) $
|
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
|
die('<h2 style="color:red;margin:3em auto;text-align:center;">Cannot access this file directly</h2>');
|
24
|
}
|
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
|
`redirect_type` INT NOT NULL DEFAULT '301',
|
36
|
`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
|
");
|