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-01-28 22:21:09
|
Update of /cvsroot/mxbb/core/modules/mx_news/mx_news In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv26348/mx_news Added Files: .htaccess index.htm mx_news_common.php Log Message: New module. Based on the KB engine and reuse the core comments OO class to make a simple news/comments module, for wuick news. Very handy... --- NEW FILE: .htaccess --- deny from all --- NEW FILE: mx_news_common.php --- <?php /** * * @package mxBB Portal Module - mx_news * @version $Id: mx_news_common.php,v 1.1 2008/01/28 22:21:05 jonohlsson Exp $ * @copyright (c) 2002-2006 [Jon Ohlsson, Mohd Basri, wGEric, PHP Arena, pafileDB, CRLin] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ if ( !defined( 'IN_PORTAL' ) ) { die( "Hacking attempt" ); } /* // // addslashes to vars if magic_quotes_gpc is off // if ( !@function_exists( 'slash_input_data' ) ) { function slash_input_data( &$data ) { if ( is_array( $data ) ) { foreach ( $data as $k => $v ) { $data[$k] = ( is_array( $v ) ) ? slash_input_data( $v ) : addslashes( $v ); } } return $data; } } // // to make it work with php version under 4.1 and other stuff // if ( @phpversion() < '4.1' ) { $_GET = &$HTTP_GET_VARS; $_POST = &$HTTP_POST_VARS; $_COOKIE = &$HTTP_COOKIE_VARS; $_SERVER = &$HTTP_SERVER_VARS; $_ENV = &$HTTP_ENV_VARS; $_FILES = &$HTTP_POST_FILES; $_SESSION = &$HTTP_SESSION_VARS; } if ( !isset( $_REQUEST ) ) { $_REQUEST = array_merge( $_GET, $_POST, $_COOKIE ); } if ( !get_magic_quotes_gpc() ) { $_GET = slash_input_data( $_GET ); $_POST = slash_input_data( $_POST ); $_COOKIE = slash_input_data( $_COOKIE ); $_REQUEST = slash_input_data( $_REQUEST ); } */ // =================================================== // Include Files // =================================================== include_once( $module_root_path . 'mx_news/includes/mx_news_constants.' . $phpEx ); // // Load addon tools // // - Class module_cache // - Class mx_custom_fields // - Class mx_notification // - Class mx_text // - Class mx_text_formatting // include_once( $mx_root_path . 'includes/mx_functions_tools.' . $phpEx ); include_once( $module_root_path . 'mx_news/includes/functions.' . $phpEx ); include_once( $module_root_path . 'mx_news/includes/functions_auth.' . $phpEx ); include_once( $module_root_path . 'mx_news/includes/functions_mx_news.' . $phpEx ); // =================================================== // Load classes // =================================================== $mx_news_cache = new module_cache($module_root_path . 'mx_news/'); $mx_news_functions = new mx_news_functions(); if ( $mx_news_cache->exists( 'config' ) ) { $mx_news_config = $mx_news_cache->get( 'config' ); } else { $mx_news_config = $mx_news_functions->mx_news_config(); $mx_news_cache->put( 'config', $mx_news_config ); } if (defined( 'IN_ADMIN' )) { include_once( $module_root_path . 'mx_news/includes/functions_admin.' . $phpEx ); $mx_news = new mx_news_admin(); } else { $mx_news = new mx_news_public(); } ?> --- NEW FILE: index.htm --- <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF" text="#000000"> </body> </html> |
|
From: Jon O. <jon...@us...> - 2008-01-28 22:21:08
|
Update of /cvsroot/mxbb/core/modules/mx_news/language In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv26348/language Added Files: index.htm Log Message: New module. Based on the KB engine and reuse the core comments OO class to make a simple news/comments module, for wuick news. Very handy... --- NEW FILE: index.htm --- <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF" text="#000000"> </body> </html> |
|
From: Jon O. <jon...@us...> - 2008-01-28 22:11:30
|
Update of /cvsroot/mxbb/core/modules/mx_news/templates/_core/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv24479/admin Log Message: Directory /cvsroot/mxbb/core/modules/mx_news/templates/_core/admin added to the repository |
|
From: Jon O. <jon...@us...> - 2008-01-28 22:11:09
|
Update of /cvsroot/mxbb/core/modules/mx_news/templates/_core In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv24461/_core Log Message: Directory /cvsroot/mxbb/core/modules/mx_news/templates/_core added to the repository |
|
From: Jon O. <jon...@us...> - 2008-01-28 22:09:29
|
Update of /cvsroot/mxbb/core/modules/mx_news/mx_news/modules In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv23939/modules Log Message: Directory /cvsroot/mxbb/core/modules/mx_news/mx_news/modules added to the repository |
|
From: Jon O. <jon...@us...> - 2008-01-28 22:09:29
|
Update of /cvsroot/mxbb/core/modules/mx_news/mx_news/cache In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv23939/cache Log Message: Directory /cvsroot/mxbb/core/modules/mx_news/mx_news/cache added to the repository |
|
From: Jon O. <jon...@us...> - 2008-01-28 22:09:26
|
Update of /cvsroot/mxbb/core/modules/mx_news/mx_news/images In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv23939/images Log Message: Directory /cvsroot/mxbb/core/modules/mx_news/mx_news/images added to the repository |
|
From: Jon O. <jon...@us...> - 2008-01-28 22:09:26
|
Update of /cvsroot/mxbb/core/modules/mx_news/mx_news/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv23939/includes Log Message: Directory /cvsroot/mxbb/core/modules/mx_news/mx_news/includes added to the repository |
|
From: Jon O. <jon...@us...> - 2008-01-28 22:09:26
|
Update of /cvsroot/mxbb/core/modules/mx_news/mx_news/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv23939/admin Log Message: Directory /cvsroot/mxbb/core/modules/mx_news/mx_news/admin added to the repository |
|
From: Jon O. <jon...@us...> - 2008-01-28 22:08:12
|
Update of /cvsroot/mxbb/core/modules/mx_news/mx_news In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv23462/mx_news Log Message: Directory /cvsroot/mxbb/core/modules/mx_news/mx_news added to the repository |
|
From: Jon O. <jon...@us...> - 2008-01-28 22:02:40
|
Update of /cvsroot/mxbb/mx_tinies In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv20989 Modified Files: view_topics.php welcome.php Log Message: hmmm...i have no idea what i have done ;) Index: view_topics.php =================================================================== RCS file: /cvsroot/mxbb/mx_tinies/view_topics.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** view_topics.php 7 Jun 2007 20:14:40 -0000 1.1 --- view_topics.php 28 Jan 2008 22:02:35 -0000 1.2 *************** *** 43,47 **** $mx_root_path = "../../"; //include_once($mx_root_path . 'extension.inc'); ! $phpEx = substr(strrchr(__FILE__, '.'), 1); include_once($mx_root_path . 'common.'.$phpEx); // --- 43,47 ---- $mx_root_path = "../../"; //include_once($mx_root_path . 'extension.inc'); ! $phpEx = substr(strrchr(__FILE__, '.'), 1); include_once($mx_root_path . 'common.'.$phpEx); // *************** *** 260,264 **** $post_url = append_sid(PHPBB_URL . "viewtopic.$phpEx?" . POST_POST_URL . '=' . $searchset[$i]['post_id']) . '#' . $searchset[$i]['post_id']; ! $post_date = create_date($board_config['default_dateformat'], $searchset[$i]['post_time'], $board_config['board_timezone']); $topic_title = $searchset[$i]['topic_title']; --- 260,264 ---- $post_url = append_sid(PHPBB_URL . "viewtopic.$phpEx?" . POST_POST_URL . '=' . $searchset[$i]['post_id']) . '#' . $searchset[$i]['post_id']; ! $post_date = phpBB2::create_date($board_config['default_dateformat'], $searchset[$i]['post_time'], $board_config['board_timezone']); $topic_title = $searchset[$i]['topic_title']; *************** *** 387,391 **** } } ! else if( $searchset[$i]['post_time'] > $userdata['user_lastvisit'] ) { $folder_img .= '_new'; --- 387,391 ---- } } ! else if( $searchset[$i]['post_time'] > $userdata['user_lastvisit'] ) { $folder_img .= '_new'; *************** *** 393,397 **** $newest_post_img = '<a href="' . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&view=newest") . '"><img src="' . $images['icon_newest_reply'] . '" alt="' . $lang['View_newest_post'] . '" title="' . $lang['View_newest_post'] . '" border="0" /></a> '; } ! else { $folder_alt = ( $searchset[$i]['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['No_new_posts']; --- 393,397 ---- $newest_post_img = '<a href="' . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&view=newest") . '"><img src="' . $images['icon_newest_reply'] . '" alt="' . $lang['View_newest_post'] . '" title="' . $lang['View_newest_post'] . '" border="0" /></a> '; } ! else { $folder_alt = ( $searchset[$i]['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['No_new_posts']; *************** *** 416,422 **** $topic_author .= ( $searchset[$i]['user_id'] != ANONYMOUS ) ? '</a>' : ''; ! $first_post_time = create_date($board_config['default_dateformat'], $searchset[$i]['topic_time'], $board_config['board_timezone']); ! $last_post_time = create_date($board_config['default_dateformat'], $searchset[$i]['post_time'], $board_config['board_timezone']); $last_post_author = ( $searchset[$i]['id2'] == ANONYMOUS ) ? ( ($searchset[$i]['post_username2'] != '' ) ? $searchset[$i]['post_username2'] . ' ' : $lang['Guest'] . ' ' ) : '<a target="_blank" href="' . append_sid(PHPBB_URL . "profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $searchset[$i]['id2']) . '">' . $searchset[$i]['user2'] . '</a>'; --- 416,422 ---- $topic_author .= ( $searchset[$i]['user_id'] != ANONYMOUS ) ? '</a>' : ''; ! $first_post_time = phpBB2::create_date($board_config['default_dateformat'], $searchset[$i]['topic_time'], $board_config['board_timezone']); ! $last_post_time = phpBB2::create_date($board_config['default_dateformat'], $searchset[$i]['post_time'], $board_config['board_timezone']); $last_post_author = ( $searchset[$i]['id2'] == ANONYMOUS ) ? ( ($searchset[$i]['post_username2'] != '' ) ? $searchset[$i]['post_username2'] . ' ' : $lang['Guest'] . ' ' ) : '<a target="_blank" href="' . append_sid(PHPBB_URL . "profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $searchset[$i]['id2']) . '">' . $searchset[$i]['user2'] . '</a>'; *************** *** 454,458 **** $template->assign_vars(array( 'PAGINATION' => generate_pagination($base_url, $total_match_count, $per_page, $start), ! 'PAGE_NUMBER' => sprintf($lang['Page_of'], ( floor( $start / $per_page ) + 1 ), ceil( $total_match_count / $per_page )), 'L_AUTHOR' => $lang['Author'], --- 454,458 ---- $template->assign_vars(array( 'PAGINATION' => generate_pagination($base_url, $total_match_count, $per_page, $start), ! 'PAGE_NUMBER' => sprintf($lang['Page_of'], ( floor( $start / $per_page ) + 1 ), ceil( $total_match_count / $per_page )), 'L_AUTHOR' => $lang['Author'], *************** *** 463,468 **** 'L_VIEWS' => $lang['Views'], 'L_POSTS' => $lang['Posts'], ! 'L_LASTPOST' => $lang['Last_Post'], ! 'L_POSTED' => $lang['Posted'], 'L_SUBJECT' => $lang['Subject'], --- 463,468 ---- 'L_VIEWS' => $lang['Views'], 'L_POSTS' => $lang['Posts'], ! 'L_LASTPOST' => $lang['Last_Post'], ! 'L_POSTED' => $lang['Posted'], 'L_SUBJECT' => $lang['Subject'], Index: welcome.php =================================================================== RCS file: /cvsroot/mxbb/mx_tinies/welcome.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** welcome.php 7 Jun 2007 20:14:41 -0000 1.1 --- welcome.php 28 Jan 2008 22:02:35 -0000 1.2 *************** *** 23,29 **** if( !defined('IN_PORTAL')) { ! die('Hacking Attempt'); } ! // -------------------------------------------------------------------------------- // Block Initialization --- 23,29 ---- if( !defined('IN_PORTAL')) { ! die('Hacking Attempt'); } ! // -------------------------------------------------------------------------------- // Block Initialization *************** *** 116,120 **** if( $userdata['session_logged_in'] ) { ! $s_last_visit = create_date($board_config['default_dateformat'], $userdata['user_lastvisit'], $board_config['board_timezone']); if( $view_postcount ) --- 116,120 ---- if( $userdata['session_logged_in'] ) { ! $s_last_visit = phpBB2::create_date($board_config['default_dateformat'], $userdata['user_lastvisit'], $board_config['board_timezone']); if( $view_postcount ) *************** *** 239,243 **** 'LAST_VISIT_DATE' => sprintf($lang['You_last_visit'], $s_last_visit), ! 'CURRENT_TIME' => sprintf($lang['Current_time'], create_date($board_config['default_dateformat'], time(), $board_config['board_timezone'])), 'S_TIMEZONE' => sprintf($lang['All_times'], $lang[number_format($board_config['board_timezone'])])) ); --- 239,243 ---- 'LAST_VISIT_DATE' => sprintf($lang['You_last_visit'], $s_last_visit), ! 'CURRENT_TIME' => sprintf($lang['Current_time'], phpBB2::create_date($board_config['default_dateformat'], time(), $board_config['board_timezone'])), 'S_TIMEZONE' => sprintf($lang['All_times'], $lang[number_format($board_config['board_timezone'])])) ); |
|
From: Jon O. <jon...@us...> - 2008-01-28 21:59:59
|
Update of /cvsroot/mxbb/mx_pjirc In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv19618 Modified Files: index.php Log Message: hmmm...i have no idea what i have done ;) Index: index.php =================================================================== RCS file: /cvsroot/mxbb/mx_pjirc/index.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** index.php 7 Jun 2007 00:08:31 -0000 1.1 --- index.php 28 Jan 2008 21:59:55 -0000 1.2 *************** *** 17,21 **** $mx_module_path = "./"; ! $phpEx = substr(strrchr(__FILE__, '.'), 1); include_once($mx_root_path . 'common.'.$phpEx); --- 17,21 ---- $mx_module_path = "./"; ! $phpEx = substr(strrchr(__FILE__, '.'), 1); include_once($mx_root_path . 'common.'.$phpEx); *************** *** 23,27 **** //Start session management // ! $mx_user->init($user_ip, PAGE_INDEX); define('_PJIRC_CONFIG', true); --- 23,27 ---- //Start session management // ! $mx_user->init($user_ip, PAGE_INDEX); define('_PJIRC_CONFIG', true); *************** *** 31,35 **** if ( !$userdata['session_logged_in'] ) { ! redirect(append_sid($mx_root_path."login.".$phpEx."?redirect=modules/mx_pjirc/chat.".$phpEx, true)); exit; } --- 31,35 ---- if ( !$userdata['session_logged_in'] ) { ! mx_redirect(append_sid($mx_root_path."login.".$phpEx."?redirect=modules/mx_pjirc/chat.".$phpEx, true)); exit; } |
|
From: Jon O. <jon...@us...> - 2008-01-28 21:59:33
|
Update of /cvsroot/mxbb/mx_radiocast In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv19556 Modified Files: radiocast.php Log Message: Index: radiocast.php =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/radiocast.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** radiocast.php 17 Sep 2007 07:19:37 -0000 1.2 --- radiocast.php 28 Jan 2008 21:59:28 -0000 1.3 *************** *** 26,30 **** // Start session management // ! $mx_user->init($user_ip, PAGE_INDEX); // // End session management --- 26,30 ---- // Start session management // ! $mx_user->init($user_ip, PAGE_INDEX); // // End session management *************** *** 55,61 **** if( is_object($mx_block)) { ! $is_block = TRUE; } ! global $images, $mx_images; } --- 55,61 ---- if( is_object($mx_block)) { ! $is_block = TRUE; } ! global $images, $mx_images; } *************** *** 169,200 **** */ ! $cat_id = $_POST['c'] ? $_POST['c'] : ( $_GET['c'] ? $_GET['c'] : 0 ); $cat_where = "cat_parent = $cat_id"; ! if ($cat_id != 0) ! { ! $sql = "SELECT cat_id,cat_title ! FROM ". RADIOCAST_CAT_TABLE ." ! WHERE cat_id = $cat_id"; ! if ( $result = $db->sql_query($sql) ) { $thiscat_parent = array(); ! $thiscat_parent = $db->sql_fetchrow($result); ! $template->assign_vars(array( 'U_VIEW_CAT_PARENT' => append_sid(this_rc_mxurl("c=" . $thiscat_parent['cat_id'])), 'SUBCAT_NAV' => ' ' . $lang['Nav_Separator'] . ' <a class="nav" href="' . append_sid(this_rc_mxurl("c=" . $thiscat_parent['cat_id'])) . '">' . $thiscat_parent['cat_title'] . '</a>', 'CAT_PARENT_TITLE' => $thiscat_parent['cat_title'], 'U_RSS' => append_sid(this_rc_mxurl("radiocast_mode=radiocast_rss&c=" . $thiscat_parent['cat_id'] . "&sid=" . $userdata['session_id'], true)), ! 'CAT_PARENT' => $thiscat_parent['cat_id']) ); ! } } else ! { ! $template->assign_vars(array( 'U_RSS' => append_sid(this_rc_mxurl("radiocast_mode=radiocast_rss" . "&sid=" . $userdata['session_id'], true)) )); ! } --- 169,200 ---- */ ! $cat_id = $_POST['c'] ? $_POST['c'] : ( $_GET['c'] ? $_GET['c'] : 0 ); $cat_where = "cat_parent = $cat_id"; ! if ($cat_id != 0) ! { ! $sql = "SELECT cat_id,cat_title ! FROM ". RADIOCAST_CAT_TABLE ." ! WHERE cat_id = $cat_id"; ! if ( $result = $db->sql_query($sql) ) { $thiscat_parent = array(); ! $thiscat_parent = $db->sql_fetchrow($result); ! $template->assign_vars(array( 'U_VIEW_CAT_PARENT' => append_sid(this_rc_mxurl("c=" . $thiscat_parent['cat_id'])), 'SUBCAT_NAV' => ' ' . $lang['Nav_Separator'] . ' <a class="nav" href="' . append_sid(this_rc_mxurl("c=" . $thiscat_parent['cat_id'])) . '">' . $thiscat_parent['cat_title'] . '</a>', 'CAT_PARENT_TITLE' => $thiscat_parent['cat_title'], 'U_RSS' => append_sid(this_rc_mxurl("radiocast_mode=radiocast_rss&c=" . $thiscat_parent['cat_id'] . "&sid=" . $userdata['session_id'], true)), ! 'CAT_PARENT' => $thiscat_parent['cat_id']) ); ! } } else ! { ! $template->assign_vars(array( 'U_RSS' => append_sid(this_rc_mxurl("radiocast_mode=radiocast_rss" . "&sid=" . $userdata['session_id'], true)) )); ! } *************** *** 281,286 **** // ------------------------------------------ ! if ($catrows[$i]['cat_type'] == 0) ! { if ($catrows[$i]['count'] == 0) { --- 281,286 ---- // ------------------------------------------ ! if ($catrows[$i]['cat_type'] == 0) ! { if ($catrows[$i]['count'] == 0) { *************** *** 371,413 **** } // END of Last Station ! } ! else ! { ! // this is a parent category ! $sc_sql = "SELECT * ! FROM ". RADIOCAST_CAT_TABLE ." ! WHERE cat_parent = " . $catrows[$i]['cat_id'] . " ! GROUP BY cat_id ! ORDER BY cat_order ASC"; ! ! if ( !($sc_result = $db->sql_query($sc_sql)) ) ! { ! message_die(GENERAL_ERROR, 'Could not query sub categories', '', __LINE__, __FILE__, $sql); ! } ! ! $sql_count = "SELECT count(cat_id) as count ! FROM ". RADIOCAST_CAT_TABLE ." ! WHERE cat_parent = " . $catrows[$i]['cat_id']; ! if ( ($result_count = $db->sql_query($sql_count)) ) ! { ! $subcat_count = $db->sql_fetchrow($result_count); ! $subcat_count = $subcat_count['count'] . " sub catagories"; ! } ! else ! { ! $subcat_count = ""; ! } ! ! $subcats = '<br /><span class="gensmall"><b>' . $lang['RadioCast_sub_categories'] . ':</b><br />'; ! while ( $subcatrow = $db->sql_fetchrow($sc_result) ) ! { ! $subcats .= ' - <a class="gensmall" href="' . append_sid(this_rc_mxurl('radiocast_mode=radiocast_cat&cat_id='. $subcatrow['cat_id'])) . '">' . $subcatrow['cat_title'] . '</a><br />'; ! } $subcats .= '</span><br />'; ! ! $template->assign_block_vars('catrow', array( ! 'U_VIEW_CAT' => append_sid(this_rc_mxurl("radiocast_mode=radiocast_index&c=". $catrows[$i]['cat_id'])), ! 'CAT_TITLE' => $catrows[$i]['cat_title'], ! 'CAT_DESC' => $catrows[$i]['cat_desc'], 'SONGS' => $subcat_count, 'CAT_VIEWS' => $catrows[$i]['cat_views'], --- 371,413 ---- } // END of Last Station ! } ! else ! { ! // this is a parent category ! $sc_sql = "SELECT * ! FROM ". RADIOCAST_CAT_TABLE ." ! WHERE cat_parent = " . $catrows[$i]['cat_id'] . " ! GROUP BY cat_id ! ORDER BY cat_order ASC"; ! ! if ( !($sc_result = $db->sql_query($sc_sql)) ) ! { ! message_die(GENERAL_ERROR, 'Could not query sub categories', '', __LINE__, __FILE__, $sql); ! } ! ! $sql_count = "SELECT count(cat_id) as count ! FROM ". RADIOCAST_CAT_TABLE ." ! WHERE cat_parent = " . $catrows[$i]['cat_id']; ! if ( ($result_count = $db->sql_query($sql_count)) ) ! { ! $subcat_count = $db->sql_fetchrow($result_count); ! $subcat_count = $subcat_count['count'] . " sub catagories"; ! } ! else ! { ! $subcat_count = ""; ! } ! ! $subcats = '<br /><span class="gensmall"><b>' . $lang['RadioCast_sub_categories'] . ':</b><br />'; ! while ( $subcatrow = $db->sql_fetchrow($sc_result) ) ! { ! $subcats .= ' - <a class="gensmall" href="' . append_sid(this_rc_mxurl('radiocast_mode=radiocast_cat&cat_id='. $subcatrow['cat_id'])) . '">' . $subcatrow['cat_title'] . '</a><br />'; ! } $subcats .= '</span><br />'; ! ! $template->assign_block_vars('catrow', array( ! 'U_VIEW_CAT' => append_sid(this_rc_mxurl("radiocast_mode=radiocast_index&c=". $catrows[$i]['cat_id'])), ! 'CAT_TITLE' => $catrows[$i]['cat_title'], ! 'CAT_DESC' => $catrows[$i]['cat_desc'], 'SONGS' => $subcat_count, 'CAT_VIEWS' => $catrows[$i]['cat_views'], *************** *** 416,420 **** 'L_ALL_CAT_SONGS' => $lang['Category_stations'], 'MODERATORS' => $moderators_list, ! 'LAST_SONG_INFO' => $last_station_info) ); --- 416,420 ---- 'L_ALL_CAT_SONGS' => $lang['Category_stations'], 'MODERATORS' => $moderators_list, ! 'LAST_SONG_INFO' => $last_station_info) ); *************** *** 425,429 **** 'SUBCATS' => $subcats) ); ! } } --- 425,429 ---- 'SUBCATS' => $subcats) ); ! } } *************** *** 432,436 **** // ------------------------------------------ ! if ($catrows[$i]['cat_type'] == 0) { $template->assign_block_vars('catrow', array( --- 432,436 ---- // ------------------------------------------ ! if ($catrows[$i]['cat_type'] == 0) { $template->assign_block_vars('catrow', array( |
|
From: Jon O. <jon...@us...> - 2008-01-28 21:59:33
|
Update of /cvsroot/mxbb/mx_radiocast/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv19556/includes Modified Files: radiocast_cat.php radiocast_comment.php Log Message: Index: radiocast_comment.php =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/includes/radiocast_comment.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** radiocast_comment.php 6 Jun 2007 23:03:49 -0000 1.1 --- radiocast_comment.php 28 Jan 2008 21:59:28 -0000 1.2 *************** *** 29,33 **** // Start session management // ! $mx_user->init($user_ip, PAGE_INDEX); // // End session management --- 29,33 ---- // Start session management // ! $mx_user->init($user_ip, PAGE_INDEX); // // End session management *************** *** 168,172 **** if (!$userdata['session_logged_in']) { ! mx_redirect(append_sid($mx_root_path . "login.php?redirect=" . this_rc_loginurl("radiocast_mode=radiocast_comment&station_id=$station_id"), true)); exit; } --- 168,172 ---- if (!$userdata['session_logged_in']) { ! mx_redirect(append_sid($mx_root_path . "login.php?redirect=" . this_rc_loginurl("radiocast_mode=radiocast_comment&station_id=$station_id"), true)); exit; } *************** *** 327,331 **** 'POSTER' => $poster, 'TIME' => create_date($board_config['default_dateformat'], $commentrow[$i]['comment_time'], $board_config['board_timezone']), ! 'IP' => ($userdata['user_level'] == ADMIN) ? '-----------------------------------<br />' . $lang['IP_Address'] . ': <a href="http://www.nic.com/cgi-bin/whois.cgi?query=' . decode_ip($commentrow[$i]['comment_user_ip']) . '" target="_blank">' . decode_ip($commentrow[$i]['comment_user_ip']) .'</a><br />' : '', 'TEXT' => nl2br($commentrow[$i]['comment_text']), --- 327,331 ---- 'POSTER' => $poster, 'TIME' => create_date($board_config['default_dateformat'], $commentrow[$i]['comment_time'], $board_config['board_timezone']), ! 'IP' => ($userdata['user_level'] == ADMIN) ? '-----------------------------------<br />' . $lang['IP_Address'] . ': <a href="http://www.nic.com/cgi-bin/whois.cgi?query=' . phpBB2::decode_ip($commentrow[$i]['comment_user_ip']) . '" target="_blank">' . phpBB2::decode_ip($commentrow[$i]['comment_user_ip']) .'</a><br />' : '', 'TEXT' => nl2br($commentrow[$i]['comment_text']), *************** *** 459,463 **** if (!$userdata['session_logged_in']) { ! mx_redirect(append_sid($mx_root_path . "login.php?redirect=" . this_rc_mxurl("radiocast_mode=radiocast_comment&station_id=$station_id"), true)); } else --- 459,463 ---- if (!$userdata['session_logged_in']) { ! mx_redirect(append_sid($mx_root_path . "login.php?redirect=" . this_rc_mxurl("radiocast_mode=radiocast_comment&station_id=$station_id"), true)); } else Index: radiocast_cat.php =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/includes/radiocast_cat.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** radiocast_cat.php 6 Jun 2007 23:03:49 -0000 1.1 --- radiocast_cat.php 28 Jan 2008 21:59:28 -0000 1.2 *************** *** 27,31 **** // Start session management // ! $mx_user->init($user_ip, PAGE_INDEX); // // End session management --- 27,31 ---- // Start session management // ! $mx_user->init($user_ip, PAGE_INDEX); // // End session management *************** *** 108,112 **** if (!$userdata['session_logged_in']) { ! mx_redirect(append_sid($mx_root_path . "login.php?redirect=" . this_rc_loginurl("radiocast_mode=radiocast_cat&cat_id=$cat_id"), true)); } else --- 108,112 ---- if (!$userdata['session_logged_in']) { ! mx_redirect(append_sid($mx_root_path . "login.php?redirect=" . this_rc_loginurl("radiocast_mode=radiocast_cat&cat_id=$cat_id"), true)); } else *************** *** 350,363 **** } ! // ! // Update the music view counter ! // ! $sql2 = "UPDATE " . RADIOCAST_CAT_TABLE . " ! SET cat_views = cat_views + 1 ! WHERE cat_id = $cat_id"; ! if ( !$db->sql_query($sql2) ) ! { ! mx_message_die(GENERAL_ERROR, "Could not update music views.", '', __LINE__, __FILE__, $sql2); ! } $stationrow = array(); --- 350,363 ---- } ! // ! // Update the music view counter ! // ! $sql2 = "UPDATE " . RADIOCAST_CAT_TABLE . " ! SET cat_views = cat_views + 1 ! WHERE cat_id = $cat_id"; ! if ( !$db->sql_query($sql2) ) ! { ! mx_message_die(GENERAL_ERROR, "Could not update music views.", '', __LINE__, __FILE__, $sql2); ! } $stationrow = array(); *************** *** 445,449 **** 'LOCK' => ($auth_data['moderator']) ? '<a href="'. append_sid(this_rc_mxurl("radiocast_mode=radiocast_modcp&mode=". (($stationrow[$j]['station_lock'] == 0) ? 'lock' : 'unlock') ."&station_id=". $stationrow[$j]['station_id'])) .'">'. (($stationrow[$j]['station_lock'] == 0) ? $lang['Lock'] : $lang['Unlock']) .'</a>' : '', ! 'IP' => ($userdata['user_level'] == ADMIN) ? $lang['IP_Address'] . ': <a href="http://www.nic.com/cgi-bin/whois.cgi?query=' . decode_ip($stationrow[$j]['station_user_ip']) . '" target="_blank">' . decode_ip($stationrow[$j]['station_user_ip']) .'</a><br />' : '' ) ); --- 445,449 ---- 'LOCK' => ($auth_data['moderator']) ? '<a href="'. append_sid(this_rc_mxurl("radiocast_mode=radiocast_modcp&mode=". (($stationrow[$j]['station_lock'] == 0) ? 'lock' : 'unlock') ."&station_id=". $stationrow[$j]['station_id'])) .'">'. (($stationrow[$j]['station_lock'] == 0) ? $lang['Lock'] : $lang['Unlock']) .'</a>' : '', ! 'IP' => ($userdata['user_level'] == ADMIN) ? $lang['IP_Address'] . ': <a href="http://www.nic.com/cgi-bin/whois.cgi?query=' . phpBB2::decode_ip($stationrow[$j]['station_user_ip']) . '" target="_blank">' . phpBB2::decode_ip($stationrow[$j]['station_user_ip']) .'</a><br />' : '' ) ); |
|
From: Jon O. <jon...@us...> - 2008-01-28 21:58:59
|
Update of /cvsroot/mxbb/mx_phpCA/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18718/includes Modified Files: ads_comment.php ads_comment_temp.php ads_item.php ads_item_block.php ads_search.php Log Message: hmmm...i have no idea what i have done ;) Index: ads_item.php =================================================================== RCS file: /cvsroot/mxbb/mx_phpCA/includes/ads_item.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ads_item.php 6 Jun 2007 22:24:43 -0000 1.1 --- ads_item.php 28 Jan 2008 21:58:52 -0000 1.2 *************** *** 29,33 **** if ( view_allowed($ads_config['view_level']) == FALSE ) { ! if ( !$userdata['session_logged_in'] ) { mx_redirect(append_sid($mx_root_path . "login.$phpEx?redirect=" . this_ads_loginurl())); --- 29,33 ---- if ( view_allowed($ads_config['view_level']) == FALSE ) { ! if ( !$userdata['session_logged_in'] ) { mx_redirect(append_sid($mx_root_path . "login.$phpEx?redirect=" . this_ads_loginurl())); *************** *** 49,56 **** // Get the row from the adverts table ! $sql = "SELECT * ! FROM ". ADS_ADVERTS_TABLE ." WHERE id = '$id'"; ! $result = $db->sql_query($sql); $adverts_row = $db->sql_fetchrow($result); --- 49,56 ---- // Get the row from the adverts table ! $sql = "SELECT * ! FROM ". ADS_ADVERTS_TABLE ." WHERE id = '$id'"; ! $result = $db->sql_query($sql); $adverts_row = $db->sql_fetchrow($result); *************** *** 80,84 **** // Update the views counter ! $sql = "UPDATE ". ADS_ADVERTS_TABLE ." SET views = views + 1 WHERE id = $id"; --- 80,84 ---- // Update the views counter ! $sql = "UPDATE ". ADS_ADVERTS_TABLE ." SET views = views + 1 WHERE id = $id"; *************** *** 93,97 **** // Get the row from the categories table ! $sql = "SELECT * FROM ". ADS_CATEGORIES_TABLE ." WHERE cat_category = '".addslashes($category)."' --- 93,97 ---- // Get the row from the categories table ! $sql = "SELECT * FROM ". ADS_CATEGORIES_TABLE ." WHERE cat_category = '".addslashes($category)."' *************** *** 113,120 **** // Get the row from the details table ! $sql = "SELECT * ! FROM ". ADS_DETAILS_TABLE ." WHERE id = '$id'"; ! $result = $db->sql_query($sql); $details_row = $db->sql_fetchrow($result); --- 113,120 ---- // Get the row from the details table ! $sql = "SELECT * ! FROM ". ADS_DETAILS_TABLE ." WHERE id = '$id'"; ! $result = $db->sql_query($sql); $details_row = $db->sql_fetchrow($result); *************** *** 152,156 **** { // Get advertisers details from phpBB ! $profiledata = get_userdata($user_id); $temp_url = append_sid($phpbb_root_path . "profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$user_id"); --- 152,156 ---- { // Get advertisers details from phpBB ! $profiledata = mx_get_userdata($user_id); $temp_url = append_sid($phpbb_root_path . "profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$user_id"); *************** *** 162,171 **** $pm = '<a href="' . $temp_url . '">' . $lang['Send_private_message'] . '</a>'; ! if ( !empty($profiledata['user_viewemail']) || $userdata['user_level'] == ADMIN ) ! { ! $email_uri = ( $board_config['board_email_form'] ) ? append_sid($phpbb_root_path . "profile.$phpEx?mode=email&" . POST_USERS_URL .'=' . $user_id) : 'mailto:' . $profiledata['user_email']; ! $email_img = '<a href="' . $email_uri . '"><img src="' . $mx_images['icon_email'] . '" alt="' . $lang['Send_email'] . '" title="' . $lang['Send_email'] . '" border="0" /></a>'; ! $email = '<a href="' . $email_uri . '">' . $lang['Send_email'] . '</a>'; } else --- 162,171 ---- $pm = '<a href="' . $temp_url . '">' . $lang['Send_private_message'] . '</a>'; ! if ( !empty($profiledata['user_viewemail']) || $userdata['user_level'] == ADMIN ) ! { ! $email_uri = ( $board_config['board_email_form'] ) ? append_sid($phpbb_root_path . "profile.$phpEx?mode=email&" . POST_USERS_URL .'=' . $user_id) : 'mailto:' . $profiledata['user_email']; ! $email_img = '<a href="' . $email_uri . '"><img src="' . $mx_images['icon_email'] . '" alt="' . $lang['Send_email'] . '" title="' . $lang['Send_email'] . '" border="0" /></a>'; ! $email = '<a href="' . $email_uri . '">' . $lang['Send_email'] . '</a>'; } else *************** *** 262,266 **** { // Get recipients details from phpBB ! $profiledata = get_userdata($edit_user_id); $edit_details = sprintf($lang['last_edited_by'], $profiledata['username'], date($lang['DATE_FORMAT'],$edit_time), $edit_count); --- 262,266 ---- { // Get recipients details from phpBB ! $profiledata = mx_get_userdata($edit_user_id); $edit_details = sprintf($lang['last_edited_by'], $profiledata['username'], date($lang['DATE_FORMAT'],$edit_time), $edit_count); *************** *** 269,273 **** { // Get recipients details from phpBB ! //$profiledata = get_userdata($edit_user_id); $edit_details = ''; --- 269,273 ---- { // Get recipients details from phpBB ! //$profiledata = mx_get_userdata($edit_user_id); $edit_details = ''; *************** *** 282,312 **** ! $template->set_filenames(array('item_page' => 'ads_item.tpl')); // Do not allow details to be input for basic ads if ( $ad_type_code != 1 ) ! { $template->assign_block_vars('not_basic_ad',array()); // Set the custom field template variables ! for ($counter = 1; $counter <= 10; $counter += 1) { $field_val = $details_row['field_'.$counter]; $field_desc = $category_row['cat_field_'.$counter.'_desc']; ! if ($field_val != '') {$template->assign_block_vars( 'custom_field', array( 'FIELD_VAL' => $field_val, ! 'FIELD_DESC' => $field_desc));} } } // Get rows from the images table ! $sql = "SELECT * ! FROM ". ADS_IMAGES_TABLE ." WHERE id = '$id' AND img_deleted_ind = 0"; ! $sql2 = "SELECT * ! FROM ". ADS_ADVERTS_TABLE ." WHERE ebay_id = '$ebay_id' LIMIT 1"; --- 282,312 ---- ! $template->set_filenames(array('item_page' => 'ads_item.tpl')); // Do not allow details to be input for basic ads if ( $ad_type_code != 1 ) ! { $template->assign_block_vars('not_basic_ad',array()); // Set the custom field template variables ! for ($counter = 1; $counter <= 10; $counter += 1) { $field_val = $details_row['field_'.$counter]; $field_desc = $category_row['cat_field_'.$counter.'_desc']; ! if ($field_val != '') {$template->assign_block_vars( 'custom_field', array( 'FIELD_VAL' => $field_val, ! 'FIELD_DESC' => $field_desc));} } } // Get rows from the images table ! $sql = "SELECT * ! FROM ". ADS_IMAGES_TABLE ." WHERE id = '$id' AND img_deleted_ind = 0"; ! $sql2 = "SELECT * ! FROM ". ADS_ADVERTS_TABLE ." WHERE ebay_id = '$ebay_id' LIMIT 1"; *************** *** 318,322 **** if ($db->sql_numrows($result)>0) { ! while ($row = $db->sql_fetchrow($result)) { $medium_img_url = ADS_IMAGES_PATH .'ad'.$id.'_img'.$row['img_seq_no'].'_medium.jpg'; --- 318,322 ---- if ($db->sql_numrows($result)>0) { ! while ($row = $db->sql_fetchrow($result)) { $medium_img_url = ADS_IMAGES_PATH .'ad'.$id.'_img'.$row['img_seq_no'].'_medium.jpg'; *************** *** 324,328 **** // $image = popup($medium_img_url, $large_img_url, $title); $image = "<a onClick=\"window.open('$large_img_url','','scrollbars=yes,resizable=no,width=804,height=610')\" target='_blank'><img src='$medium_img_url' border='0' alt='$title'></a>"; ! $template->assign_block_vars('imagerow', array( 'IMAGE' => $image)); } $template->assign_block_vars('switch_images_found',array()); --- 324,328 ---- // $image = popup($medium_img_url, $large_img_url, $title); $image = "<a onClick=\"window.open('$large_img_url','','scrollbars=yes,resizable=no,width=804,height=610')\" target='_blank'><img src='$medium_img_url' border='0' alt='$title'></a>"; ! $template->assign_block_vars('imagerow', array( 'IMAGE' => $image)); } $template->assign_block_vars('switch_images_found',array()); *************** *** 331,335 **** if ( $db->sql_numrows($result2) > 0 ) { ! while ($row2 = $db->sql_fetchrow($result2)) { $ebay_id = $row2['ebay_id']; --- 331,335 ---- if ( $db->sql_numrows($result2) > 0 ) { ! while ($row2 = $db->sql_fetchrow($result2)) { $ebay_id = $row2['ebay_id']; *************** *** 358,366 **** if ($webmasterplan_site != '0') { ! $banner = '<IMG SRC="http://banners.webmasterplan.com/view.asp?site=' . $webmasterplan_site . '&ref=' . $ebay_ref . '&b=' . rand(23, 43) . '&tnb=23" BORDER="0" WIDTH="100" HEIGHT="100">'; } else { ! $banner = '<IMG SRC="' . $mx_images['ebayimage'] . '" BORDER="0" WIDTH="100" HEIGHT="100">'; } --- 358,366 ---- if ($webmasterplan_site != '0') { ! $banner = '<IMG SRC="http://banners.webmasterplan.com/view.asp?site=' . $webmasterplan_site . '&ref=' . $ebay_ref . '&b=' . rand(23, 43) . '&tnb=23" BORDER="0" WIDTH="100" HEIGHT="100">'; } else { ! $banner = '<IMG SRC="' . $mx_images['ebayimage'] . '" BORDER="0" WIDTH="100" HEIGHT="100">'; } *************** *** 370,374 **** 'IMAGE' => $ref_image)); } ! } } --- 370,374 ---- 'IMAGE' => $ref_image)); } ! } } *************** *** 389,393 **** // Set the rest of the template variables ! $template->assign_vars(array( 'U_ADS_ITEM' => append_sid(this_ads_mxurl("ads_mode=ads_item&id=$id")), --- 389,393 ---- // Set the rest of the template variables ! $template->assign_vars(array( 'U_ADS_ITEM' => append_sid(this_ads_mxurl("ads_mode=ads_item&id=$id")), *************** *** 474,482 **** 'USERNAME' => $username)); ! $template->pparse('item_page'); if ( !is_object($mx_block)) { include($mx_root_path . 'includes/page_tail.'.$phpEx); ! } ?> \ No newline at end of file --- 474,482 ---- 'USERNAME' => $username)); ! $template->pparse('item_page'); if ( !is_object($mx_block)) { include($mx_root_path . 'includes/page_tail.'.$phpEx); ! } ?> \ No newline at end of file Index: ads_comment.php =================================================================== RCS file: /cvsroot/mxbb/mx_phpCA/includes/ads_comment.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ads_comment.php 6 Jun 2007 22:24:39 -0000 1.1 --- ads_comment.php 28 Jan 2008 21:58:51 -0000 1.2 *************** *** 39,43 **** // Start session management // ! $mx_user->init($user_ip, PAGE_INDEX); // // End session management --- 39,43 ---- // Start session management // ! $mx_user->init($user_ip, PAGE_INDEX); // // End session management *************** *** 127,131 **** // ------------------------------------ ! $sql = "SELECT COUNT(comment_id) AS comments_count FROM ". ADS_COMMENTS_TABLE ." WHERE comment_ad_id = $ad_id --- 127,131 ---- // ------------------------------------ ! $sql = "SELECT COUNT(comment_id) AS comments_count FROM ". ADS_COMMENTS_TABLE ." WHERE comment_ad_id = $ad_id *************** *** 180,185 **** // ------------------------------------ ! $sql = "SELECT user_id, username ! FROM ". USERS_TABLE ." WHERE user_id = $user_id"; --- 180,185 ---- // ------------------------------------ ! $sql = "SELECT user_id, username ! FROM ". USERS_TABLE ." WHERE user_id = $user_id"; *************** *** 195,199 **** mx_message_die(GENERAL_ERROR, $lang['user_does_not_exist']); } ! $username = $row['username']; } --- 195,199 ---- mx_message_die(GENERAL_ERROR, $lang['user_does_not_exist']); } ! $username = $row['username']; } *************** *** 203,207 **** // ------------------------------------ ! $sql = "SELECT * FROM ". ADS_IMAGES_TABLE ." WHERE id = $ad_id --- 203,207 ---- // ------------------------------------ ! $sql = "SELECT * FROM ". ADS_IMAGES_TABLE ." WHERE id = $ad_id *************** *** 213,225 **** if ( $db->sql_numrows($result) > 0 ) { ! while ($row = $db->sql_fetchrow($result)) { $img_url = ADS_IMAGES_PATH ."ad".$ad_id."_img".$row["img_seq_no"]."_thumb.jpg"; } ! } else { $img_url = $mx_images['noimage']; ! } // ------------------------------------ --- 213,225 ---- if ( $db->sql_numrows($result) > 0 ) { ! while ($row = $db->sql_fetchrow($result)) { $img_url = ADS_IMAGES_PATH ."ad".$ad_id."_img".$row["img_seq_no"]."_thumb.jpg"; } ! } else { $img_url = $mx_images['noimage']; ! } // ------------------------------------ *************** *** 363,367 **** for ($i = 0; $i < count($commentrow); $i++) { ! if ( ($commentrow[$i]['user_id'] == ADS_GUEST) or ($commentrow[$i]['username'] == '') ) { --- 363,367 ---- for ($i = 0; $i < count($commentrow); $i++) { ! if ( ($commentrow[$i]['user_id'] == ADS_GUEST) or ($commentrow[$i]['username'] == '') ) { *************** *** 401,405 **** 'POSTER' => $poster, 'TIME' => create_date($board_config['default_dateformat'], $commentrow[$i]['comment_time'], $board_config['board_timezone']), ! 'IP' => ($userdata['user_level'] == ADMIN) ? '-----------------------------------<br />' . $lang['IP_Address'] . ': <a href="http://network-tools.com/default.asp?host=' . decode_ip($commentrow[$i]['comment_user_ip']) . '" target="_blank">' . decode_ip($commentrow[$i]['comment_user_ip']) .'</a><br />' : '', 'TEXT' => nl2br($commentrow[$i]['comment_text']), --- 401,405 ---- 'POSTER' => $poster, 'TIME' => create_date($board_config['default_dateformat'], $commentrow[$i]['comment_time'], $board_config['board_timezone']), ! 'IP' => ($userdata['user_level'] == ADMIN) ? '-----------------------------------<br />' . $lang['IP_Address'] . ': <a href="http://network-tools.com/default.asp?host=' . phpBB2::decode_ip($commentrow[$i]['comment_user_ip']) . '" target="_blank">' . phpBB2::decode_ip($commentrow[$i]['comment_user_ip']) .'</a><br />' : '', 'TEXT' => nl2br($commentrow[$i]['comment_text']), Index: ads_search.php =================================================================== RCS file: /cvsroot/mxbb/mx_phpCA/includes/ads_search.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ads_search.php 6 Jun 2007 22:24:48 -0000 1.1 --- ads_search.php 28 Jan 2008 21:58:52 -0000 1.2 *************** *** 39,43 **** // Start session management // ! $mx_user->init($user_ip, PAGE_INDEX); // // End session management --- 39,43 ---- // Start session management // ! $mx_user->init($user_ip, PAGE_INDEX); // // End session management *************** *** 63,67 **** if ( search_allowed($ads_config['search_level']) == FALSE ) { ! if ( !$userdata['session_logged_in'] ) { mx_redirect(append_sid($mx_root_path . "login.$phpEx?redirect=" . this_ads_loginurl("ads_mode=ads_search"))); --- 63,67 ---- if ( search_allowed($ads_config['search_level']) == FALSE ) { ! if ( !$userdata['session_logged_in'] ) { mx_redirect(append_sid($mx_root_path . "login.$phpEx?redirect=" . this_ads_loginurl("ads_mode=ads_search"))); *************** *** 84,95 **** } ! $template->set_filenames(array('search_page' => 'ads_search.tpl')); ! $sql = 'SELECT * FROM '. ADS_CATEGORIES_TABLE .' ORDER BY cat_category, cat_sub_category ASC'; $result = $db->sql_query($sql); ! while ($row = $db->sql_fetchrow($result)) { $option = $row['cat_category'].'>>'.$row['cat_sub_category']; --- 84,95 ---- } ! $template->set_filenames(array('search_page' => 'ads_search.tpl')); ! $sql = 'SELECT * FROM '. ADS_CATEGORIES_TABLE .' ORDER BY cat_category, cat_sub_category ASC'; $result = $db->sql_query($sql); ! while ($row = $db->sql_fetchrow($result)) { $option = $row['cat_category'].'>>'.$row['cat_sub_category']; *************** *** 97,101 **** } ! $template->assign_vars(array( 'U_ADS_INDEX' => append_sid(this_ads_mxurl()), --- 97,101 ---- } ! $template->assign_vars(array( 'U_ADS_INDEX' => append_sid(this_ads_mxurl()), *************** *** 109,120 **** 'L_SEARCH_FOR_ALL_TERMS' => $lang['search_for_all_terms'], 'L_SEARCH_FOR_USERNAME' => $lang['search_for_username'], ! 'L_SEARCH_FOR_AD_ID' => $lang['search_for_ad_id'], 'L_SEARCH_OPTIONS' => $lang['search_options'], 'L_CAT_SUB_CAT' => $lang['cat_sub_cat'], 'L_ALL' => $lang['all'], 'L_AD_STATUS' => $lang['ad_status'], ! 'L_ACTIVE' => $lang['active'], ! 'L_SOLD' => $lang['sold'], ! 'L_EXPIRED' => $lang['expired'], 'L_SORT_BY' => $lang['sort_by'], --- 109,120 ---- 'L_SEARCH_FOR_ALL_TERMS' => $lang['search_for_all_terms'], 'L_SEARCH_FOR_USERNAME' => $lang['search_for_username'], ! 'L_SEARCH_FOR_AD_ID' => $lang['search_for_ad_id'], 'L_SEARCH_OPTIONS' => $lang['search_options'], 'L_CAT_SUB_CAT' => $lang['cat_sub_cat'], 'L_ALL' => $lang['all'], 'L_AD_STATUS' => $lang['ad_status'], ! 'L_ACTIVE' => $lang['active'], ! 'L_SOLD' => $lang['sold'], ! 'L_EXPIRED' => $lang['expired'], 'L_SORT_BY' => $lang['sort_by'], *************** *** 130,151 **** 'SITE_NAME' => $board_config['sitename'])); ! $template->pparse('search_page'); if ( !is_object($mx_block)) { include($mx_root_path . 'includes/page_tail.'.$phpEx); ! } } else { // Process search ! // Check for a search parameter ! if ( !isset($HTTP_POST_VARS['search_term']) and !isset($HTTP_GET_VARS['search_term']) ! and !isset($HTTP_POST_VARS['search_name']) ! and !isset($HTTP_GET_VARS['search_name']) ! and !isset($HTTP_POST_VARS['search_id']) ! and !isset($HTTP_GET_VARS['search_id']) ) { mx_message_die(GENERAL_ERROR, $lang['invalid_request']); --- 130,151 ---- 'SITE_NAME' => $board_config['sitename'])); ! $template->pparse('search_page'); if ( !is_object($mx_block)) { include($mx_root_path . 'includes/page_tail.'.$phpEx); ! } } else { // Process search ! // Check for a search parameter ! if ( !isset($HTTP_POST_VARS['search_term']) and !isset($HTTP_GET_VARS['search_term']) ! and !isset($HTTP_POST_VARS['search_name']) ! and !isset($HTTP_GET_VARS['search_name']) ! and !isset($HTTP_POST_VARS['search_id']) ! and !isset($HTTP_GET_VARS['search_id']) ) { mx_message_die(GENERAL_ERROR, $lang['invalid_request']); *************** *** 167,172 **** include($mx_root_path . 'includes/page_header.'.$phpEx); } ! ! $template->set_filenames(array('search_results' => 'ads_search_results.tpl')); // Sanitize input variables --- 167,172 ---- include($mx_root_path . 'includes/page_header.'.$phpEx); } ! ! $template->set_filenames(array('search_results' => 'ads_search_results.tpl')); // Sanitize input variables *************** *** 181,185 **** } ! if ( isset($HTTP_POST_VARS['search_name']) ) { $search_name = htmlspecialchars($HTTP_POST_VARS['search_name']); --- 181,185 ---- } ! if ( isset($HTTP_POST_VARS['search_name']) ) { $search_name = htmlspecialchars($HTTP_POST_VARS['search_name']); *************** *** 191,195 **** } ! if ( isset($HTTP_POST_VARS['search_id']) ) { $search_id = intval($HTTP_POST_VARS['search_id']); --- 191,195 ---- } ! if ( isset($HTTP_POST_VARS['search_id']) ) { $search_id = intval($HTTP_POST_VARS['search_id']); *************** *** 274,280 **** // Trim whitespace from the search term $search_term = trim($search_term); ! // Separate key-phrases into keywords ! $trimmed_array = explode(' ',$search_term); if ( $HTTP_POST_VARS['search_terms'] ) // This is the any/all indicator --- 274,280 ---- // Trim whitespace from the search term $search_term = trim($search_term); ! // Separate key-phrases into keywords ! $trimmed_array = explode(' ',$search_term); if ( $HTTP_POST_VARS['search_terms'] ) // This is the any/all indicator *************** *** 300,306 **** } ! $sql= "SELECT * FROM ". ADS_ADVERTS_TABLE ." ! WHERE $sql1 OR $sql2"; } --- 300,306 ---- } ! $sql= "SELECT * FROM ". ADS_ADVERTS_TABLE ." ! WHERE $sql1 OR $sql2"; } *************** *** 311,316 **** // Trim whitespace from the search name $search_name = trim($search_name); ! ! $sql= "SELECT * FROM ". ADS_ADVERTS_TABLE ." WHERE username = '$search_name'"; --- 311,316 ---- // Trim whitespace from the search name $search_name = trim($search_name); ! ! $sql= "SELECT * FROM ". ADS_ADVERTS_TABLE ." WHERE username = '$search_name'"; *************** *** 320,324 **** if ( !empty($search_id) ) { ! $sql= "SELECT * FROM ". ADS_ADVERTS_TABLE ." WHERE id = '$search_id'"; --- 320,324 ---- if ( !empty($search_id) ) { ! $sql= "SELECT * FROM ". ADS_ADVERTS_TABLE ." WHERE id = '$search_id'"; *************** *** 383,387 **** $result = $db->sql_query($sql); ! while ($row = $db->sql_fetchrow($result)) { $id = $row['id']; --- 383,387 ---- $result = $db->sql_query($sql); ! while ($row = $db->sql_fetchrow($result)) { $id = $row['id']; *************** *** 394,398 **** $views = $row['views']; ! $profiledata = get_userdata($user_id); if ( $user_id != ANONYMOUS ) --- 394,398 ---- $views = $row['views']; ! $profiledata = mx_get_userdata($user_id); if ( $user_id != ANONYMOUS ) *************** *** 407,419 **** // Check to see if an image exists for this ad ! $sql2 = "SELECT * FROM ". ADS_IMAGES_TABLE ." ! WHERE id = '$id' AND img_deleted_ind = 0 LIMIT 0,1"; //global $ebay_id, $mx_images; ! $sql3 = "SELECT * ! FROM ". ADS_ADVERTS_TABLE ." WHERE ebay_id = '$ebay_id' LIMIT 0,1"; --- 407,419 ---- // Check to see if an image exists for this ad ! $sql2 = "SELECT * FROM ". ADS_IMAGES_TABLE ." ! WHERE id = '$id' AND img_deleted_ind = 0 LIMIT 0,1"; //global $ebay_id, $mx_images; ! $sql3 = "SELECT * ! FROM ". ADS_ADVERTS_TABLE ." WHERE ebay_id = '$ebay_id' LIMIT 0,1"; *************** *** 426,437 **** if ( $db->sql_numrows($result2) > 0 ) { ! while ($row2 = $db->sql_fetchrow($result2)) { $img_url = ADS_IMAGES_PATH ."ad".$id."_img".$row2["img_seq_no"]."_thumb.jpg"; } } ! elseif ( $db->sql_numrows($result3) > 0 ) { ! while ($row3 = $db->sql_fetchrow($result3)) { $ebay_id = $row3['ebay_id']; --- 426,437 ---- if ( $db->sql_numrows($result2) > 0 ) { ! while ($row2 = $db->sql_fetchrow($result2)) { $img_url = ADS_IMAGES_PATH ."ad".$id."_img".$row2["img_seq_no"]."_thumb.jpg"; } } ! elseif ( $db->sql_numrows($result3) > 0 ) { ! while ($row3 = $db->sql_fetchrow($result3)) { $ebay_id = $row3['ebay_id']; *************** *** 443,465 **** } } ! } else { $img_url = $mx_images['noimage']; ! } - if ( $row['status'] == 'sold' ) - { - $status2 = $lang['sold']; - } - elseif ( $row['status'] == 'expired' ) - { - $status2 = $lang['expired']; - } - elseif ( $row['status'] == 'active' ) - { - $status2 = ''; - } - $template->assign_block_vars('advertrow', array( --- 443,465 ---- } } ! } else { $img_url = $mx_images['noimage']; ! } ! ! if ( $row['status'] == 'sold' ) ! { ! $status2 = $lang['sold']; ! } ! elseif ( $row['status'] == 'expired' ) ! { ! $status2 = $lang['expired']; ! } ! elseif ( $row['status'] == 'active' ) ! { ! $status2 = ''; ! } $template->assign_block_vars('advertrow', array( *************** *** 472,480 **** 'SHORT_DESC' => nl2br($row['short_desc']), 'DATE_ADDED' => date($lang['DATE_FORMAT'],$time), ! 'STATUS' => $status2, 'PRICE' => $row['price'], 'EBAY_ID' => $row['ebay_id'], 'VIEWS' => $row['views'], ! 'IMAGE' => $img_url)); } --- 472,480 ---- 'SHORT_DESC' => nl2br($row['short_desc']), 'DATE_ADDED' => date($lang['DATE_FORMAT'],$time), ! 'STATUS' => $status2, 'PRICE' => $row['price'], 'EBAY_ID' => $row['ebay_id'], 'VIEWS' => $row['views'], ! 'IMAGE' => $img_url)); } *************** *** 482,486 **** { $ads_count = 1; ! } // Encode the fields --- 482,486 ---- { $ads_count = 1; ! } // Encode the fields *************** *** 491,495 **** $template->assign_vars(array( ! 'U_ADS_INDEX' => append_sid(this_ads_mxurl()), --- 491,495 ---- $template->assign_vars(array( ! 'U_ADS_INDEX' => append_sid(this_ads_mxurl()), *************** *** 501,505 **** 'L_PRICE' => $lang['price'], 'L_EBAY_ID' => $lang['ebay_id'], ! 'L_AD_STATUS' => $lang['ad_status'], 'L_USERNAME' => $lang['username'], 'L_IMAGE' => $lang['image'], --- 501,505 ---- 'L_PRICE' => $lang['price'], 'L_EBAY_ID' => $lang['ebay_id'], ! 'L_AD_STATUS' => $lang['ad_status'], 'L_USERNAME' => $lang['username'], 'L_IMAGE' => $lang['image'], *************** *** 511,520 **** 'PAGE_STRING' => $page_string)); ! $template->pparse('search_results'); if ( !is_object($mx_block)) { include($mx_root_path . 'includes/page_tail.'.$phpEx); ! } ! } ?> \ No newline at end of file --- 511,520 ---- 'PAGE_STRING' => $page_string)); ! $template->pparse('search_results'); if ( !is_object($mx_block)) { include($mx_root_path . 'includes/page_tail.'.$phpEx); ! } ! } ?> \ No newline at end of file Index: ads_item_block.php =================================================================== RCS file: /cvsroot/mxbb/mx_phpCA/includes/ads_item_block.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ads_item_block.php 6 Jun 2007 22:24:43 -0000 1.1 --- ads_item_block.php 28 Jan 2008 21:58:52 -0000 1.2 *************** *** 26,30 **** // Start session management // ! $mx_user->init($user_ip, PAGE_INDEX); // // End session management --- 26,30 ---- // Start session management // ! $mx_user->init($user_ip, PAGE_INDEX); // // End session management *************** *** 57,63 **** if( is_object($mx_block)) { ! $is_block = TRUE; } ! global $images, $mx_images, $postrow; } --- 57,63 ---- if( is_object($mx_block)) { ! $is_block = TRUE; } ! global $images, $mx_images, $postrow; } *************** *** 110,114 **** { mx_redirect(append_sid($mx_root_path . "login.php?redirect=" . this_mo_loginurl(), true)); ! } else { --- 110,114 ---- { mx_redirect(append_sid($mx_root_path . "login.php?redirect=" . this_mo_loginurl(), true)); ! } else { *************** *** 149,157 **** } ! $template->set_filenames(array('ads_item_page' => 'ads_item_block.tpl')); // SQL for adverts table ! $sql = "SELECT category, sub_category, COUNT(sub_category) AS number ! FROM ". ADS_ADVERTS_TABLE ." WHERE expiry_date > $current_time GROUP BY category, sub_category"; --- 149,157 ---- } ! $template->set_filenames(array('ads_item_page' => 'ads_item_block.tpl')); // SQL for adverts table ! $sql = "SELECT category, sub_category, COUNT(sub_category) AS number ! FROM ". ADS_ADVERTS_TABLE ." WHERE expiry_date > $current_time GROUP BY category, sub_category"; *************** *** 159,168 **** $result = $db->sql_query($sql); ! while ($row = $db->sql_fetchrow($result)) { $sub_category_ar[$row['category'].'_'.$row['sub_category']] = $row['number']; } ! $sql = 'SELECT * FROM '. ADS_CATEGORIES_TABLE .' ORDER BY cat_category, cat_sub_category ASC'; --- 159,168 ---- $result = $db->sql_query($sql); ! while ($row = $db->sql_fetchrow($result)) { $sub_category_ar[$row['category'].'_'.$row['sub_category']] = $row['number']; } ! $sql = 'SELECT * FROM '. ADS_CATEGORIES_TABLE .' ORDER BY cat_category, cat_sub_category ASC'; *************** *** 170,174 **** $result = $db->sql_query($sql); ! while ($row = $db->sql_fetchrow($result)) { $category = $row['cat_category']; --- 170,174 ---- $result = $db->sql_query($sql); ! while ($row = $db->sql_fetchrow($result)) { $category = $row['cat_category']; *************** *** 186,194 **** 'CAT_IMG' => $cat_img, 'CATEGORY' => "<b><a href='$category_url'>$category</a></b><br>" ! )); $save_category = $category; } ! $sub_category_temp = "<a href='".append_sid(this_ads_portalurl("ads_mode=ads_index&category=$u_category&sub_category=$u_sub_category"))."'>$sub_category</a>"; $sub_category_img = $mx_images['folder']; --- 186,194 ---- 'CAT_IMG' => $cat_img, 'CATEGORY' => "<b><a href='$category_url'>$category</a></b><br>" ! )); $save_category = $category; } ! $sub_category_temp = "<a href='".append_sid(this_ads_portalurl("ads_mode=ads_index&category=$u_category&sub_category=$u_sub_category"))."'>$sub_category</a>"; $sub_category_img = $mx_images['folder']; *************** *** 213,222 **** $start = 0; } ! // Get the total number of ads if ( !empty($inp_category) && !empty($inp_sub_category) ) { ! $sql = "SELECT * ! FROM ". ADS_ADVERTS_TABLE ." WHERE expiry_date > $current_time AND category = '$inp_category' --- 213,222 ---- $start = 0; } ! // Get the total number of ads if ( !empty($inp_category) && !empty($inp_sub_category) ) { ! $sql = "SELECT * ! FROM ". ADS_ADVERTS_TABLE ." WHERE expiry_date > $current_time AND category = '$inp_category' *************** *** 225,235 **** else if ( !empty($inp_category) ) { ! $sql = "SELECT * ! FROM ". ADS_ADVERTS_TABLE ." WHERE expiry_date > $current_time AND category = '$inp_category'";} ! else { ! $sql = "SELECT * FROM ". ADS_ADVERTS_TABLE ." WHERE expiry_date > $current_time"; --- 225,235 ---- else if ( !empty($inp_category) ) { ! $sql = "SELECT * ! FROM ". ADS_ADVERTS_TABLE ." WHERE expiry_date > $current_time AND category = '$inp_category'";} ! else { ! $sql = "SELECT * FROM ". ADS_ADVERTS_TABLE ." WHERE expiry_date > $current_time"; *************** *** 242,249 **** if ( $inp_category and $inp_sub_category ) { ! $sql = "SELECT * ! FROM ". ADS_ADVERTS_TABLE ." ! WHERE category = '$inp_category' ! AND sub_category = '$inp_sub_category' AND expiry_date > $current_time ORDER BY premium_ad_ind DESC, id DESC --- 242,249 ---- if ( $inp_category and $inp_sub_category ) { ! $sql = "SELECT * ! FROM ". ADS_ADVERTS_TABLE ." ! WHERE category = '$inp_category' ! AND sub_category = '$inp_sub_category' AND expiry_date > $current_time ORDER BY premium_ad_ind DESC, id DESC *************** *** 253,267 **** if ( $inp_category ) { ! $sql = "SELECT * ! FROM ". ADS_ADVERTS_TABLE ." ! WHERE category = '$inp_category' AND expiry_date > $current_time ORDER BY premium_ad_ind DESC, id DESC LIMIT ".$start.", ".$ads_config['ads_per_page']; } ! else { ! $sql = "SELECT * ! FROM ". ADS_ADVERTS_TABLE ." WHERE expiry_date > $current_time ORDER BY premium_ad_ind DESC, id DESC --- 253,267 ---- if ( $inp_category ) { ! $sql = "SELECT * ! FROM ". ADS_ADVERTS_TABLE ." ! WHERE category = '$inp_category' AND expiry_date > $current_time ORDER BY premium_ad_ind DESC, id DESC LIMIT ".$start.", ".$ads_config['ads_per_page']; } ! else { ! $sql = "SELECT * ! FROM ". ADS_ADVERTS_TABLE ." WHERE expiry_date > $current_time ORDER BY premium_ad_ind DESC, id DESC *************** *** 273,282 **** if ( $db->sql_numrows($result) > 0 ) { ! while ($row = $db->sql_fetchrow($result)) { $id = $row['id']; $user_id = $row['user_id']; ! $profiledata = get_userdata($user_id); if ( $user_id != ANONYMOUS ) --- 273,282 ---- if ( $db->sql_numrows($result) > 0 ) { ! while ($row = $db->sql_fetchrow($result)) { $id = $row['id']; $user_id = $row['user_id']; ! $profiledata = mx_get_userdata($user_id); if ( $user_id != ANONYMOUS ) *************** *** 310,320 **** $premium_ad = ''; } ! // Check to see if an image exists for this ad if ( $ads_config['images'] == 1 ) { ! $sql2 = "SELECT * FROM ". ADS_IMAGES_TABLE ." ! WHERE id = '$id' AND img_deleted_ind = 0 LIMIT 0,1"; --- 310,320 ---- $premium_ad = ''; } ! // Check to see if an image exists for this ad if ( $ads_config['images'] == 1 ) { ! $sql2 = "SELECT * FROM ". ADS_IMAGES_TABLE ." ! WHERE id = '$id' AND img_deleted_ind = 0 LIMIT 0,1"; *************** *** 324,339 **** if ( $db->sql_numrows($result2) > 0 ) { ! while ($row2 = $db->sql_fetchrow($result2)) { $img_url = ADS_IMAGES_PATH ."ad".$id."_img".$row2["img_seq_no"]."_thumb.jpg"; } ! } else { $img_url = $mx_images['noimage']; ! } $template->assign_block_vars('imagerow', array( ! 'U_ADS_ITEM' => append_sid(this_ads_portalurl("ads_mode=ads_item&id=".$row['id'])), 'U_PROFILE' => $profile, --- 324,339 ---- if ( $db->sql_numrows($result2) > 0 ) { ! while ($row2 = $db->sql_fetchrow($result2)) { $img_url = ADS_IMAGES_PATH ."ad".$id."_img".$row2["img_seq_no"]."_thumb.jpg"; } ! } else { $img_url = $mx_images['noimage']; ! } $template->assign_block_vars('imagerow', array( ! 'U_ADS_ITEM' => append_sid(this_ads_portalurl("ads_mode=ads_item&id=".$row['id'])), 'U_PROFILE' => $profile, *************** *** 348,357 **** 'VIEWS' => $row['views'], 'COMMENTS' => $total_comments, ! 'IMAGE' => $img_url)); } else { $template->assign_block_vars('noimagerow', array( ! 'U_ADS_ITEM' => append_sid(this_ads_portalurl("ads_mode=ads_item&id=".$row['id'])), 'U_PROFILE' => $profile, --- 348,357 ---- 'VIEWS' => $row['views'], 'COMMENTS' => $total_comments, ! 'IMAGE' => $img_url)); } else { $template->assign_block_vars('noimagerow', array( ! 'U_ADS_ITEM' => append_sid(this_ads_portalurl("ads_mode=ads_item&id=".$row['id'])), 'U_PROFILE' => $profile, *************** *** 365,374 **** 'EBAY_ID' => $row['ebay_id'], 'VIEWS' => $row['views'], ! 'COMMENTS' => $total_comments)); } } } else ! { $template->assign_block_vars('switch_no_items_found',array()); } --- 365,374 ---- 'EBAY_ID' => $row['ebay_id'], 'VIEWS' => $row['views'], ! 'COMMENTS' => $total_comments)); } } } else ! { $template->assign_block_vars('switch_no_items_found',array()); } *************** *** 409,413 **** $page_string = sprintf($lang['Page_of'], ( floor( $start / $ads_config['ads_per_page'] ) + 1 ), ceil( $ads_count / $ads_config['ads_per_page'] )); ! $template->assign_vars(array( 'U_ADS_INDEX' => append_sid(this_ads_portalurl()), --- 409,413 ---- $page_string = sprintf($lang['Page_of'], ( floor( $start / $ads_config['ads_per_page'] ) + 1 ), ceil( $ads_count / $ads_config['ads_per_page'] )); ! $template->assign_vars(array( 'U_ADS_INDEX' => append_sid(this_ads_portalurl()), *************** *** 419,423 **** 'U_RSS2' => append_sid($module_root_path . "adverts." . $phpEx . "?ads_mode=ads_rss2" . '&sid=' . $userdata['session_id']), 'IMG_RSS2' => $mx_images['ads_rss2'], ! 'L_CATEGORIES' => $lang['categories'], 'L_TITLE' => $lang['title'], --- 419,423 ---- 'U_RSS2' => append_sid($module_root_path . "adverts." . $phpEx . "?ads_mode=ads_rss2" . '&sid=' . $userdata['session_id']), 'IMG_RSS2' => $mx_images['ads_rss2'], ! 'L_CATEGORIES' => $lang['categories'], 'L_TITLE' => $lang['title'], *************** *** 437,441 **** 'MSG_NEWAD' => $mx_images['msg_newad'], 'GOTO_STRING' => $goto_string, ! 'PAGE_STRING' => $page_string, 'POINTER' => $pointer, 'POINTER2' => $pointer2, --- 437,441 ---- 'MSG_NEWAD' => $mx_images['msg_newad'], 'GOTO_STRING' => $goto_string, ! 'PAGE_STRING' => $page_string, 'POINTER' => $pointer, 'POINTER2' => $pointer2, *************** *** 443,447 **** 'SUB_CATEGORY' => stripslashes(str_replace("''", "\'", $inp_sub_category)))); ! $template->pparse('ads_item_page'); if ( !is_object($mx_block)) --- 443,447 ---- 'SUB_CATEGORY' => stripslashes(str_replace("''", "\'", $inp_sub_category)))); ! $template->pparse('ads_item_page'); if ( !is_object($mx_block)) *************** *** 449,453 **** include($mx_root_path . 'includes/page_tail.'.$phpEx); } ! // +-------------------------------------------------------------+ // | Powered by phpCA Classified Ads 0.5.6 (c) 2006 PeteMan | --- 449,453 ---- include($mx_root_path . 'includes/page_tail.'.$phpEx); } ! // +-------------------------------------------------------------+ // | Powered by phpCA Classified Ads 0.5.6 (c) 2006 PeteMan | Index: ads_comment_temp.php =================================================================== RCS file: /cvsroot/mxbb/mx_phpCA/includes/ads_comment_temp.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ads_comment_temp.php 6 Jun 2007 22:24:41 -0000 1.1 --- ads_comment_temp.php 28 Jan 2008 21:58:52 -0000 1.2 *************** *** 39,43 **** // Start session management // ! $mx_user->init($user_ip, PAGE_INDEX); // // End session management --- 39,43 ---- // Start session management // ! $mx_user->init($user_ip, PAGE_INDEX); // // End session management *************** *** 126,130 **** // ------------------------------------ ! $sql = "SELECT COUNT(comment_id) AS comments_count FROM ". ADS_COMMENTS_TABLE ." WHERE comment_ad_id = $ad_id --- 126,130 ---- // ------------------------------------ ! $sql = "SELECT COUNT(comment_id) AS comments_count FROM ". ADS_COMMENTS_TABLE ." WHERE comment_ad_id = $ad_id *************** *** 179,184 **** // ------------------------------------ ! $sql = "SELECT user_id, username ! FROM ". USERS_TABLE ." WHERE user_id = $user_id"; --- 179,184 ---- // ------------------------------------ ! $sql = "SELECT user_id, username ! FROM ". USERS_TABLE ." WHERE user_id = $user_id"; *************** *** 194,198 **** mx_message_die(GENERAL_ERROR, $lang['user_does_not_exist']); } ! $username = $row['username']; } --- 194,198 ---- mx_message_die(GENERAL_ERROR, $lang['user_does_not_exist']); } ! $username = $row['username']; } *************** *** 202,206 **** // ------------------------------------ ! $sql = "SELECT * FROM ". ADS_IMAGES_TABLE ." WHERE id = $ad_id --- 202,206 ---- // ------------------------------------ ! $sql = "SELECT * FROM ". ADS_IMAGES_TABLE ." WHERE id = $ad_id *************** *** 212,224 **** if ( $db->sql_numrows($result) > 0 ) { ! while ($row = $db->sql_fetchrow($result)) { $img_url = ADS_IMAGES_PATH ."ad".$ad_id."_img".$row["img_seq_no"]."_thumb.jpg"; } ! } else { $img_url = $mx_images['noimage']; ! } // ------------------------------------ --- 212,224 ---- if ( $db->sql_numrows($result) > 0 ) { ! while ($row = $db->sql_fetchrow($result)) { $img_url = ADS_IMAGES_PATH ."ad".$ad_id."_img".$row["img_seq_no"]."_thumb.jpg"; } ! } else { $img_url = $mx_images['noimage']; ! } // ------------------------------------ *************** *** 362,366 **** for ($i = 0; $i < count($commentrow); $i++) { ! if ( ($commentrow[$i]['user_id'] == ADS_GUEST) or ($commentrow[$i]['username'] == '') ) { --- 362,366 ---- for ($i = 0; $i < count($commentrow); $i++) { ! if ( ($commentrow[$i]['user_id'] == ADS_GUEST) or ($commentrow[$i]['username'] == '') ) { *************** *** 400,404 **** 'POSTER' => $poster, 'TIME' => create_date($board_config['default_dateformat'], $commentrow[$i]['comment_time'], $board_config['board_timezone']), ! 'IP' => ($userdata['user_level'] == ADMIN) ? '-----------------------------------<br />' . $lang['IP_Address'] . ': <a href="http://www.nic.com/cgi-bin/whois.cgi?query=' . decode_ip($commentrow[$i]['comment_user_ip']) . '" target="_blank">' . decode_ip($commentrow[$i]['comment_user_ip']) .'</a><br />' : '', 'TEXT' => nl2br($commentrow[$i]['comment_text']), --- 400,404 ---- 'POSTER' => $poster, 'TIME' => create_date($board_config['default_dateformat'], $commentrow[$i]['comment_time'], $board_config['board_timezone']), ! 'IP' => ($userdata['user_level'] == ADMIN) ? '-----------------------------------<br />' . $lang['IP_Address'] . ': <a href="http://www.nic.com/cgi-bin/whois.cgi?query=' . phpBB2::decode_ip($commentrow[$i]['comment_user_ip']) . '" target="_blank">' . phpBB2::decode_ip($commentrow[$i]['comment_user_ip']) .'</a><br />' : '', 'TEXT' => nl2br($commentrow[$i]['comment_text']), *************** *** 594,599 **** // Get recipients details from phpBB ! $profiledata = get_userdata($user_id); ! $recip_email = $profiledata['user_email']; $subject = 'XXX SUBJECT XXX'; --- 594,599 ---- // Get recipients details from phpBB ! $profiledata = mx_get_userdata($user_id); ! $recip_email = $profiledata['user_email']; $subject = 'XXX SUBJECT XXX'; *************** *** 605,622 **** $emailer->from($board_config['board_email']); $emailer->replyto($board_config['board_email']); ! $emailer->use_template('admin_send_email', $user_lang); $emailer->email_address($recip_email); $emailer->set_subject($subject); $emailer->extra_headers($email_headers); ! $emailer->assign_vars(array( ! 'SITENAME' => $board_config['sitename'], ! 'BOARD_EMAIL' => $board_config['board_email'], 'MESSAGE' => $message)); $emailer->send(); $emailer->reset(); ! $user_id_array[] = $user_id; } --- 605,622 ---- $emailer->from($board_config['board_email']); $emailer->replyto($board_config['board_email']); ! $emailer->use_template('admin_send_email', $user_lang); $emailer->email_address($recip_email); $emailer->set_subject($subject); $emailer->extra_headers($email_headers); ! $emailer->assign_vars(array( ! 'SITENAME' => $board_config['sitename'], ! 'BOARD_EMAIL' => $board_config['board_email'], 'MESSAGE' => $message)); $emailer->send(); $emailer->reset(); ! $user_id_array[] = $user_id; } *************** *** 629,638 **** $sql = "SELECT comment_user_id ! FROM ". ADS_COMMENTS_TABLE ." WHERE comment_ad_id= $ad_id"; $result = $db->sql_query($sql); ! while ($row = $db->sql_fetchrow($result)) { $comment_user_id = $row['comment_user_id']; --- 629,638 ---- $sql = "SELECT comment_user_id ! FROM ". ADS_COMMENTS_TABLE ." WHERE comment_ad_id= $ad_id"; $result = $db->sql_query($sql); ! while ($row = $db->sql_fetchrow($result)) { $comment_user_id = $row['comment_user_id']; *************** *** 647,652 **** // Get recipients details from phpBB ! $profiledata = get_userdata($comment_user_id); ! $recip_email = $profiledata['user_email']; $subject = 'XXX SUBJECT XXX'; --- 647,652 ---- // Get recipients details from phpBB ! $profiledata = mx_get_userdata($comment_user_id); ! $recip_email = $profiledata['user_email']; $subject = 'XXX SUBJECT XXX'; *************** *** 658,670 **** $emailer->from($board_config['board_email']); $emailer->replyto($board_config['board_email']); ! $emailer->use_template('admin_send_email', $user_lang); $emailer->email_address($recip_email); $emailer->set_subject($subject); $emailer->extra_headers($email_headers); ! $emailer->assign_vars(array( ! 'SITENAME' => $board_config['sitename'], ! 'BOARD_EMAIL' => $board_config['board_email'], 'MESSAGE' => $message)); --- 658,670 ---- $emailer->from($board_config['board_email']); $emailer->replyto($board_config['board_email']); ! $emailer->use_template('admin_send_email', $user_lang); $emailer->email_address($recip_email); $emailer->set_subject($subject); $emailer->extra_headers($email_headers); ! $emailer->assign_vars(array( ! 'SITENAME' => $board_config['sitename'], ! 'BOARD_EMAIL' => $board_config['board_email'], 'MESSAGE' => $message)); |
|
From: Jon O. <jon...@us...> - 2008-01-28 21:58:55
|
Update of /cvsroot/mxbb/mx_phpCA/ads_mod In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18718/ads_mod Modified Files: ads_functions.php ads_renewal_mailer.php Log Message: hmmm...i have no idea what i have done ;) Index: ads_renewal_mailer.php =================================================================== RCS file: /cvsroot/mxbb/mx_phpCA/ads_mod/ads_renewal_mailer.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ads_renewal_mailer.php 6 Jun 2007 22:24:34 -0000 1.1 --- ads_renewal_mailer.php 28 Jan 2008 21:58:51 -0000 1.2 *************** *** 23,27 **** $file = fopen($filename, 'w'); ! if ( !$file ) { message_die(GENERAL_ERROR, 'Error creating chaser log file'); --- 23,27 ---- $file = fopen($filename, 'w'); ! if ( !$file ) { message_die(GENERAL_ERROR, 'Error creating chaser log file'); *************** *** 29,34 **** // Get all active ads ! $sql = "SELECT * ! FROM ". ADS_ADVERTS_TABLE ." WHERE status = 'active' AND USER_ID <> ". ADS_GUEST; --- 29,34 ---- // Get all active ads ! $sql = "SELECT * ! FROM ". ADS_ADVERTS_TABLE ." WHERE status = 'active' AND USER_ID <> ". ADS_GUEST; *************** *** 41,45 **** srand((double) microtime() * 1000000); ! while ($row = $db->sql_fetchrow($result)) { $id = $row['id']; --- 41,45 ---- srand((double) microtime() * 1000000); ! while ($row = $db->sql_fetchrow($result)) { $id = $row['id']; *************** *** 49,53 **** $status = $row['status']; ! $sql = "SELECT * FROM ". ADS_CHASERS_TABLE ." WHERE id = '$id'"; --- 49,53 ---- $status = $row['status']; ! $sql = "SELECT * FROM ". ADS_CHASERS_TABLE ." WHERE id = '$id'"; *************** *** 62,67 **** { // Get recipients details from phpBB ! $profiledata = get_userdata($username,'true'); ! $recip_email = $profiledata['user_email']; // Renewal passwords only for free ads! --- 62,67 ---- { // Get recipients details from phpBB ! $profiledata = mx_get_userdata($username,'true'); ! $recip_email = $profiledata['user_email']; // Renewal passwords only for free ads! *************** *** 105,114 **** { // Is second chase due? ! if ( $row2['last_chase_type'] == '1' and time() >= ($expiry_date - ($ads_config['second_chase_days']*60*60*24)) ) { // Get recipients details from phpBB ! $profiledata = get_userdata($username,'true'); ! $recip_email = $profiledata['user_email']; // Renewal passwords only for free ads! --- 105,114 ---- { // Is second chase due? ! if ( $row2['last_chase_type'] == '1' and time() >= ($expiry_date - ($ads_config['second_chase_days']*60*60*24)) ) { // Get recipients details from phpBB ! $profiledata = mx_get_userdata($username,'true'); ! $recip_email = $profiledata['user_email']; // Renewal passwords only for free ads! *************** *** 137,141 **** $sql = "UPDATE ". ADS_CHASERS_TABLE ." ! SET last_chase_type = '$last_chase_type' WHERE id = $id"; --- 137,141 ---- $sql = "UPDATE ". ADS_CHASERS_TABLE ." ! SET last_chase_type = '$last_chase_type' WHERE id = $id"; *************** *** 149,159 **** fwrite ($file, $record); } ! // Is final chase due? if ( $row2['last_chase_type'] == '2' and time() >= $expiry_date ) { // Get recipients details from phpBB ! $profiledata = get_userdata($username,'true'); ! $recip_email = $profiledata['user_email']; // Renewal passwords only for free ads! --- 149,159 ---- fwrite ($file, $record); } ! // Is final chase due? if ( $row2['last_chase_type'] == '2' and time() >= $expiry_date ) { // Get recipients details from phpBB ! $profiledata = mx_get_userdata($username,'true'); ! $recip_email = $profiledata['user_email']; // Renewal passwords only for free ads! *************** *** 182,186 **** $sql = "UPDATE ". ADS_CHASERS_TABLE ." ! SET last_chase_type = '$last_chase_type' WHERE id = $id"; --- 182,186 ---- $sql = "UPDATE ". ADS_CHASERS_TABLE ." ! SET last_chase_type = '$last_chase_type' WHERE id = $id"; *************** *** 198,202 **** $sql = "UPDATE ". ADS_ADVERTS_TABLE ." ! SET status = '$status' WHERE id = $id"; --- 198,202 ---- $sql = "UPDATE ". ADS_ADVERTS_TABLE ." ! SET status = '$status' WHERE id = $id"; *************** *** 207,211 **** // Delete the images ! $sql = "SELECT * FROM ". ADS_IMAGES_TABLE ." WHERE id = $id --- 207,211 ---- // Delete the images ! $sql = "SELECT * FROM ". ADS_IMAGES_TABLE ." WHERE id = $id *************** *** 214,218 **** $result = $db->sql_query($sql); ! while ($row = $db->sql_fetchrow($result)) { $img_seq_no = $row['img_seq_no']; --- 214,218 ---- $result = $db->sql_query($sql); ! while ($row = $db->sql_fetchrow($result)) { $img_seq_no = $row['img_seq_no']; *************** *** 220,224 **** $sql2 = "UPDATE ". ADS_IMAGES_TABLE ." SET img_deleted_ind = 1 ! WHERE id = '$id' AND img_seq_no = '$img_seq_no'"; --- 220,224 ---- $sql2 = "UPDATE ". ADS_IMAGES_TABLE ." SET img_deleted_ind = 1 ! WHERE id = '$id' AND img_seq_no = '$img_seq_no'"; *************** *** 245,248 **** fwrite ($file, $record); ! fclose ($file); ?> \ No newline at end of file --- 245,248 ---- fwrite ($file, $record); ! fclose ($file); ?> \ No newline at end of file Index: ads_functions.php =================================================================== RCS file: /cvsroot/mxbb/mx_phpCA/ads_mod/ads_functions.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ads_functions.php 6 Jun 2007 22:24:33 -0000 1.1 --- ads_functions.php 28 Jan 2008 21:58:51 -0000 1.2 *************** *** 27,31 **** global $userdata, $phpEx; ! if ( $view_level == ADS_GUEST ) { $view_allowed = TRUE; --- 27,31 ---- global $userdata, $phpEx; ! if ( $view_level == ADS_GUEST ) { $view_allowed = TRUE; *************** *** 57,92 **** } ! // ========================= ! // Move allowed ! // ========================= ! function move_allowed($user_id, $ads_move_level) ! { ! global $userdata, $phpEx; ! if ( ( $ads_move_level == ADS_USER and $userdata['user_id'] == $user_id and $userdata['session_logged_in'] ) ! or ( $ads_move_level == ADS_USER and $userdata['user_level'] == MOD ) ) ! { ! $move_allowed = TRUE; ! } ! if ( $ads_move_level == ADS_MOD and $userdata['user_level'] == MOD ) ! { ! $move_allowed = TRUE; ! } ! if ($userdata['user_level'] == ADMIN ) ! { ! $move_allowed = TRUE; ! } ! if ( $move_allowed == TRUE) ! { ! return TRUE; ! } ! else ! { ! return FALSE; ! } ! } // ========================= --- 57,92 ---- } ! // ========================= ! // Move allowed ! // ========================= ! function move_allowed($user_id, $ads_move_level) ! { ! global $userdata, $phpEx; ! if ( ( $ads_move_level == ADS_USER and $userdata['user_id'] == $user_id and $userdata['session_logged_in'] ) ! or ( $ads_move_level == ADS_USER and $userdata['user_level'] == MOD ) ) ! { ! $move_allowed = TRUE; ! } ! if ( $ads_move_level == ADS_MOD and $userdata['user_level'] == MOD ) ! { ! $move_allowed = TRUE; ! } ! if ($userdata['user_level'] == ADMIN ) ! { ! $move_allowed = TRUE; ! } ! if ( $move_allowed == TRUE) ! { ! return TRUE; ! } ! else ! { ! return FALSE; ! } ! } // ========================= *************** *** 97,101 **** global $userdata, $phpEx; ! if ( $search_level == ADS_GUEST ) { $search_allowed = TRUE; --- 97,101 ---- global $userdata, $phpEx; ! if ( $search_level == ADS_GUEST ) { $search_allowed = TRUE; *************** *** 134,138 **** global $userdata, $phpEx; ! if ( $cat_create_level == ADS_GUEST ) { $create_allowed = TRUE; --- 134,138 ---- global $userdata, $phpEx; ! if ( $cat_create_level == ADS_GUEST ) { $create_allowed = TRUE; *************** *** 140,146 **** else { ! if ( !$userdata['session_logged_in'] ) { ! redirect(append_sid("login.$phpEx?redirect=ads_create.$phpEx")); } } --- 140,146 ---- else { ! if ( !$userdata['session_logged_in'] ) { ! mx_redirect(append_sid("login.$phpEx?redirect=ads_create.$phpEx")); } } *************** *** 277,281 **** global $userdata, $phpEx; ! if ( $cat_comment_level == ADS_GUEST ) { $comment_allowed = TRUE; --- 277,281 ---- global $userdata, $phpEx; ! if ( $cat_comment_level == ADS_GUEST ) { $comment_allowed = TRUE; *************** *** 315,319 **** $height = imagesy($im); ! if (($resizewidth and $width > $resizewidth) or ($resizeheight and $height > $resizeheight)) { --- 315,319 ---- $height = imagesy($im); ! if (($resizewidth and $width > $resizewidth) or ($resizeheight and $height > $resizeheight)) { *************** *** 360,364 **** imagecopyresized($newim, $im, 0, 0, 0, 0, $newwidth, $newheight, $width, $height); } ! touch($filename . ".jpg"); ImageJpeg ($newim,$filename . ".jpg"); // ImageDestroy ($newim); --- 360,364 ---- imagecopyresized($newim, $im, 0, 0, 0, 0, $newwidth, $newheight, $width, $height); } ! touch($filename . ".jpg"); ImageJpeg ($newim,$filename . ".jpg"); // ImageDestroy ($newim); *************** *** 366,370 **** else { ! touch($filename . ".jpg"); ImageJpeg ($im,$filename . ".jpg"); } --- 366,370 ---- else { ! touch($filename . ".jpg"); ImageJpeg ($im,$filename . ".jpg"); } *************** *** 374,378 **** // Image popups // ========================= ! //function popup($medium_img_url, $large_img_url, $title, $width=false, $height=false) //{ // $title_urlencoded = rawurlencode($title); --- 374,378 ---- // Image popups // ========================= ! //function popup($medium_img_url, $large_img_url, $title, $width=false, $height=false) //{ // $title_urlencoded = rawurlencode($title); *************** *** 400,404 **** srand((double)microtime()*1000000); ! for ($i = 0; $i < 30; $i++) { $x1 = rand(0,120); --- 400,404 ---- srand((double)microtime()*1000000); ! for ($i = 0; $i < 30; $i++) { $x1 = rand(0,120); *************** *** 406,413 **** $x2 = rand(0,120); $y2 = rand(0,30); ! imageline($image, $x1, $y1, $x2, $y2 , $gray); } ! for ($i = 0; $i < 5; $i++) { $cnum[$i] = rand(0,9); --- 406,413 ---- $x2 = rand(0,120); $y2 = rand(0,30); ! imageline($image, $x1, $y1, $x2, $y2 , $gray); } ! for ($i = 0; $i < 5; $i++) { $cnum[$i] = rand(0,9); *************** *** 418,423 **** $fnt = rand(5,8); $x = $x + rand(12 , 20); ! $y = rand(7 , 12); ! imagestring($image, $fnt, $x, $y, $cnum[$i] , $darkgray); } --- 418,423 ---- $fnt = rand(5,8); $x = $x + rand(12 , 20); ! $y = rand(7 , 12); ! imagestring($image, $fnt, $x, $y, $cnum[$i] , $darkgray); } *************** *** 429,433 **** //header('Content-type: image/png'); $image = imagepng($image); ! imagedestroy($image); return $image; --- 429,433 ---- //header('Content-type: image/png'); $image = imagepng($image); ! imagedestroy($image); return $image; *************** *** 455,467 **** $emailer->from($sender_email); $emailer->replyto($sender_email); ! $emailer->use_template('admin_send_email', $user_lang); $emailer->email_address($recip_email); $emailer->set_subject($subject); $emailer->extra_headers($email_headers); ! $emailer->assign_vars(array( ! 'SITENAME' => $board_config['sitename'], ! 'BOARD_EMAIL' => $board_config['board_email'], 'MESSAGE' => $message)); --- 455,467 ---- $emailer->from($sender_email); $emailer->replyto($sender_email); ! $emailer->use_template('admin_send_email', $user_lang); $emailer->email_address($recip_email); $emailer->set_subject($subject); $emailer->extra_headers($email_headers); ! $emailer->assign_vars(array( ! 'SITENAME' => $board_config['sitename'], ! 'BOARD_EMAIL' => $board_config['board_email'], 'MESSAGE' => $message)); *************** *** 473,511 **** // Create a comma separated value file from an array // ========================================================== ! function create_csv_file($file, $data) { //check for array ! if (is_array($data)) ! { ! $post_values=array_values($data); //build csv data ! foreach($post_values as $i) {$csv.="\"$i\",";} //remove the last comma from string ! $csv = substr($csv,0,-1); //check for existence of file ! if (file_exists($file) and is_writeable($file)) ! {$mode = "a";} ! else {$mode="w";} //create file pointer $fp = @fopen($file,$mode); ! //write to file ! fwrite($fp,$csv . "\n"); //close file pointer ! fclose($fp); ! return true; ! } else ! { ! return false; ! } } --- 473,511 ---- // Create a comma separated value file from an array // ========================================================== ! function create_csv_file($file, $data) { //check for array ! if (is_array($data)) ! { ! $post_values=array_values($data); //build csv data ! foreach($post_values as $i) {$csv.="\"$i\",";} //remove the last comma from string ! $csv = substr($csv,0,-1); //check for existence of file ! if (file_exists($file) and is_writeable($file)) ! {$mode = "a";} ! else {$mode="w";} //create file pointer $fp = @fopen($file,$mode); ! //write to file ! fwrite($fp,$csv . "\n"); //close file pointer ! fclose($fp); ! return true; ! } else ! { ! return false; ! } } *************** *** 513,517 **** // Create a comma separated value file from an array // ========================================================== ! function create_error_file($file, $message) { $open = fopen ($file, "a"); --- 513,517 ---- // Create a comma separated value file from an array // ========================================================== ! function create_error_file($file, $message) { $open = fopen ($file, "a"); *************** *** 519,523 **** { fwrite ($open, $message."\r\n"); ! fclose ($open); } } --- 519,523 ---- { fwrite ($open, $message."\r\n"); ! fclose ($open); } } *************** *** 572,576 **** // htmlspecialchars_decode // ========================================================== ! function htmlspecialchars_decode_php4($str, $quote_style = ENT_COMPAT) { if ( function_exists('htmlspecialchars_decode') ) --- 572,576 ---- // htmlspecialchars_decode // ========================================================== ! function htmlspecialchars_decode_php4($str, $quote_style = ENT_COMPAT) { if ( function_exists('htmlspecialchars_decode') ) |
|
From: Jon O. <jon...@us...> - 2008-01-28 21:58:55
|
Update of /cvsroot/mxbb/mx_phpCA In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18718 Modified Files: adverts.php Log Message: hmmm...i have no idea what i have done ;) Index: adverts.php =================================================================== RCS file: /cvsroot/mxbb/mx_phpCA/adverts.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** adverts.php 6 Jun 2007 22:24:35 -0000 1.1 --- adverts.php 28 Jan 2008 21:58:51 -0000 1.2 *************** *** 26,30 **** // Start session management // ! $mx_user->init($user_ip, PAGE_INDEX); // // End session management --- 26,30 ---- // Start session management // ! $mx_user->init($user_ip, PAGE_INDEX); // // End session management *************** *** 57,63 **** if( is_object($mx_block)) { ! $is_block = TRUE; } ! global $images, $mx_images, $postrow; } --- 57,63 ---- if( is_object($mx_block)) { ! $is_block = TRUE; } ! global $images, $mx_images, $postrow; } *************** *** 154,158 **** { mx_redirect(append_sid($mx_root_path . "login.php?redirect=" . this_mo_loginurl(), true)); ! } else { --- 154,158 ---- { mx_redirect(append_sid($mx_root_path . "login.php?redirect=" . this_mo_loginurl(), true)); ! } else { *************** *** 203,211 **** } ! $template->set_filenames(array('adverts_page' => 'adverts.tpl')); // SQL for adverts table ! $sql = "SELECT category, sub_category, COUNT(sub_category) AS number ! FROM ". ADS_ADVERTS_TABLE ." WHERE expiry_date > $current_time GROUP BY category, sub_category"; --- 203,211 ---- } ! $template->set_filenames(array('adverts_page' => 'adverts.tpl')); // SQL for adverts table ! $sql = "SELECT category, sub_category, COUNT(sub_category) AS number ! FROM ". ADS_ADVERTS_TABLE ." WHERE expiry_date > $current_time GROUP BY category, sub_category"; *************** *** 213,222 **** $result = $db->sql_query($sql); ! while ($row = $db->sql_fetchrow($result)) { $sub_category_ar[$row['category'].'_'.$row['sub_category']] = $row['number']; } ! $sql = 'SELECT * FROM '. ADS_CATEGORIES_TABLE .' ORDER BY cat_category, cat_sub_category ASC'; --- 213,222 ---- $result = $db->sql_query($sql); ! while ($row = $db->sql_fetchrow($result)) { $sub_category_ar[$row['category'].'_'.$row['sub_category']] = $row['number']; } ! $sql = 'SELECT * FROM '. ADS_CATEGORIES_TABLE .' ORDER BY cat_category, cat_sub_category ASC'; *************** *** 225,229 **** ! while ($row = $db->sql_fetchrow($result)) { $category = $row['cat_category']; --- 225,229 ---- ! while ($row = $db->sql_fetchrow($result)) { $category = $row['cat_category']; *************** *** 246,254 **** 'CAT_IMG' => $cat_img, 'CATEGORY' => "<b><a href='$category_url'>$category</a></b><br>" ! )); $save_category = $category; } ! $sub_category_temp = "<a href='".append_sid(this_ads_mxurl("ads_mode=ads_index&category=$u_category&sub_category=$u_sub_category"))."'>$sub_category</a>"; $sub_category_img = $mx_images['folder']; --- 246,254 ---- 'CAT_IMG' => $cat_img, 'CATEGORY' => "<b><a href='$category_url'>$category</a></b><br>" ! )); $save_category = $category; } ! $sub_category_temp = "<a href='".append_sid(this_ads_mxurl("ads_mode=ads_index&category=$u_category&sub_category=$u_sub_category"))."'>$sub_category</a>"; $sub_category_img = $mx_images['folder']; *************** *** 266,270 **** /* ! while ($row = $db->sql_fetchrow($result)) { $category = $row['cat_category']; --- 266,270 ---- /* ! while ($row = $db->sql_fetchrow($result)) { $category = $row['cat_category']; *************** *** 278,286 **** { $category_url = append_sid("adverts.$phpEx?category=$u_category"); ! $template->assign_block_vars('categoryrow', array('CATEGORY' => "<b><a href='$category_url'>$category</a></b><br>")); $save_category = $category; } ! $sub_category_temp = "<a href='".append_sid("adverts.$phpEx?category=$u_category&sub_category=$u_sub_category")."'>$sub_category</a>"; if ( $sub_category_ar[$save_category.'_'.$sub_category] ) --- 278,286 ---- { $category_url = append_sid("adverts.$phpEx?category=$u_category"); ! $template->assign_block_vars('categoryrow', array('CATEGORY' => "<b><a href='$category_url'>$category</a></b><br>")); $save_category = $category; } ! $sub_category_temp = "<a href='".append_sid("adverts.$phpEx?category=$u_category&sub_category=$u_sub_category")."'>$sub_category</a>"; if ( $sub_category_ar[$save_category.'_'.$sub_category] ) *************** *** 302,311 **** $start = 0; } ! // Get the total number of ads if ( !empty($inp_category) && !empty($inp_sub_category) ) { ! $sql = "SELECT * ! FROM ". ADS_ADVERTS_TABLE ." WHERE expiry_date > $current_time AND category = '$inp_category' --- 302,311 ---- $start = 0; } ! // Get the total number of ads if ( !empty($inp_category) && !empty($inp_sub_category) ) { ! $sql = "SELECT * ! FROM ". ADS_ADVERTS_TABLE ." WHERE expiry_date > $current_time AND category = '$inp_category' *************** *** 314,324 **** else if ( !empty($inp_category) ) { ! $sql = "SELECT * ! FROM ". ADS_ADVERTS_TABLE ." WHERE expiry_date > $current_time AND category = '$inp_category'";} ! else { ! $sql = "SELECT * FROM ". ADS_ADVERTS_TABLE ." WHERE expiry_date > $current_time"; --- 314,324 ---- else if ( !empty($inp_category) ) { ! $sql = "SELECT * ! FROM ". ADS_ADVERTS_TABLE ." WHERE expiry_date > $current_time AND category = '$inp_category'";} ! else { ! $sql = "SELECT * FROM ". ADS_ADVERTS_TABLE ." WHERE expiry_date > $current_time"; *************** *** 331,338 **** if ( $inp_category and $inp_sub_category ) { ! $sql = "SELECT * ! FROM ". ADS_ADVERTS_TABLE ." ! WHERE category = '$inp_category' ! AND sub_category = '$inp_sub_category' AND expiry_date > $current_time ORDER BY premium_ad_ind DESC, id DESC --- 331,338 ---- if ( $inp_category and $inp_sub_category ) { ! $sql = "SELECT * ! FROM ". ADS_ADVERTS_TABLE ." ! WHERE category = '$inp_category' ! AND sub_category = '$inp_sub_category' AND expiry_date > $current_time ORDER BY premium_ad_ind DESC, id DESC *************** *** 342,356 **** if ( $inp_category ) { ! $sql = "SELECT * ! FROM ". ADS_ADVERTS_TABLE ." ! WHERE category = '$inp_category' AND expiry_date > $current_time ORDER BY premium_ad_ind DESC, id DESC LIMIT ".$start.", ".$ads_config['ads_per_page']; } ! else { ! $sql = "SELECT * ! FROM ". ADS_ADVERTS_TABLE ." WHERE expiry_date > $current_time ORDER BY premium_ad_ind DESC, id DESC --- 342,356 ---- if ( $inp_category ) { ! $sql = "SELECT * ! FROM ". ADS_ADVERTS_TABLE ." ! WHERE category = '$inp_category' AND expiry_date > $current_time ORDER BY premium_ad_ind DESC, id DESC LIMIT ".$start.", ".$ads_config['ads_per_page']; } ! else { ! $sql = "SELECT * ! FROM ". ADS_ADVERTS_TABLE ." WHERE expiry_date > $current_time ORDER BY premium_ad_ind DESC, id DESC *************** *** 362,366 **** if ( $db->sql_numrows($result) > 0 ) { ! while ($row = $db->sql_fetchrow($result)) { $id = $row['id']; --- 362,366 ---- if ( $db->sql_numrows($result) > 0 ) { ! while ($row = $db->sql_fetchrow($result)) { $id = $row['id']; *************** *** 368,372 **** $ebay_id = $row['ebay_id']; ! $profiledata = get_userdata($user_id); if ( $user_id != ANONYMOUS ) --- 368,372 ---- $ebay_id = $row['ebay_id']; ! $profiledata = mx_get_userdata($user_id); if ( $user_id != ANONYMOUS ) *************** *** 402,429 **** // Count the comments ! $sql2 = "SELECT COUNT(comment_id) AS comments_count ! FROM ". ADS_COMMENTS_TABLE ." ! WHERE comment_ad_id = '$id' ! GROUP BY comment_ad_id ! LIMIT 1"; ! $result2 = $db->sql_query($sql2); ! $row2 = $db->sql_fetchrow($result2); ! if ( empty($row2) ) ! { ! $total_comments = 0; ! } ! else ! { ! $total_comments = $row2['comments_count']; } ! // Check to see if an image exists for this ad if ( $ads_config['images'] == 1 ) { ! $sql2 = "SELECT * FROM ". ADS_IMAGES_TABLE ." ! WHERE id = '$id' AND img_deleted_ind = 0 LIMIT 0,1"; --- 402,429 ---- // Count the comments ! $sql2 = "SELECT COUNT(comment_id) AS comments_count ! FROM ". ADS_COMMENTS_TABLE ." ! WHERE comment_ad_id = '$id' ! GROUP BY comment_ad_id ! LIMIT 1"; ! $result2 = $db->sql_query($sql2); ! $row2 = $db->sql_fetchrow($result2); ! if ( empty($row2) ) ! { ! $total_comments = 0; } ! else ! { ! $total_comments = $row2['comments_count']; ! } ! // Check to see if an image exists for this ad if ( $ads_config['images'] == 1 ) { ! $sql2 = "SELECT * FROM ". ADS_IMAGES_TABLE ." ! WHERE id = '$id' AND img_deleted_ind = 0 LIMIT 0,1"; *************** *** 431,436 **** //global $ebay_id, $mx_images; ! $sql3 = "SELECT * ! FROM ". ADS_ADVERTS_TABLE ." WHERE ebay_id = '$ebay_id' LIMIT ".$start.", ".$ads_config['ads_per_page']; --- 431,436 ---- //global $ebay_id, $mx_images; ! $sql3 = "SELECT * ! FROM ". ADS_ADVERTS_TABLE ." WHERE ebay_id = '$ebay_id' LIMIT ".$start.", ".$ads_config['ads_per_page']; *************** *** 443,454 **** if ( $db->sql_numrows($result2) > 0 ) { ! while ($row2 = $db->sql_fetchrow($result2)) { $img_url = ADS_IMAGES_PATH ."ad".$id."_img".$row2["img_seq_no"]."_thumb.jpg"; } } ! elseif ( $db->sql_numrows($result3) > 0 ) { ! while ($row3 = $db->sql_fetchrow($result3)) { $ebay_id = $row3['ebay_id']; --- 443,454 ---- if ( $db->sql_numrows($result2) > 0 ) { ! while ($row2 = $db->sql_fetchrow($result2)) { $img_url = ADS_IMAGES_PATH ."ad".$id."_img".$row2["img_seq_no"]."_thumb.jpg"; } } ! elseif ( $db->sql_numrows($result3) > 0 ) { ! while ($row3 = $db->sql_fetchrow($result3)) { $ebay_id = $row3['ebay_id']; *************** *** 463,467 **** $template->assign_block_vars('imagerow', array( ! 'U_ADS_ITEM' => append_sid(this_ads_mxurl("ads_mode=ads_item&id=".$row['id'])), 'U_PROFILE' => $profile, --- 463,467 ---- $template->assign_block_vars('imagerow', array( ! 'U_ADS_ITEM' => append_sid(this_ads_mxurl("ads_mode=ads_item&id=".$row['id'])), 'U_PROFILE' => $profile, *************** *** 477,486 **** 'COMMENTS' => $total_comments, 'IMAGE' => ( !empty($img_url) ? $img_url : $mx_images['noimage'] ) ! )); } else { $template->assign_block_vars('noimagerow', array( ! 'U_ADS_ITEM' => append_sid(this_ads_mxurl("ads_mode=ads_item&id=".$row['id'])), 'U_PROFILE' => $profile, --- 477,486 ---- 'COMMENTS' => $total_comments, 'IMAGE' => ( !empty($img_url) ? $img_url : $mx_images['noimage'] ) ! )); } else { $template->assign_block_vars('noimagerow', array( ! 'U_ADS_ITEM' => append_sid(this_ads_mxurl("ads_mode=ads_item&id=".$row['id'])), 'U_PROFILE' => $profile, *************** *** 493,502 **** 'PRICE' => $row['price'], 'VIEWS' => $row['views'], ! 'COMMENTS' => $total_comments)); } } } else ! { $template->assign_block_vars('switch_no_items_found',array()); } --- 493,502 ---- 'PRICE' => $row['price'], 'VIEWS' => $row['views'], ! 'COMMENTS' => $total_comments)); } } } else ! { $template->assign_block_vars('switch_no_items_found',array()); } *************** *** 537,541 **** $page_string = sprintf($lang['Page_of'], ( floor( $start / $ads_config['ads_per_page'] ) + 1 ), ceil( $ads_count / $ads_config['ads_per_page'] )); ! $template->assign_vars(array( 'U_ADS_INDEX' => append_sid(this_ads_mxurl()), --- 537,541 ---- $page_string = sprintf($lang['Page_of'], ( floor( $start / $ads_config['ads_per_page'] ) + 1 ), ceil( $ads_count / $ads_config['ads_per_page'] )); ! $template->assign_vars(array( 'U_ADS_INDEX' => append_sid(this_ads_mxurl()), *************** *** 547,551 **** 'U_RSS2' => append_sid($module_root_path . "adverts." . $phpEx . "?ads_mode=ads_rss2" . '&sid=' . $userdata['session_id']), 'IMG_RSS2' => $mx_images['ads_rss2'], ! 'L_CATEGORIES' => $lang['categories'], 'L_TITLE' => $lang['title'], --- 547,551 ---- 'U_RSS2' => append_sid($module_root_path . "adverts." . $phpEx . "?ads_mode=ads_rss2" . '&sid=' . $userdata['session_id']), 'IMG_RSS2' => $mx_images['ads_rss2'], ! 'L_CATEGORIES' => $lang['categories'], 'L_TITLE' => $lang['title'], *************** *** 564,568 **** 'MSG_NEWAD' => $mx_images['msg_newad'], 'GOTO_STRING' => $goto_string, ! 'PAGE_STRING' => $page_string, 'POINTER' => $pointer, 'POINTER2' => $pointer2, --- 564,568 ---- 'MSG_NEWAD' => $mx_images['msg_newad'], 'GOTO_STRING' => $goto_string, ! 'PAGE_STRING' => $page_string, 'POINTER' => $pointer, 'POINTER2' => $pointer2, *************** *** 570,574 **** 'SUB_CATEGORY' => stripslashes(str_replace("''", "\'", $inp_sub_category)))); ! $template->pparse('adverts_page'); if ( !is_object($mx_block)) --- 570,574 ---- 'SUB_CATEGORY' => stripslashes(str_replace("''", "\'", $inp_sub_category)))); ! $template->pparse('adverts_page'); if ( !is_object($mx_block)) *************** *** 576,580 **** include($mx_root_path . 'includes/page_tail.'.$phpEx); } ! // +-------------------------------------------------------------+ // | Powered by phpCA Classified Ads 0.5.6 (c) 2006 PeteMan | --- 576,580 ---- include($mx_root_path . 'includes/page_tail.'.$phpEx); } ! // +-------------------------------------------------------------+ // | Powered by phpCA Classified Ads 0.5.6 (c) 2006 PeteMan | |
|
From: Jon O. <jon...@us...> - 2008-01-28 21:57:14
|
Update of /cvsroot/mxbb/mx_pafiledb/templates/_core In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18253/templates/_core Modified Files: pa_comment_posting.tpl pa_quickdl_cat_body.tpl Log Message: general updates... tinymce support updated Index: pa_comment_posting.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/templates/_core/pa_comment_posting.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** pa_comment_posting.tpl 9 Sep 2007 20:17:08 -0000 1.1 --- pa_comment_posting.tpl 28 Jan 2008 21:57:10 -0000 1.2 *************** *** 1,3 **** --- 1,4 ---- <!-- INCLUDE pa_header.tpl --> + <!-- BEGIN switch_bbcodes --> <script language="JavaScript" type="text/javascript"> <!-- *************** *** 233,236 **** --- 234,239 ---- //--> </script> + <!-- END switch_bbcodes --> + <script language="javascript"> <!-- *************** *** 251,254 **** --- 254,365 ---- </script> + <!-- BEGIN tinyMCE --> + <script language="javascript" type="text/javascript" src="{tinyMCE.PATH}modules/mx_shared/tinymce/jscripts/tiny_mce/tiny_mce.js"></script> + <script language="javascript" type="text/javascript"> + tinyMCE.init({ + mode : "textareas", + language : "{tinyMCE.LANG}", + docs_language : "{tinyMCE.LANG}", + + apply_source_formatting : "true", + cleanup : "true", + inline_styles : "true", + convert_fonts_to_spans : "true", + fix_list_elements : "true", + fix_table_elements : "true", + force_p_newlines : "true", + remove_trailing_nbsp : "true", + + plugins : "style,advimage,advlink,preview,searchreplace,contextmenu,paste,fullscreen", + + theme : "advanced", + theme_advanced_blockformats : "p,h1,h2,h3,h4,h5,h6", + + theme_advanced_fonts : "Verdana=verdana,arial,helvetica,sans-serif;Arial=arial,helvetica,sans-serif;Courier New=courier new,courier,monospace", + + theme_advanced_buttons1 : "newdocument,separator,cut,copy,paste,pastetext,pasteword,separator,formatselect,styleselect,fontsizeselect", + + theme_advanced_buttons2: "bold,italic,underline,separator,strikethrough,justifyleft,justifycenter,justifyright,justifyfull,bullist,numlist,sup,sub,separator,link,unlink,image,separator,forecolor,separator,undo,redo", + + theme_advanced_buttons3: "", + + theme_advanced_disable : "", + + theme_advanced_toolbar_location : "top", + theme_advanced_toolbar_align : "left", + + content_css : "{tinyMCE.TEMPLATE}", + theme_advanced_styles : "Tiny Text=copyright;Small Text=gensmall;Normal Text=genmed;Big Text=gen;Code=code;Quote=quote", + + table_styles : "Layout=forumline", + table_cell_styles : "Table cell 1=row1;Table cell 2=row2;Table cell 3=row3", + table_row_styles : "Table row 1=oddrow", + table_default_border : "0", + + document_base_url : "{tinyMCE.PATH}index.php", + relative_urls : "true", + + extended_valid_elements : "a[*],img[*],table[*],tr[*],td[*],div[*],form[*],input[*]" + }); + </script> + <!-- END tinyMCE --> + + <!-- BEGIN tinyMCE_admin --> + <script language="javascript" type="text/javascript" src="{tinyMCE_admin.PATH}modules/mx_shared/tinymce/jscripts/tiny_mce/tiny_mce.js"></script> + <script language="javascript" type="text/javascript"> + tinyMCE.init({ + mode : "textareas", + language : "{tinyMCE_admin.LANG}", + docs_language : "{tinyMCE_admin.LANG}", + + apply_source_formatting : "true", + cleanup : "true", + inline_styles : "true", + convert_fonts_to_spans : "true", + fix_list_elements : "true", + fix_table_elements : "true", + force_p_newlines : "true", + remove_trailing_nbsp : "true", + + plugins : "table,advimage,advlink,insertdatetime,preview,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable", + + theme : "advanced", + theme_advanced_blockformats : "p,h1,h2,h3,h4,h5,h6", + + theme_advanced_fonts : "Verdana=verdana,arial,helvetica,sans-serif;Arial=arial,helvetica,sans-serif;Courier New=courier new,courier,monospace", + + theme_advanced_buttons1_add_before : "newdocument,separator", + theme_advanced_buttons1_add : "fontselect,fontsizeselect", + + theme_advanced_buttons2_add : "separator,insertdate,inserttime,preview,separator,forecolor", + theme_advanced_buttons2_add_before: "cut,copy,paste,pastetext,pasteword,separator,search,replace,separator", + + theme_advanced_buttons3_add_before : "tablecontrols,separator", + theme_advanced_buttons3_add : "print,separator,ltr,rtl,separator,fullscreen", + + theme_advanced_disable : "", + + theme_advanced_toolbar_location : "top", + theme_advanced_toolbar_align : "left", + + theme_advanced_path_location : "bottom", + theme_advanced_statusbar_location : "bottom", + + content_css : "{tinyMCE_admin.TEMPLATE}", + theme_advanced_styles : "Tiny Text=copyright;Small Text=gensmall;Normal Text=genmed;Big Text=gen;Code=code;Quote=quote", + + table_styles : "Layout=forumline", + table_cell_styles : "Table cell 1=row1;Table cell 2=row2;Table cell 3=row3", + table_row_styles : "Table row 1=oddrow", + table_default_border : "0", + + document_base_url : "{tinyMCE_admin.PATH}index.php", + relative_urls : "true", + + extended_valid_elements : "a[*],img[*],table[*],tr[*],td[*],div[*],form[*],input[*]" + }); + </script> + <!-- END tinyMCE_admin --> + <form action="{S_POST_ACTION}" method="post" name="post" onsubmit="return checkForm(this)"> *************** *** 275,322 **** <table border="0" cellpadding="4" cellspacing="1" width="100%" class="forumline"> <tr> ! <th class="thHead" colspan="2" height="25"><b>{L_COMMENT_ADD}</b></th> </tr> <tr> ! <td class="row1" ><span class="gen"><b>{L_COMMENT_TITLE}</b></span></td> ! <td class="row2"><input type="text" name="subject" size="45" maxlength="60" style="width:450px" tabindex="2" class="post" value="{TITLE}" /></span></td> </tr> <tr> ! <td class="row1" valign="top"> ! <table width="100%" border="0" cellspacing="0" cellpadding="1"> ! <tr> ! <td><span class="gen"><b>{L_COMMENT}</b></span></td> ! </tr> ! <tr> ! <td valign="middle" align="center"> <br /> ! <table width="100" border="0" cellspacing="0" cellpadding="5"> ! <tr align="center"> ! <td colspan="{S_SMILIES_COLSPAN}" class="nav"><a href="{U_MORE_SMILIES}" onclick="window.open('{U_MORE_SMILIES}', '_phpbbsmilies', 'HEIGHT=300,resizable=yes,scrollbars=yes,WIDTH=250');return false;" target="_phpbbsmilies" class="nav">{L_EMOTICONS}</a></td> ! </tr> ! <!-- BEGIN smilies_row --> ! <tr align="center" valign="middle"> ! <!-- BEGIN smilies_col --> ! <td><a href="javascript:emoticon('{smilies_row.smilies_col.SMILEY_CODE}')"><img src="{smilies_row.smilies_col.SMILEY_IMG}" border="0" alt="{smilies_row.smilies_col.SMILEY_DESC}" title="{smilies_row.smilies_col.SMILEY_DESC}" /></a></td> ! <!-- END smilies_col --> ! </tr> ! <!-- END smilies_row --> ! </table> ! </td> ! </tr> ! </table> ! </td> ! <td class="row2" valign="top"><span class="gen"> <span class="genmed"> </span> ! <table width="450" border="0" cellspacing="0" cellpadding="2"> <tr align="center" valign="middle"> <td><span class="genmed"> ! <input type="button" class="button" accesskey="b" name="addbbcode0" value=" B " style="font-weight:bold; width: 30px" onClick="bbstyle(0)" onMouseOver="helpline('b')" /> </span></td> <td><span class="genmed"> ! <input type="button" class="button" accesskey="i" name="addbbcode2" value=" i " style="font-style:italic; width: 30px" onClick="bbstyle(2)" onMouseOver="helpline('i')" /> </span></td> <td><span class="genmed"> ! <input type="button" class="button" accesskey="u" name="addbbcode4" value=" u " style="text-decoration: underline; width: 30px" onClick="bbstyle(4)" onMouseOver="helpline('u')" /> </span></td> <td><span class="genmed"> ! <input type="button" class="button" accesskey="q" name="addbbcode6" value="Quote" style="width: 50px" onClick="bbstyle(6)" onMouseOver="helpline('q')" /> </span></td> <td><span class="genmed"> --- 386,416 ---- <table border="0" cellpadding="4" cellspacing="1" width="100%" class="forumline"> <tr> ! <th colspan="2" class="thHead" height="25"><b>{L_COMMENT_ADD}</b></th> </tr> <tr> ! <td colspan="2" class="row1" ><span class="gen"><b>{L_COMMENT_TITLE}</b></span></td> </tr> <tr> ! <td colspan="2" class="row1"><input type="text" name="subject" size="45" maxlength="60" style="width:400px" tabindex="2" class="post" value="{TITLE}" /></span></td> ! </tr> ! <tr> ! <td colspan="2" class="row1" valign="top"><span class="gen"><b>{L_COMMENT}</b></span></td> ! </tr> ! <!-- BEGIN switch_bbcodes --> ! <tr> ! <td colspan="2" class="row2" valign="top"><span class="gen"> ! <table border="0" cellspacing="0" cellpadding="1"> <tr align="center" valign="middle"> <td><span class="genmed"> ! <input type="button" class="button" accesskey="b" name="addbbcode0" value=" B " style="font-weight:bold; width: 20px" onClick="bbstyle(0)" onMouseOver="helpline('b')" /> </span></td> <td><span class="genmed"> ! <input type="button" class="button" accesskey="i" name="addbbcode2" value=" i " style="font-style:italic; width: 20px" onClick="bbstyle(2)" onMouseOver="helpline('i')" /> </span></td> <td><span class="genmed"> ! <input type="button" class="button" accesskey="u" name="addbbcode4" value=" u " style="text-decoration: underline; width: 20px" onClick="bbstyle(4)" onMouseOver="helpline('u')" /> </span></td> <td><span class="genmed"> ! <input type="button" class="button" accesskey="q" name="addbbcode6" value="Quote" style="width: 45px" onClick="bbstyle(6)" onMouseOver="helpline('q')" /> </span></td> <td><span class="genmed"> *************** *** 324,328 **** </span></td> <td><span class="genmed"> ! <input type="button" class="button" accesskey="l" name="addbbcode10" value="List" style="width: 40px" onClick="bbstyle(10)" onMouseOver="helpline('l')" /> </span></td> <td><span class="genmed"> --- 418,422 ---- </span></td> <td><span class="genmed"> ! <input type="button" class="button" accesskey="l" name="addbbcode10" value="List" style="width: 35px" onClick="bbstyle(10)" onMouseOver="helpline('l')" /> </span></td> <td><span class="genmed"> *************** *** 330,337 **** </span></td> <td><span class="genmed"> ! <input type="button" class="button" accesskey="p" name="addbbcode14" value="Img" style="width: 40px" onClick="bbstyle(14)" onMouseOver="helpline('p')" /> </span></td> <td><span class="genmed"> ! <input type="button" class="button" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onClick="bbstyle(16)" onMouseOver="helpline('w')" /> </span></td> </tr> --- 424,431 ---- </span></td> <td><span class="genmed"> ! <input type="button" class="button" accesskey="p" name="addbbcode14" value="Img" style="width: 35px" onClick="bbstyle(14)" onMouseOver="helpline('p')" /> </span></td> <td><span class="genmed"> ! <input type="button" class="button" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 35px" onClick="bbstyle(16)" onMouseOver="helpline('w')" /> </span></td> </tr> *************** *** 340,344 **** <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> ! <td><span class="genmed"> {L_FONT_COLOR}: <select name="addbbcode18" onChange="bbfontstyle('[color=' + this.form.addbbcode18.options[this.form.addbbcode18.selectedIndex].value + ']', '[/color]')" onMouseOver="helpline('s')"> <option style="color:black; background-color: #FFFFFF " value="{T_FONTCOLOR1}" class="genmed">{L_COLOR_DEFAULT}</option> --- 434,439 ---- <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> ! <td><span class="genmed"> ! {L_FONT_COLOR}: <select name="addbbcode18" onChange="bbfontstyle('[color=' + this.form.addbbcode18.options[this.form.addbbcode18.selectedIndex].value + ']', '[/color]')" onMouseOver="helpline('s')"> <option style="color:black; background-color: #FFFFFF " value="{T_FONTCOLOR1}" class="genmed">{L_COLOR_DEFAULT}</option> *************** *** 357,361 **** <option style="color:white; background-color: #DEE3E7" value="white" class="genmed">{L_COLOR_WHITE}</option> <option style="color:black; background-color: #DEE3E7" value="black" class="genmed">{L_COLOR_BLACK}</option> ! </select> {L_FONT_SIZE}: <select name="addbbcode20" onChange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]')" onMouseOver="helpline('f')"> <option value="7" class="genmed">{L_FONT_TINY}</option> <option value="9" class="genmed">{L_FONT_SMALL}</option> --- 452,457 ---- <option style="color:white; background-color: #DEE3E7" value="white" class="genmed">{L_COLOR_WHITE}</option> <option style="color:black; background-color: #DEE3E7" value="black" class="genmed">{L_COLOR_BLACK}</option> ! </select> <br /> ! {L_FONT_SIZE}: <select name="addbbcode20" onChange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]')" onMouseOver="helpline('f')"> <option value="7" class="genmed">{L_FONT_TINY}</option> <option value="9" class="genmed">{L_FONT_SMALL}</option> *************** *** 372,386 **** <tr> <td colspan="9"> <span class="gensmall"> ! <input type="text" name="helpbox" size="45" maxlength="100" style="width:450px; font-size:10px" class="helpline" value="{L_STYLES_TIP}" /> </span></td> </tr> - <tr> - <td colspan="9" class="row2"><span class="gen"> - <textarea name="message" rows="15" cols="35" wrap="virtual" style="width:450px" tabindex="3" class="post" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);">{COMMENT}</textarea> - </td> - </tr> </table> </td> </tr> <tr> <td class="row1"><span class="gen"><B>{L_OPTIONS}</b></span><br /><span class="gensmall">{HTML_STATUS}<br />{BBCODE_STATUS}<br />{SMILIES_STATUS}<br />{LINKS_STATUS}<br />{IMAGES_STATUS}</span></td> --- 468,512 ---- <tr> <td colspan="9"> <span class="gensmall"> ! <input type="text" name="helpbox" size="45" maxlength="100" style="width:400px; font-size:10px" class="helpline" value="{L_STYLES_TIP}" /> </span></td> </tr> </table> </td> </tr> + <!-- END switch_bbcodes --> + + <tr> + <td colspan="2" valign="middle" class="row1"> + <table width="100%" border="0" cellspacing="0" cellpadding="1"> + <tr> + <td colspan="{S_SMILIES_COLSPAN}" class="genmed"> + <b>{L_EMOTICONS}</b> + </td> + </tr> + <tr valign="middle"> + <td> + <!-- BEGIN smilies_row --> + <!-- BEGIN smilies_col --> + <a href="javascript:emoticon('{smilies_row.smilies_col.SMILEY_CODE}')"><img src="{smilies_row.smilies_col.SMILEY_IMG}" border="0" alt="{smilies_row.smilies_col.SMILEY_DESC}" title="{smilies_row.smilies_col.SMILEY_DESC}" /></a> + <!-- END smilies_col --> + <!-- END smilies_row --> + </td> + </tr> + <!-- BEGIN switch_smilies_extra --> + <tr> + <td colspan="{S_SMILIES_COLSPAN}"><span class="nav"><a href="{U_MORE_SMILIES}" onclick="window.open('{U_MORE_SMILIES}', '_phpbbsmilies', 'HEIGHT=300,resizable=yes,scrollbars=yes,WIDTH=250');return false;" target="_phpbbsmilies" class="nav">{L_MORE_SMILIES}</a></span></td> + </tr> + <!-- END switch_smilies_extra --> + </table> + </td> + </tr> + + <tr> + <td colspan="2" class="row1"> + <span class="gen"> + <textarea name="message" rows="30" cols="35" wrap="virtual" style="width:400px" tabindex="3" class="post" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);">{COMMENT}</textarea> + </span> + </td> + </tr> <tr> <td class="row1"><span class="gen"><B>{L_OPTIONS}</b></span><br /><span class="gensmall">{HTML_STATUS}<br />{BBCODE_STATUS}<br />{SMILIES_STATUS}<br />{LINKS_STATUS}<br />{IMAGES_STATUS}</span></td> *************** *** 389,395 **** <tr> <td class="cat" colspan="2" align="center" height="28"> {S_HIDDEN_FORM_FIELDS}<input type="submit" tabindex="5" name="preview" class="mainoption" value="{L_PREVIEW}" /> <input type="submit" accesskey="s" tabindex="6" name="submit" class="mainoption" value="{L_SUBMIT}" /></td> ! </form> </tr> </table> <!-- INCLUDE pa_footer.tpl --> --- 515,522 ---- <tr> <td class="cat" colspan="2" align="center" height="28"> {S_HIDDEN_FORM_FIELDS}<input type="submit" tabindex="5" name="preview" class="mainoption" value="{L_PREVIEW}" /> <input type="submit" accesskey="s" tabindex="6" name="submit" class="mainoption" value="{L_SUBMIT}" /></td> ! </tr> </table> + </form> <!-- INCLUDE pa_footer.tpl --> Index: pa_quickdl_cat_body.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/templates/_core/pa_quickdl_cat_body.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** pa_quickdl_cat_body.tpl 9 Sep 2007 20:17:13 -0000 1.1 --- pa_quickdl_cat_body.tpl 28 Jan 2008 21:57:11 -0000 1.2 *************** *** 6,10 **** <tr> <td class="cat"> ! <span class="nav"><a href="{U_DOWNLOAD}" class="nav">{BACK}</a>{DOWNLOAD}</span> </td> </tr> --- 6,10 ---- <tr> <td class="cat"> ! <span class="nav"><a href="{U_DOWNLOAD}" class="nav">{BACK}</a> « {DOWNLOAD}</span> </td> </tr> |
|
From: Jon O. <jon...@us...> - 2008-01-28 21:57:14
|
Update of /cvsroot/mxbb/mx_pafiledb/pafiledb/modules In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18253/pafiledb/modules Modified Files: pa_post_comment.php pa_quickdl.php Log Message: general updates... tinymce support updated Index: pa_quickdl.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_quickdl.php,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** pa_quickdl.php 9 Sep 2007 20:16:19 -0000 1.14 --- pa_quickdl.php 28 Jan 2008 21:57:10 -0000 1.15 *************** *** 158,162 **** if ( $pa_cat_id != $pafiledb_quickdl['pa_quick_cat'] ) { ! $quickdl_back = '« '; } --- 158,162 ---- if ( $pa_cat_id != $pafiledb_quickdl['pa_quick_cat'] ) { ! $quickdl_back = $lang['Quickdl_back']; } Index: pa_post_comment.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_post_comment.php,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** pa_post_comment.php 9 Sep 2007 20:16:19 -0000 1.22 --- pa_post_comment.php 28 Jan 2008 21:57:10 -0000 1.23 *************** *** 30,33 **** --- 30,34 ---- global $html_entities_match, $html_entities_replace, $unhtml_specialchars_match, $unhtml_specialchars_replace; global $mx_root_path, $module_root_path, $phpbb_root_path, $is_block, $phpEx, $mx_request_vars; + global $mx_block, $theme; // *************** *** 124,134 **** // ! // Toggles // ! $html_on = ( $pafiledb_config['allow_comment_html'] ) ? true : 0; ! $bbcode_on = ( $pafiledb_config['allow_comment_bbcode'] ) ? true : 0; ! $smilies_on = ( $pafiledb_config['allow_comment_smilies'] ) ? true : 0; ! $links_on = ( $pafiledb_config['allow_comment_links'] ) ? true : 0; ! $images_on = ( $pafiledb_config['allow_comment_images'] ) ? true : 0; // --- 125,180 ---- // ! // wysiwyg // ! if ( $pafiledb_config['allow_comment_wysiwyg'] && file_exists( $mx_root_path . $pafiledb_config['wysiwyg_path'] . 'tinymce/jscripts/tiny_mce/blank.htm' )) ! { ! // ! // Toggles ! // ! $allow_wysiwyg = true; ! $bbcode_on = false; ! $html_on = true; ! $smilies_on = false; ! $links_on = false; ! $images_on = false; ! ! $langcode = mx_get_langcode(); ! ! if ($mx_block->auth_mod) ! { ! $template->assign_block_vars( "tinyMCE_admin", array( ! 'PATH' => $mx_root_path, ! 'LANG' => !empty($langcode) ? $langcode : $HTTP_SERVER_VARS['HTTP_ACCEPT_LANGUAGE'], ! 'TEMPLATE' => $mx_root_path . 'templates/'. $theme['template_name'] . '/' . $theme['head_stylesheet'] ! )); ! } ! else ! { ! $template->assign_block_vars( "tinyMCE", array( ! 'PATH' => $mx_root_path, ! 'LANG' => !empty($langcode) ? $langcode : $HTTP_SERVER_VARS['HTTP_ACCEPT_LANGUAGE'], ! 'TEMPLATE' => $mx_root_path . 'templates/'. $theme['template_name'] . '/' . $theme['head_stylesheet'] ! )); ! } ! } ! else ! { ! // ! // Toggles ! // ! $allow_wysiwyg = false; ! $html_on = ( $pafiledb_config['allow_comment_html'] ) ? true : 0; ! $bbcode_on = ( $pafiledb_config['allow_comment_bbcode'] ) ? true : 0; ! $smilies_on = ( $pafiledb_config['allow_comment_smilies'] ) ? true : 0; ! $links_on = ( $pafiledb_config['allow_comment_links'] ) ? true : 0; ! $images_on = ( $pafiledb_config['allow_comment_images'] ) ? true : 0; ! ! $board_config['allow_html_tags'] = $pafiledb_config['allowed_comment_html_tags']; ! ! if ($smilies_on) ! { ! $pafiledb_functions->generate_smilies( 'inline', PAGE_POSTING ); ! } ! } // *************** *** 144,148 **** // Fix: Setting 'emtpy' enables all // ! //$mx_text->allow_all_html_tags = $allow_wysiwyg; // Not yet implemented for comments --- 190,194 ---- // Fix: Setting 'emtpy' enables all // ! $mx_text->allow_all_html_tags = $allow_wysiwyg; *************** *** 198,202 **** if ( $submit ) { ! $this->update_add_comment($file_data, $item_id, $cid, '', '', $html_on, $bbcode_on, $smilies_on); $message = $lang['Comment_posted'] . '<br /><br />' . sprintf( $lang['Click_return'], '<a href="' . mx_append_sid( $this->this_mxurl( 'action=file&file_id=' . $item_id ) ) . '">', '</a>' ); --- 244,248 ---- if ( $submit ) { ! $this->update_add_comment($file_data, $item_id, $cid, '', '', $html_on, $bbcode_on, $smilies_on, $allow_wysiwyg); $message = $lang['Comment_posted'] . '<br /><br />' . sprintf( $lang['Click_return'], '<a href="' . mx_append_sid( $this->this_mxurl( 'action=file&file_id=' . $item_id ) ) . '">', '</a>' ); *************** *** 204,212 **** } - // - // Generate smilies listing for page output - // - $pafiledb_functions->generate_smilies( 'inline', PAGE_POSTING ); - $html_status = ( $html_on ) ? $lang['HTML_is_ON'] : $lang['HTML_is_OFF']; $bbcode_status = ( $bbcode_on ) ? $lang['BBCode_is_ON'] : $lang['BBCode_is_OFF']; --- 250,253 ---- *************** *** 355,358 **** --- 396,404 ---- ); + if ( $bbcode_on ) + { + $template->assign_block_vars( 'switch_bbcodes', array()); + } + // =================================================== // assign var for navigation |
|
From: Jon O. <jon...@us...> - 2008-01-28 21:57:14
|
Update of /cvsroot/mxbb/mx_pafiledb/language/lang_english In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18253/language/lang_english Modified Files: lang_main.php Log Message: general updates... tinymce support updated Index: lang_main.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/language/lang_english/lang_main.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** lang_main.php 25 Jul 2007 23:14:15 -0000 1.12 --- lang_main.php 28 Jan 2008 21:57:10 -0000 1.13 *************** *** 275,278 **** --- 275,279 ---- $lang['Comment_explain'] = 'Use the text box above to give your opinion on this file!'; $lang['Comment_add'] = 'Add Comment'; + $lang['Comment_edit'] = 'Edit'; $lang['Comment_delete'] = 'Delete'; $lang['Comment_posted'] = 'Your comment has been entered successfully'; *************** *** 415,417 **** --- 416,423 ---- $lang['Rating'] = 'Rating'; $lang['Dls'] = 'Downloaded'; + + // + // Quickdl + // + $lang['Quickdl_back'] = 'Back'; ?> \ No newline at end of file |
|
From: Jon O. <jon...@us...> - 2008-01-28 21:57:14
|
Update of /cvsroot/mxbb/mx_pafiledb/templates/_core/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18253/templates/_core/admin Modified Files: mx_module_panel.tpl pa_admin_settings.tpl Log Message: general updates... tinymce support updated Index: pa_admin_settings.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/templates/_core/admin/pa_admin_settings.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** pa_admin_settings.tpl 9 Sep 2007 20:17:18 -0000 1.1 --- pa_admin_settings.tpl 28 Jan 2008 21:57:10 -0000 1.2 *************** *** 99,103 **** <tr> <td class="row1" width="50%">{L_INTERNAL_COMMENTS}<br /><span class="gensmall">{L_INTERNAL_COMMENTS_EXPLAIN}</span></td> ! <td class="row2" width="50%"><input type="radio" name="internal_comments" value="1" {S_INTERNAL_COMMENTS_INTERNAL} /> {L_INTERNAL_COMMENTS_INTERNAL} <input type="radio" name="internal_comments" value="0" {S_INTERNAL_COMMENTS_PHPBB} /> {L_INTERNAL_COMMENTS_PHPBB}</td> </tr> <tr> --- 99,103 ---- <tr> <td class="row1" width="50%">{L_INTERNAL_COMMENTS}<br /><span class="gensmall">{L_INTERNAL_COMMENTS_EXPLAIN}</span></td> ! <td class="row2" width="50%"><input type="radio" name="internal_comments" value="1" {S_INTERNAL_COMMENTS_INTERNAL} {S_READONLY} /> {L_INTERNAL_COMMENTS_INTERNAL} <input type="radio" name="internal_comments" value="0" {S_INTERNAL_COMMENTS_PHPBB} {S_READONLY} /> {L_INTERNAL_COMMENTS_PHPBB}</td> </tr> <tr> Index: mx_module_panel.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/templates/_core/admin/mx_module_panel.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** mx_module_panel.tpl 9 Sep 2007 20:17:15 -0000 1.1 --- mx_module_panel.tpl 28 Jan 2008 21:57:10 -0000 1.2 *************** *** 1,3 **** - <table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" align="center"> <tr> <th class="thHead">{L_PANEL_TITLE}</th> --- 1,2 ---- *************** *** 5,18 **** <tr> <td class="genmed">{L_PANEL_TITLE_EXPLAIN}</td> ! </tr> ! <tr> <td align="center"> {RESULT_MESSAGE} </td> ! </tr> ! <tr> ! <td align="center"> <form action="{S_ACTION}" method="post"> --- 4,17 ---- <tr> <td class="genmed">{L_PANEL_TITLE_EXPLAIN}</td> ! </tr> ! <tr> <td align="center"> {RESULT_MESSAGE} </td> ! </tr> ! <tr> ! <td align="center"> <form action="{S_ACTION}" method="post"> *************** *** 22,26 **** <th class="cat" align="left">{L_MAP_MXBB}</th> <th class="cat" align="left"></th> ! </tr> <!-- BEGIN map_row --> <tr> --- 21,25 ---- <th class="cat" align="left">{L_MAP_MXBB}</th> <th class="cat" align="left"></th> ! </tr> <!-- BEGIN map_row --> <tr> *************** *** 32,45 **** <tr> <td class="cat" colspan="3" align="center">{S_HIDDEN_UPDATE_FIELDS}<input type="submit" name="submit" value="{L_EDIT}" class="mainoption" /></td> ! </tr> </table> </form> ! <form action="{S_ACTION}" method="post"> ! <table border="0" cellpadding="4" cellspacing="1" width="100%" class="forumline"> <tr> <th class="cat" align="left">{L_MAP_PAFILEDB}</th> <th class="cat" align="left">{L_MAP_MXBB}</th> ! </tr> <tr> <td align="left" class="row1" width="50%"><select name="map_cat_id" class="post">{S_MAP_CAT_LIST}</select></td> --- 31,44 ---- <tr> <td class="cat" colspan="3" align="center">{S_HIDDEN_UPDATE_FIELDS}<input type="submit" name="submit" value="{L_EDIT}" class="mainoption" /></td> ! </tr> </table> </form> ! <form action="{S_ACTION}" method="post"> ! <table border="0" cellpadding="4" cellspacing="1" width="100%" class="forumline"> <tr> <th class="cat" align="left">{L_MAP_PAFILEDB}</th> <th class="cat" align="left">{L_MAP_MXBB}</th> ! </tr> <tr> <td align="left" class="row1" width="50%"><select name="map_cat_id" class="post">{S_MAP_CAT_LIST}</select></td> *************** *** 48,61 **** <tr> <td class="cat" colspan="2" align="center">{S_HIDDEN_ADD_FIELDS}<input type="submit" name="submit" value="{L_ADD}" class="mainoption" /></td> ! </tr> </table> ! </form> ! </td> ! </tr> - </table> - \ No newline at end of file --- 47,58 ---- <tr> <td class="cat" colspan="2" align="center">{S_HIDDEN_ADD_FIELDS}<input type="submit" name="submit" value="{L_ADD}" class="mainoption" /></td> ! </tr> </table> ! </form> ! </td> ! </tr> |
|
From: Jon O. <jon...@us...> - 2008-01-28 21:57:14
|
Update of /cvsroot/mxbb/mx_pafiledb/pafiledb/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18253/pafiledb/admin Modified Files: admin_cat_manage.php admin_settings.php Log Message: general updates... tinymce support updated Index: admin_cat_manage.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/admin/admin_cat_manage.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** admin_cat_manage.php 9 Sep 2007 20:16:16 -0000 1.4 --- admin_cat_manage.php 28 Jan 2008 21:57:10 -0000 1.5 *************** *** 18,22 **** function main( $action ) { ! global $db, $images, $template, $template, $lang, $phpEx, $pafiledb_functions, $pafiledb_cache, $pafiledb_config, $phpbb_root_path, $module_root_path, $mx_root_path, $mx_request_vars; // --- 18,22 ---- function main( $action ) { ! global $db, $images, $template, $template, $lang, $phpEx, $pafiledb_functions, $pafiledb_cache, $pafiledb_config, $phpbb_root_path, $module_root_path, $mx_root_path, $mx_request_vars, $portal_config; // *************** *** 288,292 **** 'L_FORUM_ID' => $lang['Forum_id'], 'L_FORUM_ID_EXPLAIN' => $lang['Forum_id_explain'], ! 'FORUM_LIST' => $this->get_forums( $comments_forum_id, true, 'comments_forum_id' ), 'L_AUTOGENERATE_COMMENTS' => $lang['Autogenerate_comments'], --- 288,293 ---- 'L_FORUM_ID' => $lang['Forum_id'], 'L_FORUM_ID_EXPLAIN' => $lang['Forum_id_explain'], ! 'FORUM_LIST' => $portal_config['portal_backend'] != 'internal' ? $this->get_forums( $comments_forum_id, true, 'comments_forum_id' ) : 'not available', ! //'FORUM_LIST' => $this->get_forums( $comments_forum_id, true, 'comments_forum_id' ), 'L_AUTOGENERATE_COMMENTS' => $lang['Autogenerate_comments'], Index: admin_settings.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/admin/admin_settings.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** admin_settings.php 9 Sep 2007 20:16:17 -0000 1.5 --- admin_settings.php 28 Jan 2008 21:57:10 -0000 1.6 *************** *** 18,22 **** function main( $action ) { ! global $db, $images, $template, $lang, $phpEx, $pafiledb_functions, $pafiledb_cache, $pafiledb_config, $phpbb_root_path, $module_root_path, $mx_root_path, $mx_request_vars; // --- 18,22 ---- function main( $action ) { ! global $db, $images, $template, $lang, $phpEx, $pafiledb_functions, $pafiledb_cache, $pafiledb_config, $phpbb_root_path, $module_root_path, $mx_root_path, $mx_request_vars, $portal_config; // *************** *** 200,213 **** $use_comments_no = ( !$new['use_comments'] ) ? "checked=\"checked\"" : ""; ! $internal_comments_internal = ( $new['internal_comments'] ) ? "checked=\"checked\"" : ""; ! $internal_comments_phpbb = ( !$new['internal_comments'] ) ? "checked=\"checked\"" : ""; ! $comments_forum_id = $new['comments_forum_id']; ! $del_topic_yes = ( $new['del_topic'] ) ? "checked=\"checked\"" : ""; ! $del_topic_no = ( !$new['del_topic'] ) ? "checked=\"checked\"" : ""; ! $autogenerate_comments_yes = ( $new['autogenerate_comments'] ) ? "checked=\"checked\"" : ""; ! $autogenerate_comments_no = ( !$new['autogenerate_comments'] ) ? "checked=\"checked\"" : ""; $allow_comment_wysiwyg_yes = ( $new['allow_comment_wysiwyg'] ) ? "checked=\"checked\"" : ""; --- 200,236 ---- $use_comments_no = ( !$new['use_comments'] ) ? "checked=\"checked\"" : ""; ! switch ($portal_config['portal_backend']) ! { ! case 'internal': ! $internal_comments_internal = "checked=\"checked\""; ! $internal_comments_phpbb = ""; ! $comments_forum_id = 0; ! $del_topic_yes = ""; ! $del_topic_no = "checked=\"checked\""; ! $autogenerate_comments_yes = ""; ! $autogenerate_comments_no = "checked=\"checked\""; ! $template->assign_vars( array( ! 'S_READONLY' => "disabled=\"disabled\"" ) ! ); ! break; ! ! default: ! $internal_comments_internal = ( $new['internal_comments'] ) ? "checked=\"checked\"" : ""; ! $internal_comments_phpbb = ( !$new['internal_comments'] ) ? "checked=\"checked\"" : ""; ! $comments_forum_id = $new['comments_forum_id']; ! ! $del_topic_yes = ( $new['del_topic'] ) ? "checked=\"checked\"" : ""; ! $del_topic_no = ( !$new['del_topic'] ) ? "checked=\"checked\"" : ""; ! ! $autogenerate_comments_yes = ( $new['autogenerate_comments'] ) ? "checked=\"checked\"" : ""; ! $autogenerate_comments_no = ( !$new['autogenerate_comments'] ) ? "checked=\"checked\"" : ""; ! $template->assign_vars( array( ! 'S_READONLY' => "" ) ! ); ! break; ! } $allow_comment_wysiwyg_yes = ( $new['allow_comment_wysiwyg'] ) ? "checked=\"checked\"" : ""; *************** *** 393,397 **** 'L_FORUM_ID' => $lang['Forum_id'], 'L_FORUM_ID_EXPLAIN' => $lang['Forum_id_explain'], ! 'FORUM_LIST' => $this->get_forums( $comments_forum_id, false, 'comments_forum_id' ), 'L_AUTOGENERATE_COMMENTS' => $lang['Autogenerate_comments'], --- 416,421 ---- 'L_FORUM_ID' => $lang['Forum_id'], 'L_FORUM_ID_EXPLAIN' => $lang['Forum_id_explain'], ! //'FORUM_LIST' => $this->get_forums( $comments_forum_id, false, 'comments_forum_id' ), ! 'FORUM_LIST' => $portal_config['portal_backend'] != 'internal' ? $this->get_forums( $comments_forum_id, false, 'comments_forum_id' ) : 'not available', 'L_AUTOGENERATE_COMMENTS' => $lang['Autogenerate_comments'], |
|
From: Jon O. <jon...@us...> - 2008-01-28 21:57:14
|
Update of /cvsroot/mxbb/mx_pafiledb/pafiledb/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18253/pafiledb/includes Modified Files: functions_pafiledb.php Log Message: general updates... tinymce support updated Index: functions_pafiledb.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/includes/functions_pafiledb.php,v retrieving revision 1.51 retrieving revision 1.52 diff -C2 -d -r1.51 -r1.52 *** functions_pafiledb.php 18 Dec 2007 01:01:24 -0000 1.51 --- functions_pafiledb.php 28 Jan 2008 21:57:10 -0000 1.52 *************** *** 82,88 **** // $this->comments[$cat_rowset[$i]['cat_id']]['activated'] = $cat_rowset[$i]['cat_allow_comments'] == -1 ? ($pafiledb_config['use_comments'] == 1 ? true : false ) : ( $cat_rowset[$i]['cat_allow_comments'] == 1 ? true : false ); ! $this->comments[$cat_rowset[$i]['cat_id']]['internal_comments'] = $cat_rowset[$i]['internal_comments'] == -1 ? ($pafiledb_config['internal_comments'] == 1 ? true : false ) : ( $cat_rowset[$i]['internal_comments'] == 1 ? true : false ); // phpBB or internal comments ! $this->comments[$cat_rowset[$i]['cat_id']]['autogenerate_comments'] = $cat_rowset[$i]['autogenerate_comments'] == -1 ? ($pafiledb_config['autogenerate_comments'] == 1 ? true : false ) : ( $cat_rowset[$i]['autogenerate_comments'] == 1 ? true : false ); // autocreate comments when updated ! $this->comments[$cat_rowset[$i]['cat_id']]['comments_forum_id'] = $cat_rowset[$i]['comments_forum_id'] < 1 ? ( intval($pafiledb_config['comments_forum_id']) ) : ( intval($cat_rowset[$i]['comments_forum_id']) ); // phpBB target forum (only used for phpBB comments) if ($this->comments[$cat_rowset[$i]['cat_id']]['activated'] && !$this->comments[$cat_rowset[$i]['cat_id']]['internal_comments'] && intval($this->comments[$cat_rowset[$i]['cat_id']]['comments_forum_id']) < 1) --- 82,100 ---- // $this->comments[$cat_rowset[$i]['cat_id']]['activated'] = $cat_rowset[$i]['cat_allow_comments'] == -1 ? ($pafiledb_config['use_comments'] == 1 ? true : false ) : ( $cat_rowset[$i]['cat_allow_comments'] == 1 ? true : false ); ! ! switch($portal_config['portal_backend']) ! { ! case 'internal': ! $this->comments[$cat_rowset[$i]['cat_id']]['internal_comments'] = true; // phpBB or internal comments ! $this->comments[$cat_rowset[$i]['cat_id']]['autogenerate_comments'] = false; // autocreate comments when updated ! $this->comments[$cat_rowset[$i]['cat_id']]['comments_forum_id'] = 0; // phpBB target forum (only used for phpBB comments) ! break; ! ! default: ! $this->comments[$cat_rowset[$i]['cat_id']]['internal_comments'] = $cat_rowset[$i]['internal_comments'] == -1 ? ($pafiledb_config['internal_comments'] == 1 ? true : false ) : ( $cat_rowset[$i]['internal_comments'] == 1 ? true : false ); // phpBB or internal comments ! $this->comments[$cat_rowset[$i]['cat_id']]['autogenerate_comments'] = $cat_rowset[$i]['autogenerate_comments'] == -1 ? ($pafiledb_config['autogenerate_comments'] == 1 ? true : false ) : ( $cat_rowset[$i]['autogenerate_comments'] == 1 ? true : false ); // autocreate comments when updated ! $this->comments[$cat_rowset[$i]['cat_id']]['comments_forum_id'] = $cat_rowset[$i]['comments_forum_id'] < 1 ? ( intval($pafiledb_config['comments_forum_id']) ) : ( intval($cat_rowset[$i]['comments_forum_id']) ); // phpBB target forum (only used for phpBB comments) ! break; ! } if ($this->comments[$cat_rowset[$i]['cat_id']]['activated'] && !$this->comments[$cat_rowset[$i]['cat_id']]['internal_comments'] && intval($this->comments[$cat_rowset[$i]['cat_id']]['comments_forum_id']) < 1) *************** *** 1466,1469 **** --- 1478,1483 ---- $pageId = empty($pageId) ? $page_id : $pageId; + $args .= ($args == '' ? '' : '&' ) . 'modrewrite=no'; + if ( !MXBB_MODULE ) { *************** *** 1571,1575 **** * @param unknown_type $smilies_on */ ! function update_add_comment($file_data = '', $item_id, $cid, $subject = '', $message = '', $html_on = false, $bbcode_on = true, $smilies_on = false) { global $template, $pafiledb_functions, $lang, $board_config, $phpEx, $pafiledb_config, $db, $images, $userdata; --- 1585,1589 ---- * @param unknown_type $smilies_on */ ! function update_add_comment($file_data = '', $item_id, $cid, $subject = '', $message = '', $html_on = false, $bbcode_on = true, $smilies_on = false, $wysiwyg_on = false) { global $template, $pafiledb_functions, $lang, $board_config, $phpEx, $pafiledb_config, $db, $images, $userdata; *************** *** 1613,1617 **** $mx_text = new mx_text(); $mx_text->init($html_on, $bbcode_on, $smilies_on); ! //$mx_text->allow_all_html_tags = $parameter_data['parameter_type'] = 'WysiwygTextBlock' ? true : false; // --- 1627,1631 ---- $mx_text = new mx_text(); $mx_text->init($html_on, $bbcode_on, $smilies_on); ! $mx_text->allow_all_html_tags = $wysiwyg_on; // |
|
From: Jon O. <jon...@us...> - 2008-01-28 21:53:46
|
Update of /cvsroot/mxbb/mx_online_adv In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv17035 Modified Files: mx_online_adv.php Log Message: probably nothing...but i got conflicts during update... Index: mx_online_adv.php =================================================================== RCS file: /cvsroot/mxbb/mx_online_adv/mx_online_adv.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** mx_online_adv.php 2 Aug 2007 11:59:31 -0000 1.5 --- mx_online_adv.php 28 Jan 2008 21:53:43 -0000 1.6 *************** *** 18,22 **** // Start session management // ! //$mx_user->init($user_ip, PAGE_INDEX); // // End session management --- 18,22 ---- // Start session management // ! //$mx_user->init($user_ip, PAGE_INDEX); // // End session management *************** *** 67,73 **** $online_userlist = ''; $l_online_users = ''; ! $uot_this_timestamp_array = getdate(); $uot_when_from = mktime(0, 0, 0, $uot_this_timestamp_array[mon], $uot_this_timestamp_array[mday], $uot_this_timestamp_array[year]); ! $uot_hidden_count = 0; // ================================================================================ --- 67,73 ---- $online_userlist = ''; $l_online_users = ''; ! $uot_this_timestamp_array = getdate(); $uot_when_from = mktime(0, 0, 0, $uot_this_timestamp_array[mon], $uot_this_timestamp_array[mday], $uot_this_timestamp_array[year]); ! $uot_hidden_count = 0; // ================================================================================ *************** *** 90,198 **** if ($parm1_display_today == 'TRUE') { ! $sql = "SELECT count(*) cnt ! FROM " . USERS_TABLE . " u ! WHERE u.user_session_time >= " . $uot_when_from . " ! ORDER BY u.username ASC"; ! ! if (!($uot_result = $db->sql_query($sql))) ! { ! mx_message_die(GENERAL_ERROR, 'Could not obtain regd user/online information', '', __LINE__, __FILE__, $sql); ! } ! $row = $db->sql_fetchrow($uot_result); ! $uot_count = $row['cnt']; ! $sql = "SELECT u.user_id, u.username, u.user_allow_viewonline, u.user_level, user_session_time ! FROM " . USERS_TABLE . " u ! WHERE u.user_session_time >= " . $uot_when_from . " ! ORDER BY u.username ASC"; ! ! if (!($uot_result = $db->sql_query($sql))) ! { ! mx_message_die(GENERAL_ERROR, 'Could not obtain regd user/online information', '', __LINE__, __FILE__, $sql); ! } ! $users_online_today = array(); ! while ($row = $db->sql_fetchrow($uot_result)) ! { ! $$which_counter++; ! $row_color = ($$which_counter % 2) ? $theme['td_color1'] : $theme['td_color2']; ! $row_class = ($$which_counter % 2) ? $theme['td_class1'] : $theme['td_class2']; ! ! //generate the user name (robbed from the code above) ! $uot_user_id = $row['user_id']; ! ! //reset the style... ! $uot_style = ''; ! if ($uot_user_id != $prev_user) ! { ! $uot_username_plain = $uot_username = $row['username']; ! if ($row['user_level'] == ADMIN) ! { ! $uot_style = 'style="color:#' . $theme['fontcolor3'] . ';"'; ! $uot_username = '<b>' . $uot_username . '</b>'; ! } ! else if ($row['user_level'] == MOD) ! { ! $uot_style = 'style="color:#' . $theme['fontcolor2'] . ';"'; ! $uot_username = '<b>' . $uot_username . '</b>'; } ! if (!$row['user_allow_viewonline']) ! { ! $uot_hidden_count++; ! $view_online = ( $userdata['user_level'] == ADMIN ) ? true : false; ! $uot_username = $lang['UOT_hidden_start'] . $uot_username . $lang['UOT_hidden_end']; ! } ! else ! { ! $view_online = true; ! } ! } ! //annon does not have a profile... if($row['user_id'] > 0) ! { ! $uot_username = sprintf('<a href="' . PHPBB_URL . 'profile.php?mode=viewprofile&u=%d" title="%s was last here at: %s" %s>%s</a>',$uot_user_id,$uot_username_plain,create_date('g:ia', $row['user_session_time'], $board_config['board_timezone']),$uot_style,$uot_username); ! } ! ! //this will show just the user's name, with the time in the tool tip. ! if($view_online) ! { ! array_push($users_online_today, $uot_username); ! } ! } if(count($users_online_today)==0) ! { ! array_push($users_online_today,$lang['UOT_none']); ! } if( $userdata['user_level'] == ADMIN && $uot_hidden_count>0) ! { ! array_push($users_online_today,sprintf($lang['UOT_hidden'], $uot_hidden_count)); ! } if ($parm2_put_today_bottom == 'TRUE') { ! $template->assign_block_vars('show_today_mode_bottom', array( ! 'UOT_TITLE' => sprintf($lang['UOT_title'], $uot_count), ! 'UOT_COUNT' => $uot_count, ! 'UOT_LIST' => implode(", ",$users_online_today) ! ) ); } else { ! $template->assign_block_vars('show_today_mode_top', array( ! 'UOT_TITLE' => sprintf($lang['UOT_title'], $uot_count), ! 'UOT_COUNT' => $uot_count, ! 'UOT_LIST' => implode(", ",$users_online_today) ! ) ); } --- 90,198 ---- if ($parm1_display_today == 'TRUE') { ! $sql = "SELECT count(*) cnt ! FROM " . USERS_TABLE . " u ! WHERE u.user_session_time >= " . $uot_when_from . " ! ORDER BY u.username ASC"; ! if (!($uot_result = $db->sql_query($sql))) ! { ! mx_message_die(GENERAL_ERROR, 'Could not obtain regd user/online information', '', __LINE__, __FILE__, $sql); ! } ! $row = $db->sql_fetchrow($uot_result); ! $uot_count = $row['cnt']; ! $sql = "SELECT u.user_id, u.username, u.user_allow_viewonline, u.user_level, user_session_time ! FROM " . USERS_TABLE . " u ! WHERE u.user_session_time >= " . $uot_when_from . " ! ORDER BY u.username ASC"; ! if (!($uot_result = $db->sql_query($sql))) ! { ! mx_message_die(GENERAL_ERROR, 'Could not obtain regd user/online information', '', __LINE__, __FILE__, $sql); ! } ! $users_online_today = array(); ! while ($row = $db->sql_fetchrow($uot_result)) ! { ! $$which_counter++; ! $row_color = ($$which_counter % 2) ? $theme['td_color1'] : $theme['td_color2']; ! $row_class = ($$which_counter % 2) ? $theme['td_class1'] : $theme['td_class2']; ! ! //generate the user name (robbed from the code above) ! $uot_user_id = $row['user_id']; ! ! //reset the style... ! $uot_style = ''; ! ! if ($uot_user_id != $prev_user) ! { ! $uot_username_plain = $uot_username = $row['username']; ! ! if ($row['user_level'] == ADMIN) ! { ! $uot_style = 'style="color:#' . $theme['fontcolor3'] . ';"'; ! $uot_username = '<b>' . $uot_username . '</b>'; ! } ! else if ($row['user_level'] == MOD) ! { ! $uot_style = 'style="color:#' . $theme['fontcolor2'] . ';"'; ! $uot_username = '<b>' . $uot_username . '</b>'; } ! if (!$row['user_allow_viewonline']) ! { ! $uot_hidden_count++; ! $view_online = ( $userdata['user_level'] == ADMIN ) ? true : false; ! $uot_username = $lang['UOT_hidden_start'] . $uot_username . $lang['UOT_hidden_end']; ! } ! else ! { ! $view_online = true; ! } ! } ! //annon does not have a profile... if($row['user_id'] > 0) ! { ! $uot_username = sprintf('<a href="' . PHPBB_URL . 'profile.php?mode=viewprofile&u=%d" title="%s was last here at: %s" %s>%s</a>',$uot_user_id,$uot_username_plain,create_date('g:ia', $row['user_session_time'], $board_config['board_timezone']),$uot_style,$uot_username); ! } ! //this will show just the user's name, with the time in the tool tip. ! if($view_online) ! { ! array_push($users_online_today, $uot_username); ! } ! ! } if(count($users_online_today)==0) ! { ! array_push($users_online_today,$lang['UOT_none']); ! } if( $userdata['user_level'] == ADMIN && $uot_hidden_count>0) ! { ! array_push($users_online_today,sprintf($lang['UOT_hidden'], $uot_hidden_count)); ! } if ($parm2_put_today_bottom == 'TRUE') { ! $template->assign_block_vars('show_today_mode_bottom', array( ! 'UOT_TITLE' => sprintf($lang['UOT_title'], $uot_count), ! 'UOT_COUNT' => $uot_count, ! 'UOT_LIST' => implode(", ",$users_online_today) ! ) ); } else { ! $template->assign_block_vars('show_today_mode_top', array( ! 'UOT_TITLE' => sprintf($lang['UOT_title'], $uot_count), ! 'UOT_COUNT' => $uot_count, ! 'UOT_LIST' => implode(", ",$users_online_today) ! ) ); } *************** *** 201,206 **** if ($parm3_show_icon == 'TRUE') { ! $template->assign_block_vars('hide_left_icon', array( ! ) ); } --- 201,206 ---- if ($parm3_show_icon == 'TRUE') { ! $template->assign_block_vars('hide_left_icon', array( ! ) ); } *************** *** 241,245 **** { $row['username'] = '<b>' . $row['username'] . '</b>'; ! $style_color = 'style="color:#' . $theme['fontcolor2'] . '"'; } --- 241,245 ---- { $row['username'] = '<b>' . $row['username'] . '</b>'; ! $style_color = 'style="color:#' . $theme['fontcolor2'] . '"'; } *************** *** 290,294 **** $lycos_color = 'style="font-weight: bold;"'; ! $spiders = str_replace('google','<span style="font-weight: bold; color: #2244BB;">G</span><span style="font-weight: bold; color: #DD2222;">o</span><span style="font-weight: bold; color: #EEBB00;">o</span><span style="font-weight: bold; color: #2244BB;">g</span><span style="font-weight: bold; color: #339933;">l</span><span style="font-weight: bold; color: #DD2222;">e</span>',$spiders); $spiders = str_replace('adsense','<span ' . $yahoo_color . '>adsense</span>',$spiders); $spiders = str_replace('msn','<span ' . $msn_color . '>msn</span>',$spiders); --- 290,294 ---- $lycos_color = 'style="font-weight: bold;"'; ! $spiders = str_replace('google','<span style="font-weight: bold; color: #2244BB;">G</span><span style="font-weight: bold; color: #DD2222;">o</span><span style="font-weight: bold; color: #EEBB00;">o</span><span style="font-weight: bold; color: #2244BB;">g</span><span style="font-weight: bold; color: #339933;">l</span><span style="font-weight: bold; color: #DD2222;">e</span>',$spiders); $spiders = str_replace('adsense','<span ' . $yahoo_color . '>adsense</span>',$spiders); $spiders = str_replace('msn','<span ' . $msn_color . '>msn</span>',$spiders); *************** *** 436,442 **** // removing them // ! $total_posts = mx_get_db_stat('postcount'); ! $total_users = mx_get_db_stat('usercount'); ! $newest_userdata = mx_get_db_stat('newestuser'); $newest_user = $newest_userdata['username']; $newest_uid = $newest_userdata['user_id']; --- 436,442 ---- // removing them // ! $total_posts = phpBB2::get_db_stat('postcount'); ! $total_users = phpBB2::get_db_stat('usercount'); ! $newest_userdata = phpBB2::get_db_stat('newestuser'); $newest_user = $newest_userdata['username']; $newest_uid = $newest_userdata['user_id']; |
|
From: Jon O. <jon...@us...> - 2008-01-28 21:53:37
|
Update of /cvsroot/mxbb/mx_linkdb/language/lang_english In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv16082/language/lang_english Modified Files: lang_main.php Log Message: general updates... tinymce support Index: lang_main.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/language/lang_english/lang_main.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** lang_main.php 25 Jul 2007 23:13:38 -0000 1.10 --- lang_main.php 28 Jan 2008 21:53:03 -0000 1.11 *************** *** 159,162 **** --- 159,163 ---- $lang['Comment_explain'] = 'Use the textbox above to give your opinion on this file!'; $lang['Comment_add'] = 'Add Comment'; + $lang['Comment_edit'] = 'Edit'; $lang['Comment_delete'] = 'Delete'; $lang['Comment_posted'] = 'Your comment has been entered successfully'; |