|
From: OryNider <ory...@us...> - 2007-06-07 00:08:42
|
Update of /cvsroot/mxbb/mx_pjirc In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv11032 Added Files: db_install.php db_uninstall.php db_upgrade.php index.php mx_pjirc.pak pjirc_chat.php pjirc_faq.php pjirc_front.php pjirc_update.php readme.txt Log Message: --- NEW FILE: index.php --- <?php /** * * @package mxBB Portal Module - mx_pjirc * @version $Id: index.php,v 1.1 2007/06/07 00:08:31 orynider Exp $ * @copyright (c) 2004-2006 amo, * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ define('IN_PORTAL', 1); //Turn On Error Reporting //error_reporting( E_ALL ); $mx_root_path = "../../"; $mx_module_path = "./"; $phpEx = substr(strrchr(__FILE__, '.'), 1); include_once($mx_root_path . 'common.'.$phpEx); // //Start session management // $mx_user->init($user_ip, PAGE_INDEX); define('_PJIRC_CONFIG', true); include_once($mx_module_path .'includes/common.'.$phpEx); /* if ( !$userdata['session_logged_in'] ) { redirect(append_sid($mx_root_path."login.".$phpEx."?redirect=modules/mx_pjirc/chat.".$phpEx, true)); exit; } */ // //End session management // //HTML, 1st frame = the chat, 2nd frame = pjirc_update.php (send to the db the user statue "chatting" every Xseconds) echo "<html>"; echo "<head>"; echo "<u><h2><title>".$pjirc_config['chat_name']."</title></h2></u>"; echo "</head>"; echo "<frameset frameborder=\"no\" cols=\"100%,0%\">"; echo "<frame noresize scrolling=\"no\" frameborder=\"no\" src=\"pjirc_chat.php\" name=\"chat\">"; echo "<frame noresize scrolling=\"no\" frameborder=\"no\" src=\"pjirc_update.php\" name=\"update\">"; echo "</frameset>"; echo "</html>"; ?> --- NEW FILE: pjirc_front.php --- <?php /** * * @package mxBB Portal Module - mx_pjirc * @version $Id: pjirc_front.php,v 1.1 2007/06/07 00:08:35 orynider Exp $ * @copyright (c) 2004-2006 smartor, amo, OryNider * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ /**************************************************************************** * mx_chatbox module written by markus_petrux at phpmix dot com **************************************************************************** * History: * 2003/12/21 * -modified by Amo from chatbox_front.php to pjirc_front ***************************************************************************/ // -------------------------------------------------------------------------------- // Security check // if( !defined('IN_PORTAL') ) { die("Hacking attempt"); } // -------------------------------------------------------------------------------- // Initialization // // // Common Includes and Read Module Settings // if( !file_exists($module_root_path . 'includes/common.'.$phpEx) ) { message_die(GENERAL_ERROR, "Could not find mx_pjirc includes folder.", "", __LINE__, __FILE__); } define('_PJIRC_CONFIG', true); include_once($module_root_path . 'includes/common.'.$phpEx); // // Read block Configuration // $title = $mx_block->block_info['block_title']; $block_size = ( isset($block_size) && !empty($block_size) ? $block_size : '100%' ); $pjirc_icon = 'pjirc_front_02.gif'; // -------------------------------------------------------------------------------- // Get ChatBox Session information // // REMOVE OLD SESSIONS drop_users($pjirc_config['check_period']); // Get all remain sessions $sql = "SELECT * FROM ".PJIRC_SESSION_TABLE; if (!$sol = $db->sql_query($sql)) { message_die(GENERAL_ERROR, "Could not query pjirc Session information", "", __LINE__, __FILE__, $sql); } $howmanychat = $db->sql_numrows($sol); // Return this $isimler[0] = $db->sql_numrows($sol); $i = 1; while ($record = $db->sql_fetchrow($sol)) { $isimler[$i++] = $record['username']; if ($record['username']==$userdata['username']) { $can_join="no"; } else { $can_join="yes"; } } $chatters = ( empty($isimler[1]) ? '' : '<a href="' . append_sid( PHPBB_URL . 'profile.php?mode=viewprofile&u='.$isimler[1]) . '" >'.$isimler[1].'</a><br />' ); for($s = 2; $s <= $isimler[0]; $s++) { $chatters .= ', <a href="' . append_sid( PHPBB_URL . 'profile.php?mode=viewprofile&u='.$isimler[$s]) . '" >'.$isimler[$s].'</a><br />'; } // -------------------------------------------------------------------------------- // Generate block output (using templates) // Generate HTML for the block... // $template->set_filenames(array( 'body' => 'pjirc_front.tpl') ); if ( !$userdata['session_logged_in'] ) { $template->assign_block_vars('switch_user_logged_out', array()); } else { if ( $can_join=="no") { $template->assign_block_vars('switch_user_chatting', array()); } else { $template->assign_block_vars('switch_user_logged_in', array()); } } if( empty($chatters) ) { $template->assign_block_vars('switch_chatters_list_off', array()); $chatters_list = ''; } else { $template->assign_block_vars('switch_chatters_list_on', array()); $chatters_list = sprintf($lang['Who_Are_Chatting'], $chatters); } $template->assign_vars(array( 'CHAT_IMG' => $module_root_path.'images/'.$pjirc_icon, 'TOTAL_CHATTERS_ONLINE' => sprintf($lang['How_Many_Chatters'], $howmanychat), 'CHATTERS_LIST' => $chatters_list, 'L_CLICK_TO_JOIN_CHAT' => $lang['Click_to_join_chat'], 'S_JOIN_CHAT' => append_sid(PORTAL_URL . 'modules/mx_pjirc/index.php'), 'L_LOGIN_TO_JOIN_CHAT' => $lang['Login_to_join_chat'], 'L_ALREADY_CHATTING' => $lang['Already_chatting'], 'BLOCK_SIZE' => $block_size, 'BLOCK_ID' => $block_id, 'L_VERSION' => _PJIRC_VERSION, 'L_TITLE' => 'Pjirc') ); $template->pparse('body'); unset($chatters, $block_config, $sql, $howmanychat, $chatters_list, $block_size, $module_root_path, $isimler, $can_join); ?> --- NEW FILE: mx_pjirc.pak --- module=+:58=+:mx_pjirc=+:modules/mx_pjirc/=+:mx_PJIRC version 1.0=+:1 New_function=+:---------------------------=+:0=+:0=+:0=+:0=+:0 function=+:58=+:66=+:pjirc Front=+:=+:pjirc_front.php=+: parameter=+:0=+:0=+:0=+:endoflist=+:0=+:0 block=+:=+:pjirc Front=+:Demo block=+:66=+:0=+:5=+:0=+:0=+:0=+:0=+:1=+:1 function=+:0=+:0=+:0=+:endoflist=+:0=+:0 --- NEW FILE: pjirc_chat.php --- <?php /** * * @package mxBB Portal Module - mx_pjirc * @version $Id: pjirc_chat.php,v 1.1 2007/06/07 00:08:33 orynider Exp $ * @copyright (c) 2004-2006 amo, * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ /****************************************** * History: * * 2003/12/21 (amo) * - PIRC Chat MOD by Eric Version 1.1.0 * Modified by AMO for mx_pjirc module * 2003/12/21 (amo) * -cleaned useless code ******************************************/ define('IN_PORTAL', 1); error_reporting( E_ALL ); ini_set( 'display_errors', '1' ); $mx_root_path = "../../"; $mx_module_path = "./"; $phpEx = substr(strrchr(__FILE__, '.'), 1); include_once($mx_root_path . 'common.'.$phpEx); // // Start session management // $mx_user->init($user_ip, PAGE_INDEX); define('_PJIRC_CONFIG', true); include_once($mx_module_path .'includes/common.'.$phpEx); if ( !$userdata['session_logged_in'] ) { mx_redirect(append_sid($mx_root_path."login.".$phpEx."?redirect=modules/mx_pjirc/pjirc_chat.".$phpEx, true)); exit; } // // End session management // $help = append_sid(PORTAL_URL . "modules/mx_pjirc/pjirc_faq.".$phpEx); $page_title = $lang['Chat_Room']; $template->set_filenames(array( 'body' => 'pjirc_chat.tpl') ); $nick = str_replace(" ", "_", $userdata['username']); $template->assign_vars(array( 'USERNAME' => $nick, 'PREFIX_USERNAME' => $pjirc_config['prefix_username'], 'CHAT_NAME' => $pjirc_config['chat_name'], 'SERVER' => $pjirc_config['irc_server'], 'PORT' => $pjirc_config['irc_port'], 'CHANNEL' => $pjirc_config['irc_channel'], 'QUIT_MESSAGE' => $pjirc_config['irc_quit'], // 'S_QUIT_CHAT' => append_sid($module_root_path.'pjirc_drop.'.$phpEx), 'S_QUIT_CHAT' => append_sid($module_root_path.'pjirc_update.'.$phpEx), 'LANG' => $board_config['default_lang'], 'HELP' => $help, //GUI_SETTING 'BUTTON_SURROUND' => $pjirc_config['button_surround'], '3D_BUTTON_HIGHLIGHT' => $pjirc_config['3d_button_highlight'], '3D_BUTTON_SHADOW' => $pjirc_config['3d_button_shadow'], 'SCROLLBAR_TOP-BOTTOM' => $pjirc_config['scrollbar_top-bottom'], 'SCROLLBAR_HIGHLIGHT' => $pjirc_config['scrollbar_highlight'], 'BUTTON_BACKGROUND' => $pjirc_config['button_background'], 'UI_BACKGROUND' => $pjirc_config['ui_background'], 'WINDOW_BUTTON_BACKGROUND' => $pjirc_config['window_button_background'], 'MDI_BUTTONS_BACKGROUND' => $pjirc_config['mdi_buttons_background'], 'USER_STATE_BUTTON' => $pjirc_config['user_state_button'], 'ALERT_UPDATE_CHANNEL' => $pjirc_config['alert_update_channel'], 'USER_BUTTONS' => $pjirc_config['user_buttons'], 'BACKGROUND_IMAGE_ON' => $pjirc_config['background_image_on'], 'SHOW_STATUS' => $pjirc_config['show_status'], 'SHOW_CONNECT' => $pjirc_config['show_connect'], 'SHOW_DOCK' => $pjirc_config['show_dock'], 'SHOW_CHANLIST' => $pjirc_config['show_chanlist']) ); user_join($nick); $template->pparse('body'); ?> --- NEW FILE: db_install.php --- <?php /** * * @package mxBB Portal Module - mx_pjirc * @version $Id: db_install.php,v 1.1 2007/06/07 00:08:30 orynider Exp $ * @copyright (c) 2004-2006, amo, am...@ho... * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ ini_set( 'display_errors', '1' ); 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); // End session management if ( !$userdata['session_logged_in'] ) { die( "Hacking attempt(1)" ); } if ( $userdata['user_level'] != ADMIN ) { die( "Hacking attempt(2)" ); } } $mx_module_version = '1.0.0'; $mx_module_copy = 'mxBB <i> - mx_pjirc</i> module by Amo & <a href="http://www.mxbb.net" target="_blank">Mx Team</a>'; // If fresh install if ( !$result = $db->sql_query( "SELECT config_name from " . $mx_table_prefix . "pjirc_config" ) ) { $message = "<b>This is a fresh install!</b><br/><br/>"; $sql = array(); $sql[] = "DROP TABLE IF EXISTS " . $mx_table_prefix . "pjirc_config"; $sql[] = "DROP TABLE IF EXISTS " . $mx_table_prefix . "pjirc_session"; $sql[] = "CREATE TABLE ".$mx_table_prefix."pjirc_session ( username varchar(99) NOT NULL, time bigint(20) NOT NULL, UNIQUE username (username) ) TYPE=MyISAM"; $sql[] = "CREATE TABLE " . $mx_table_prefix . "pjirc_config ( config_name VARCHAR(255) NOT NULL default '', config_value varchar(255) NOT NULL default '', PRIMARY KEY (config_name) ) TYPE=MyISAM"; $sql[] = "INSERT INTO " . $mx_table_prefix . "pjirc_config ( config_name , config_value ) VALUES ('chat_name', 'Pjirc chat')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "pjirc_config ( config_name , config_value ) VALUES ('prefix_username', 'MX_')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "pjirc_config ( config_name , config_value ) VALUES ('irc_server', 'irc.freenode.net')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "pjirc_config ( config_name , config_value ) VALUES ('irc_port', '6667')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "pjirc_config ( config_name , config_value ) VALUES ('irc_channel', '#mxBB')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "pjirc_config ( config_name , config_value ) VALUES ('irc_quit', 'Good Bye! I am using mx_pjirc for 2.8.0')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "pjirc_config ( config_name , config_value ) VALUES ('button_surround', 'ffffff')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "pjirc_config ( config_name , config_value ) VALUES ('3d_button_highlight', '000000')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "pjirc_config ( config_name , config_value ) VALUES ('3d_button_shadow', '221100')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "pjirc_config ( config_name , config_value ) VALUES ('scrollbar_top-bottom', '221100')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "pjirc_config ( config_name , config_value ) VALUES ('scrollbar_highlight', 'd8efff')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "pjirc_config ( config_name , config_value ) VALUES ('button_background', '6ba7cc')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "pjirc_config ( config_name , config_value ) VALUES ('ui_background', 'cfd6de')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "pjirc_config ( config_name , config_value ) VALUES ('window_button_background', '5d8fae')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "pjirc_config ( config_name , config_value ) VALUES ('mdi_buttons_background', 'D3CBBA')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "pjirc_config ( config_name , config_value ) VALUES ('user_state_button', 'd1d2d2')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "pjirc_config ( config_name , config_value ) VALUES ('alert_update_channel', 'DD5555')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "pjirc_config ( config_name , config_value ) VALUES ('user_buttons', 'd3d3d3')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "pjirc_config ( config_name , config_value ) VALUES ('background_image_on', 'false')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "pjirc_config ( config_name , config_value ) VALUES ('check_period', '120')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "pjirc_config ( config_name , config_value ) VALUES ('show_status', 'true')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "pjirc_config ( config_name , config_value ) VALUES ('show_connect', 'true')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "pjirc_config ( config_name , config_value ) VALUES ('show_dock', 'true')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "pjirc_config ( config_name , config_value ) VALUES ('show_chanlist', 'true')"; $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 ); } else { // If already installed $message = "<b>Module is already installed... consider upgrading ;)</b><br/><br/>"; } 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/Uninstallation 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: pjirc_update.php --- <?php /** * * @package mxBB Portal Module - mx_pjirc * @version $Id: pjirc_update.php,v 1.1 2007/06/07 00:08:36 orynider Exp $ * @copyright (c) 2004-2006 amo, am...@ho... * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ /*************************************************************************** * mx_pjirc *************************************************************************** * History: *AMO (24/02/2004) : 1st try *AMO (09/10/2004) : the statue update works but it is not optimized ***************************************************************************/ define('IN_PORTAL', true); $mx_root_path = '../../'; $module_root_path = './'; $phpEx = substr(strrchr(__FILE__, '.'), 1); include_once($mx_root_path . 'common.'.$phpEx); $mx_user->init($user_ip, PAGE_INDEX); define('_PJIRC_CONFIG', true); include_once($module_root_path . 'includes/common.'.$phpEx); $time=date("U"); $nick = str_replace(" ", "_", $userdata['username']); if ($_POST['update']==true) { update_user($nick,$time); } //read check period $period=$pjirc_config['check_period']*1000; echo 'Your nick is: ' . $nick; //pjirc_update.php (send to the db the user statue "chatting" every $period seconds) echo "<html>"; echo "<head>"; echo "<script language=\"javascript\">"; echo "setInterval(\"document.forms['update'].submit();\",".$period.");"; echo "</script>"; echo "</head>"; echo "<body>"; echo "<form name=\"update\" action=\"pjirc_update.php\" method=\"POST\">"; echo "<input type=\"hidden\" name=\"update\" value=\"true\">"; echo "</form>"; echo "</body>"; echo "</html>"; ?> --- NEW FILE: db_upgrade.php --- <?php /** * * @package mxBB Portal Module - mx_pjirc * @version $Id: db_upgrade.php,v 1.1 2007/06/07 00:08:31 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.0'; $mx_module_copy = 'mxBB <i> - mx_pjirc</i> module by Amo & <a href="http://www.mxbb.net" target="_blank">Mx Team</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: pjirc_faq.php --- <?php /** * * @package mxBB Portal Module - mx_pjirc * @version $Id: pjirc_faq.php,v 1.1 2007/06/07 00:08:33 orynider Exp $ * @copyright (c) 2001-2007 The phpBB Group, su...@ph... * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ define('IN_PORTAL', 1); $mx_root_path = "../../"; $mx_module_path = "./"; $phpEx = substr(strrchr(__FILE__, '.'), 1); include_once($mx_root_path . 'common.'.$phpEx); // // Start session management // $mx_user->init($user_ip, PAGE_INDEX); // // End session management // // // Load language files. // if( file_exists($module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_faq.' . $phpEx) ) { include($module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_faq.' . $phpEx); } else { include($module_root_path . 'language/lang_english/lang_faq.' . $phpEx); } // // Pull the array data from the lang pack // $j = 0; $counter = 0; $counter_2 = 0; $faq_block = array(); $faq_block_titles = array(); for($i = 0; $i < count($faq); $i++) { if( $faq[$i][0] != '--' ) { $faq_block[$j][$counter]['id'] = $counter_2; $faq_block[$j][$counter]['question'] = $faq[$i][0]; $faq_block[$j][$counter]['answer'] = $faq[$i][1]; $counter++; $counter_2++; } else { $j = ( $counter != 0 ) ? $j + 1 : 0; $faq_block_titles[$j] = $faq[$i][1]; $counter = 0; } } // // Lets build a page ... // $page_title = $l_title; include($mx_root_path . 'includes/page_header.'.$phpEx); $template->set_filenames(array( 'body' => 'pjirc_faq.tpl') ); make_jumpbox($phpbb_root_path . 'viewforum.'.$phpEx, $forum_id); $template->assign_vars(array( 'L_FAQ_TITLE' => $l_title, 'L_BACK_TO_TOP' => $lang['Back_to_top']) ); for($i = 0; $i < count($faq_block); $i++) { if( count($faq_block[$i]) ) { $template->assign_block_vars('faq_block', array( 'BLOCK_TITLE' => $faq_block_titles[$i]) ); $template->assign_block_vars('faq_block_link', array( 'BLOCK_TITLE' => $faq_block_titles[$i]) ); for($j = 0; $j < count($faq_block[$i]); $j++) { $row_color = ( !($j % 2) ) ? $theme['td_color1'] : $theme['td_color2']; $row_class = ( !($j % 2) ) ? $theme['td_class1'] : $theme['td_class2']; $template->assign_block_vars('faq_block.faq_row', array( 'ROW_COLOR' => '#' . $row_color, 'ROW_CLASS' => $row_class, 'FAQ_QUESTION' => $faq_block[$i][$j]['question'], 'FAQ_ANSWER' => $faq_block[$i][$j]['answer'], 'U_FAQ_ID' => $faq_block[$i][$j]['id']) ); $template->assign_block_vars('faq_block_link.faq_row_link', array( 'ROW_COLOR' => '#' . $row_color, 'ROW_CLASS' => $row_class, 'FAQ_LINK' => $faq_block[$i][$j]['question'], 'U_FAQ_LINK' => append_sid(PORTAL_URL . 'modules/mx_pjirc/pjirc_faq.php' . '#' . $faq_block[$i][$j]['id']) ) ); } } } $template->pparse('body'); include($mx_root_path . 'includes/page_tail.'.$phpEx); ?> --- NEW FILE: db_uninstall.php --- <?php /** * * @package mxBB Portal Module - mx_pjirc * @version $Id: db_uninstall.php,v 1.1 2007/06/07 00:08:30 orynider Exp $ * @copyright (c) 2004-2006, amo, am...@ho... * @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(3)"); } if( $userdata['user_level'] != ADMIN ) { die("Hacking attempt(4)"); } // // End session management // } $sql = array( "DROP TABLE ".$mx_table_prefix."pjirc_config", "DROP TABLE ".$mx_table_prefix."pjirc_session" ); $n = 0; $message = "<b>This list is a result of the SQL queries needed to uninstall Pjirc Module Addon</b><br/><br/>"; while($sql[$n]) { $message .= ($mods[$n-1] != $mods[$n]) ? '<p><b><font size=3>'.$mods[$n].'</font></b><br/>' : ''; if( !$result = $db->sql_query($sql[$n]) ) { $message .= '<b><font color=#FF0000>[Error or Already removed]</font></b> line: '.($n+1).' , '.$sql[$n].'<br />'; } else { $message .='<b><font color=#0000fF>[Removed]</font></b> line: '.($n+1).' , '.$sql[$n].'<br />'; } $n++; } $message .= ' <br />If you get some Error, relax, this is normal when updating modules'; echo '<br /> <br />'; echo '<table cellpadding="4" cellspacing="1" border="0" class="forumline">'; echo '<tr><th class="thHead" align="center">Module Installation Information</th></tr>'; echo '<tr><td class="row1" align="center"><span class="gen">' . $message . '</span></td></tr>'; echo '</table> <br />'; ?> --- NEW FILE: readme.txt --- /********************************************************************************\ | | subject : mxBB-Portal, CMS & portal, module | name : mx_pjirc | begin : January, 2006 | copyright : (C) 2002-2006 mxBB | mxBB project site : www.mx-system.com | | author : Amo (see additional credit below) | author site : http://mhand.boughias.free.fr/ | author email : am...@ho... | | additional credit : This module is based on "MX_chatbox" | and the phpBB mod "pjIRC" by Eric. | | description : The "Mx pjIRC" is a IRC Client for mxBB-Portal. | |********************************************************************************| | | @package mxBB Portal Module - mx_pjirc | @version $Id: readme.txt,v 1.1 2007/06/07 00:08:36 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_pjirc into your: {mxBB install}\modules\ folder on your web server. 3) chmod 777 modules/mx_pjirc/pjirc/ 3) From your website enter mxBB Admin Control Panel. 4) Under mxBB-Portal click on Management. 5) Now click on Modules Setup. 6) Under Module Administration use the pull down menu and choose: mx_pjirc 7) Press the Install Module button 8) If you have followed the instructions correctly you should now be able to create a mx_pjirc front block for inclusion on your pages. /********************************************************************************\ | End Of Document \********************************************************************************/ |