|
From: Jon O. <jon...@us...> - 2007-05-05 20:33:27
|
Update of /cvsroot/mxbb/mx_slides/slides/modules In directory sc8-pr-cvs16:/tmp/cvs-serv30431/slides/modules Added Files: index.htm slides_index.php Log Message: First commit --- NEW FILE: slides_index.php --- <?php /** * * @package mxBB Portal Module - mx_slides * @version $Id: slides_index.php,v 1.1 2007/05/05 20:33:24 jonohlsson Exp $ * @copyright (c) 2002-2006 [Jon Ohlsson, Cezary Tomczak] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ if( !defined('IN_PORTAL') ) { die("Hacking attempt"); } class mx_slides_index extends mx_slides_public { function main( $action ) { global $template, $lang, $db, $theme, $board_config, $phpEx, $slides_config, $debug, $mx_root_path, $module_root_path; global $mx_page, $mx_block, $mx_request_vars, $article_path; $current_article_id = $mx_request_vars->is_request('k') ? $mx_request_vars->request('k', MX_TYPE_INT, '') : ''; $template->set_filenames( array( 'body' => 'slides_index.tpl' )); $tree_html = $this->generate_app_tree($current_article_id); $template->assign_vars( array( 'MX_ROOT_PATH' => $mx_root_path, 'MODULE_ROOT_PATH' => $module_root_path, 'TEMPLATE_PATH' => $template->module_template_path, 'BLOCK_ID' => $mx_block->block_id, 'PAGE_ID' => $mx_page->page_id, 'TREE_HTML' => $tree_html, // // Theme // 'T_TR_COLOR1' => '#'.$theme['tr_color1'], // row1 'T_TR_COLOR2' => '#'.$theme['tr_color2'], // row2 'T_TR_COLOR3' => '#'.$theme['tr_color3'], // row3 'T_BODY_TEXT' => '#'.$theme['body_text'], 'T_BODY_LINK' => '#'.$theme['body_link'], 'T_BODY_VLINK' => '#'.$theme['body_vlink'], 'T_BODY_HLINK' => '#'.$theme['body_hlink'], 'T_TH_COLOR1' => '#'.$theme['th_color1'], // Border Colors (main) 'T_TH_COLOR2' => '#'.$theme['th_color2'], // Border Colors (forumline) 'T_TH_COLOR3' => '#'.$theme['th_color3'], // Border Colors (bozes) 'T_FONTFACE1' => $theme['fontface1'], 'T_TD_COLOR1' => '#'.$theme['td_color1'], // Background code/quote 'T_TD_COLOR2' => '#'.$theme['td_color2'], // Background post/input // // Tree // 'L_TOC' => $lang['sd_Toc'], )); foreach ( $this->slide_blocks as $temp => $block_id ) { $template->assign_block_vars('slides', array( 'ID' => $temp, 'BLOCK_ID' => $block_id, )); } } } ?> --- NEW FILE: index.htm --- <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF" text="#000000"> </body> </html> |