|
From: OryNider <ory...@us...> - 2007-06-07 00:00:36
|
Update of /cvsroot/mxbb/mx_clock In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv7325 Added Files: clock.fla clock.swf db_install.php db_upgrade.php mx_clock.pak mx_clock.php readme.txt Log Message: --- NEW FILE: db_upgrade.php --- <?php /** * * @package mxBB Portal Module - mx_clock * @version $Id: db_upgrade.php,v 1.1 2007/06/07 00:00:27 orynider Exp $ * @copyright (c) 2002-2006 [Jon Ohlsson] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ define( 'IN_PORTAL', true ); if ( !defined( 'IN_ADMIN' ) ) { $mx_root_path = './../../'; $phpEx = substr(strrchr(__FILE__, '.'), 1); include( $mx_root_path . 'common.' . $phpEx ); // Start session management $mx_user->init($user_ip, PAGE_INDEX); if ( !$userdata['session_logged_in'] ) { die( "Hacking attempt(1)" ); } if ( $userdata['user_level'] != ADMIN ) { die( "Hacking attempt(2)" ); } // End session management } $mx_module_version = '1.0.1'; $mx_module_copy = 'mxBB <i> - Clock</i> module by Drumstix42 (Mark Schlitz) & <a href="http://www.mxbb.net" target="_blank">OryNider</a>'; $message = "<b>Upgrading!</b><br/><br/>"; $sql = array(); $sql[] = "UPDATE " . $mx_table_prefix . "module" . " SET module_version = '" . $mx_module_version . "', module_copy = '" . $mx_module_copy . "' WHERE module_id = '" . $mx_module_id . "'"; $message .= mx_do_install_upgrade( $sql ); echo "<br /><br />"; echo "<table width=\"90%\" align=\"center\" cellpadding=\"4\" cellspacing=\"1\" border=\"0\" class=\"forumline\">"; echo "<tr><th class=\"thHead\" align=\"center\">Module Installation/Upgrading/Uninstalling Information - module specific db tables</th></tr>"; echo "<tr><td class=\"row1\" align=\"left\"><span class=\"gen\">" . $message . "</span></td></tr>"; echo "</table><br />"; ?> --- NEW FILE: clock.fla --- (This appears to be a binary file; contents omitted.) --- NEW FILE: clock.swf --- (This appears to be a binary file; contents omitted.) --- NEW FILE: db_install.php --- <?php /** * * @package mxBB Portal Module - mx_clock * @version $Id: db_install.php,v 1.1 2007/06/07 00:00:27 orynider Exp $ * @copyright (c) 2002-2006 [Jon Ohlsson] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ define( 'IN_PORTAL', true ); if ( !defined( 'IN_ADMIN' ) ) { $mx_root_path = './../../'; $phpEx = substr(strrchr(__FILE__, '.'), 1); include( $mx_root_path . 'common.' . $phpEx ); // Start session management $mx_user->init($user_ip, PAGE_INDEX); if ( !$userdata['session_logged_in'] ) { die( "Hacking attempt(1)" ); } if ( $userdata['user_level'] != ADMIN ) { die( "Hacking attempt(2)" ); } // End session management } $mx_module_version = '1.0.1'; $mx_module_copy = 'mxBB <i> - Clock</i> module by Drumstix42 (Mark Schlitz) & <a href="http://www.mxbb.net" target="_blank">OryNider</a>'; $message = "<b>This is a fresh install!</b><br/><br/>"; $sql = array(); $sql[] = "UPDATE " . $mx_table_prefix . "module" . " SET module_version = '" . $mx_module_version . "', module_copy = '" . $mx_module_copy . "' WHERE module_id = '" . $mx_module_id . "'"; $message .= mx_do_install_upgrade( $sql ); echo "<br /><br />"; echo "<table width=\"90%\" align=\"center\" cellpadding=\"4\" cellspacing=\"1\" border=\"0\" class=\"forumline\">"; echo "<tr><th class=\"thHead\" align=\"center\">Module Installation/Upgrading/Uninstalling Information - module specific db tables</th></tr>"; echo "<tr><td class=\"row1\" align=\"left\"><span class=\"gen\">" . $message . "</span></td></tr>"; echo "</table><br />"; ?> --- NEW FILE: mx_clock.pak --- module=+:72=+:mx_clock=+:modules/mx_clock/=+:Clock for mxBB-portal=+: New_function=+:---------------------------=+:0=+:0=+:0=+:0=+:0 function=+:72=+:85=+:Clock Block=+:Clock Block=+:mx_clock.php=+: parameter=+:85=+:176=+:flash_width=+:Number=+:200=+:=+:0=+:10 parameter=+:85=+:177=+:flash_height=+:Number=+:200=+:=+:0=+:20 parameter=+:85=+:178=+:flash_wmode_trasparent=+:Radio_single_select=+:trasparent=+:a:2:{i:0;s:10:"trasparent";i:1;s:6:"normal";}=+:1=+:30 parameter=+:0=+:0=+:0=+:endoflist=+:0=+:0 block=+:=+:Mx Clock=+:Demo block=+:85=+:0=+:5=+:0=+:0=+:0=+:0=+:1=+:1 function=+:0=+:0=+:0=+:endoflist=+:0=+:0 --- NEW FILE: mx_clock.php --- <?php /** * * @package mxBB Portal Module - mx_clock * @version $Id: mx_clock.php,v 1.1 2007/06/07 00:00:27 orynider Exp $ * @copyright (c) 2002-2006 [Florin Bodin] mxBB Development Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ if( !defined('IN_PORTAL') || !is_object($mx_block)) { die("Hacking attempt"); } // $mx_root_path = "./"; $module_root_path = $mx_root_path . "modules/mx_clock/"; // // Read Block Settings // $title = $mx_block->block_info['block_title']; $flash_width = $mx_block->get_parameters( 'flash_width' ); $flash_height = $mx_block->get_parameters( 'flash_height' ); $flash_wmode_trasparent = $mx_block->get_parameters( 'flash_wmode_trasparent' ); if( $flash_wmode_trasparent == 'normal') { $color_mode ='bgcolor'; $flash_wmode ='#FFFFFF'; } else { $color_mode ='wmode'; $flash_wmode ='transparent'; // $flash_wmode ='opaque'; } // // Load language files. // if( file_exists($module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx) ) { include($module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx); } else { include($module_root_path . 'language/lang_english/lang_main.' . $phpEx); } // // Start output of page // $template->set_filenames(array( 'body_clock' => 'clock_body.tpl' )); $template->assign_vars(array( 'L_TITLE' => ( !empty($title) ? $title : 'MX Clock' ), 'CLOCK_NAME' => $lang['clock_name'], 'CLOCK_SWF' => $module_root_path .'clock.swf', 'WMODE' => $flash_wmode, 'COLOR_MODE' => $color_mode, 'FLASH_WIDTH' => ( !empty($flash_width) ? $flash_width : '170' ), 'FLASH_HEIGHT' => ( !empty($flash_height) ? $flash_height : '150' ), 'BLOCK_SIZE' => ( !empty($block_size) ? $block_size : '100%' ) )); $template->pparse('body_clock'); ?> --- NEW FILE: readme.txt --- /********************************************************************************\ | | subject : mxBB-Portal, CMS & portal, module | name : mx_clock | begin : January, 2006 | copyright : (C) 2002-2006 mxBB | mxBB project site : www.mx-system.com | | author : OryNider (see additional credit below) | author site : http://pubory.uv.ro/ | author email : ory...@rd... | | additional credit : This module is based on the Forum Clock MOD | created by Drumstix42 (Mark Schlitz) | < Dru...@ao... > | http://www.advancedmod.com/ | | additional credit : | | | | | description : The "Mx Clock" block is a block that | will display | a flash clock on mxBB-Portal. | |********************************************************************************| | | @package mxBB Portal Module - mx_clock | @version $Id: readme.txt,v 1.1 2007/06/07 00:00:28 orynider Exp $ | @copyright (c) 2002-2007 [OryNider] mxBB Development Team | @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 | \********************************************************************************/ /********************************************************************************\ | Installation Instructions \********************************************************************************/ Note: In order for this module to install you must have a working phpBB and mxBB installation. 1) Copy the folder: mx_clock into your: {mxBB install}\modules\ folder on your web server. 2) From your website enter mxBB Admin Control Panel. 3) Under mxBB-Portal click on Management. 4) Now click on Modules Setup. 5) Under Module Administration use the pull down menu and choose: mx_clock 6) Press the Install Module button 7) If you have followed the instructions correctly you should now be able to create mx_clock blocks for inclusion on your pages. /********************************************************************************\ | End Of Document \********************************************************************************/ |