| 1 | <?php
 | 
  
    | 2 | /**
 | 
  
    | 3 |  *
 | 
  
    | 4 |  * @category        modules
 | 
  
    | 5 |  * @package         JsAdmin
 | 
  
    | 6 |  * @author          WebsiteBaker Project, modified by Swen Uth for Website Baker 2.7
 | 
  
    | 7 |  * @copyright       (C) 2006, Stepan Riha
 | 
  
    | 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: install.php 1457 2011-06-25 17:18:50Z Luisehahne $
 | 
  
    | 14 |  * @filesource		$HeadURL: http://svn.websitebaker2.org/branches/2.8.x/wb/modules/menu_link/save.php $
 | 
  
    | 15 |  * @lastmodified    $Date: 2011-01-10 13:21:47 +0100 (Mo, 10 Jan 2011) $
 | 
  
    | 16 |  *
 | 
  
    | 17 | */
 | 
  
    | 18 | 
 | 
  
    | 19 | // prevent this file from being accessed directly
 | 
  
    | 20 | if(!defined('WB_PATH')) { exit('Cannot access this file directly'); }
 | 
  
    | 21 | 
 | 
  
    | 22 | // add new rows to table "settings"
 | 
  
    | 23 | 
 | 
  
    | 24 | $table = TABLE_PREFIX ."mod_jsadmin";
 | 
  
    | 25 | $database->query("DROP TABLE IF EXISTS `$table`");
 | 
  
    | 26 | 
 | 
  
    | 27 | $database->query("
 | 
  
    | 28 | 	CREATE TABLE `$table` (
 | 
  
    | 29 |     `id` INT(11) NOT NULL DEFAULT '0',
 | 
  
    | 30 | 		`name` VARCHAR(255) NOT NULL DEFAULT '0',
 | 
  
    | 31 | 		`value` INT(11) NOT NULL DEFAULT '0',
 | 
  
    | 32 |    	PRIMARY KEY (`id`)
 | 
  
    | 33 | 	)
 | 
  
    | 34 | ");
 | 
  
    | 35 | 
 | 
  
    | 36 | global $database;
 | 
  
    | 37 | $database->query("INSERT INTO ".$table." (id,name,value) VALUES ('1','mod_jsadmin_persist_order','0')");
 | 
  
    | 38 | $database->query("INSERT INTO ".$table." (id,name,value) VALUES ('2','mod_jsadmin_ajax_order_pages','0')");
 | 
  
    | 39 | $database->query("INSERT INTO ".$table." (id,name,value) VALUES ('3','mod_jsadmin_ajax_order_sections','0')");
 | 
  
    | 40 | 
 | 
  
    | 41 | ?>
 |