|
From: <dac...@us...> - 2007-09-02 03:49:22
|
Revision: 42
http://thevr.svn.sourceforge.net/thevr/?rev=42&view=rev
Author: dachebodt
Date: 2007-09-01 20:49:25 -0700 (Sat, 01 Sep 2007)
Log Message:
-----------
changed main menu from statis block to dynamic block
Modified Paths:
--------------
mods/cms/trunk/modules/blocks/info/acp_blocks.php
Modified: mods/cms/trunk/modules/blocks/info/acp_blocks.php
===================================================================
--- mods/cms/trunk/modules/blocks/info/acp_blocks.php 2007-09-02 03:28:16 UTC (rev 41)
+++ mods/cms/trunk/modules/blocks/info/acp_blocks.php 2007-09-02 03:49:25 UTC (rev 42)
@@ -45,7 +45,7 @@
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE utf8_bin;";
$sql_ary[] = 'INSERT INTO ' . BLOCK_POSITIONS_TABLE . " VALUES (1, 'left', 'Left Column', 1, 0, '', 1);";
- $sql_ary[] = 'INSERT INTO ' . BLOCK_POSITIONS_TABLE . " VALUES (8, 'right', 'Right Column', 1, 0, '513', 1);";
+ $sql_ary[] = 'INSERT INTO ' . BLOCK_POSITIONS_TABLE . " VALUES (2, 'right', 'Right Column', 1, 0, '513', 1);";
$sql_ary[] = 'INSERT INTO ' . BLOCK_POSITIONS_TABLE . " VALUES (4, 'top', '', 0, 0, '', 1);";
$sql_ary[] = 'INSERT INTO ' . BLOCK_POSITIONS_TABLE . " VALUES (9, 'bottom', '', 0, 0, '', 1);";
@@ -57,7 +57,7 @@
`position` tinyint(2) NOT NULL default '1',
`weight` mediumint(8) NOT NULL default '0',
`style` mediumint(8) NOT NULL default '0',
- `permission` int(2) NOT NULL default '0',
+ `permission` varchar(125) default NULL,
`class` char(10) NOT NULL,
`xfer_to` tinyint(2) NOT NULL,
`xtype` tinyint(1) NOT NULL default '0',
@@ -66,11 +66,13 @@
PRIMARY KEY (`bid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE utf8_bin;";
- $sql_ary[] = 'INSERT INTO ' . BLOCKS_TABLE . " VALUES (21, 'whois', 'blocks', 0, 1, 1, 1, 0, 'default', 0, 0, '', 1);";
- $sql_ary[] = 'INSERT INTO ' . BLOCKS_TABLE . " VALUES (18, 'birthday', 'blocks', 0, 1, 1, 1, 0, 'default', 0, 0, '', 1);";
- $sql_ary[] = 'INSERT INTO ' . BLOCKS_TABLE . " VALUES (19, 'login', 'blocks', 1, 8, 1, 1, 0, 'default', 0, 0, '', 1);";
- $sql_ary[] = 'INSERT INTO ' . BLOCKS_TABLE . " VALUES (20, 'stats', 'blocks', 0, 8, 1, 1, 0, 'default', 0, 0, '', 1);";
- $sql_ary[] = 'INSERT INTO ' . BLOCKS_TABLE . " VALUES (22, 'recent_topics', 'forums', 1, 8, 1, 1, 0, 'default', 1, 0, '', 1);";
+ $sql_ary[] = 'INSERT INTO ' . BLOCKS_TABLE . " VALUES (1, 'main_menu, 'blocks', 0, 1, 0, 1, 'default', '', 0, 0, '', 1);";
+ $sql_ary[] = 'INSERT INTO ' . BLOCKS_TABLE . " VALUES (2, 'whois', 'blocks', 0, 1, 1, 1, 0, 'default', 0, 0, '', 1);";
+ $sql_ary[] = 'INSERT INTO ' . BLOCKS_TABLE . " VALUES (3, 'birthday', 'blocks', 0, 1, 2, 1, 0, 'default', 0, 0, '', 1);";
+ $sql_ary[] = 'INSERT INTO ' . BLOCKS_TABLE . " VALUES (4, 'login', 'blocks', 1, 2, 0, 1, 0, 'default', 0, 0, '', 1);";
+ $sql_ary[] = 'INSERT INTO ' . BLOCKS_TABLE . " VALUES (5, 'user_menu', 'blocks', 1, 2, 1, 1, 0, 'default', 0, 0, '', 1);";
+ $sql_ary[] = 'INSERT INTO ' . BLOCKS_TABLE . " VALUES (6, 'recent_topics', 'forums', 1, 2, 2, 1, 0, 'default', 1, 0, '', 1);";
+ $sql_ary[] = 'INSERT INTO ' . BLOCKS_TABLE . " VALUES (7, 'stats', 'blocks', 0, 2, 3, 1, 0, 'default', 0, 0, '', 1);";
$sql_ary[] = 'CREATE TABLE IF NOT EXISTS ' . BLOCKS_CONFIG_TABLE . " (
`bid` mediumint(8) NOT NULL,
@@ -78,10 +80,10 @@
`bval` varchar(255) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE utf8_bin;";
- $sql_ary[] = 'INSERT INTO ' . BLOCKS_CONFIG_TABLE . " VALUES (22, 'exclude_forums', '');";
- $sql_ary[] = 'INSERT INTO ' . BLOCKS_CONFIG_TABLE . " VALUES (22, 'recent_title_limit', '20');";
- $sql_ary[] = 'INSERT INTO ' . BLOCKS_CONFIG_TABLE . " VALUES (22, 'max_topics', '10');";
- $sql_ary[] = 'INSERT INTO ' . BLOCKS_CONFIG_TABLE . " VALUES (19, 'show_hide_me', '1');";
+ $sql_ary[] = 'INSERT INTO ' . BLOCKS_CONFIG_TABLE . " VALUES (6, 'exclude_forums', '');";
+ $sql_ary[] = 'INSERT INTO ' . BLOCKS_CONFIG_TABLE . " VALUES (6, 'recent_title_limit', '20');";
+ $sql_ary[] = 'INSERT INTO ' . BLOCKS_CONFIG_TABLE . " VALUES (6, 'max_topics', '10');";
+ $sql_ary[] = 'INSERT INTO ' . BLOCKS_CONFIG_TABLE . " VALUES (4, 'show_hide_me', '1');";
foreach($sql_ary as $i => $sql)
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|