Updated install file;

Added the first language vars; 
Added UMIL;
This commit is contained in:
Marc Alexander
2010-08-27 21:07:35 +00:00
parent 971455668d
commit ed1e01e7ec
42 changed files with 9199 additions and 2 deletions

View File

@@ -463,10 +463,91 @@ Deny from All
break;]]></action>
</edit>
</open>
<open src="includes/cache.php">
<edit>
<find><![CDATA[}
?>]]></find>
<action type="before-add"><![CDATA[ /**
* Obtain currently listed blocks
*/
function obtain_blocks()
{
if (($blocks = $this->get('_blocks')) === false)
{
global $db;
// Get blocks
$sql = 'SELECT *
FROM ' . PORTAL_BLOCKS_TABLE . '
ORDER BY block_order';
$result = $db->sql_query($sql);
$blocks = array();
while ($row = $db->sql_fetchrow($result))
{
$blocks[$row['block_id']]['id'] = (int )$row['block_id'];
$blocks[$row['block_id']]['title'] = (string) $row['block_title'];
$blocks[$row['block_id']]['type'] = (string) $row['block_type'];
$blocks[$row['block_id']]['position'] = (string) $row['block_position'];
$blocks[$row['block_id']]['group'] = (string) $row['block_groups'];
$blocks[$row['block_id']]['order'] = (int) $row['block_order'];
$blocks[$row['block_id']]['icon'] = (string) $row['block_icon'];
$blocks[$row['block_id']]['text'] = (string) $row['block_text'];
$blocks[$row['block_id']]['text_bitfield'] = (string) $row['block_text_bitfield'];
$blocks[$row['block_id']]['text_options'] = (int) $row['block_text_options'];
$blocks[$row['block_id']]['text_uid'] = (string) $row['block_text_uid'];
}
$db->sql_freeresult($result);
$this->put('_blocks', $blocks);
}
return $blocks;
}
/**
* Obtain currently listed navigation links
*/
function obtain_links()
{
if (($links = $this->get('_links')) === false)
{
global $db;
// Get navigation links
$sql = 'SELECT *
FROM ' . PORTAL_LINKS_TABLE . '
ORDER BY link_order';
$result = $db->sql_query($sql);
$links = array();
while ($row = $db->sql_fetchrow($result))
{
$links[$row['link_id']]['id'] = (int )$row['link_id'];
$links[$row['link_id']]['title'] = (string) $row['link_title'];
$links[$row['link_id']]['url'] = (string) $row['link_url'];
$links[$row['link_id']]['is_cat'] = ($row['link_is_cat']) ? true : false;
}
$db->sql_freeresult($result);
$this->put('_links', $links);
}
return $links;
}]]></action>
</edit>
</open>
<open src="includes/constants.php">
<edit>
<find><![CDATA[// Additional tables]]></find>
<action type="after-add"><![CDATA[define('PORTAL_CONFIG_TABLE', $table_prefix . 'portal_config');]]></action>
<action type="after-add"><![CDATA[define('PORTAL_ROOT_PATH', 'portal/');
define('PORTAL_ICONS_PATH', 'images/portal/icons');
define('PORTAL_BLOCKS_TABLE', $table_prefix . 'portal_blocks');
define('PORTAL_CONFIG_TABLE', $table_prefix . 'portal_config');
//define('PORTAL_PAGES_TABLE', $table_prefix . 'portal_pages');
define('PORTAL_LINKS_TABLE', $table_prefix . 'portal_links');]]></action>
</edit>
</open>
<open src="includes/functions.php">