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 1477 2011-07-21 02:47:28Z Luisehahne $
|
14
|
* @filesource $HeadURL: svn://isteam.dynxs.de/wb-archiv/branches/2.8.x/wb/modules/jsadmin/install.php $
|
15
|
* @lastmodified $Date: 2011-07-21 04:47:28 +0200 (Thu, 21 Jul 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','1')");
|
38
|
$database->query("INSERT INTO ".$table." (id,name,value) VALUES ('2','mod_jsadmin_ajax_order_pages','1')");
|
39
|
$database->query("INSERT INTO ".$table." (id,name,value) VALUES ('3','mod_jsadmin_ajax_order_sections','1')");
|
40
|
|
41
|
?>
|