You can subscribe to this list here.
| 2005 |
Jan
|
Feb
|
Mar
(95) |
Apr
(270) |
May
(111) |
Jun
|
Jul
|
Aug
(64) |
Sep
(130) |
Oct
(319) |
Nov
(17) |
Dec
(191) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2006 |
Jan
(53) |
Feb
|
Mar
|
Apr
|
May
(6) |
Jun
(387) |
Jul
(102) |
Aug
(247) |
Sep
(120) |
Oct
(1) |
Nov
(8) |
Dec
(21) |
| 2007 |
Jan
(38) |
Feb
(36) |
Mar
|
Apr
(32) |
May
(135) |
Jun
(523) |
Jul
(192) |
Aug
(103) |
Sep
(533) |
Oct
(77) |
Nov
(23) |
Dec
(203) |
| 2008 |
Jan
(312) |
Feb
(1193) |
Mar
(404) |
Apr
(67) |
May
(62) |
Jun
(497) |
Jul
(297) |
Aug
(110) |
Sep
(335) |
Oct
(256) |
Nov
(50) |
Dec
(118) |
| 2009 |
Jan
(67) |
Feb
(10) |
Mar
(1) |
Apr
(1) |
May
|
Jun
(10) |
Jul
(61) |
Aug
|
Sep
(16) |
Oct
(45) |
Nov
(12) |
Dec
(14) |
| 2010 |
Jan
(30) |
Feb
|
Mar
|
Apr
(4) |
May
|
Jun
|
Jul
(7) |
Aug
(7) |
Sep
(5) |
Oct
(5) |
Nov
|
Dec
|
| 2011 |
Jan
(7) |
Feb
(3) |
Mar
(89) |
Apr
(11) |
May
(5) |
Jun
|
Jul
(8) |
Aug
(1) |
Sep
(2) |
Oct
|
Nov
(2) |
Dec
(89) |
| 2012 |
Jan
(7) |
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(4) |
Sep
(3) |
Oct
(42) |
Nov
(1) |
Dec
|
| 2013 |
Jan
|
Feb
|
Mar
(19) |
Apr
(90) |
May
(38) |
Jun
(235) |
Jul
(38) |
Aug
(10) |
Sep
|
Oct
(29) |
Nov
|
Dec
|
| 2014 |
Jan
|
Feb
|
Mar
|
Apr
(6) |
May
(52) |
Jun
|
Jul
(7) |
Aug
|
Sep
(17) |
Oct
|
Nov
|
Dec
|
|
From: Jon O. <jon...@us...> - 2008-02-27 21:33:49
|
Update of /cvsroot/mxbb/mx_simpledoc/simpledoc/includes/js In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv28373/includes/js Modified Files: init_main.js Log Message: Updated: Bugfix for releases New feature: Renaming folders and docs Index: init_main.js =================================================================== RCS file: /cvsroot/mxbb/mx_simpledoc/simpledoc/includes/js/init_main.js,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** init_main.js 17 Sep 2006 20:15:57 -0000 1.3 --- init_main.js 27 Feb 2008 21:33:41 -0000 1.4 *************** *** 102,107 **** } ! var treeElements = ["tree-moveUp", "tree-moveDown", "tree-moveLeft", "tree-moveRight", "tree-insert", "tree-remove"]; ! var treeTooltips = ["Move Up", "Move Down", "Move Left", "Move Right", "Insert", "Delete"]; function treeTooltipOn() { document.getElementById("tree-tooltip").innerHTML = treeTooltips[treeElements.indexOf(this.id)]; } --- 102,107 ---- } ! var treeElements = ["tree-moveUp", "tree-moveDown", "tree-moveLeft", "tree-moveRight", "tree-insert", "tree-rename", "tree-remove"]; ! var treeTooltips = ["Move Up", "Move Down", "Move Left", "Move Right", "Insert", "Rename", "Delete"]; function treeTooltipOn() { document.getElementById("tree-tooltip").innerHTML = treeTooltips[treeElements.indexOf(this.id)]; } *************** *** 126,129 **** --- 126,130 ---- document.getElementById("tree-insert").onclick = treeInsert; + document.getElementById("tree-rename").onclick = treeRename; document.getElementById("tree-remove").onclick = treeRemove; *************** *** 131,134 **** --- 132,138 ---- document.getElementById("tree-insert-cancel").onclick = treeHideInsert; + document.getElementById("tree-rename-button").onclick = treeRenameExecute; + document.getElementById("tree-rename-cancel").onclick = treeHideRename; + function treeMoveUp() { if (tree.mayMoveUp() && httpSave("modules/mx_simpledoc/simpledoc/modules/simpledoc__node.php?do=moveUp&id="+escape(treeGetId())+'&block_id='+mxBlock.block_id+'&page_id='+mxBlock.page_id)) { *************** *** 160,163 **** --- 164,168 ---- } function treeInsert() { + document.getElementById("tree-rename-form").style.display = "none"; document.getElementById("tree-insert-form").style.display = "block"; document.getElementById("tree-insert-where-div").style.display = (tree.active ? "" : "none"); *************** *** 182,185 **** --- 187,191 ---- var type = document.getElementById("tree-insert-type"); var name = document.getElementById("tree-insert-name"); + name.value = name.value.trim(); if (!name.value) { *************** *** 224,227 **** --- 230,234 ---- name.value = ""; this.blur(); + document.getElementById("tree-insert-form").style.display = "none"; } *************** *** 232,235 **** --- 239,284 ---- } + function treeRename() { + document.getElementById("tree-insert-form").style.display = "none"; + document.getElementById("tree-rename-form").style.display = "block"; + if (tree.active) { + el('tree-rename-name').value = el(tree.active+"-text").innerHTML; + } + } + + /* only event - blur */ + function treeRenameExecute() { + var type = tree.getActiveNode().isDocument() ? 'document' : 'folder'; + var name = document.getElementById("tree-rename-name"); + + name.value = name.value.trim(); + if (!name.value) { + alert("Name is empty"); + return; + } + if (name.value.substr(-5) == ".html") { + name.value = name.value.substr(0, name.value.length-5); + } + var id = escape(name.value); + if (type != "folder") { + id = escape(name.value + ".html"); + } + + if (tree.active) { + if (httpSave("modules/mx_simpledoc/simpledoc/modules/simpledoc__node.php?do=rename&id="+escape(treeGetId())+"&name="+id+"&is_folder="+(type=="folder" ? 1 : 0)+'&block_id='+mxBlock.block_id+'&page_id='+mxBlock.page_id)) { + tree.renameThis(name.value, type); + } + } + name.value = ""; + this.blur(); + document.getElementById("tree-rename-form").style.display = "none"; + } + + function treeHideRename() { + var name = document.getElementById("tree-rename-name"); + name.value = ""; + document.getElementById("tree-rename-form").style.display = "none"; + } + function treeRemove() { if (tree.mayRemove()) { |
|
From: Jon O. <jon...@us...> - 2008-02-27 21:33:49
|
Update of /cvsroot/mxbb/mx_simpledoc/simpledoc/modules In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv28373/modules Modified Files: simpledoc__node.php simpledoc_publish.php Log Message: Updated: Bugfix for releases New feature: Renaming folders and docs Index: simpledoc_publish.php =================================================================== RCS file: /cvsroot/mxbb/mx_simpledoc/simpledoc/modules/simpledoc_publish.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** simpledoc_publish.php 17 Jun 2006 20:50:47 -0000 1.2 --- simpledoc_publish.php 27 Feb 2008 21:33:41 -0000 1.3 *************** *** 61,64 **** --- 61,66 ---- $template->assign_vars( array( + 'PUBLISH_DIR_ERROR' => !$CONFIG['publish_dir'] || !$publish_dir_ok, + 'MX_ROOT_PATH' => $mx_root_path, 'MODULE_ROOT_PATH' => $module_root_path, Index: simpledoc__node.php =================================================================== RCS file: /cvsroot/mxbb/mx_simpledoc/simpledoc/modules/simpledoc__node.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** simpledoc__node.php 22 Jul 2007 21:08:59 -0000 1.6 --- simpledoc__node.php 27 Feb 2008 21:33:41 -0000 1.7 *************** *** 97,101 **** $id = $mx_simpledoc->unicode_urldecode($mx_simpledoc_functions->fix_charset(get('id'))); $name = $mx_simpledoc->unicode_urldecode($mx_simpledoc_functions->fix_charset(get('name'))); - $is_folder = get('is_folder'); --- 97,100 ---- *************** *** 111,114 **** --- 110,114 ---- case 'insertInsideAtStart': case 'insertInsideAtEnd': + case 'rename': case 'remove': $Node = new Node($id); *************** *** 154,157 **** --- 154,161 ---- break; + case 'rename': + $Node->rename($name, $is_folder); + break; + case 'remove': $Node->remove(); |
|
From: Jon O. <jon...@us...> - 2008-02-27 21:30:36
|
Update of /cvsroot/mxbb/core/modules/mx_phpbb2blocks/templates/_core In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv26895 Modified Files: _core.cfg Log Message: Weird conflict. I do not know how? Nevermind, updated. Index: _core.cfg =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_phpbb2blocks/templates/_core/_core.cfg,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** _core.cfg 17 Feb 2008 13:35:23 -0000 1.4 --- _core.cfg 27 Feb 2008 21:30:30 -0000 1.5 *************** *** 10,23 **** // - // ** Configuration file for subSilver template ** - // - // ** copyright (C) 2001 The phpBB Group ** - // ** Created by subBlue design ** - // ** www.subBlue.com ** - // - // ** subSilver dev. forum: www.subSky.com/phpBB2/ ** - // - // $Id$ - // // Please note that to enable support of different languages // the {LANG} place holder is available. This will be replaced --- 10,13 ---- *************** *** 28,33 **** // - $mx_template_name = '_core'; - // // Do not alter this line! --- 18,21 ---- |
|
From: Jon O. <jon...@us...> - 2008-02-27 21:27:16
|
Update of /cvsroot/mxbb/core/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv25203 Modified Files: mx_functions_style.php Log Message: Styling bug. Code copied from 2.8.x, sorry. Index: mx_functions_style.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions_style.php,v retrieving revision 1.55 retrieving revision 1.56 diff -C2 -d -r1.55 -r1.56 *** mx_functions_style.php 25 Feb 2008 00:39:16 -0000 1.55 --- mx_functions_style.php 27 Feb 2008 21:27:11 -0000 1.56 *************** *** 1635,1639 **** if (!empty($this->default_module_style)) { ! $this->default_template_name = 'subSilver'; $this->default_current_template_path = 'templates/' . $this->default_template_name; $this->default_module_style = ''; --- 1635,1639 ---- if (!empty($this->default_module_style)) { ! $this->default_template_name = '_core'; $this->default_current_template_path = 'templates/' . $this->default_template_name; $this->default_module_style = ''; |
|
From: OryNider <ory...@us...> - 2008-02-27 17:15:42
|
Update of /cvsroot/mxbb/mx_shoutbox In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv14240 Modified Files: db_upgrade.php Log Message: fix same as 2.8.1 Index: db_upgrade.php =================================================================== RCS file: /cvsroot/mxbb/mx_shoutbox/db_upgrade.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** db_upgrade.php 16 Feb 2008 21:48:33 -0000 1.3 --- db_upgrade.php 27 Feb 2008 17:15:36 -0000 1.4 *************** *** 6,12 **** // COPYRIGHT : © 2002, 2003 apegaming.net // WWW : http://www.blame-the-french.com.com/ ! // LICENCE : GPL vs2.0 [ see /docs/COPYING ] ! // ! // ------------------------------------------------------------- if ( !defined('IN_ADMIN') ) --- 6,12 ---- // COPYRIGHT : © 2002, 2003 apegaming.net // WWW : http://www.blame-the-french.com.com/ ! // LICENCE : GPL vs2.0 [ see /docs/COPYING ] ! // ! // ------------------------------------------------------------- if ( !defined('IN_ADMIN') ) *************** *** 27,32 **** } ! $mx_module_version = '2.3.2'; ! $mx_module_copy = 'Original MX-Publisher <i>Shoutbox</i> module by <a href="http://phpms.sourceforge.net" target="_blank">Selven</a>'; $sql=array( --- 27,32 ---- } ! $mx_module_version = '2.3.1'; ! $mx_module_copy = 'Original mxBB <i>Shoutbox</i> module by <a href="http://phpms.sourceforge.net" target="_blank">Selven</a>'; $sql=array( *************** *** 39,46 **** "CREATE TABLE " . $mx_table_prefix . "shoutbox_config ( ! config_name varchar(255) NOT NULL default '', config_value varchar(255) NOT NULL default '', PRIMARY KEY (config_name) ! ) TYPE=MyISAM", "INSERT INTO " . $mx_table_prefix . "shoutbox_config (config_name, config_value) VALUES ('config_id', '1')", --- 39,46 ---- "CREATE TABLE " . $mx_table_prefix . "shoutbox_config ( ! config_name varchar(255) NOT NULL default '', config_value varchar(255) NOT NULL default '', PRIMARY KEY (config_name) ! ) TYPE=MyISAM", "INSERT INTO " . $mx_table_prefix . "shoutbox_config (config_name, config_value) VALUES ('config_id', '1')", *************** *** 72,75 **** $n++; } ! mx_message_die(GENERAL_MESSAGE, $message); ?> \ No newline at end of file --- 72,75 ---- $n++; } ! mx_message_die(GENERAL_MESSAGE, $message); ?> \ No newline at end of file |
|
From: OryNider <ory...@us...> - 2008-02-27 17:15:23
|
Update of /cvsroot/mxbb/mx_shoutbox In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv14217 Modified Files: db_install.php Log Message: fix same as 2.8.1 Index: db_install.php =================================================================== RCS file: /cvsroot/mxbb/mx_shoutbox/db_install.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** db_install.php 16 Feb 2008 21:48:32 -0000 1.3 --- db_install.php 27 Feb 2008 17:15:18 -0000 1.4 *************** *** 6,12 **** // COPYRIGHT : © 2002, 2003 apegaming.net // WWW : http://www.blame-the-french.com.com/ ! // LICENCE : GPL vs2.0 [ see /docs/COPYING ] ! // ! // ------------------------------------------------------------- if ( !defined('IN_ADMIN') ) --- 6,12 ---- // COPYRIGHT : © 2002, 2003 apegaming.net // WWW : http://www.blame-the-french.com.com/ ! // LICENCE : GPL vs2.0 [ see /docs/COPYING ] ! // ! // ------------------------------------------------------------- if ( !defined('IN_ADMIN') ) *************** *** 26,31 **** // } ! $mx_module_version = '2.3.2'; ! $mx_module_copy = 'Original MX-Publisher <i>Shoutbox</i> module by <a href="http://phpms.sourceforge.net" target="_blank">Selven</a>'; $sql=array( --- 26,31 ---- // } ! $mx_module_version = '2.3.1'; ! $mx_module_copy = 'Original mxBB <i>Shoutbox</i> module by <a href="http://phpms.sourceforge.net" target="_blank">Selven</a>'; $sql=array( *************** *** 34,49 **** module_copy = '" . $mx_module_copy . "' WHERE module_id = '" . $mx_module_id . "'", ! "DROP TABLE IF EXISTS " . $mx_table_prefix . "shoutbox", "CREATE TABLE " . $mx_table_prefix . "shoutbox ( ! id int(11) NOT NULL auto_increment, ! name_id mediumint(8) NOT NULL default '0', ! name varchar(25) NOT NULL default '', ! text text NOT NULL, ! time int(11) NOT NULL default '0', ! bbcode_uid varchar(10) default NULL, ! PRIMARY KEY (id) ! ) TYPE=MyISAM", "INSERT INTO " . $mx_table_prefix . "shoutbox (id,name_id,name,text,time,bbcode_uid) --- 34,49 ---- module_copy = '" . $mx_module_copy . "' WHERE module_id = '" . $mx_module_id . "'", ! "DROP TABLE IF EXISTS " . $mx_table_prefix . "shoutbox", "CREATE TABLE " . $mx_table_prefix . "shoutbox ( ! id int(11) NOT NULL auto_increment, ! name_id mediumint(8) NOT NULL default '0', ! name varchar(25) NOT NULL default '', ! text text NOT NULL, ! time int(11) NOT NULL default '0', ! bbcode_uid varchar(10) default NULL, ! PRIMARY KEY (id) ! ) TYPE=MyISAM", "INSERT INTO " . $mx_table_prefix . "shoutbox (id,name_id,name,text,time,bbcode_uid) *************** *** 53,60 **** "CREATE TABLE " . $mx_table_prefix . "shoutbox_config ( ! config_name varchar(255) NOT NULL default '', config_value varchar(255) NOT NULL default '', PRIMARY KEY (config_name) ! ) TYPE=MyISAM", "INSERT INTO " . $mx_table_prefix . "shoutbox_config (config_name, config_value) VALUES ('config_id', '1')", --- 53,60 ---- "CREATE TABLE " . $mx_table_prefix . "shoutbox_config ( ! config_name varchar(255) NOT NULL default '', config_value varchar(255) NOT NULL default '', PRIMARY KEY (config_name) ! ) TYPE=MyISAM", "INSERT INTO " . $mx_table_prefix . "shoutbox_config (config_name, config_value) VALUES ('config_id', '1')", *************** *** 88,91 **** $message .= '<br /><br />If everything was successful, please delete this file for security reasons!'; ! mx_message_die(GENERAL_MESSAGE, $message); ?> \ No newline at end of file --- 88,91 ---- $message .= '<br /><br />If everything was successful, please delete this file for security reasons!'; ! mx_message_die(GENERAL_MESSAGE, $message); ?> \ No newline at end of file |
|
From: OryNider <ory...@us...> - 2008-02-27 17:14:54
|
Update of /cvsroot/mxbb/mx_shoutbox In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv13799 Modified Files: mx_shoutbox.php Log Message: fix Index: mx_shoutbox.php =================================================================== RCS file: /cvsroot/mxbb/mx_shoutbox/mx_shoutbox.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** mx_shoutbox.php 21 Jun 2007 18:21:04 -0000 1.1 --- mx_shoutbox.php 27 Feb 2008 17:14:43 -0000 1.2 *************** *** 11,25 **** // ------------------------------------------------------------- ! if( !isset($HTTP_POST_VARS) ) ! { ! $HTTP_POST_VARS = &$_POST; ! $HTTP_GET_VARS = &$_GET; ! $HTTP_SESSION_VARS = &$_SESSION; ! $HTTP_SERVER_VARS = &$_SERVER; ! } ! ! if ($_GET[page]) { ! $page = "page=".$_GET[page]."&"; ! } if ( defined('IN_PORTAL') ) --- 11,15 ---- // ------------------------------------------------------------- ! $page_id = ($page_id) ? intval($page_id) : $mx_request_vars->request('page', MX_TYPE_NO_TAGS, 1); if ( defined('IN_PORTAL') ) *************** *** 63,88 **** } ! $page_limit = $shout_config['list_index']; /******************************* Get mode from passed arguments ********************************/ ! ! if( isset($HTTP_POST_VARS['sbmode']) || isset($HTTP_GET_VARS['sbmode']) ) ! { ! $mode = ( isset($HTTP_POST_VARS['sbmode']) ) ? $HTTP_POST_VARS['sbmode'] : $HTTP_GET_VARS['sbmode']; ! } ! else ! { ! $mode = ""; ! } switch ($mode) { case 'add': ! $username = ( !empty($HTTP_POST_VARS['username']) ) ? prepare_message(trim($HTTP_POST_VARS['username']), 0, 0, 0, 0) : $lang['guest']; ! $user_id = ( isset($HTTP_POST_VARS['user_id']) ) ? $HTTP_POST_VARS['user_id'] : $HTTP_GET_VARS['user_id']; ! $message = ( isset($HTTP_POST_VARS['message']) ) ? $HTTP_POST_VARS['message'] : $HTTP_GET_VARS['message']; ! $bbcode_on = ( isset($HTTP_POST_VARS['bbcode']) ) ? $HTTP_POST_VARS['bbcode'] : $HTTP_GET_VARS['bbcode']; $time = time(); $bbcode_uid = make_bbcode_uid(); --- 53,74 ---- } ! $page_id_limit = $shout_config['list_index']; /******************************* Get mode from passed arguments ********************************/ ! $mode = $mx_request_vars->request('sbmode', MX_TYPE_NO_TAGS, ''); switch ($mode) { case 'add': ! $username = ($user_data['user_id'] !== 1) ? prepare_message(trim($user_data['user_name']), 0, 0, 0, 0) : $lang['guest']; ! $user_id = $user_data['user_id']; ! $message = $mx_request_vars->request('message', MX_TYPE_NO_TAGS, ''); ! if (!($message)) ! { ! mx_message_die(GENERAL_MESSAGE, 'You most type a message'); ! } ! $bbcode_on = $mx_request_vars->request('bbcode', MX_TYPE_NO_TAGS, ''); $time = time(); $bbcode_uid = make_bbcode_uid(); *************** *** 104,108 **** case 'delete': ! $id = ( isset($HTTP_POST_VARS['id']) ) ? $HTTP_POST_VARS['id'] : $HTTP_GET_VARS['id']; if ( empty($id)) { --- 90,94 ---- case 'delete': ! $id = $mx_request_vars->request('id', MX_TYPE_INT, ''); if ( empty($id)) { *************** *** 122,126 **** case 'edit': ! $id = ( isset($HTTP_POST_VARS['id']) ) ? $HTTP_POST_VARS['id'] : $HTTP_GET_VARS['id']; if ( empty($id) ) { --- 108,112 ---- case 'edit': ! $id = $mx_request_vars->request('id', MX_TYPE_INT, ''); if ( empty($id) ) { *************** *** 160,169 **** $template->assign_vars(array( 'L_EDIT_SHOUT_INFO' => $lang['Edit_Shout_Info'], ! 'SHOUT_TEXT' => $thisshout['text'], 'BOX_HEIGHT' => $box_height, 'L_SUBMIT' => $lang['Submit'], 'SHOUT_SIZE' => $shout_config['shout_size'], 'SHOUT_SIZE_EXPL' => $lang['shout_size_expl'], ! 'S_SHOUT_ACTION' => append_sid("$_SERVER[PHP_SELF]?".$page."sbmode=edit_shout&id=$id"), ) ); --- 146,155 ---- $template->assign_vars(array( 'L_EDIT_SHOUT_INFO' => $lang['Edit_Shout_Info'], ! 'SHOUT_TEXT' => $shout_startthisshout['text'], 'BOX_HEIGHT' => $box_height, 'L_SUBMIT' => $lang['Submit'], 'SHOUT_SIZE' => $shout_config['shout_size'], 'SHOUT_SIZE_EXPL' => $lang['shout_size_expl'], ! 'S_SHOUT_ACTION' => append_sid($mx_root_path.'index.php?page='.$page_id."&sbmode=edit_shout&id=$id"), ) ); *************** *** 182,186 **** case 'edit_shout': ! $id = ( isset($HTTP_POST_VARS['id']) ) ? $HTTP_POST_VARS['id'] : $HTTP_GET_VARS['id']; if ( empty($id) ) { --- 168,172 ---- case 'edit_shout': ! $id = $mx_request_vars->request('id', MX_TYPE_INT, ''); if ( empty($id) ) { *************** *** 203,208 **** if ($userdata['user_level'] == ADMIN || $shoutnameid == $userdata['user_id']) { ! $shout_text = str_replace("\'", "''", htmlspecialchars(trim($HTTP_POST_VARS['shout_text']))); ! $id = intval($HTTP_GET_VARS['id']); $sql = "UPDATE ". SHOUTBOX_TABLE ." --- 189,195 ---- if ($userdata['user_level'] == ADMIN || $shoutnameid == $userdata['user_id']) { ! $shout_text = $mx_request_vars->request('shout_text', MX_TYPE_NO_TAGS, ''); ! $shout_text = str_replace("\'", "''", htmlspecialchars(trim($shout_text))); ! $id = $mx_request_vars->request('id', MX_TYPE_INT, ''); $sql = "UPDATE ". SHOUTBOX_TABLE ." *************** *** 235,239 **** ****************************/ ! $s_form_action = append_sid($_SERVER[PHP_SELF]."?".$page); $s_hidden_fields = '<input name="sid" type="hidden" value="' . $userdata['session_id'] . '" />' .'<input name="user_id" type="hidden" value="' . $userdata['user_id'] . '" />' --- 222,226 ---- ****************************/ ! $s_form_action = append_sid($mx_root_path.'index.php?page='.$page_id); $s_hidden_fields = '<input name="sid" type="hidden" value="' . $userdata['session_id'] . '" />' .'<input name="user_id" type="hidden" value="' . $userdata['user_id'] . '" />' *************** *** 249,260 **** Get variables for paginate *****************************/ ! if( isset($HTTP_POST_VARS['shout_start']) || isset($HTTP_GET_VARS['shout_start']) ) ! { ! $shout_start = ( isset($HTTP_POST_VARS['shout_start']) ) ? $HTTP_POST_VARS['shout_start'] : $HTTP_GET_VARS['shout_start']; ! } ! else ! { ! $shout_start = 0; ! } /**************************** --- 236,241 ---- Get variables for paginate *****************************/ ! $shout_start = $mx_request_vars->request('shout_start', MX_TYPE_NO_TAGS, 0); ! $shout_start = ($shout_start < 0) ? 0 : $shout_start; /**************************** *************** *** 268,277 **** } $count = $db->sql_fetchrow($result); ! if ($page_limit == 0) { ! $page_limit = $count['total']; } ! $pagination = ( !empty($shout_config) ) ? eregi_replace('&start', 'shout_start',generate_pagination($mx_root_path.'index.'.$phpEx.'?', $count['total'], $page_limit, $shout_start, FALSE)) : ""; if ($shout_config['static_box']==1) --- 249,258 ---- } $count = $db->sql_fetchrow($result); ! if ($page_id_limit == 0) { ! $page_id_limit = $count['total']; } ! $pagination = ( !empty($shout_config) ) ? eregi_replace('&start', 'shout_start',generate_pagination($mx_root_path.'index.'.$phpEx.'?', $count['total'], $page_id_limit, $shout_start, FALSE)) : ""; if ($shout_config['static_box']==1) *************** *** 327,331 **** FROM " . SHOUTBOX_TABLE . " ORDER BY id DESC ! LIMIT $shout_start,$page_limit"; if ( !($result = $db->sql_query($sql)) ) { --- 308,312 ---- FROM " . SHOUTBOX_TABLE . " ORDER BY id DESC ! LIMIT $shout_start,$page_id_limit"; if ( !($result = $db->sql_query($sql)) ) { *************** *** 371,378 **** if ( $userdata['session_logged_in'] ) { ! $delurl_tmp = append_sid("$_SERVER[PHP_SELF]?".$page."sbmode=delete&id=$shoutid&sid=" . $userdata['session_id']); $delimg_tmp = '<img src="' . $images['icon_delpost'] . '" align="right" border="0" alt="' . $lang['alt_delete'] . '" />'; ! $edturl_tmp = append_sid("$_SERVER[PHP_SELF]?".$page."sbmode=edit&id=$shoutid&sid=" . $userdata['session_id']); $edtimg_tmp = '<img src="' . $images['icon_edit'] . '" align="right" border="0" alt="' . $lang['alt_edit'] . '" />'; --- 352,359 ---- if ( $userdata['session_logged_in'] ) { ! $delurl_tmp = append_sid($mx_root_path.'index.php?page='.$page_id."&sbmode=delete&id=$shoutid&sid=" . $userdata['session_id']); $delimg_tmp = '<img src="' . $images['icon_delpost'] . '" align="right" border="0" alt="' . $lang['alt_delete'] . '" />'; ! $edturl_tmp = append_sid($mx_root_path.'index.php?page='.$page_id."&sbmode=edit&id=$shoutid&sid=" . $userdata['session_id']); $edtimg_tmp = '<img src="' . $images['icon_edit'] . '" align="right" border="0" alt="' . $lang['alt_edit'] . '" />'; |
|
From: OryNider <ory...@us...> - 2008-02-26 18:36:52
|
Update of /cvsroot/mxbb/core In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv3929 Modified Files: login.php Log Message: fix Index: login.php =================================================================== RCS file: /cvsroot/mxbb/core/login.php,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -d -r1.27 -r1.28 *** login.php 9 Feb 2008 19:49:06 -0000 1.27 --- login.php 26 Feb 2008 18:36:45 -0000 1.28 *************** *** 126,130 **** 'L_SEND_PASSWORD' => $lang['Forgotten_password'], ! 'U_SEND_PASSWORD' => mx_append_sid($phpbb_root_path . "profile.$phpEx", "mode=sendpassword"), 'S_HIDDEN_FIELDS' => $s_hidden_fields) --- 126,130 ---- 'L_SEND_PASSWORD' => $lang['Forgotten_password'], ! 'U_SEND_PASSWORD' => mx3_append_sid($phpbb_root_path . "profile.$phpEx", "mode=sendpassword"), 'S_HIDDEN_FIELDS' => $s_hidden_fields) |
|
From: OryNider <ory...@us...> - 2008-02-25 18:48:23
|
Update of /cvsroot/mxbb/mx_act/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv25421 Modified Files: act_main.php Log Message: fix |
|
From: OryNider <ory...@us...> - 2008-02-25 14:32:53
|
Update of /cvsroot/mxbb/mx_act/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv2431 Modified Files: admin_activity.php Log Message: fix Index: admin_activity.php =================================================================== RCS file: /cvsroot/mxbb/mx_act/admin/admin_activity.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** admin_activity.php 2 May 2006 23:25:45 -0000 1.8 --- admin_activity.php 25 Feb 2008 14:32:29 -0000 1.9 *************** *** 26,49 **** require( $module_root_path . 'includes/act_constants.' . $phpEx ); ! include( $module_root_path . 'includes/act_functions.' . $phpEx ); ! // include_once($phpbb_root_path . 'includes/functions_search.'.$phpEx); ! // include_once($mx_root_path . 'admin/page_header_admin.' . $phpEx); ! /* ! define('IN_PHPBB', 1); ! ! if( !empty($setmodules) ) { ! $file = basename(__FILE__); ! $module['Activities']['.:Configuration:.'] = $file; ! $module['Activities']['Add_Game'] = append_sid("admin_activity.$phpEx?mode=add_game"); ! $module['Activities']['Edit_Games'] = append_sid("admin_activity.$phpEx?mode=edit_games"); ! return; } ! $phpbb_root_path = '../'; ! $phpEx = substr(strrchr(__FILE__, '.'), 1); ! require('pagestart.' . $phpEx); ! include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx); ! */ $sql = "SELECT * FROM " . iNA; --- 26,43 ---- require( $module_root_path . 'includes/act_constants.' . $phpEx ); ! // ********************************************************************** ! // Read language definition ! // ********************************************************************** ! 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 if ( file_exists( $module_root_path . 'language/lang_english/lang_main.' . $phpEx ) ) ! { ! include( $module_root_path . 'language/lang_english/lang_main.' . $phpEx ); } ! include( $module_root_path . 'includes/act_functions.' . $phpEx ); ! $sql = "SELECT * FROM " . iNA; *************** *** 291,294 **** --- 285,289 ---- "NAME" => $game_info['game_name'], "PATH" => $game_info['game_path'], + "PAGE" => $game_info['ina_page'], "DESC" => $game_info['game_desc'], "CHARGE" => $game_info['game_charge'], *************** *** 438,441 **** --- 433,437 ---- $game_name = ( isset( $HTTP_POST_VARS['game_name'] ) ) ? trim( $HTTP_POST_VARS['game_name'] ) : ""; $game_path = ( isset( $HTTP_POST_VARS['game_path'] ) ) ? trim( $HTTP_POST_VARS['game_path'] ) : ""; + $game_page = ( isset( $HTTP_POST_VARS['ina_page'] ) ) ? trim( $HTTP_POST_VARS['ina_page'] ) : 0; $game_desc = ( isset( $HTTP_POST_VARS['game_desc'] ) ) ? trim( $HTTP_POST_VARS['game_desc'] ) : ""; $game_charge = ( isset( $HTTP_POST_VARS['game_charge'] ) ) ? intval( $HTTP_POST_VARS['game_charge'] ) : 0; *************** *** 486,489 **** --- 482,498 ---- } + if ( $game_page ) + { + $sql = "UPDATE " . iNA_CONFIG . " + SET config_value = '$game_page' + WHERE config_name = 'ina_page'"; + if ( !$result = $db->sql_query( $sql ) ) + { + mx_message_die( GENERAL_ERROR, 'Can\'t upgrade the games portal page.', "", __LINE__, __FILE__, $sql ); + } + } + + + if ( $game_category ) { *************** *** 567,570 **** --- 576,580 ---- $game_desc = $game_rows[$i]['game_desc']; $game_path = $game_rows[$i]['game_path']; + $game_page = $game_rows[$i]['ina_page']; if ( $game_rows[$i]['game_use_gl'] ) *************** *** 604,607 **** --- 614,618 ---- "NAME" => $game_name, "PATH" => $game_path, + "PAGE" => $game_page, "GAMELIB" => $game_gl, "FLASH" => $game_flash, *************** *** 702,705 **** --- 713,718 ---- $gamelib_path = $new['gamelib_path']; + $games_page = $new['ina_page']; + $games_per_page = $new['games_per_page']; *************** *** 759,762 **** --- 772,776 ---- "L_ADAR_SHOP" => $lang['admin_adar_shop'], "L_ADAR_INFO" => $lang['admin_no_adar_info'], + 'L_GAMES_PAGE' => $lang['games_page'], "L_PAGE" => $lang['admin_page'], *************** *** 782,785 **** --- 796,800 ---- "S_USE_REWARDS_NO" => $use_rewards_no, + 'S_GAMES_PAGE' => $games_page, "S_GAMES_PATH" => $games_path, "S_GAMELIB_PATH" => $gamelib_path, |
|
From: OryNider <ory...@us...> - 2008-02-25 04:45:13
|
Update of /cvsroot/mxbb/mx_online_adv In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv3112 Modified Files: db_install.php db_uninstall.php mx_online_adv.php Log Message: fix |
|
From: OryNider <ory...@us...> - 2008-02-25 00:39:20
|
Update of /cvsroot/mxbb/core/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv30088 Modified Files: mx_functions_style.php Log Message: switch for language files. Index: mx_functions_style.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions_style.php,v retrieving revision 1.54 retrieving revision 1.55 diff -C2 -d -r1.54 -r1.55 *** mx_functions_style.php 24 Feb 2008 19:43:57 -0000 1.54 --- mx_functions_style.php 25 Feb 2008 00:39:16 -0000 1.55 *************** *** 692,698 **** $board_config['default_lang'] = 'english'; } ! ! include($mx_root_path . 'includes/shared/phpbb2/language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx); // Also include phpBB lang keys ! include($phpbb_lang_path . "lang_" . $board_config['default_lang'] . "/lang_admin.$phpEx"); } --- 692,698 ---- $board_config['default_lang'] = 'english'; } ! ! include($phpbb_lang_path . "lang_" . $board_config['default_lang'] . "/lang_admin.$phpEx"); // Also include phpBB admin lang keys ! include($mx_root_path . 'language/lang_' . $board_config['default_lang'] . "/lang_admin.$phpEx"); // Also include mxP Admin lang keys } |
|
From: OryNider <ory...@us...> - 2008-02-24 19:44:02
|
Update of /cvsroot/mxbb/core/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv4718 Modified Files: mx_functions_style.php Log Message: switch for language files. Index: mx_functions_style.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions_style.php,v retrieving revision 1.53 retrieving revision 1.54 diff -C2 -d -r1.53 -r1.54 *** mx_functions_style.php 23 Feb 2008 19:36:12 -0000 1.53 --- mx_functions_style.php 24 Feb 2008 19:43:57 -0000 1.54 *************** *** 661,673 **** $board_config['default_lang'] = $this->get_old_lang($this->lang['default_lang']); // This will expand the lang name ! if( !file_exists(@phpBB2::phpbb_realpath($mx_root_path . 'includes/shared/phpbb2/language/lang_' . $board_config['default_lang'] . '/lang_main.'.$phpEx)) ) { ! mx_message_die(GENERAL_ERROR, "Could not locate user language file: lang_main.php that most be uploaded in your includes/shared/phpbb2/language/your_language/ folder", "", __LINE__, __FILE__, $board_config['default_lang']); ! //$board_config['default_lang'] = 'english'; } - include($mx_root_path . 'includes/shared/phpbb2/language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx); // Also include phpBB lang keys include($mx_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx); if ( defined('IN_ADMIN') ) { --- 661,689 ---- $board_config['default_lang'] = $this->get_old_lang($this->lang['default_lang']); // This will expand the lang name ! switch (PORTAL_BACKEND) { ! case 'internal': ! case 'phpbb3': ! $phpbb_lang_path = $mx_root_path . 'includes/shared/phpbb2/language/'; ! break; ! case 'phpbb2': ! $phpbb_lang_path = $phpbb_root_path . 'language/'; ! break; ! default: ! $phpbb_lang_path = $phpbb_root_path . 'language/'; ! } ! ! //Load phpBB lang keys ! if ((@include $phpbb_lang_path . "lang_" . $board_config['default_lang'] . "/lang_main.$phpEx") === false) ! { ! if ((@include $phpbb_lang_path . "lang_english/lang_main.$phpEx") === false) ! { ! mx_message_die(GENERAL_ERROR, 'Language file ' . $phpbb_lang_path . "lang_" . $board_config['default_lang'] . "/lang_main.$phpEx" . ' couldn\'t be opened.'); ! } } include($mx_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx); + //Load AdminCP lang keys if ( defined('IN_ADMIN') ) { *************** *** 678,682 **** include($mx_root_path . 'includes/shared/phpbb2/language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx); // Also include phpBB lang keys ! include($mx_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx); } --- 694,698 ---- include($mx_root_path . 'includes/shared/phpbb2/language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx); // Also include phpBB lang keys ! include($phpbb_lang_path . "lang_" . $board_config['default_lang'] . "/lang_admin.$phpEx"); } |
|
From: OryNider <ory...@us...> - 2008-02-24 01:27:31
|
Update of /cvsroot/mxbb/mx_shotcast/language/lang_english In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18741/lang_english Modified Files: lang_admin.php lang_main.php Log Message: upgrade to 2.0.8 |
|
From: OryNider <ory...@us...> - 2008-02-24 01:26:56
|
Update of /cvsroot/mxbb/mx_shotcast In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18322 Modified Files: db_install.php db_uninstall.php db_upgrade.php getinfo.php moreinfo.php mx_install_readme.htm radio_update.php radioplayer.php shotcast_front.php shotcast_last10.php shotcast_stats.php Log Message: upgrade to 2.0.8 |
|
From: OryNider <ory...@us...> - 2008-02-24 01:26:52
|
Update of /cvsroot/mxbb/mx_shotcast/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18322/admin Modified Files: admin_shotcast.php Log Message: upgrade to 2.0.8 |
|
From: OryNider <ory...@us...> - 2008-02-24 01:26:51
|
Update of /cvsroot/mxbb/mx_shotcast/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18322/includes Modified Files: common.php Added Files: shotcast_class.php Log Message: upgrade to 2.0.8 --- NEW FILE: shotcast_class.php --- <?php /** * radio.class is a stand-alone php class for ShoutCast Servers that obtains informations about the server. * USAGE: * $variable = new radio(HOST, PORT); - Construct the Object. ie. - new radio($SERVER_NAME, 8000); * $variable->host - Get server host. (INT) * $variable->port - Get server port. (INT) * $variable->stat - Status if server is on/off (INT, 1=on, 0=off) * $variable->bitrate - Bitrate of streaming audio. (INT) * $variable->listners - Listners. (INT) * $variable->station - Radiostation name (STRING) * $variable->genre - Streamers selected genre. (STRING) * $variable->song - Current song. (STRING) * $variable->played - Last played songs (ARRAY[STRING]) * * @author Niklas Pull * @created 2008-02-04, Sweden * * Keep the autor tag in order to use or distrubutate this php class, */ //ini_set('error_reporting', E_ALL ^ E_WARNING ^ E_NOTICE); class radio { var $host; var $port; var $rawdata; var $stat = 0; var $c = 0; /** * Constructor for radio class. * @param $host Server Host. * @param $port Server Port */ function radio($host, $port) { $this->host = $host; $this->port = $port; $this->rawdata = $this->getServerData("index.html"); $this->stat = $this->servStat(); } /** * Collecting raw data from ShoutCast server. * @param $source From where to collect data. * @return An array with each row. */ function getServerData($source) { $fp = @fsockopen($this->host, $this->port, $errno, $errstr, 10); if (!$fp) { return; } else { @fputs($fp, "GET /$source HTTP/1.1\r\n"); @fputs($fp, "Host: $this->host\r\n"); @fputs($fp, "User-Agent: SHOUTcast Song Status (Mozilla Compatible)\r\n\r\n"); @fputs($fp, "Connection: close\r\n\r\n"); while (!feof($fp)) { $buf .= @fgets($fp,128); } @fclose($fp); return explode("\t", strip_tags(str_replace(array("</td>", "</tr>", "Current Song"), array("\t", "\t", " Current Song"), $buf))); } } /** * @return An integer, 1 if the server is streaming otherwise 0. */ function servStat() { $i = 0; while ($i < count($this->rawdata)) { $this->rawdata[$i] = trim($this->rawdata[$i]); if (strstr($this->rawdata[$i], "Server Status:")) { $tmp = explode(" ", $this->rawdata[$i+1]); return ($tmp[3] == "up") ? "1" : "0"; } $i++; } return 0; } /** * @return An integer representing the bitrate of the streaming. */ function bitrate() { $i = 0; if($this->stat !== 1) { return 0; } while ($i < count($this->rawdata)) { $this->rawdata[$i] = trim($this->rawdata[$i]); if (strstr($this->rawdata[$i], "Stream Status:")) { $bitr = explode(" ", $this->rawdata[$i+1]); return $bitr[4]; } $i++; } } /** * @return An integer of how many listners. */ function listners() { $i = 0; if($this->stat !== 1) { return 0; } while ($i < count($this->rawdata)) { $this->rawdata[$i] = trim($this->rawdata[$i]); if (strstr($this->rawdata[$i], "Stream Status:")) { $listn = explode(" ", $this->rawdata[$i+1]); return $listn[7]; } $i++; } } /** * @return A string representing the Stream title. */ function station() { $i = 0; if($this->stat !== 1) { return; } while ($i < count($this->rawdata)) { $this->rawdata[$i] = trim($this->rawdata[$i]); if (strstr($this->rawdata[$i], "Stream Title:")) { return $this->rawdata[$i+1]; } $i++; } } /** * @return The streaming genre. */ function genre() { $i = 0; if($this->stat !== 1) { return; } while ($i < count($this->rawdata)) { $this->rawdata[$i] = trim($this->rawdata[$i]); if (strstr($this->rawdata[$i], "Stream Genre:")) { return $this->rawdata[$i+1]; } $i++; } } /** * @return A string with the current song playing on the stream. */ function song() { $i = 0; if($this->stat != 1) { return; } if($this->c != 0) { return trim($this->rawdata[$this->c]); } while ($i < count($this->rawdata)) { $this->rawdata[$i] = trim($this->rawdata[$i]); if (strstr($this->rawdata[$i], "Current Song:")) { $this->c = $i+1; return $this->rawdata[$i+1]; } $i++; } } /** * @return An array with Strings of every previous played song, the lenght is set inte the .ini file for the ShoutCast server. */ function played() { $played = array(); $i = 0; if($this->stat != 1) { return; } $raw_played = $this->getServerData("played.html"); while ($i < count($raw_played)) { $raw_played[$i] = trim($raw_played[$i]); if (strstr($raw_played[$i], "Current Song")) { $i=$i+3; break; } $i++; } $j=0; while ($raw_played[$i-1] != "") { $played[$j] = $raw_played[$i]; $i=$i+2; $j++; } return $played; } } ?> |
|
From: OryNider <ory...@us...> - 2008-02-24 01:15:13
|
Update of /cvsroot/mxbb/mx_shotcast/templates/subSilver/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv13814/admin Modified Files: shotcast_config_body.tpl Log Message: Index: shotcast_config_body.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/templates/subSilver/admin/shotcast_config_body.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** shotcast_config_body.tpl 2 Oct 2007 04:44:36 -0000 1.2 --- shotcast_config_body.tpl 24 Feb 2008 01:15:08 -0000 1.3 *************** *** 44,47 **** --- 44,55 ---- </tr> <tr> + <td class="row1"><p><b>{L_STREAM_TYPE}:</b><br></p></td> + <td class="row2">{STREAM_TYPE}</td></td> + </tr> + <tr> + <td class="row1"><p><b>{L_SHOW_STATUS}:</b><br></p></td> + <td class="row2">{SHOW_STATUS}</td></td> + </tr> + <tr> <td class="catBottom" colspan="2" align="center">{S_HIDDEN_FIELDS} <input type="submit" name="submit" value="{L_SUBMIT}" class="mainoption" /> *************** *** 51,57 **** </tr> </table> - - - <br> </form> --- 59,62 ---- |
|
From: OryNider <ory...@us...> - 2008-02-24 01:15:13
|
Update of /cvsroot/mxbb/mx_shotcast/templates/subSilver In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv13814 Modified Files: shotcast_stats.tpl Log Message: Index: shotcast_stats.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/templates/subSilver/shotcast_stats.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** shotcast_stats.tpl 3 Oct 2007 00:42:42 -0000 1.2 --- shotcast_stats.tpl 24 Feb 2008 01:15:08 -0000 1.3 *************** *** 1,3 **** - <head> <style type="text/css"> <!-- --- 1,2 ---- *************** *** 7,14 **** --> </style> ! </head> ! <table width="{BLOCK_SIZE}" cellpadding="4" cellspacing="1" border="0" class="forumline" style="border-top:none;"> <tr> ! <td class="row1" align="center" valign="middle" rowspan="1"> <img src="{SHOTCAST_STATE_IMG}" alt="{L_VERSION}" border="0" /> </td> --- 6,12 ---- --> </style> ! <table width="{BLOCK_SIZE}" cellpadding="1" cellspacing="1" border="0" class="forumline" style="border-top:none;"> <tr> ! <td class="row1" align="center" valign="middle"> <img src="{SHOTCAST_STATE_IMG}" alt="{L_VERSION}" border="0" /> </td> *************** *** 24,28 **** <tr class="table"> <td class="stat" align="left" valign="bottom"> ! <b>{L_STATE} <i>{S_STATE}</i></b> </td> </tr> --- 22,26 ---- <tr class="table"> <td class="stat" align="left" valign="bottom"> ! <i>{L_STATE} <b>{S_STATE}</b></i> </td> </tr> *************** *** 73,77 **** </tr> </table> - - </td> <br clear="all" /> --- 71,73 ---- |
|
From: OryNider <ory...@us...> - 2008-02-24 01:15:00
|
Update of /cvsroot/mxbb/mx_shotcast/language/lang_english In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv13417/lang_english Modified Files: lang_admin.php lang_main.php Log Message: Index: lang_main.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/language/lang_english/lang_main.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** lang_main.php 2 Oct 2007 04:42:21 -0000 1.2 --- lang_main.php 24 Feb 2008 01:14:56 -0000 1.3 *************** *** 37,42 **** $lang['Before_that_you_heard'] = "Before that you heard"; $lang['Off_Air'] = "The server is <b>Off-Air</b>, try again later."; ! $lang['Socket_functions_disabled'] = 'Unable to use socket functions.'; ! // // That's all Folks! --- 37,43 ---- $lang['Before_that_you_heard'] = "Before that you heard"; $lang['Off_Air'] = "The server is <b>Off-Air</b>, try again later."; ! $lang['Socket_functions_disabled'] = "Unable to use socket functions."; ! $lang['require_password'] = "require password"; ! // // That's all Folks! Index: lang_admin.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/language/lang_english/lang_admin.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** lang_admin.php 2 Oct 2007 04:42:21 -0000 1.2 --- lang_admin.php 24 Feb 2008 01:14:56 -0000 1.3 *************** *** 30,33 **** --- 30,35 ---- $lang['Show_status'] = "Show status"; + $lang['Stream_type'] = "Stream Type"; + // |
|
From: OryNider <ory...@us...> - 2008-02-24 01:15:00
|
Update of /cvsroot/mxbb/mx_shotcast/language/lang_romanian In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv13417/lang_romanian Modified Files: lang_admin.php lang_main.php Log Message: Index: lang_main.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/language/lang_romanian/lang_main.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** lang_main.php 2 Oct 2007 04:42:22 -0000 1.2 --- lang_main.php 24 Feb 2008 01:14:56 -0000 1.3 *************** *** 1,32 **** <?php $lang['Radio'] = "Radio"; ! $lang['How_Many_Listeners'] = "There are <b>%d</b> listener(s) from this site now"; ! $lang['How_Many_Peak'] = "Total <b>%d</b> peak."; ! $lang['Who_Are_Listening' ] = "Who's on Radio: <b>%s</b>"; ! $lang['Click_to_listen_station'] = "Click to listen Radio"; ! $lang['Click_to_listen_wmp'] = "Click to listen Radio using Windows Media Player"; ! $lang['Click_to_listen_real'] = "Click to listen Radio using Real Player or Real One"; $lang['log_out_radio'] = "You have successfully logged out from Radio on "; ! $lang['Login_to_listen_station'] = "Login to listen Radio"; ! $lang['Already_listening'] = "You are Listening"; ! $lang['Please_Login_to_listen'] = "Please, login to listen Radio."; ! $lang['About_radio'] = "About radio"; ! $lang['radio_Options'] = "radio Options"; ! $lang['About'] = "About"; ! $lang['Options'] = "Options"; ! $lang['Stats_for'] = "Stats For:"; ! $lang['Server_state'] = "Server State:"; ! $lang['Station'] = "Station:"; ! $lang['Current_song'] = "Current Song:"; $lang['Bitrate'] = "BitRate:"; ! $lang['Listeners_peak'] = "Listeners Peak:"; ! $lang['Max_listeners'] = "Max Listeners:"; ! $lang['Server_genre'] = "Server Genre:"; ! $lang['Stream_URL'] = "Stream URL:"; ! $lang['Unique'] = "Unique Listeners:"; ! $lang['Now_Playing'] = "Acum cântã"; $lang['Before_that_you_heard'] = "Ultimele nouã melodii"; $lang['Off_Air'] = "Serverul este <b>Off-Air</b>, incearcã mai târziu."; ! $lang['Socket_functions_disabled'] = 'Unable to use socket functions.'; // --- 1,33 ---- <?php $lang['Radio'] = "Radio"; ! $lang['How_Many_Listeners'] = "Sunt <b>%d</b> ascultãtor(i) de pe acest website acum"; ! $lang['How_Many_Peak'] = "În total <b>%d</b> sunt conectaþi."; ! $lang['Who_Are_Listening' ] = "Cine ascultã radio: <b>%s</b>"; ! $lang['Click_to_listen_station'] = "Click ca sã asculþi radio"; ! $lang['Click_to_listen_wmp'] = "Click ca sã asculþi radio cu Windows Media Player"; ! $lang['Click_to_listen_real'] = "Click ca sã asculþi radio cu Real Player"; $lang['log_out_radio'] = "You have successfully logged out from Radio on "; ! $lang['Login_to_listen_station'] = "Logeazã-te ca sã asculþi radio"; ! $lang['Already_listening'] = "Momentan asculþi"; ! $lang['Please_Login_to_listen'] = "Te rog, logeazã-te pentru a asculta Radio."; ! $lang['About_radio'] = "Despre radio"; ! $lang['radio_Options'] = "Opþiuni radio"; ! $lang['About'] = "Despre"; ! $lang['Options'] = "Opþiuni"; ! $lang['Stats_for'] = "Statistice pt.:"; ! $lang['Server_state'] = "Stare server:"; ! $lang['Station'] = "Staþie:"; ! $lang['Current_song'] = "Acum cântã:"; $lang['Bitrate'] = "BitRate:"; ! $lang['Listeners_peak'] = "Conectaþi:"; ! $lang['Max_listeners'] = "Maxim ascultãtori:"; ! $lang['Server_genre'] = "Gen de muzicã:"; ! $lang['Stream_URL'] = "URL-ul streamului:"; ! $lang['Unique'] = "Ascultãtori Unici:"; ! $lang['Now_Playing'] = "Acum cântã"; $lang['Before_that_you_heard'] = "Ultimele nouã melodii"; $lang['Off_Air'] = "Serverul este <b>Off-Air</b>, incearcã mai târziu."; ! $lang['Socket_functions_disabled'] = "Functiile socket sunt dezactivate."; ! $lang['require_password'] = "necesitã parolã"; // Index: lang_admin.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/language/lang_romanian/lang_admin.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** lang_admin.php 6 Jun 2007 23:20:12 -0000 1.1 --- lang_admin.php 24 Feb 2008 01:14:56 -0000 1.2 *************** *** 22,25 **** --- 22,26 ---- $lang['Show_status'] = "Show status"; + $lang['Stream_type'] = "Stream Type"; // |
|
From: OryNider <ory...@us...> - 2008-02-24 01:14:44
|
Update of /cvsroot/mxbb/mx_shotcast/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv12961/admin Modified Files: admin_shotcast.php Log Message: Index: admin_shotcast.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/admin/admin_shotcast.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** admin_shotcast.php 2 Oct 2007 04:40:01 -0000 1.2 --- admin_shotcast.php 24 Feb 2008 01:14:04 -0000 1.3 *************** *** 34,38 **** // Setup basic portal stuff... // ! define('IN_PORTAL', true); $mx_root_path = '../../../'; $module_root_path = "../"; --- 34,38 ---- // Setup basic portal stuff... // ! @define('IN_PORTAL', true); $mx_root_path = '../../../'; $module_root_path = "../"; *************** *** 66,70 **** if(!$result = $db->sql_query($sql)) { ! message_die(GENERAL_ERROR, "Couldn't query shotcast config table", "", __LINE__, __FILE__, $sql); } while( $row = $db->sql_fetchrow($result) ) --- 66,70 ---- if(!$result = $db->sql_query($sql)) { ! mx_message_die(GENERAL_ERROR, "Couldn't query shotcast config table", "", __LINE__, __FILE__, $sql); } while( $row = $db->sql_fetchrow($result) ) *************** *** 84,93 **** mx_message_die(GENERAL_ERROR, "Failed to update shotcast configuration for $config_name", "", __LINE__, __FILE__, $sql); } } } //Show status? ! if ($new['show_status']=="true") { $show_status = "<select name=\"show_status\" size=1><option value=\"true\" selected>on<option value=\"false\">off</select>"; --- 84,104 ---- mx_message_die(GENERAL_ERROR, "Failed to update shotcast configuration for $config_name", "", __LINE__, __FILE__, $sql); } + // Behave as per HTTP/1.1 spec for others + echo '"<meta http-equiv="refresh" content="1;url="$file">"'; } } + //stream_type + if ($new['stream_type'] == 'mp3') + { + $stream_type = "<select name=\"stream_type\" size=1><option value=\"mp3\" selected>mp3<option value=\"icy\">icy</select>"; + } + else + { + $stream_type = "<select name=\"stream_type\" size=1><option value=\"mp3\">mp3<option value=\"icy\" selected>icy</select>"; + } //Show status? ! if ($new['show_status'] == true) { $show_status = "<select name=\"show_status\" size=1><option value=\"true\" selected>on<option value=\"false\">off</select>"; *************** *** 115,123 **** 'L_PLAY_LIST' => $lang['play_list'], 'L_SHOW_STATUS' => $lang['Show_status'], ! 'L_SUBMIT' => $lang['Submit'], ! 'L_RESET' => $lang['Reset'], ! 'L_CHECK_PERIOD' => $lang['Check_period'], 'L_CHECK_PERIOD_EXPLAIN' => $lang['Check_period_explain'], ! 'L_SHOW_LISTEN' => $lang['show_listen'], 'L_SHOW_LISTEN_INFO' => $lang['show_listen_info'], 'L_FORCE_ONLINE' => !empty($lang['Force_Online']) ? $lang['Force_Online'] : 'Force Online', --- 126,135 ---- 'L_PLAY_LIST' => $lang['play_list'], 'L_SHOW_STATUS' => $lang['Show_status'], ! 'L_STREAM_TYPE' => $lang['Stream_type'], ! 'L_SUBMIT' => $lang['Submit'], ! 'L_RESET' => $lang['Reset'], ! 'L_CHECK_PERIOD' => $lang['Check_period'], 'L_CHECK_PERIOD_EXPLAIN' => $lang['Check_period_explain'], ! 'L_SHOW_LISTEN' => $lang['show_listen'], 'L_SHOW_LISTEN_INFO' => $lang['show_listen_info'], 'L_FORCE_ONLINE' => !empty($lang['Force_Online']) ? $lang['Force_Online'] : 'Force Online', *************** *** 129,133 **** 'STATION_PORT' => $new['shotcast_port'], 'STATION_PASS' => $new['shotcast_pass'], ! 'PLAY_LIST' => $new['play_list'], 'CHECK_PERIOD' => $new['check_period'], --- 141,145 ---- 'STATION_PORT' => $new['shotcast_port'], 'STATION_PASS' => $new['shotcast_pass'], ! 'PLAY_LIST' => $new['play_list'], 'CHECK_PERIOD' => $new['check_period'], *************** *** 135,142 **** //GUI_SETTING 'USER_STATE_BUTTON' => $user_state_button, ! 'S_LISTEN_YES' => $show_listen_select_yes, 'S_LISTEN_NO' => $show_listen_select_no, 'FORCE_ON_ENABLED' => ($new['force_online'] == 1) ? 'checked="checked"' : '', ! 'FORCE_ON_DISABLED' => ($new['force_online'] == 0) ? 'checked="checked"' : '', 'SHOW_STATUS' => $show_status) ); --- 147,155 ---- //GUI_SETTING 'USER_STATE_BUTTON' => $user_state_button, ! 'S_LISTEN_YES' => $show_listen_select_yes, 'S_LISTEN_NO' => $show_listen_select_no, 'FORCE_ON_ENABLED' => ($new['force_online'] == 1) ? 'checked="checked"' : '', ! 'FORCE_ON_DISABLED' => ($new['force_online'] == 0) ? 'checked="checked"' : '', ! 'STREAM_TYPE' => $stream_type, 'SHOW_STATUS' => $show_status) ); |
|
From: OryNider <ory...@us...> - 2008-02-24 01:14:20
|
Update of /cvsroot/mxbb/mx_shotcast/doc In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv12961/doc Added Files: ReadMe.txt Log Message: --- NEW FILE: ReadMe.txt --- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - RADIO PLAYER - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - History: - Verion 1.00 - by: Niklas Pull May 17, 2006 - Version 1.01 - Fixed real mode by OryNider for Firefox. October 7, 2006 - Version 1.02 - Rewriten wmp script by OryNider in JavaScript for Firefox. In Firefox and Linux when media mode user normaly will be propted to install a plugin, but since this is hidden in iframes user will have to install the plugin manualy. October 21, 2006 - Version 1.03 - Forced media player mode for NetScape using MIME type="audio/mpeg" in the Mac script. October 22, 2006 - Version 1.04 beta 1 - In contrib/no_pass/ you have a version of getinfo.php that is not using a password to get info from the shotcast server. The info is readed from 7.html and the station name from config.php. You dont need to upload the contrib folder. To use it upload contrib/no_pass/getinfo.php replaceing the original file. October 23, 2006 - Version 1.04 - Fixed some problems With WMP 9 (Windows 98 SE) October 23, 2006 - Version 1.05 - 1.07 - Added support for icy strems - by OryNider December 20, 2007 - Version 1.08 - Backported the style engine from Version 1.1 February 23, 2008 ------------------------------------------------------------------ This is a popup radio player for SHOUTcast servers. The embed's are hidden in iframes with autostarts, so the pricipal is very simple. It also uses an ajax script to update the song title. It can switch between real player and wmp mode, however the real player version did not worked with Firefox and Netscape. Fixed for Firefox by OryNider - http://pubory.uv.ro/ Feel free to use it however you want, all I want is that you keep the author meta tag. --------------------------------------------- Instructions: All you have to do is to edit config.php to your ip adress, port and SHOUTcast password. Everythings done in 1 min, :) |
|
From: OryNider <ory...@us...> - 2008-02-24 01:14:13
|
Update of /cvsroot/mxbb/mx_shotcast In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv12961 Modified Files: cur_song.php db_install.php db_uninstall.php db_upgrade.php getinfo.php moreinfo.php mx_install_readme.htm play_real.php play_wmp.php radio_update.php radioplayer.php shotcast_front.php shotcast_last10.php shotcast_stats.php Log Message: Index: shotcast_stats.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/shotcast_stats.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** shotcast_stats.php 2 Oct 2007 04:52:18 -0000 1.3 --- shotcast_stats.php 24 Feb 2008 01:14:06 -0000 1.4 *************** *** 31,35 **** mx_message_die(GENERAL_ERROR, "Could not find mx_shotcast includes folder.", "", __LINE__, __FILE__); } ! @define('_SHOTCAST_CONFIG', true); include_once($module_root_path . 'includes/common.'.$phpEx); include_once($module_root_path . 'getinfo.'.$phpEx); --- 31,35 ---- mx_message_die(GENERAL_ERROR, "Could not find mx_shotcast includes folder.", "", __LINE__, __FILE__); } ! define('IN_SHOTCAST', true); include_once($module_root_path . 'includes/common.'.$phpEx); include_once($module_root_path . 'getinfo.'.$phpEx); *************** *** 64,90 **** 'L_STATE' => $lang['Server_state'], 'S_STATE' => $state, ! 'L_SERVER_TITLE' => $lang['Station'], ! 'S_SERVER_TITLE' => $servertitle, 'L_SONG' => $lang['Current_song'], 'S_SONG' => $song[0], 'L_BITRATE' => $lang['Bitrate'], 'S_BITRATE' => $text[5], ! 'L_PEAK_LISTENERS' => $lang['Listeners_peak'], ! 'S_PEAK_LISTENERS' => $text[2], ! 'L_MAX_LISTENERS' => $lang['Max_listeners'], ! 'S_MAX_LISTENERS' => $text[3], 'L_SERVERGENRE' => $lang['Server_genre'], 'S_SERVERGENRE' => $servergenre, 'L_SONGURL' => $lang['Stream_URL'], 'S_SONGURL' => $songurl, ! 'S_SERVERURL' => $serverurl, ! 'L_REPORTEDLISTENERS' => $lang['Unique'], ! 'S_REPORTEDLISTENERS' => $reportedlisteners, ! 'BLOCK_SIZE' => $block_size, 'BLOCK_ID' => $block_id, ! 'L_TITLE' => 'shotcast') ); --- 64,90 ---- 'L_STATE' => $lang['Server_state'], 'S_STATE' => $state, ! 'L_SERVER_TITLE' => $lang['Station'], ! 'S_SERVER_TITLE' => $servertitle, 'L_SONG' => $lang['Current_song'], 'S_SONG' => $song[0], 'L_BITRATE' => $lang['Bitrate'], 'S_BITRATE' => $text[5], ! 'L_PEAK_LISTENERS' => $lang['Listeners_peak'], ! 'S_PEAK_LISTENERS' => $text[2], ! 'L_MAX_LISTENERS' => $lang['Max_listeners'], ! 'S_MAX_LISTENERS' => $text[3], 'L_SERVERGENRE' => $lang['Server_genre'], 'S_SERVERGENRE' => $servergenre, 'L_SONGURL' => $lang['Stream_URL'], 'S_SONGURL' => $songurl, ! 'S_SERVERURL' => $serverurl, ! 'L_REPORTEDLISTENERS' => $lang['Unique'], ! 'S_REPORTEDLISTENERS' => $reportedlisteners, ! 'BLOCK_SIZE' => $block_size, 'BLOCK_ID' => $block_id, ! 'L_TITLE' => 'shotcast') ); Index: db_upgrade.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/db_upgrade.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** db_upgrade.php 8 Feb 2008 23:44:04 -0000 1.3 --- db_upgrade.php 24 Feb 2008 01:14:05 -0000 1.4 *************** *** 31,35 **** } ! $mx_module_version = '1.0'; $mx_module_copy = 'mxBB <i> - Shotcast</i> module by OryNider & <a href="http://www.mxbb.net" target="_blank">Mx Team</a>'; --- 31,35 ---- } ! $mx_module_version = '1.0.8'; $mx_module_copy = 'mxBB <i> - Shotcast</i> module by OryNider & <a href="http://www.mxbb.net" target="_blank">Mx Team</a>'; *************** *** 64,67 **** --- 64,68 ---- $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config VALUES ('force_online', '1')"; + $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config VALUES ('stream_type', 'mp3')"; } else *************** *** 91,93 **** echo "</table><br />"; ! ?> \ No newline at end of file --- 92,94 ---- echo "</table><br />"; ! ?> Index: shotcast_front.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/shotcast_front.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** shotcast_front.php 8 Feb 2008 23:44:05 -0000 1.4 --- shotcast_front.php 24 Feb 2008 01:14:06 -0000 1.5 *************** *** 42,46 **** mx_message_die(GENERAL_ERROR, "Could not find mx_shotcast includes folder.", "", __LINE__, __FILE__); } ! @define('_SHOTCAST_CONFIG', true); include_once($module_root_path . 'includes/common.'.$phpEx); --- 42,46 ---- mx_message_die(GENERAL_ERROR, "Could not find mx_shotcast includes folder.", "", __LINE__, __FILE__); } ! define('IN_SHOTCAST', true); include_once($module_root_path . 'includes/common.'.$phpEx); *************** *** 79,96 **** if( empty($currentlisteners) && empty($text[2]) ) ! { ! $howmanypeak = $currentlisteners = $text[2] = $shotcast_config['currentlisteners']; } ! else if (empty($currentlisteners) && ($text[2] > 0)) ! { ! $howmanypeak = $currentlisteners = $text[2]; } else if( ($currentlisteners > 0) && ($text[2] > 0)) { ! $howmanypeak = ($currentlisteners > $text[2]) ? $currentlisteners : $text[2]; } else { ! $howmanypeak = $text[2]; } --- 79,96 ---- if( empty($currentlisteners) && empty($text[2]) ) ! { ! $howmanypeak = $currentlisteners = $text[2] = $shotcast_config['currentlisteners']; } ! else if (empty($currentlisteners) && ($text[2] > 0)) ! { ! $howmanypeak = $currentlisteners = $text[2]; } else if( ($currentlisteners > 0) && ($text[2] > 0)) { ! $howmanypeak = ($currentlisteners > $text[2]) ? $currentlisteners : $text[2]; } else { ! $howmanypeak = $text[2]; } *************** *** 186,188 **** unset($liteners, $sql, $howmanylisten, $listeners_list, $block_size, $module_root_path, $isimler, $can_listen); ! ?> \ No newline at end of file --- 186,188 ---- unset($liteners, $sql, $howmanylisten, $listeners_list, $block_size, $module_root_path, $isimler, $can_listen); ! ?> Index: mx_install_readme.htm =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/mx_install_readme.htm,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** mx_install_readme.htm 6 Jun 2007 23:18:01 -0000 1.1 --- mx_install_readme.htm 24 Feb 2008 01:14:06 -0000 1.2 *************** *** 1,8 **** ! <html> <head> ! <title>Mx Portal installation - readme</title> ! <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> ! <!-- link rel="stylesheet" href="templates/subSilver/subSilver.css" type="text/css" --> <style type="text/css"> <!-- /* --- 1,14 ---- ! <html xmlns="http://www.w3.org/1999/xhtml"> ! <!-- $Id$ --> <head> ! <meta name="generator" content= ! "HTML Tidy for Windows (vers 19 September 2007), see www.w3.org" /> ! <title>mxBB Portal installation - readme</title> ! <meta http-equiv="Content-Type" content= ! "text/html; charset=us-ascii" /> ! <!-- link rel="stylesheet" href="../../templates/subSilver/subSilver.css" type="text/css" --> ! <style type="text/css"> + /*<![CDATA[*/ <!-- /* *************** *** 18,29 **** /* General page style. The scroll bar colours only visible in IE5.5+ */ body { ! background-color: #E5E5E5; ! scrollbar-face-color: #DEE3E7; ! scrollbar-highlight-color: #FFFFFF; ! scrollbar-shadow-color: #DEE3E7; ! scrollbar-3dlight-color: #D1D7DC; ! scrollbar-arrow-color: #006699; ! scrollbar-track-color: #EFEFEF; ! scrollbar-darkshadow-color: #98AAB1; } --- 24,35 ---- /* General page style. The scroll bar colours only visible in IE5.5+ */ body { ! background-color: #E5E5E5; ! scrollbar-face-color: #DEE3E7; ! scrollbar-highlight-color: #FFFFFF; ! scrollbar-shadow-color: #DEE3E7; ! scrollbar-3dlight-color: #D1D7DC; ! scrollbar-arrow-color: #006699; ! scrollbar-track-color: #EFEFEF; ! scrollbar-darkshadow-color: #98AAB1; } *************** *** 31,47 **** font, th, td, p { font-family: Verdana, Arial, Helvetica, sans-serif } a:link, a:active, a:visited { color : #006699; } ! a:hover { text-decoration: underline; color : #DD6900; } ! hr { height: 0px; border: solid #D1D7DC 0px; border-top-width: 1px;} /* This is the border line & background colour round the entire page */ ! .bodyline { background-color: #FFFFFF; border: 1px #98AAB1 solid; } /* This is the outline round the main forum tables */ ! .forumline { background-color: #FFFFFF; border: 2px #006699 solid; } /* Main table cell colours and backgrounds */ ! td.row1 { background-color: #EFEFEF; } ! td.row2 { background-color: #DEE3E7; } ! td.row3 { background-color: #D1D7DC; } /* --- 37,53 ---- font, th, td, p { font-family: Verdana, Arial, Helvetica, sans-serif } a:link, a:active, a:visited { color : #006699; } ! a:hover { text-decoration: underline; color : #DD6900; } ! hr { height: 0px; border: solid #D1D7DC 0px; border-top-width: 1px;} /* This is the border line & background colour round the entire page */ ! .bodyline { background-color: #FFFFFF; border: 1px #98AAB1 solid; } /* This is the outline round the main forum tables */ ! .forumline { background-color: #FFFFFF; border: 2px #006699 solid; } /* Main table cell colours and backgrounds */ ! td.row1 { background-color: #EFEFEF; } ! td.row2 { background-color: #DEE3E7; } ! td.row3 { background-color: #D1D7DC; } /* *************** *** 51,69 **** */ td.rowpic { ! background-color: #FFFFFF; ! background-image: url('../../install/templates/subSilver/images/cellpic2.jpg'); ! background-repeat: repeat-y } /* Header cells - the blue and silver gradient backgrounds */ ! th { ! color: #FFA34F; font-size: 11px; font-weight : bold; ! background-color: #006699; height: 25px; ! background-image: url('../../install/templates/subSilver/images/cellpic3.gif'); } td.cat, td.catHead, td.catSides, td.catLeft, td.catRight, td.catBottom { ! background-image: url('../../install/templates/subSilver/images/cellpic1.gif'); ! background-color:#D1D7DC; border: medium solid #FFFFFF; height: 28px } --- 57,75 ---- */ td.rowpic { ! background-color: #FFFFFF; ! background-image: url('../../install/templates/subSilver/images/cellpic2.jpg'); ! background-repeat: repeat-y } /* Header cells - the blue and silver gradient backgrounds */ ! th { ! color: #FFA34F; font-size: 11px; font-weight : bold; ! background-color: #006699; height: 25px; ! background-image: url('../../install/templates/subSilver/images/cellpic3.gif'); } td.cat, td.catHead, td.catSides, td.catLeft, td.catRight, td.catBottom { ! background-image: url('../../install/templates/subSilver/images/cellpic1.gif'); ! background-color:#D1D7DC; border: medium solid #FFFFFF; height: 28px } *************** *** 74,100 **** */ td.cat, td.catHead, td.catBottom { ! height: 29px; ! border-width: 0px 0px 0px 0px; } th.thHead, th.thSides, th.thTop, th.thLeft, th.thRight, th.thBottom, th.thCornerL, th.thCornerR { ! font-weight: bold; border: #FFFFFF; border-style: solid; height: 28px; } td.row3Right, td.spaceRow { ! background-color: #D1D7DC; border: #FFFFFF; border-style: solid; } th.thHead, td.catHead { font-size: 12px; border-width: 1px 1px 0px 1px; } ! th.thSides, td.catSides, td.spaceRow { border-width: 0px 1px 0px 1px; } ! th.thRight, td.catRight, td.row3Right { border-width: 0px 1px 0px 0px; } ! th.thLeft, td.catLeft { border-width: 0px 0px 0px 1px; } th.thBottom, td.catBottom { border-width: 0px 1px 1px 1px; } ! th.thTop { border-width: 1px 0px 0px 0px; } th.thCornerL { border-width: 1px 0px 0px 1px; } th.thCornerR { border-width: 1px 1px 0px 0px; } /* The largest text used in the index page title and toptic title etc. */ ! .maintitle { ! font-weight: bold; font-size: 22px; font-family: "Fixedsys, Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; ! text-decoration: none; line-height : 120%; color : #000000; } --- 80,106 ---- */ td.cat, td.catHead, td.catBottom { ! height: 29px; ! border-width: 0px 0px 0px 0px; } th.thHead, th.thSides, th.thTop, th.thLeft, th.thRight, th.thBottom, th.thCornerL, th.thCornerR { ! font-weight: bold; border: #FFFFFF; border-style: solid; height: 28px; } td.row3Right, td.spaceRow { ! background-color: #D1D7DC; border: #FFFFFF; border-style: solid; } th.thHead, td.catHead { font-size: 12px; border-width: 1px 1px 0px 1px; } ! th.thSides, td.catSides, td.spaceRow { border-width: 0px 1px 0px 1px; } ! th.thRight, td.catRight, td.row3Right { border-width: 0px 1px 0px 0px; } ! th.thLeft, td.catLeft { border-width: 0px 0px 0px 1px; } th.thBottom, td.catBottom { border-width: 0px 1px 1px 1px; } ! th.thTop { border-width: 1px 0px 0px 0px; } th.thCornerL { border-width: 1px 0px 0px 1px; } th.thCornerR { border-width: 1px 1px 0px 0px; } /* The largest text used in the index page title and toptic title etc. */ ! .maintitle { ! font-weight: bold; font-size: 22px; font-family: "Fixedsys, Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; ! text-decoration: none; line-height : 120%; color : #000000; } *************** *** 105,145 **** .gen, .genmed, .gensmall { color : #000000; } a.gen, a.genmed, a.gensmall { color: #006699; text-decoration: none; } ! a.gen:hover, a.genmed:hover, a.gensmall:hover { color: #DD6900; text-decoration: underline; } /* The register, login, search etc links at the top of the page */ ! .mainmenu { font-size : 11px; color : #000000 } ! a.mainmenu { text-decoration: none; color : #006699; } a.mainmenu:hover{ text-decoration: underline; color : #DD6900; } /* Forum category titles */ ! .cattitle { font-weight: bold; font-size: 12px ; letter-spacing: 1px; color : #006699} ! a.cattitle { text-decoration: none; color : #006699; } a.cattitle:hover{ text-decoration: underline; } /* Forum title: Text and link to the forums used in: index.php */ ! .forumlink { font-weight: bold; font-size: 12px; color : #006699; } ! a.forumlink { text-decoration: none; color : #006699; } a.forumlink:hover{ text-decoration: underline; color : #DD6900; } /* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */ ! .nav { font-weight: bold; font-size: 11px; color : #000000;} ! a.nav { text-decoration: none; color : #006699; } ! a.nav:hover { text-decoration: underline; } /* titles for the topics: could specify viewed link colour too */ ! .topictitle, h1, h2 { font-weight: bold; font-size: 11px; color : #000000; } a.topictitle:link { text-decoration: none; color : #006699; } a.topictitle:visited { text-decoration: none; color : #5493B4; } ! a.topictitle:hover { text-decoration: underline; color : #DD6900; } /* Name of poster in viewmsg.php and viewtopic.php and other places */ ! .name { font-size : 11px; color : #000000;} /* Location, number of posts, post date etc */ ! .postdetails { font-size : 10px; color : #000000; } /* The content of the posts (body of text) */ .postbody { font-size : 12px; line-height: 18px} ! a.postlink:link { text-decoration: none; color : #006699 } a.postlink:visited { text-decoration: none; color : #5493B4; } a.postlink:hover { text-decoration: underline; color : #DD6900} --- 111,151 ---- .gen, .genmed, .gensmall { color : #000000; } a.gen, a.genmed, a.gensmall { color: #006699; text-decoration: none; } ! a.gen:hover, a.genmed:hover, a.gensmall:hover { color: #DD6900; text-decoration: underline; } /* The register, login, search etc links at the top of the page */ ! .mainmenu { font-size : 11px; color : #000000 } ! a.mainmenu { text-decoration: none; color : #006699; } a.mainmenu:hover{ text-decoration: underline; color : #DD6900; } /* Forum category titles */ ! .cattitle { font-weight: bold; font-size: 12px ; letter-spacing: 1px; color : #006699} ! a.cattitle { text-decoration: none; color : #006699; } a.cattitle:hover{ text-decoration: underline; } /* Forum title: Text and link to the forums used in: index.php */ ! .forumlink { font-weight: bold; font-size: 12px; color : #006699; } ! a.forumlink { text-decoration: none; color : #006699; } a.forumlink:hover{ text-decoration: underline; color : #DD6900; } /* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */ ! .nav { font-weight: bold; font-size: 11px; color : #000000;} ! a.nav { text-decoration: none; color : #006699; } ! a.nav:hover { text-decoration: underline; } /* titles for the topics: could specify viewed link colour too */ ! .topictitle, h1, h2 { font-weight: bold; font-size: 11px; color : #000000; } a.topictitle:link { text-decoration: none; color : #006699; } a.topictitle:visited { text-decoration: none; color : #5493B4; } ! a.topictitle:hover { text-decoration: underline; color : #DD6900; } /* Name of poster in viewmsg.php and viewtopic.php and other places */ ! .name { font-size : 11px; color : #000000;} /* Location, number of posts, post date etc */ ! .postdetails { font-size : 10px; color : #000000; } /* The content of the posts (body of text) */ .postbody { font-size : 12px; line-height: 18px} ! a.postlink:link { text-decoration: none; color : #006699 } a.postlink:visited { text-decoration: none; color : #5493B4; } a.postlink:hover { text-decoration: underline; color : #DD6900} *************** *** 147,176 **** /* Quote & Code blocks */ .code { ! font-family: Fixedsys, Courier, 'Courier New', sans-serif; font-size: 11px; color: #006600; ! background-color: #FAFAFA; border: #D1D7DC; border-style: solid; ! border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px } .quote { ! font-family: Fixedsys, Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #444444; line-height: 125%; ! background-color: #FAFAFA; border: #D1D7DC; border-style: solid; ! border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px } /* Copyright and bottom info */ ! .copyright { font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #444444; letter-spacing: -1px;} ! a.copyright { color: #444444; text-decoration: none;} a.copyright:hover { color: #000000; text-decoration: underline;} /* Form elements */ input, textarea, select { ! color : #000000; ! font: normal 11px Fixedsys, Verdana, Arial, Helvetica, sans-serif; ! border-color : #000000; } /* The text input fields background colour */ input.post, textarea.post, select { ! background-color : #FFFFFF; } --- 153,182 ---- /* Quote & Code blocks */ .code { ! font-family: Fixedsys, Courier, 'Courier New', sans-serif; font-size: 11px; color: #006600; ! background-color: #FAFAFA; border: #D1D7DC; border-style: solid; ! border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px } .quote { ! font-family: Fixedsys, Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #444444; line-height: 125%; ! background-color: #FAFAFA; border: #D1D7DC; border-style: solid; ! border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px } /* Copyright and bottom info */ ! .copyright { font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #444444; letter-spacing: -1px;} ! a.copyright { color: #444444; text-decoration: none;} a.copyright:hover { color: #000000; text-decoration: underline;} /* Form elements */ input, textarea, select { ! color : #000000; ! font: normal 11px Fixedsys, Verdana, Arial, Helvetica, sans-serif; ! border-color : #000000; } /* The text input fields background colour */ input.post, textarea.post, select { ! background-color : #FFFFFF; } *************** *** 179,197 **** /* The buttons used for bbCode styling in message post */ input.button { ! background-color : #EFEFEF; ! color : #000000; ! font-size: 11px; font-family: Fixexsys, Verdana, Arial, Helvetica, sans-serif; } /* The main submit button option */ input.mainoption { ! background-color : #FAFAFA; ! font-weight : bold; } /* None-bold submit button */ input.liteoption { ! background-color : #FAFAFA; ! font-weight : normal; } --- 185,203 ---- /* The buttons used for bbCode styling in message post */ input.button { ! background-color : #EFEFEF; ! color : #000000; ! font-size: 11px; font-family: Fixexsys, Verdana, Arial, Helvetica, sans-serif; } /* The main submit button option */ input.mainoption { ! background-color : #FAFAFA; ! font-weight : bold; } /* None-bold submit button */ input.liteoption { ! background-color : #FAFAFA; ! font-weight : normal; } *************** *** 205,300 **** @import url("templates/subSilver/formIE.css"); --> </style> <script language="Javascript" type="text/javascript"> <!-- ! if ( 0 ) ! { ! window.open('privmsg.php?mode=newpm', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');; ! } //--> </script> </head> - <body bgcolor="#FFFFFF" text="#000000"> <table height="1"> ! <tr> ! <td height="41" style="font-family: Arial; font-size: 18pt; font-weight: bold; letter-spacing: 1pt" id="111"><b> ! <font face="Arial" size="5">MX Module - ! mx_shotcast</font></b></td> ! </tr> ! <tr> ! <td height="45"><p><b> ! <font size="2" face="Fixedsys">v. 1.0 RC 2</font></b></p> ! <p><font face="Fixedsys"> ! <span style="font-size: 16px; line-height: normal; font-weight:bold">Module</span> ! <br /> ! - for Mx Portal v. 2.8.x</font></p> ! <p><font face="Fixedsys"><strong>Author</strong><br /> ! Niklas Pull and OryNider (Bodin Florin Ciprian)<br /> ! <br /> ! <span style="font-weight: bold">Description</span> <br /> ! The MX Module is an addon product for the MX-portal. This is the ! shotcast version of mx_radio. The player can play one stream brotcasted ! by a shotcast server that can be configured in AdminCP (host, port and ! password). The embed's are hidden in iframes ! with autostarts, so the pricipal is very ! simple. It also uses an ajax script to update ! the song title. ! Users most have instaled the latest media player (Windows ! Media Player 10+) or Real One Player, but Real player version doesnt not worked with Firefox and Netscape and should be fixed now. ! </font></p> ! <p><font face="Fixedsys"><strong>Features</strong> <br /> ! Easy to use and install/uninstall module.</font></p> ! <p> <font face="Fixedsys"> <br /> ! I. <a href="#install">Installation instructions</a> <br /> ! <br /> ! II. <a href="#themes">Additional styles</a> <br /> ! <br /> ! III. <a href="#languages">Additional languages</a><br /> ! <br /> ! <a target="_blank" class="postlink" href="http://pubory.uv.ro/potal/">DEMO ! </a> <br /> ! <br /><a name="install"> ! <br /> ! <span style="font-weight: bold">I. Installation Instructions</span> <br /> ! To install this module, follow these instructions.</a></font></p> ! <font face="Fixedsys">To summarize:<br> ! If installing from scratch, use import module in the AdminCP.<br> ! If upgrading, uninstall, then reinstall from AdminCP<br> ! If uninstalling, use the delete feature in the AdminCP</font></p> ! <p><font face="Fixedsys">Note: If upgrading,uninstall module without delting db entries, or else ! you'll lose all module data!<br /> ! <br /> ! <br /> ! <span class="gensmall"><a href="#top" onclick="window.scrollTo(0,0); return false"> ! <font size="2">Back to Top</font></a></span><font size="2"> </font> <br /> ! <br /><b>II. Additional Styles</b> <br> ! This module is compatible with any theme/style. <br> ! <a name="themes"> </font></p> ! <p style="margin-top: 0; margin-bottom: 0"><font face="Tahoma"> ! <span class="gensmall"><a href="#top" onclick="window.scrollTo(0,0); return false"> ! <font size="2">Back to Top</font></a></span><font size="2"> </font> ! <br /><a name="languages"> ! <br /> ! <span style="font-weight: bold">III. Additional Languages</span> <br /> ! First check to see if your language is already translated. </a> <br /> ! <br /> ! If exists, download and install in the modules/mx_shotcast/language ! folder. If not, duplicate (copy and paste) any included language file, ! rename to match your language, translate using any texteditor, save and ! upload. <br /> ! <br /> ! <a href="#top"> Back to Top</a> </font> ! ! <p> </p> ! </td> ! </tr> ! <tr> ! <td height="1"> <font face="Fixedsys">/Mx_ShotCast Module Team</font></td> ! </tr> ! <tr> ! <td height="1"></td> ! </tr> ! </table> </body> ! </html> \ No newline at end of file --- 211,315 ---- @import url("templates/subSilver/formIE.css"); --> + /*]]>*/ </style> + <script language="Javascript" type="text/javascript"> + //<![CDATA[ <!-- ! if ( 0 ) ! { ! window.open('privmsg.php?mode=newpm', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');; ! } //--> + //]]> </script> </head> <body bgcolor="#FFFFFF" text="#000000"> <table height="1"> ! <tr> ! <td height="41" style= ! "font-family: Arial; font-size: 18pt; font-weight: bold; letter-spacing: 1pt" ! id="111"><b><font face="Arial" size="5">MX Module - ! mx_shotcast</font></b></td> ! </tr> ! <tr> ! <td height="45"> ! <p><b><font size="2" face="Fixedsys">v. 1.0.0</font></b></p> ! <p><font face="Fixedsys"><span style= ! "font-size: 16px; line-height: normal; font-weight:bold">Module</span><br /> ! ! - for Mx Portal v. 2.8.1</font></p> ! <p><font face="Fixedsys"><strong>Author</strong><br /> ! Niklas Pull and OryNider (Bodin Florin Ciprian)<br /> ! <br /> ! <span style="font-weight: bold">Description</span><br /> ! The MX Module is an addon product for the MX-portal. This is the ! shotcast version of mx_radio. The player can play one stream ! brotcasted by a shotcast server that can be configured in AdminCP ! (host, port and password). The embed's are hidden in iframes with ! autostarts, so the pricipal is very simple. It also uses an ajax ! script to update the song title. Users most have instaled the ! latest media player (Windows Media Player 10+) or Real One Player, ! but Real player version doesnt not worked with Firefox and Netscape ! and should be fixed now.</font></p> ! <p><font face="Fixedsys"><strong>Features</strong><br /> ! Easy to use and install/uninstall module.</font></p> ! <p><font face="Fixedsys"><br /> ! I. <a href="#install">Installation instructions</a><br /> ! <br /> ! II. <a href="#themes">Additional styles</a><br /> ! <br /> ! III. <a href="#languages">Additional languages</a><br /> ! <br /> ! <a target="_blank" class="postlink" href= ! "http://pubory.uv.ro/potal/">DEMO</a><br /> ! <br /> ! <a name="install"><br /> ! <span style="font-weight: bold">I. Installation ! Instructions</span><br /> ! To install this module, follow these instructions.</a></font></p> ! <font face="Fixedsys">To summarize:<br /> ! If installing from scratch, use import module in the AdminCP.<br /> ! If upgrading, uninstall, then reinstall from AdminCP<br /> ! If uninstalling, use the delete feature in the AdminCP</font> ! <p><font face="Fixedsys">Note: If upgrading,uninstall module ! without delting db entries, or else you'll lose all module ! data!<br /> ! <br /> ! <br /> ! <span class="gensmall"><a href="#top" onclick= ! "window.scrollTo(0,0); return false"><font size="2">Back to ! Top</font></a></span><br /> ! <br /> ! <b>II. Additional Styles</b><br /> ! This module is compatible with any theme/style.<br /> ! <a name="themes"> </a></font></p> ! <p style="margin-top: 0; margin-bottom: 0"><font face= ! "Fixedsys"><font face="Tahoma"><span class="gensmall"><a href= ! "#top" onclick="window.scrollTo(0,0); return false"><font size= ! "2">Back to Top</font></a></span><br /> ! <a name="languages"><br /> ! <span style="font-weight: bold">III. Additional ! Languages</span><br /> ! First check to see if your language is already ! translated.</a><br /> ! <br /> ! If exists, download and install in the modules/mx_shotcast/language ! folder. If not, duplicate (copy and paste) any included language ! file, rename to match your language, translate using any ! texteditor, save and upload.<br /> ! <br /> ! <a href="#top">Back to Top</a></font></font></p> ! <p><font face="Fixedsys"> </font></p> ! </td> ! </tr> ! <tr> ! <td height="1"><font face="Fixedsys">/Mx_ShotCast Module ! Team</font></td> ! </tr> ! <tr> ! <td height="1"></td> ! </tr> ! </table> </body> ! </html> Index: db_uninstall.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/db_uninstall.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** db_uninstall.php 8 Feb 2008 23:44:04 -0000 1.3 --- db_uninstall.php 24 Feb 2008 01:14:04 -0000 1.4 *************** *** 19,23 **** // Start session management // ! $mx_user->init($user_ip, PAGE_INDEX); if( !$userdata['session_logged_in'] ) --- 19,23 ---- // Start session management // ! $mx_user->init($user_ip, PAGE_INDEX); if( !$userdata['session_logged_in'] ) *************** *** 62,64 **** echo '<tr><td class="row1" align="center"><span class="gen">' . $message . '</span></td></tr>'; echo '</table> <br />'; ! ?> \ No newline at end of file --- 62,64 ---- echo '<tr><td class="row1" align="center"><span class="gen">' . $message . '</span></td></tr>'; echo '</table> <br />'; ! ?> Index: cur_song.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/cur_song.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** cur_song.php 2 Oct 2007 04:40:03 -0000 1.2 --- cur_song.php 24 Feb 2008 01:14:04 -0000 1.3 *************** *** 1,13 **** <?php ! define( 'IN_PORTAL', 1 ); ! $module_root_path = './'; ! $phpEx = substr(strrchr(__FILE__, '.'), 1); ! include($module_root_path . 'shotcast_config.'.$phpEx); ! include($module_root_path . 'getinfo.'.$phpEx); ! $song[0] = !empty($song[0]) ? $song[0] : $text[6]; ?> --- 1,45 ---- <?php ! if( !defined('IN_PORTAL') || !is_object($mx_block)) ! { ! define('IN_PORTAL', true); ! $mx_root_path = "../../"; ! $module_root_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 ! // ! ! $title = 'Media Player Radio'; ! $block_size = ( isset($block_size) && !empty($block_size) ? $block_size : '315' ); ! $is_block = FALSE; ! } ! else ! { ! // ! // Read block Configuration ! // ! ! $title = $mx_block->block_info['block_title']; ! $block_size = ( isset($block_size) && !empty($block_size) ? $block_size : '100%' ); ! ! if( is_object($mx_block)) ! { ! $is_block = TRUE; ! } ! } ! ! define('IN_SHOTCAST', true); ! require($module_root_path .'includes/common.'.$phpEx); ! require($module_root_path . 'getinfo.'.$phpEx); ?> Index: db_install.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/db_install.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** db_install.php 8 Feb 2008 23:44:04 -0000 1.3 --- db_install.php 24 Feb 2008 01:14:04 -0000 1.4 *************** *** 35,39 **** } ! $mx_module_version = '1.0'; $mx_module_copy = 'mxBB <i> - Shotcast</i> module by OryNider & <a href="http://www.mxbb.net" target="_blank">Mx Team</a>'; --- 35,39 ---- } ! $mx_module_version = '1.0.8'; $mx_module_copy = 'mxBB <i> - Shotcast</i> module by OryNider & <a href="http://www.mxbb.net" target="_blank">Mx Team</a>'; *************** *** 58,69 **** $sql[] = "CREATE TABLE " . $mx_table_prefix . "shotcast_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 . "shotcast_config ( config_name , config_value ) VALUES ('shotcast_name', 'The Joy Fm')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('shotcast_host', '209.85.88.199')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('shotcast_port', '10040')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('shotcast_pass', 'thejoyfm')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('play_list', 'listen.pls')"; --- 58,69 ---- $sql[] = "CREATE TABLE " . $mx_table_prefix . "shotcast_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 . "shotcast_config ( config_name , config_value ) VALUES ('shotcast_name', 'Happy Radio')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('shotcast_host', 'Happy.Radio.Su')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('shotcast_port', '8000')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('shotcast_pass', 'thejoyfm')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('play_list', 'listen.pls')"; *************** *** 72,75 **** --- 72,76 ---- $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('show_listen_select', '1')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('force_online', '1')"; + $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('stream_type', 'icy')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('show_status', 'true')"; *************** *** 95,97 **** echo "</table><br />"; ! ?> \ No newline at end of file --- 96,98 ---- echo "</table><br />"; ! ?> Index: radio_update.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/radio_update.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** radio_update.php 2 Oct 2007 04:40:11 -0000 1.2 --- radio_update.php 24 Feb 2008 01:14:06 -0000 1.3 *************** *** 19,29 **** // ini_set( 'display_errors', '1' ); ! define( 'IN_PORTAL', 1 ); ! $module_root_path = './'; ! $phpEx = substr(strrchr(__FILE__, '.'), 1); - include($module_root_path . 'shotcast_config.'.$phpEx); - include($module_root_path . 'getinfo.'.$phpEx); --- 19,64 ---- // ini_set( 'display_errors', '1' ); ! if( !defined('IN_PORTAL') || !is_object($mx_block)) ! { ! define('IN_PORTAL', true); ! ! $mx_root_path = "../../"; ! $module_root_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 ! // ! ! $title = 'Media Player Radio'; ! $block_size = ( isset($block_size) && !empty($block_size) ? $block_size : '315' ); ! $is_block = FALSE; ! } ! else ! { ! // ! // Read block Configuration ! // ! ! $title = $mx_block->block_info['block_title']; ! $block_size = ( isset($block_size) && !empty($block_size) ? $block_size : '100%' ); ! ! if( is_object($mx_block)) ! { ! $is_block = TRUE; ! } ! } ! ! define('IN_SHOTCAST', true); ! require($module_root_path .'includes/common.'.$phpEx); ! require($module_root_path . 'getinfo.'.$phpEx); Index: radioplayer.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/radioplayer.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** radioplayer.php 8 Feb 2008 23:44:04 -0000 1.3 --- radioplayer.php 24 Feb 2008 01:14:06 -0000 1.4 *************** *** 1,3 **** ! <?php /** * --- 1,3 ---- ! <? /** * *************** *** 9,24 **** */ ! define( 'IN_PORTAL', 1 ); ! $module_root_path = './'; ! $phpEx = substr(strrchr(__FILE__, '.'), 1); ! include($module_root_path . 'shotcast_config.'.$phpEx); ! include($module_root_path . 'getinfo.'.$phpEx); - $state = ($text[1] == 1) ? 'Up' : 'Down'; - $text[2] = !empty($text[2]) ? $text[2] : $currentlisteners; - $text[5] = !empty($text[5]) ? $text[5] : $bitrate; - $song[0] = !empty($song[0]) ? $song[0] : $text[6]; user_listensc($nick); ?> --- 9,54 ---- */ ! if( !defined('IN_PORTAL') || !is_object($mx_block)) ! { ! define('IN_PORTAL', true); ! $mx_root_path = "../../"; ! $module_root_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 ! // ! ! $title = 'Media Player Radio'; ! $block_size = ( isset($block_size) && !empty($block_size) ? $block_size : '315' ); ! $is_block = FALSE; ! } ! else ! { ! // ! // Read block Configuration ! // ! ! $title = $mx_block->block_info['block_title']; ! $block_size = ( isset($block_size) && !empty($block_size) ? $block_size : '100%' ); ! ! if( is_object($mx_block)) ! { ! $is_block = TRUE; ! } ! } ! ! define('IN_SHOTCAST', true); ! require($module_root_path .'includes/common.'.$phpEx); ! require($module_root_path . 'getinfo.'.$phpEx); user_listensc($nick); ?> *************** *** 32,97 **** <meta name="author" content="Radio Player originaly made by: Niklas Pull - http://pull.zapto.org" /> <title>Radio Player :: <?=$station;?></title> <style type="text/css"> <!-- ! body {margin:0; padding: 0; BACKGROUND-IMAGE: url(images/iframe_bg.png); font-family: Verdana; font-size: 10px;} ! a{text-decoration:none; background-color:inherit; color:#26c;} ! a:hover{text-decoration:underline;} ! #main {width: 350px; height: 100px; position: relative; left: 0px; top: 0px; margin:0; padding:0; background-image: url(images/player.png); background-repeat: no-repeat; background-attachment: fixed; background-color: #eeeeee} ! #display {width: 315px; height: 39px; position: relative; left: 18px; top: 18px;} ! #display_low {width: 310px; height: 21px; position: relative; left: 3px; top: 3px;} ! #bottom {width: 350px; height: 39px; position: relative; left: 0px; top: 22px;} ! #songtitle {width: 310px; height: 12px; position: relative; left: 3px; top: 3px;} ! #station {width: 150px; position: relative; left: 23px; top: 30px;} ! #bitrate {width: 55px; position: relative; left: 185px; top: 18px;} ! #equalizer {width: 55px; position: relative; left: 280px; top: 0px;} ! #icon {width: 55px; position: relative; left: 300px; top: 10px;} ! #iframe {width: 0px; position: relative; left: 0px; top: 0px;} ! .table {font-family: Verdana; font-size: 10px;} --> </style> ! <script> ! function createRequestObject() { ! var ro; ! var browser = navigator.appName; ! if(browser == "Microsoft Internet Explorer"){ ! ro = new ActiveXObject("Microsoft.XMLHTTP"); ! }else{ ! ro = new XMLHttpRequest(); ! } ! return ro; ! } ! ! var http = createRequestObject(); ! function sndReq() { ! http.open('get', 'cur_song.php'); ! http.onreadystatechange = handleResponse; ! http.send(null); ! setTimeout("sndReq()", 2000); } ! ! function handleResponse() { ! if(http.readyState == 4){ ! var response = http.responseText; ! if (response != responseold || responsecheck != 1) { ! var responsecheck = 1; ! document.getElementById("messages").innerHTML = http.responseText; ! var responseold = response; ! } ! } } </script> </head> ! <body onLoad="javascript:sndReq();"> <div id="iframe"> <SCRIPT language="javascript"> <!-- ! document.writeln("<iframe width=\"350\" height=\"1\""); document.writeln(" id=\"myiframe\" name=\"myiframe\""); ! document.writeln(" src=\"radio_update.php\""); document.writeln(" scrolling=\"no\""); ! document.writeln(" style=\"width:350px;height:1px;border:1px\">"); document.writeln("Sorry, your browser doesn't seem to support IFrames!"); document.writeln("</iframe>"); --- 62,204 ---- <meta name="author" content="Radio Player originaly made by: Niklas Pull - http://pull.zapto.org" /> <title>Radio Player :: <?=$station;?></title> + <? //include($module_root_path . "stylesheet.$phpEx");?> <style type="text/css"> <!-- ! body { ! margin: 0; ! padding: 0; ! font-family: Verdana; ! font-size: 10px; ! BACKGROUND-IMAGE: url('<?=$module_root_path;?>images/<?=SKIN;?>/playerbg.png'); ! } ! a{ ! text-decoration: none; ! } ! #main { ! width: 350px; ! height: 100px; ! position: relative; ! left: 0px; ! top: 0px; ! margin:0; ! padding:0; ! background-image: url('<?=$module_root_path;?>images/<?=SKIN;?>/player.png'); ! background-repeat: no-repeat; ! background-attachment: fixed; ! background-color: #eeeeee; ! } ! #display { ! width: 315px; ! height: 39px; ! position: relative; ! left: 18px; ! top: 18px; ! } ! #display_low { ! width: 310px; ! height: 21px; ! position: relative; ! left: 3px; ! top: 3px; ! } ! #bottom { ! width: 350px; ! height: 39px; ! position: relative; ! left: 0px; ! top: 22px; ! } ! #songtitle { ! width: 310px; ! height: 12px; ! position: relative; ! left: 3px; ! top: 3px; ! } ! #station { ! width: 150px; ! position: relative; ! left: 23px; ! top: 30px; ! } ! #bitrate { ! width: 55px; ! position: relative; ! left: 185px; ! top: 18px; ! } ! #equalizer { ! width: 55px; ! position: relative; ! left: 280px; ! top: 0px; ! } ! #icon { ! width: 55px; ! position: relative; ! left: 300px; ! top: 10px; ! } ! #iframe { ! width: 0px; ! position: relative; ! left: 0px; ! top: 0px; ! } ! table { ! font-family: Verdana; ! font-size: 10px; ! } --> </style> ! <!-- script language="javascript" type="text/javascript" src="<?=$module_root_path;?>templates/radioplayer.js"></script --> ! <script language="javascript"> ! function Ajax(){ ! var xmlHttp; ! try{ ! xmlHttp=new XMLHttpRequest(); ! } ! catch (e){ ! try{ ! xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); ! } ! catch (e){ ! try{ ! xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); ! } ! catch (e){ ! return false; ! } ! } ! } ! xmlHttp.onreadystatechange=function(){ ! if(xmlHttp.readyState==4){ ! document.getElementById('songtitle').innerHTML=xmlHttp.responseText; ! setTimeout('Ajax()',25000); ! } } ! xmlHttp.open("GET","<?=$module_root_path;?>cur_song.<?=$phpEx;?>",true); ! xmlHttp.send(null); } + window.onload=function(){ + setTimeout('Ajax()',1); + } + function radio_player() { + props=window.open('<?=$module_root_path;?>radioplayer.<?=$phpEx;?>?lang=&z=wmp', 'poppage', 'toolbars=0, scrollbars=0, location=0, statusbars=0, menubars=0, resizable=1, width=350, height=100 left = 100, top = 100'); + } </script> </head> ! <body> <div id="iframe"> <SCRIPT language="javascript"> <!-- ! document.writeln("<iframe width=\"350\" height=\"0\""); document.writeln(" id=\"myiframe\" name=\"myiframe\""); ! document.writeln(" src=\"<?=$module_root_path;?>radio_update.<?=$phpEx;?>\""); document.writeln(" scrolling=\"no\""); ! document.writeln(" style=\"width:350px;height:0px;border:0px\">"); document.writeln("Sorry, your browser doesn't seem to support IFrames!"); document.writeln("</iframe>"); *************** *** 102,150 **** <div id="main"> ! <div id="display"> ! <div id="songtitle"> ! <div id="messages"> ! </div> ! </div> ! <div id="display_low"> ! <table border="0" cellpadding="0" cellspacing="0" width="300" height="21"> ! <tr class="table"> ! <td align="left" valign="bottom"> ! <i>Station: <b><?=$servertitle;?></b></i> ! </td> ! <td align="center" valign="bottom"> ! <?=$bitrate;?> kbps ! </td> ! <td align="right" valign="bottom"> ! <img src="images/equalizer_<?=$status;?>.gif" height="21"> ! </td> ! </tr> ! </table> ! </div> ! </div> ! <div id="bottom"> ! <table border="0" cellpadding="0" cellspacing="0" width="350" height="39"> ! <tr class="table"> ! <td width="193"> ! <img src="images/player2.png" width="193" height="39" usemap="#play" border="0"> ! </td> ! <td width="157" height="39" background="images/player3_<?=$z;?>.png"> ! Switch to: <a href="radioplayer.php?z=<?=$mode;?>"><img src="images/small_<?=$mode;?>.png" border="0"></a> ! </td> ! </tr> ! </table> ! </div> </div> <div id="iframe"> ! <iframe src="<?=$status;?>_<?=$z;?>.php" name="stream" width="0" height="0"></iframe> </div> <map name="play"> ! <area shape="rect" alt="Stop" coords="55,0,78,27" href="radioplayer.php?z=<?=$z;?>" target="_self"> ! <area shape="rect" alt="Play" coords="21,0,47,28" href="radioplayer.php?z=<?=$z;?>&status=play" target="_self"> </map> </body> ! </html> \ No newline at end of file --- 209,276 ---- <div id="main"> ! <div id="display"> ! <div id="songtitle"> ! <? ! if($text[1] == 0) ! { ! echo "<b>Radio station currently Offline.</b>"; ! } ! else ! { ! echo "Checking for song title..."; ! } ! ?> ! </div> ! <div id="display_low"> ! <table border="0" cellpadding="0" cellspacing="0" width="300" height="21"> ! <tr class="table"> ! <td align="left" valign="bottom"> ! <i>Station: <b><?=$station;?></b></i> ! </td> ! <td align="center" valign="bottom"> ! <?=$text[5];?> kbps ! </td> ! <td align="right" valign="bottom"> ! <img src="<?=$module_root_path;?>images/equalizer_<?=$status;?>.gif" height="21"> ! </td> ! </tr> ! </table> ! </div> ! </div> ! <div id="bottom"> ! <table border="0" cellpadding="0" cellspacing="0" width="350" height="39"> ! <tr class="table"> ! <td width="193"> ! <img src="<?=$module_root_path;?>images/<?=SKIN;?>/player2.png" width="193" height="39" usemap="#play" border="0"> ! </td> ! <td width="157" height="39" background="<?=$module_root_path;?>images/<?=SKIN;?>/player3_<?=$player;?>.png"> ! Switch to: ! <a href="<?=$module_root_path;?>radioplayer.<?=$phpEx;?>?player=<?=$changeto;?>"> ! <img src="<?=$module_root_path;?>images/<?=SKIN;?>/small_<?=$changeto;?>.png" border="0"> ! </a> ! </td> ! </tr> ! </table> ! </div> </div> <div id="iframe"> ! <? ! if($status == 'play') ! { ! ?> ! <iframe src="<?=$module_root_path;?><?=$status;?>_<?=$player;?>.<?=$phpEx;?>" name="stream" width="0" height="0"></iframe> ! <? ! } ! ?> </div> <map name="play"> ! <area shape="rect" alt="Stop" coords="55,0,78,27" href="<?=$module_root_path;?>radioplayer.<?=$phpEx;?>?player=<?=$player;?>" target="_self"> ! <area shape="rect" alt="Play" coords="21,0,47,28" href="<?=$module_root_path;?>radioplayer.<?=$phpEx;?>?player=<?=$player;?>&status=play" target="_self"> </map> + </body> ! </html> Index: shotcast_last10.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/shotcast_last10.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** shotcast_last10.php 8 Feb 2008 23:44:05 -0000 1.3 --- shotcast_last10.php 24 Feb 2008 01:14:06 -0000 1.4 *************** *** 1,3 **** ! <?php /** * --- 1,3 ---- ! <?php /** * *************** *** 31,86 **** mx_message_die(GENERAL_ERROR, "Could not find mx_shotcast includes folder.", "", __LINE__, __FILE__); } ! @define('_SHOTCAST_CONFIG', true); include_once($module_root_path . 'includes/common.'.$phpEx); include_once($module_root_path . 'getinfo.'.$phpEx); ! $bgcolor = '#ffffff'; // Page background color ! $tablew = '100%'; // Table width ! $tableh = '1'; ! $toprow = '#c0c0c0'; // Top background color ! $bottom = '#ffffff'; // Bottom background color ! $border = '#000000'; // Border color ! $thickness = '2'; // Border thickness ! $padding = '4'; // Cell padding ! $font = 'Verdana'; // Font ! $fontsize = '2'; // Font size $block_size = ( isset($block_size) && !empty($block_size) ? $block_size : '100%' ); ! $refresh = '30'; // How often should it refresh? (seconds) ! // Return JavaScript or HTML ! $jsOutput=FALSE; // TRUE=js | FALSE=HTML ! // try to get the target from the url... /* ! $host = $_REQUEST[host]; ! if (!$host) $host = $yourIP; ! $port = $_REQUEST[port]; ! if (!$port) $port = $yourPORT; */ ! $host = $shotcast_config['shotcast_host']; // IP adress or domain $port = $shotcast_config['shotcast_port']; // Port if( empty($lang['Before_that_you_heard']) && empty($lang['Now_Playing']) ) ! { $lang['Before_that_you_heard'] = "Before that you heard"; ! $lang['Now_Playing'] = "Now Playing"; ! $lang['Off_Air'] = "The server is <b>Off-Air</b>, try again later."; } ! $lf = chr(10); // 0x0A [\n] ! // The lastN is configurable at the DNAS with, ShowLastSongs= it defaults to 10 and has a maximum of 20 ! $t_max = $_REQUEST[n]; ! if (!t_max || $t_max<1 || $t_max>19) $t_max=10; ! //19 is the max here because 20=current_track+19 ! // Let's get /index.html first... to keep this short, there is no code to handle the dnas being down ! // or not running, so the script will display nothing in those cases. ! $connect_timeout=5; ! $success=0; --- 31,86 ---- mx_message_die(GENERAL_ERROR, "Could not find mx_shotcast includes folder.", "", __LINE__, __FILE__); } ! define('IN_SHOTCAST', true); include_once($module_root_path . 'includes/common.'.$phpEx); include_once($module_root_path . 'getinfo.'.$phpEx); ! $bgcolor = '#ffffff'; // Page background color ! $tablew = '100%'; // Table width ! $tableh = '1'; ! $toprow = '#c0c0c0'; // Top background color ! $bottom = '#ffffff'; // Bottom background color ! $border = '#000000'; // Border color ! $thickness = '2'; // Border thickness ! $padding = '4'; // Cell padding ! $font = 'Verdana'; // Font ! $fontsize = '2'; // Font size $block_size = ( isset($block_size) && !empty($block_size) ? $block_size : '100%' ); ! $refresh = '30'; // How often should it refresh? (seconds) ! // Return JavaScript or HTML ! $jsOutput=FALSE; // TRUE=js | FALSE=HTML ! // try to get the target from the url... /* ! $host = $_REQUEST[host]; ! if (!$host) $host = $yourIP; ! $port = $_REQUEST[port]; ! if (!$port) $port = $yourPORT; */ ! $host = $shotcast_config['shotcast_host']; // IP adress or domain $port = $shotcast_config['shotcast_port']; // Port if( empty($lang['Before_that_you_heard']) && empty($lang['Now_Playing']) ) ! { $lang['Before_that_you_heard'] = "Before that you heard"; ! $lang['Now_Playing'] = "Now Playing"; ! $lang['Off_Air'] = "The server is <b>Off-Air</b>, try again later."; } ! $lf = chr(10); // 0x0A [\n] ! // The lastN is configurable at the DNAS with, ShowLastSongs= it defaults to 10 and has a maximum of 20 ! $t_max = $_REQUEST[n]; ! if (!t_max || $t_max<1 || $t_max>19) $t_max=10; ! //19 is the max here because 20=current_track+19 ! // Let's get /index.html first... to keep this short, there is no code to handle the dnas being down ! // or not running, so the script will display nothing in those cases. ! $connect_timeout=5; ! $success=0; *************** *** 89,258 **** if (@phpversion() < '5.0.0') { $state = "Up"; } ! $fp1 = @fsockopen($host, $port, &$errno, &$errstr, $connect_timeout); //open connection ! if (!$fp1) { //if this fails, I'm done.... ! $er = '<p>' . $lang['Socket_functions_disabled'] . '</p>'; ! @fclose($fp1); ! $success++; ! } ! else { ! $er = ''; ! $request="GET /index.html HTTP/1.1\r\nHost:" . $host . ":" . $port . "\r\nUser-Agent: SHOUTcast DNAS Status [index] * (Mozilla/PHP)\r\nConnection: close\r\n\r\n"; //get index.html ! @fputs($fp1,$request,strlen($request)); ! $page=''; ! while(!feof($fp1)) ! { ! $page .= fread($fp1, 16384); ! } ! @fclose($fp1); ! // now I have the entire /index.html in $page -- all I want from here is the current track... ! // (hint-hint) ! $song00 = ereg_replace("</b></td>.*", "", ereg_replace(".*Current Song: </font></td><td><font class=default><b>", "", $page)); // easy, right <img src="images/smilies/smile.gif" border="0" alt=""> ! // now let's get /played.html... (this is kinda long) ! $fp = @fsockopen($host, $port, &$errno, &$errstr, $connect_timeout); ! if(!$fp) ! { ! //if connection could not be made ! @fclose($fp); ! $success++; ! } ! else ! { ! $request="GET /played.html HTTP/1.1\r\nHost: " . $host . ":" . $port . "\r\nUser-Agent: SHOUTcast DNAS Status [played] * (Mozilla/PHP)\r\n"."Connection: close\r\n\r\n"; ! @fputs($fp,$request,strlen($request)); ! $page=''; ! while (!feof($fp)) ! { ! $page .= @fread($fp, 16384); ! } ! @fclose($fp); //close connection ! $played_html=$page; ! if ($played_html) ! { ! $played_html = ereg_replace('<x>','|-|',ereg_replace('</tr>','',ereg_replace('</td><td>','<x>',ereg_replace('<tr><td>','',ereg_replace('</tr>','</tr>' . $lf,ereg_replace('-->','--]',ereg_replace('<!--','[!--',ereg_replace('</table><br><br>.*','',ereg_replace('.*<b>Current Song</b></td></tr>','',$played_html))))))))); ! $xxn = strlen($played_html); ! $r = 2; ! $t_count = 0; ! $reading = 0; ! $track[0] = $song00; while ($r<$xxn & $t_count<=$t_max) ! { ! $cur = substr($played_html,$r,1); ! if ($cur == $lf) { $reading=0; } ! if ($reading == 1) { $track[$t_count] .= $cur; } ! if ($cur == "|" & substr($played_html,$r-1,1) == "-" & substr($played_html,$r-2,1) == "|") ! { ! $reading = 1; ! $t_count++; ! } ! $r++; ! } ! } ! } ! } ! ! ! // I now have $track[0-N] containg the current plus last N tracks... ! // Output time... if (!empty($er)) { ! // I couldn't connect to the DNAS ! $r = 0; $output_string = ''; ! $output_string .= '<table width="' . $tablew . '" height="' . $tableh . '" class="forumline" border="' . $thickness . '" bordercolor="' . $border . '"><tr bgcolor="' . $toprow . '"><td vAlign=top> ! <table width="100%" border="0" cellpadding="' . $padding . '"><tr><td> ! <font face=' . $font . ' size=' . $fontsize . '>' . $er; //Now playing... ! if ($success != 0) { ! $output_string .= '<td><tr>'; } ! if ($success == 0) { while ($r <= $t_max) ! { ! if ($r==0) { ! $output_string .= '<tr><td vAlign=top> ' . $lang['Before_that_you_heard'] . ' :</i><br><br>'; } else { ! $output_string .= str_replace("'", "'",str_replace('"', '"',$track[$r])) . '<br>'; } ! $r++; } } ! // I also want to close the table code now.... ! $output_string .= '</td></tr></font></td></tr></table></td></tr></table>'; ! ! echo $output_string . ''; } ! else if ($success == 0 && $state == "Up") ! { echo " <table width=\" . $block_size . \" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" class=\"forumline\">\n"; ! $r = 0; ! $output_string=''; ! //tweak the output string (the table init) here.... ! $output_string .= '<table width="' . $tablew . '" height="' . $tableh . '" class="forumline" border="' . $thickness . '" bordercolor="' . $border . '"><tr bgcolor="' . $toprow . '"><td vAlign=top> ! <table width="100%" border="0" cellpadding="' . $padding . '"><tr><td vAlign=top> ! <font face=' . $font . ' size=' . $fontsize . '>'; //Now playing... while ($r<=$t_max) ! { ! if ($r==0) { ! $output_string .= $lang['Now_Playing'] . ': <A><b>'.str_replace("'", "'",str_replace('"', '"',$track[$r])).'</b></A></td></tr></table></td></tr><tr><td><table bgcolor=' . $bottom . ' width="100%" border="0" cellpadding="' . $padding . '"><tr><td><br><font face=' . $font . ' size=' . $fontsize . '> ' . $lang['Before_that_you_heard'] . ' :<b><br><br>'; } ! else { ! $output_string .= str_replace("'", "'",str_replace('"', '"',$track[$r])) . '<br>'; } ! $r++; } ! // I also want to close the table code now.... ! $output_string .= '</b></font></td></tr></table></td></tr></table>'; ! ! echo $output_string . ''; ! } ! else ! { ! // I couldn't connect to the DNAS ! $r = 0; $output_string = ''; ! $output_string .= '<table width="' . $tablew . '" height="' . $tableh . '" class="forumline" border="' . $thickness . '" bordercolor="' . $border . '"><tr bgcolor="' . $toprow . '"><td vAlign=top> ! <table width="100%" border="0" cellpadding="' . $padding . '"><tr><td> ! <font face=' . $font . ' size=' . $fontsize . '>' . $lang['Off_Air']; //Now playing... ! if ($success != 0) { ! $output_string .= '<td><tr>'; } ! if ($success == 0) { while ($r <= $t_max) ! { ! if ($r==0) { ! $output_string .= '<tr><td vAlign=top> ' . $lang['Before_that_you_heard'] . ' :</i><br><br>'; } else { ! $output_string .= str_replace("'", "'",str_replace('"', '"',$track[$r])) . '<br>'; } ! $r++; } } ! // I also want to close the table code now.... ! $output_string .= '</td></tr></font></td></tr></table></td></tr></table>'; ! ! echo $output_string . ''; ! } ! ?> \ No newline at end of file --- 89,258 ---- if (@phpversion() < '5.0.0') { $state = "Up"; } ! $fp1 = @fsockopen($host, $port, &$errno, &$errstr, $connect_timeout); //open connection ! if (!$fp1) { //if this fails, I'm done.... ! $er = '<p>' . $lang['Socket_functions_disabled'] . '</p>'; ! @fclose($fp1); ! $success++; ! } ! else { ! $er = ''; ! $request="GET /index.html HTTP/1.1\r\nHost:" . $host . ":" . $port . "\r\nUser-Agent: SHOUTcast DNAS Status [index] * (Mozilla/PHP)\r\nConnection: close\r\n\r\n"; //get index.html ! @fputs($fp1,$request,strlen($request)); ! $page=''; ! while(!feof($fp1)) ! { ! $page .= fread($fp1, 16384); ! } ! @fclose($fp1); ! // now I have the entire /index.html in $page -- all I want from here is the current track... ! // (hint-hint) ! $song00 = ereg_replace("</b></td>.*", "", ereg_replace(".*Current Song: </font></td><td><font class=default><b>", "", $page)); // easy, right <img src="images/smilies/smile.gif" border="0" alt=""> ! // now let's get /played.html... (this is kinda long) ! $fp = @fsockopen($host, $port, &$errno, &$errstr, $connect_timeout); ! if(!$fp) ! { ! //if connection could not be made ! @fclose($fp); ! $success++; ! } ! else ! { ! $request = "GET /played.html HTTP/1.1\r\nHost: " . $host . ":" . $port . "\r\nUser-Agent: SHOUTcast DNAS Status [played] * (Mozilla/PHP)\r\n"."Connection: close\r\n\r\n"; ! @fputs($fp,$request,strlen($request)); ! $page = ''; ! while (!feof($fp)) ! { ! $page .= @fread($fp, 16384); ! } ! @fclose($fp); //close connection ! $played_html = $page; ! if ($played_html) ! { ! $played_html = ereg_replace('<x>',... [truncated message content] |
|
From: OryNider <ory...@us...> - 2008-02-24 01:14:12
|
Update of /cvsroot/mxbb/mx_shotcast/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv12961/includes Modified Files: common.php Log Message: Index: common.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/includes/common.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** common.php 2 Oct 2007 04:40:25 -0000 1.2 --- common.php 24 Feb 2008 01:14:06 -0000 1.3 *************** *** 91,95 **** // ! if( defined('_SHOTCAST_CONFIG') ) { $shotcast_config = array(); --- 91,95 ---- // ! if( defined('IN_SHOTCAST') ) { $shotcast_config = array(); *************** *** 98,102 **** if( !($result = $db->sql_query($sql)) ) { ! message_die(GENERAL_ERROR, "Couldn't query shotcast config table", "", __LINE__, __FILE__, $sql); } else --- 98,102 ---- if( !($result = $db->sql_query($sql)) ) { ! mx_message_die(GENERAL_ERROR, "Couldn't query shotcast config table", "", __LINE__, __FILE__, $sql); } else |