| 
      1
     | 
    
      <?php
 
     | 
  
  
    | 
      2
     | 
    
      /**
 
     | 
  
  
    | 
      3
     | 
    
       *
 
     | 
  
  
    | 
      4
     | 
    
       * @category        modules
 
     | 
  
  
    | 
      5
     | 
    
       * @package         menu_link
 
     | 
  
  
    | 
      6
     | 
    
       * @author          WebsiteBaker Project
 
     | 
  
  
    | 
      7
     | 
    
       * @copyright       2004-2009, Ryan Djurovich
 
     | 
  
  
    | 
      8
     | 
    
       * @copyright       2009-2010, 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 4.3.4 and higher
 
     | 
  
  
    | 
      13
     | 
    
       * @version      	$Id: install.php 1289 2010-02-10 15:13:21Z kweitzel $
 
     | 
  
  
    | 
      14
     | 
    
       * @filesource		$HeadURL: svn://isteam.dynxs.de/wb-archiv/trunk/wb/modules/menu_link/install.php $
 
     | 
  
  
    | 
      15
     | 
    
       * @lastmodified    $Date: 2010-02-10 16:13:21 +0100 (Wed, 10 Feb 2010) $
 
     | 
  
  
    | 
      16
     | 
    
       *
 
     | 
  
  
    | 
      17
     | 
    
       */
 
     | 
  
  
    | 
      18
     | 
    
      
 
     | 
  
  
    | 
      19
     | 
    
      // prevent this file from being accessed directly
 
     | 
  
  
    | 
      20
     | 
    
      if(defined('WB_PATH') == false) {
     | 
  
  
    | 
      21
     | 
    
      	exit("Cannot access this file directly"); 
     | 
  
  
    | 
      22
     | 
    
      }
 
     | 
  
  
    | 
      23
     | 
    
      
 
     | 
  
  
    | 
      24
     | 
    
      $table = TABLE_PREFIX ."mod_menu_link";
 
     | 
  
  
    | 
      25
     | 
    
      // $database->query("DROP TABLE IF EXISTS `$table`");
     | 
  
  
    | 
      26
     | 
    
      
 
     | 
  
  
    | 
      27
     | 
    
      $database->query("
     | 
  
  
    | 
      28
     | 
    
      	CREATE TABLE IF NOT EXISTS `$table` (
 
     | 
  
  
    | 
      29
     | 
    
      		`section_id` INT(11) NOT NULL DEFAULT '0',
 
     | 
  
  
    | 
      30
     | 
    
      		`page_id` INT(11) NOT NULL DEFAULT '0',
 
     | 
  
  
    | 
      31
     | 
    
      		`target_page_id` INT(11) NOT NULL DEFAULT '0',
 
     | 
  
  
    | 
      32
     | 
    
      		`redirect_type` INT NOT NULL DEFAULT '302',
 
     | 
  
  
    | 
      33
     | 
    
      		`anchor` VARCHAR(255) NOT NULL DEFAULT '0' ,
 
     | 
  
  
    | 
      34
     | 
    
      		`extern` VARCHAR(255) NOT NULL DEFAULT '' ,
 
     | 
  
  
    | 
      35
     | 
    
      		PRIMARY KEY (`section_id`)
 
     | 
  
  
    | 
      36
     | 
    
      	)
 
     | 
  
  
    | 
      37
     | 
    
      ");
 
     | 
  
  
    | 
      38
     | 
    
      
 
     | 
  
  
    | 
      39
     | 
    
      ?>
 
     |