Project

General

Profile

« Previous | Next » 

Revision 677

Added by thorn almost 17 years ago

jsadmin: added latest changes from swen, fixes most (or all?) issues.

View differences:

install.php
33 33
if(!defined('WB_PATH')) { exit('Cannot access this file directly'); }
34 34

  
35 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

  
36 49
global $database;
37
$database->query("INSERT INTO ".TABLE_PREFIX."settings (name,value) VALUES ('mod_jsadmin_persist_order','0')");
38
$database->query("INSERT INTO ".TABLE_PREFIX."settings (name,value) VALUES ('mod_jsadmin_ajax_order_pages','0')");
39
$database->query("INSERT INTO ".TABLE_PREFIX."settings (name,value) VALUES ('mod_jsadmin_ajax_order_sections','0')");
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')");
40 53

  
41 54
?>

Also available in: Unified diff