Project

General

Profile

1 601 doc
<?php
2 1377 FrankH
/**
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$
14 1477 Luisehahne
 * @filesource		$HeadURL$
15
 * @lastmodified    $Date$
16 1377 FrankH
 *
17 601 doc
*/
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 677 thorn
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 601 doc
global $database;
37 1476 Luisehahne
$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 601 doc
41
?>