Project

General

Profile

1
<?php
2

    
3
// $Id: install.php 915 2009-01-21 19:27:01Z Ruebenwurzel $
4

    
5
// JsAdmin module for Website Baker
6
// Copyright (C) 2006, Stepan Riha
7
// www.nonplus.net
8

    
9
// modified by Swen Uth for Website Baker 2.7
10

    
11
/*
12

    
13
 Website Baker Project <http://www.websitebaker.org/>
14
 Copyright (C) 2004-2009, Ryan Djurovich
15

    
16
 Website Baker is free software; you can redistribute it and/or modify
17
 it under the terms of the GNU General Public License as published by
18
 the Free Software Foundation; either version 2 of the License, or
19
 (at your option) any later version.
20

    
21
 Website Baker is distributed in the hope that it will be useful,
22
 but WITHOUT ANY WARRANTY; without even the implied warranty of
23
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24
 GNU General Public License for more details.
25

    
26
 You should have received a copy of the GNU General Public License
27
 along with Website Baker; if not, write to the Free Software
28
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
29

    
30
*/
31

    
32
// prevent this file from being accessed directly
33
if(!defined('WB_PATH')) { exit('Cannot access this file directly'); }
34

    
35
// add new rows to table "settings"
36

    
37
$table = TABLE_PREFIX ."mod_jsadmin";
38
$database->query("DROP TABLE IF EXISTS `$table`");
39

    
40
$database->query("
41
	CREATE TABLE `$table` (
42
    `id` INT(11) NOT NULL DEFAULT '0',
43
		`name` VARCHAR(255) NOT NULL DEFAULT '0',
44
		`value` INT(11) NOT NULL DEFAULT '0',
45
   	PRIMARY KEY (`id`)
46
	)
47
");
48

    
49
global $database;
50
$database->query("INSERT INTO ".$table." (id,name,value) VALUES ('1','mod_jsadmin_persist_order','0')");
51
$database->query("INSERT INTO ".$table." (id,name,value) VALUES ('2','mod_jsadmin_ajax_order_pages','0')");
52
$database->query("INSERT INTO ".$table." (id,name,value) VALUES ('3','mod_jsadmin_ajax_order_sections','0')");
53

    
54
?>
(4-4/9)