You can subscribe to this list here.
| 2005 |
Jan
|
Feb
|
Mar
(95) |
Apr
(270) |
May
(111) |
Jun
|
Jul
|
Aug
(64) |
Sep
(130) |
Oct
(319) |
Nov
(17) |
Dec
(191) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2006 |
Jan
(53) |
Feb
|
Mar
|
Apr
|
May
(6) |
Jun
(387) |
Jul
(102) |
Aug
(247) |
Sep
(120) |
Oct
(1) |
Nov
(8) |
Dec
(21) |
| 2007 |
Jan
(38) |
Feb
(36) |
Mar
|
Apr
(32) |
May
(135) |
Jun
(523) |
Jul
(192) |
Aug
(103) |
Sep
(533) |
Oct
(77) |
Nov
(23) |
Dec
(203) |
| 2008 |
Jan
(312) |
Feb
(1193) |
Mar
(404) |
Apr
(67) |
May
(62) |
Jun
(497) |
Jul
(297) |
Aug
(110) |
Sep
(335) |
Oct
(256) |
Nov
(50) |
Dec
(118) |
| 2009 |
Jan
(67) |
Feb
(10) |
Mar
(1) |
Apr
(1) |
May
|
Jun
(10) |
Jul
(61) |
Aug
|
Sep
(16) |
Oct
(45) |
Nov
(12) |
Dec
(14) |
| 2010 |
Jan
(30) |
Feb
|
Mar
|
Apr
(4) |
May
|
Jun
|
Jul
(7) |
Aug
(7) |
Sep
(5) |
Oct
(5) |
Nov
|
Dec
|
| 2011 |
Jan
(7) |
Feb
(3) |
Mar
(89) |
Apr
(11) |
May
(5) |
Jun
|
Jul
(8) |
Aug
(1) |
Sep
(2) |
Oct
|
Nov
(2) |
Dec
(89) |
| 2012 |
Jan
(7) |
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(4) |
Sep
(3) |
Oct
(42) |
Nov
(1) |
Dec
|
| 2013 |
Jan
|
Feb
|
Mar
(19) |
Apr
(90) |
May
(38) |
Jun
(235) |
Jul
(38) |
Aug
(10) |
Sep
|
Oct
(29) |
Nov
|
Dec
|
| 2014 |
Jan
|
Feb
|
Mar
|
Apr
(6) |
May
(52) |
Jun
|
Jul
(7) |
Aug
|
Sep
(17) |
Oct
|
Nov
|
Dec
|
|
From: Jon O. <jon...@us...> - 2008-02-08 23:37:26
|
Update of /cvsroot/mxbb/core/modules/mx_news/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv11985/admin Removed Files: admin_mx_news.php index.htm Log Message: Removing trailing newlines... Removing mx_news, by accident included in CORE --- admin_mx_news.php DELETED --- --- index.htm DELETED --- |
|
From: Jon O. <jon...@us...> - 2008-02-08 23:37:11
|
Update of /cvsroot/mxbb/core/modules/mx_users/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv11792 Modified Files: admin_groups.php Log Message: Removing trailing newlines... Removing mx_news, by accident included in CORE Index: admin_groups.php =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_users/admin/admin_groups.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** admin_groups.php 21 Sep 2007 19:04:39 -0000 1.2 --- admin_groups.php 8 Feb 2008 23:37:06 -0000 1.3 *************** *** 478,480 **** include_once( $mx_root_path . 'admin/page_footer_admin.' . $phpEx ); ! ?> --- 478,480 ---- include_once( $mx_root_path . 'admin/page_footer_admin.' . $phpEx ); ! ?> \ No newline at end of file |
|
From: Jon O. <jon...@us...> - 2008-02-08 23:37:00
|
Update of /cvsroot/mxbb/mx_calsnails In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv11507 Modified Files: db_install.php db_upgrade.php Log Message: Removing trailing newlines... Index: db_install.php =================================================================== RCS file: /cvsroot/mxbb/mx_calsnails/db_install.php,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -d -r1.28 -r1.29 *** db_install.php 22 Jul 2007 21:03:18 -0000 1.28 --- db_install.php 8 Feb 2008 23:36:53 -0000 1.29 *************** *** 94,96 **** echo "<tr><td class=\"row1\" align=\"left\"><span class=\"gen\">" . $message . "</span></td></tr>"; echo "</table><br />"; ! ?> --- 94,96 ---- echo "<tr><td class=\"row1\" align=\"left\"><span class=\"gen\">" . $message . "</span></td></tr>"; echo "</table><br />"; ! ?> \ No newline at end of file Index: db_upgrade.php =================================================================== RCS file: /cvsroot/mxbb/mx_calsnails/db_upgrade.php,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** db_upgrade.php 22 Jul 2007 21:03:18 -0000 1.21 --- db_upgrade.php 8 Feb 2008 23:36:53 -0000 1.22 *************** *** 105,107 **** echo "<tr><td class=\"row1\" align=\"left\"><span class=\"gen\">" . $message . "</span></td></tr>"; echo "</table><br />"; ! ?> --- 105,107 ---- echo "<tr><td class=\"row1\" align=\"left\"><span class=\"gen\">" . $message . "</span></td></tr>"; echo "</table><br />"; ! ?> \ No newline at end of file |
|
From: Jon O. <jon...@us...> - 2008-02-08 23:36:48
|
Update of /cvsroot/mxbb/mx_bugsbt In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv11426 Modified Files: db_install.php Log Message: Removing trailing newlines... Index: db_install.php =================================================================== RCS file: /cvsroot/mxbb/mx_bugsbt/db_install.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** db_install.php 22 Jul 2007 21:02:52 -0000 1.5 --- db_install.php 8 Feb 2008 23:36:44 -0000 1.6 *************** *** 246,250 **** // Notifications ! "INSERT INTO " . $mx_table_prefix . "bugsbt_config VALUES ('notify', 'pm')", // updated "INSERT INTO " . $mx_table_prefix . "bugsbt_config VALUES ('notify_group', '0')", // admin_id --- 246,250 ---- // Notifications ! "INSERT INTO " . $mx_table_prefix . "bugsbt_config VALUES ('notify', '0')", // updated "INSERT INTO " . $mx_table_prefix . "bugsbt_config VALUES ('notify_group', '0')", // admin_id |
Update of /cvsroot/mxbb/core/modules/mx_news In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv11413/mx_news Removed Files: db_install.php db_uninstall.php db_upgrade.php index.htm mx_install_readme.htm mx_news.pak mx_news.php Log Message: Removing trailing newlines... Removing mx_news, by accident included in CORE --- db_uninstall.php DELETED --- --- mx_install_readme.htm DELETED --- --- db_upgrade.php DELETED --- --- db_install.php DELETED --- --- mx_news.php DELETED --- --- mx_news.pak DELETED --- --- index.htm DELETED --- |
|
From: Jon O. <jon...@us...> - 2008-02-08 23:36:43
|
Update of /cvsroot/mxbb/core/modules/mx_textblocks In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv11413/mx_textblocks Modified Files: db_install.php db_upgrade.php Log Message: Removing trailing newlines... Removing mx_news, by accident included in CORE Index: db_install.php =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_textblocks/db_install.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** db_install.php 5 Feb 2008 10:31:12 -0000 1.8 --- db_install.php 8 Feb 2008 23:36:39 -0000 1.9 *************** *** 52,54 **** echo "</table><br />"; ! ?> --- 52,54 ---- echo "</table><br />"; ! ?> \ No newline at end of file Index: db_upgrade.php =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_textblocks/db_upgrade.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** db_upgrade.php 5 Feb 2008 14:51:27 -0000 1.11 --- db_upgrade.php 8 Feb 2008 23:36:39 -0000 1.12 *************** *** 53,55 **** echo "</table><br />"; ! ?> --- 53,55 ---- echo "</table><br />"; ! ?> \ No newline at end of file |
|
From: Jon O. <jon...@us...> - 2008-02-08 23:36:43
|
Update of /cvsroot/mxbb/core/modules/mx_users In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv11413/mx_users Modified Files: db_install.php db_upgrade.php Log Message: Removing trailing newlines... Removing mx_news, by accident included in CORE Index: db_install.php =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_users/db_install.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** db_install.php 5 Feb 2008 14:51:28 -0000 1.7 --- db_install.php 8 Feb 2008 23:36:39 -0000 1.8 *************** *** 52,54 **** echo "</table><br />"; ! ?> --- 52,54 ---- echo "</table><br />"; ! ?> \ No newline at end of file Index: db_upgrade.php =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_users/db_upgrade.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** db_upgrade.php 5 Feb 2008 14:51:28 -0000 1.6 --- db_upgrade.php 8 Feb 2008 23:36:39 -0000 1.7 *************** *** 53,55 **** echo "</table><br />"; ! ?> --- 53,55 ---- echo "</table><br />"; ! ?> \ No newline at end of file |
|
From: Jon O. <jon...@us...> - 2008-02-08 23:36:43
|
Update of /cvsroot/mxbb/core/modules/mx_rebuild_search_tables In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv11413/mx_rebuild_search_tables Modified Files: db_install.php db_upgrade.php Log Message: Removing trailing newlines... Removing mx_news, by accident included in CORE Index: db_install.php =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_rebuild_search_tables/db_install.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** db_install.php 5 Feb 2008 14:51:28 -0000 1.5 --- db_install.php 8 Feb 2008 23:36:39 -0000 1.6 *************** *** 52,54 **** echo "</table><br />"; ! ?> --- 52,54 ---- echo "</table><br />"; ! ?> \ No newline at end of file Index: db_upgrade.php =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_rebuild_search_tables/db_upgrade.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** db_upgrade.php 5 Feb 2008 18:37:21 -0000 1.6 --- db_upgrade.php 8 Feb 2008 23:36:39 -0000 1.7 *************** *** 53,55 **** echo "</table><br />"; ! ?> --- 53,55 ---- echo "</table><br />"; ! ?> \ No newline at end of file |
|
From: Jon O. <jon...@us...> - 2008-02-08 23:36:42
|
Update of /cvsroot/mxbb/core/modules/mx_phpbb3blocks In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv11413/mx_phpbb3blocks Modified Files: db_install.php db_upgrade.php Log Message: Removing trailing newlines... Removing mx_news, by accident included in CORE Index: db_install.php =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_phpbb3blocks/db_install.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** db_install.php 5 Feb 2008 14:51:27 -0000 1.7 --- db_install.php 8 Feb 2008 23:36:38 -0000 1.8 *************** *** 52,54 **** echo "</table><br />"; ! ?> --- 52,54 ---- echo "</table><br />"; ! ?> \ No newline at end of file Index: db_upgrade.php =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_phpbb3blocks/db_upgrade.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** db_upgrade.php 5 Feb 2008 10:31:13 -0000 1.7 --- db_upgrade.php 8 Feb 2008 23:36:38 -0000 1.8 *************** *** 53,55 **** echo "</table><br />"; ! ?> --- 53,55 ---- echo "</table><br />"; ! ?> \ No newline at end of file |
|
From: Jon O. <jon...@us...> - 2008-02-08 23:36:42
|
Update of /cvsroot/mxbb/core/modules/mx_phpbb2blocks In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv11413/mx_phpbb2blocks Modified Files: db_install.php db_upgrade.php Log Message: Removing trailing newlines... Removing mx_news, by accident included in CORE Index: db_install.php =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_phpbb2blocks/db_install.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** db_install.php 5 Feb 2008 14:51:27 -0000 1.8 --- db_install.php 8 Feb 2008 23:36:38 -0000 1.9 *************** *** 52,54 **** echo "</table><br />"; ! ?> --- 52,54 ---- echo "</table><br />"; ! ?> \ No newline at end of file Index: db_upgrade.php =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_phpbb2blocks/db_upgrade.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** db_upgrade.php 5 Feb 2008 14:51:27 -0000 1.10 --- db_upgrade.php 8 Feb 2008 23:36:38 -0000 1.11 *************** *** 53,55 **** echo "</table><br />"; ! ?> --- 53,55 ---- echo "</table><br />"; ! ?> \ No newline at end of file |
|
From: Jon O. <jon...@us...> - 2008-02-08 23:36:41
|
Update of /cvsroot/mxbb/core/modules/mx_coreblocks In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv11413/mx_coreblocks Modified Files: db_install.php db_upgrade.php Log Message: Removing trailing newlines... Removing mx_news, by accident included in CORE Index: db_install.php =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_coreblocks/db_install.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** db_install.php 5 Feb 2008 18:37:20 -0000 1.9 --- db_install.php 8 Feb 2008 23:36:37 -0000 1.10 *************** *** 52,54 **** echo "</table><br />"; ! ?> --- 52,54 ---- echo "</table><br />"; ! ?> \ No newline at end of file Index: db_upgrade.php =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_coreblocks/db_upgrade.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** db_upgrade.php 5 Feb 2008 18:37:20 -0000 1.10 --- db_upgrade.php 8 Feb 2008 23:36:38 -0000 1.11 *************** *** 53,55 **** echo "</table><br />"; ! ?> --- 53,55 ---- echo "</table><br />"; ! ?> \ No newline at end of file |
|
From: Jon O. <jon...@us...> - 2008-02-08 23:36:41
|
Update of /cvsroot/mxbb/core/modules/mx_navmenu In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv11413/mx_navmenu Modified Files: db_install.php db_upgrade.php Log Message: Removing trailing newlines... Removing mx_news, by accident included in CORE Index: db_install.php =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_navmenu/db_install.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** db_install.php 5 Feb 2008 10:31:13 -0000 1.8 --- db_install.php 8 Feb 2008 23:36:38 -0000 1.9 *************** *** 52,54 **** echo "</table><br />"; ! ?> --- 52,54 ---- echo "</table><br />"; ! ?> \ No newline at end of file Index: db_upgrade.php =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_navmenu/db_upgrade.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** db_upgrade.php 5 Feb 2008 14:51:28 -0000 1.11 --- db_upgrade.php 8 Feb 2008 23:36:38 -0000 1.12 *************** *** 52,54 **** echo "<tr><td class=\"row1\" align=\"left\"><span class=\"gen\">" . $message . "</span></td></tr>"; echo "</table><br />"; ! ?> --- 52,54 ---- echo "<tr><td class=\"row1\" align=\"left\"><span class=\"gen\">" . $message . "</span></td></tr>"; echo "</table><br />"; ! ?> \ No newline at end of file |
|
From: Jon O. <jon...@us...> - 2008-02-08 23:36:27
|
Update of /cvsroot/mxbb/mx_act In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv11371 Modified Files: db_install.php db_upgrade.php Log Message: Removing trailing newlines... Index: db_install.php =================================================================== RCS file: /cvsroot/mxbb/mx_act/db_install.php,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** db_install.php 30 Jan 2007 16:26:08 -0000 1.14 --- db_install.php 8 Feb 2008 23:36:22 -0000 1.15 *************** *** 236,238 **** echo "</table><br />"; ! ?> --- 236,238 ---- echo "</table><br />"; ! ?> \ No newline at end of file Index: db_upgrade.php =================================================================== RCS file: /cvsroot/mxbb/mx_act/db_upgrade.php,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** db_upgrade.php 22 Jul 2007 21:02:16 -0000 1.15 --- db_upgrade.php 8 Feb 2008 23:36:22 -0000 1.16 *************** *** 134,136 **** echo "</table><br />"; ! ?> --- 134,136 ---- echo "</table><br />"; ! ?> \ No newline at end of file |
|
From: Jon O. <jon...@us...> - 2008-02-08 23:36:03
|
Update of /cvsroot/mxbb/core/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv10500 Modified Files: mx_constants.php mx_functions.php mx_functions_admincp.php mx_functions_blockcp.php mx_functions_ch.php mx_functions_core.php mx_functions_tools.php Log Message: Removing trailing newlines... Removing mx_news, by accident included in CORE Index: mx_functions_ch.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions_ch.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** mx_functions_ch.php 4 Feb 2008 15:56:43 -0000 1.10 --- mx_functions_ch.php 8 Feb 2008 23:35:57 -0000 1.11 *************** *** 96,98 **** include($phpbb_root_path . 'language/lang_' . $language . '/lang_extend_cat_hierarchy.' . $phpEx); ! ?> --- 96,98 ---- include($phpbb_root_path . 'language/lang_' . $language . '/lang_extend_cat_hierarchy.' . $phpEx); ! ?> \ No newline at end of file Index: mx_functions_blockcp.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions_blockcp.php,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** mx_functions_blockcp.php 5 Feb 2008 18:37:20 -0000 1.22 --- mx_functions_blockcp.php 8 Feb 2008 23:35:57 -0000 1.23 *************** *** 597,599 **** } // class mx_blockcp ! ?> --- 597,599 ---- } // class mx_blockcp ! ?> \ No newline at end of file Index: mx_functions_core.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions_core.php,v retrieving revision 1.66 retrieving revision 1.67 diff -C2 -d -r1.66 -r1.67 *** mx_functions_core.php 5 Feb 2008 14:51:27 -0000 1.66 --- mx_functions_core.php 8 Feb 2008 23:35:57 -0000 1.67 *************** *** 3783,3785 **** } // class mx_request_vars ! ?> --- 3783,3785 ---- } // class mx_request_vars ! ?> \ No newline at end of file Index: mx_constants.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_constants.php,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -d -r1.27 -r1.28 *** mx_constants.php 5 Feb 2008 14:51:27 -0000 1.27 --- mx_constants.php 8 Feb 2008 23:35:56 -0000 1.28 *************** *** 112,114 **** $unhtml_specialchars_match = array('#>#', '#<#', '#"#', '#&#'); $unhtml_specialchars_replace = array('>', '<', '"', '&'); ! ?> --- 112,114 ---- $unhtml_specialchars_match = array('#>#', '#<#', '#"#', '#&#'); $unhtml_specialchars_replace = array('>', '<', '"', '&'); ! ?> \ No newline at end of file Index: mx_functions_tools.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions_tools.php,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** mx_functions_tools.php 4 Feb 2008 15:56:43 -0000 1.18 --- mx_functions_tools.php 8 Feb 2008 23:35:57 -0000 1.19 *************** *** 4381,4383 **** } } ! ?> --- 4381,4383 ---- } } ! ?> \ No newline at end of file Index: mx_functions_admincp.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions_admincp.php,v retrieving revision 1.46 retrieving revision 1.47 diff -C2 -d -r1.46 -r1.47 *** mx_functions_admincp.php 5 Feb 2008 14:51:27 -0000 1.46 --- mx_functions_admincp.php 8 Feb 2008 23:35:57 -0000 1.47 *************** *** 3839,3843 **** @fputs($fsock, "HOST: $host\r\n"); @fputs($fsock, "Connection: close\r\n\r\n"); ! $file_info = ''; $get_info = false; --- 3839,3843 ---- @fputs($fsock, "HOST: $host\r\n"); @fputs($fsock, "Connection: close\r\n\r\n"); ! $file_info = ''; $get_info = false; *************** *** 3878,3883 **** } } ! return $file_info; } ! ?> --- 3878,3883 ---- } } ! return $file_info; } ! ?> \ No newline at end of file Index: mx_functions.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions.php,v retrieving revision 1.76 retrieving revision 1.77 diff -C2 -d -r1.76 -r1.77 *** mx_functions.php 5 Feb 2008 18:37:20 -0000 1.76 --- mx_functions.php 8 Feb 2008 23:35:56 -0000 1.77 *************** *** 1192,1194 **** } } ! ?> --- 1192,1194 ---- } } ! ?> \ No newline at end of file |
|
From: Jon O. <jon...@us...> - 2008-02-08 23:36:02
|
Update of /cvsroot/mxbb/core/includes/db In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv10500/db Modified Files: dbal.php firebird.php index.htm mssql.php mssql_odbc.php mysql.php mysql4.php mysqli.php oracle.php postgres.php sqlite.php Log Message: Removing trailing newlines... Removing mx_news, by accident included in CORE Index: mysqli.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/db/mysqli.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** mysqli.php 4 Feb 2008 15:56:43 -0000 1.11 --- mysqli.php 8 Feb 2008 23:35:56 -0000 1.12 *************** *** 408,410 **** $db = new $sql_db(); $db->sql_connect($dbhost, $dbuser, $dbpasswd, $dbname, false); ! ?> --- 408,410 ---- $db = new $sql_db(); $db->sql_connect($dbhost, $dbuser, $dbpasswd, $dbname, false); ! ?> \ No newline at end of file Index: sqlite.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/db/sqlite.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** sqlite.php 4 Feb 2008 15:56:43 -0000 1.11 --- sqlite.php 8 Feb 2008 23:35:56 -0000 1.12 *************** *** 351,353 **** $db = new $sql_db(); $db->sql_connect($dbhost, $dbuser, $dbpasswd, $dbname, false); ! ?> --- 351,353 ---- $db = new $sql_db(); $db->sql_connect($dbhost, $dbuser, $dbpasswd, $dbname, false); ! ?> \ No newline at end of file Index: postgres.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/db/postgres.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** postgres.php 4 Feb 2008 15:56:43 -0000 1.11 --- postgres.php 8 Feb 2008 23:35:56 -0000 1.12 *************** *** 427,429 **** $db = new $sql_db(); $db->sql_connect($dbhost, $dbuser, $dbpasswd, $dbname, false); ! ?> --- 427,429 ---- $db = new $sql_db(); $db->sql_connect($dbhost, $dbuser, $dbpasswd, $dbname, false); ! ?> \ No newline at end of file Index: mysql4.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/db/mysql4.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** mysql4.php 4 Feb 2008 15:56:43 -0000 1.11 --- mysql4.php 8 Feb 2008 23:35:56 -0000 1.12 *************** *** 428,430 **** $db = new $sql_db(); $db->sql_connect($dbhost, $dbuser, $dbpasswd, $dbname, false); ! ?> --- 428,430 ---- $db = new $sql_db(); $db->sql_connect($dbhost, $dbuser, $dbpasswd, $dbname, false); ! ?> \ No newline at end of file Index: firebird.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/db/firebird.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** firebird.php 4 Feb 2008 15:56:43 -0000 1.11 --- firebird.php 8 Feb 2008 23:35:56 -0000 1.12 *************** *** 419,421 **** $db = new $sql_db(); $db->sql_connect($dbhost, $dbuser, $dbpasswd, $dbname, false); ! ?> --- 419,421 ---- $db = new $sql_db(); $db->sql_connect($dbhost, $dbuser, $dbpasswd, $dbname, false); ! ?> \ No newline at end of file Index: mssql.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/db/mssql.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** mssql.php 4 Feb 2008 15:56:43 -0000 1.11 --- mssql.php 8 Feb 2008 23:35:56 -0000 1.12 *************** *** 347,350 **** --- 347,351 ---- } + /** * Build LIKE expression * @access private Index: index.htm =================================================================== RCS file: /cvsroot/mxbb/core/includes/db/index.htm,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** index.htm 28 Apr 2006 14:29:38 -0000 1.1 --- index.htm 8 Feb 2008 23:35:56 -0000 1.2 *************** *** 8,10 **** </body> ! </html> --- 8,10 ---- </body> ! </html> \ No newline at end of file Index: mysql.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/db/mysql.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** mysql.php 4 Feb 2008 15:56:43 -0000 1.11 --- mysql.php 8 Feb 2008 23:35:56 -0000 1.12 *************** *** 426,428 **** $db = new $sql_db(); $db->sql_connect($dbhost, $dbuser, $dbpasswd, $dbname, false); ! ?> --- 426,428 ---- $db = new $sql_db(); $db->sql_connect($dbhost, $dbuser, $dbpasswd, $dbname, false); ! ?> \ No newline at end of file Index: dbal.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/db/dbal.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** dbal.php 4 Feb 2008 15:56:43 -0000 1.8 --- dbal.php 8 Feb 2008 23:35:56 -0000 1.9 *************** *** 648,650 **** $sql_db = 'dbal_' . $dbms; ! ?> --- 648,650 ---- $sql_db = 'dbal_' . $dbms; ! ?> \ No newline at end of file Index: oracle.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/db/oracle.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** oracle.php 4 Feb 2008 15:56:43 -0000 1.11 --- oracle.php 8 Feb 2008 23:35:56 -0000 1.12 *************** *** 457,459 **** $db = new $sql_db(); $db->sql_connect($dbhost, $dbuser, $dbpasswd, $dbname, false); ! ?> --- 457,459 ---- $db = new $sql_db(); $db->sql_connect($dbhost, $dbuser, $dbpasswd, $dbname, false); ! ?> \ No newline at end of file Index: mssql_odbc.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/db/mssql_odbc.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** mssql_odbc.php 4 Feb 2008 15:56:43 -0000 1.11 --- mssql_odbc.php 8 Feb 2008 23:35:56 -0000 1.12 *************** *** 352,355 **** --- 352,356 ---- } + /** * Build LIKE expression * @access private *************** *** 416,418 **** $db = new $sql_db(); $db->sql_connect($dbhost, $dbuser, $dbpasswd, $dbname, false); ! ?> --- 417,419 ---- $db = new $sql_db(); $db->sql_connect($dbhost, $dbuser, $dbpasswd, $dbname, false); ! ?> \ No newline at end of file |
|
From: Jon O. <jon...@us...> - 2008-02-08 23:35:45
|
Update of /cvsroot/mxbb/mx_news In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv10927 Modified Files: db_install.php db_upgrade.php Log Message: Removing trailing newlines... Index: db_install.php =================================================================== RCS file: /cvsroot/mxbb/mx_news/db_install.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** db_install.php 8 Feb 2008 21:57:46 -0000 1.1 --- db_install.php 8 Feb 2008 23:35:40 -0000 1.2 *************** *** 117,119 **** echo "</table><br />"; ! ?> --- 117,119 ---- echo "</table><br />"; ! ?> \ No newline at end of file Index: db_upgrade.php =================================================================== RCS file: /cvsroot/mxbb/mx_news/db_upgrade.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** db_upgrade.php 8 Feb 2008 21:57:46 -0000 1.1 --- db_upgrade.php 8 Feb 2008 23:35:40 -0000 1.2 *************** *** 86,88 **** echo "</table><br />"; ! ?> --- 86,88 ---- echo "</table><br />"; ! ?> \ No newline at end of file |
Update of /cvsroot/mxbb/mx_news/templates/_core In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv31860 Added Files: _core.cfg index.htm mx_news_body.tpl mx_news_comment_posting.tpl mx_news_footer.tpl mx_news_header.tpl Log Message: Ooops. this module was added to CORE by mistake, removed and readded as a module. --- NEW FILE: mx_news_footer.tpl --- --- NEW FILE: _core.cfg --- <?php // // ** Configuration file for subSilver template ** // // ** copyright (C) 2001 The phpBB Group ** // ** Created by subBlue design ** // ** www.subBlue.com ** // // ** subSilver dev. forum: www.subSky.com/phpBB2/ ** // // $Id: _core.cfg,v 1.1 2008/02/08 21:58:46 jonohlsson Exp $ // // Please note that to enable support of different languages // the {LANG} place holder is available. This will be replaced // with xxx where xxx is the users selected language. If // that language isn't available it will default to english. // Therefore you MUST ensure you have at least a english // directory if you choose to localise your template // // // Do not alter this line! // define(MX_TEMPLATE_CONFIG, TRUE); $mx_template_config = true; // ------------------------------------------------------------------------- // Do some checks // ------------------------------------------------------------------------- $current_template_path = file_exists( $mx_root_path . $current_template_path . "/images" ) ? $current_template_path : ( file_exists( $mx_root_path . $cloned_template_path . "/images" ) ? $cloned_template_path : $default_template_path ); // ------------------------------------------------------------------------- // Prefix with PORTAL_URL // ------------------------------------------------------------------------- $current_template_images = PORTAL_URL . $current_template_path . "/images"; // ------------------------------------------------------------------------- // Define images // ------------------------------------------------------------------------- $mx_images['mx_news_comment_post'] = $images['reply_new']; // ------------------------------------------------------------------------- // Redefine phpBB images // ------------------------------------------------------------------------- $mx_images['mx_news_folder'] = $images['folder']; $mx_images['mx_news_folder_new'] = $images['folder_new']; $mx_images['mx_news_icon_latest_reply'] = $images['icon_latest_reply']; $mx_images['mx_news_icon_minipost'] = $images['icon_minipost']; $mx_images['mx_news_icon_edit'] = $images['icon_edit']; $mx_images['mx_news_icon_delpost'] = $images['icon_delpost']; ?> --- NEW FILE: mx_news_comment_posting.tpl --- <!-- BEGIN switch_bbcodes --> <script language="JavaScript" type="text/javascript"> <!-- // bbCode control by // subBlue design // www.subBlue.com // Startup variables var imageTag = false; var theSelection = false; // Check for Browser & Platform for PC & IE specific bits // More details from: http://www.mozilla.org/docs/web-developer/sniffer/browser_type.html var clientPC = navigator.userAgent.toLowerCase(); // Get client info var clientVer = parseInt(navigator.appVersion); // Get browser version var is_ie = ((clientPC.indexOf("msie") != -1) && (clientPC.indexOf("opera") == -1)); var is_nav = ((clientPC.indexOf('mozilla')!=-1) && (clientPC.indexOf('spoofer')==-1) && (clientPC.indexOf('compatible') == -1) && (clientPC.indexOf('opera')==-1) && (clientPC.indexOf('webtv')==-1) && (clientPC.indexOf('hotjava')==-1)); var is_moz = 0; var is_win = ((clientPC.indexOf("win")!=-1) || (clientPC.indexOf("16bit") != -1)); var is_mac = (clientPC.indexOf("mac")!=-1); // Helpline messages b_help = "{L_BBCODE_B_HELP}"; i_help = "{L_BBCODE_I_HELP}"; u_help = "{L_BBCODE_U_HELP}"; q_help = "{L_BBCODE_Q_HELP}"; c_help = "{L_BBCODE_C_HELP}"; l_help = "{L_BBCODE_L_HELP}"; o_help = "{L_BBCODE_O_HELP}"; p_help = "{L_BBCODE_P_HELP}"; w_help = "{L_BBCODE_W_HELP}"; a_help = "{L_BBCODE_A_HELP}"; s_help = "{L_BBCODE_S_HELP}"; f_help = "{L_BBCODE_F_HELP}"; // Define the bbCode tags bbcode = new Array(); bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','[/code]','[list]','[/list]','[list=]','[/list]','[img]','[/img]','[url]','[/url]'); imageTag = false; // Shows the help messages in the helpline window function helpline(help) { document.post.helpbox.value = eval(help + "_help"); } // Replacement for arrayname.length property function getarraysize(thearray) { for (i = 0; i < thearray.length; i++) { if ((thearray[i] == "undefined") || (thearray[i] == "") || (thearray[i] == null)) return i; } return thearray.length; } // Replacement for arrayname.push(value) not implemented in IE until version 5.5 // Appends element to the array function arraypush(thearray,value) { thearray[ getarraysize(thearray) ] = value; } // Replacement for arrayname.pop() not implemented in IE until version 5.5 // Removes and returns the last element of an array function arraypop(thearray) { thearraysize = getarraysize(thearray); retval = thearray[thearraysize - 1]; delete thearray[thearraysize - 1]; return retval; } function checkForm() { formErrors = false; if (document.post.message.value.length < 2) { formErrors = "{L_EMPTY_MESSAGE}"; } if (formErrors) { alert(formErrors); return false; } else { bbstyle(-1); //formObj.preview.disabled = true; //formObj.submit.disabled = true; return true; } } function emoticon(text) { var txtarea = document.post.message; text = ' ' + text + ' '; if (txtarea.createTextRange && txtarea.caretPos) { var caretPos = txtarea.caretPos; caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? caretPos.text + text + ' ' : caretPos.text + text; txtarea.focus(); } else { txtarea.value += text; txtarea.focus(); } } function bbfontstyle(bbopen, bbclose) { var txtarea = document.post.message; if ((clientVer >= 4) && is_ie && is_win) { theSelection = document.selection.createRange().text; if (!theSelection) { txtarea.value += bbopen + bbclose; txtarea.focus(); return; } document.selection.createRange().text = bbopen + theSelection + bbclose; txtarea.focus(); return; } else if (txtarea.selectionEnd && (txtarea.selectionEnd - txtarea.selectionStart > 0)) { mozWrap(txtarea, bbopen, bbclose); return; } else { txtarea.value += bbopen + bbclose; txtarea.focus(); } storeCaret(txtarea); } function bbstyle(bbnumber) { var txtarea = document.post.message; txtarea.focus(); donotinsert = false; theSelection = false; bblast = 0; if (bbnumber == -1) { // Close all open tags & default button names while (bbcode[0]) { butnumber = arraypop(bbcode) - 1; txtarea.value += bbtags[butnumber + 1]; buttext = eval('document.post.addbbcode' + butnumber + '.value'); eval('document.post.addbbcode' + butnumber + '.value ="' + buttext.substr(0,(buttext.length - 1)) + '"'); } imageTag = false; // All tags are closed including image tags :D txtarea.focus(); return; } if ((clientVer >= 4) && is_ie && is_win) { theSelection = document.selection.createRange().text; // Get text selection if (theSelection) { // Add tags around selection document.selection.createRange().text = bbtags[bbnumber] + theSelection + bbtags[bbnumber+1]; txtarea.focus(); theSelection = ''; return; } } else if (txtarea.selectionEnd && (txtarea.selectionEnd - txtarea.selectionStart > 0)) { mozWrap(txtarea, bbtags[bbnumber], bbtags[bbnumber+1]); return; } // Find last occurance of an open tag the same as the one just clicked for (i = 0; i < bbcode.length; i++) { if (bbcode[i] == bbnumber+1) { bblast = i; donotinsert = true; } } if (donotinsert) { // Close all open tags up to the one just clicked & default button names while (bbcode[bblast]) { butnumber = arraypop(bbcode) - 1; txtarea.value += bbtags[butnumber + 1]; buttext = eval('document.post.addbbcode' + butnumber + '.value'); eval('document.post.addbbcode' + butnumber + '.value ="' + buttext.substr(0,(buttext.length - 1)) + '"'); imageTag = false; } txtarea.focus(); return; } else { // Open tags if (imageTag && (bbnumber != 14)) { // Close image tag before adding another txtarea.value += bbtags[15]; lastValue = arraypop(bbcode) - 1; // Remove the close image tag from the list document.post.addbbcode14.value = "Img"; // Return button back to normal state imageTag = false; } // Open tag txtarea.value += bbtags[bbnumber]; if ((bbnumber == 14) && (imageTag == false)) imageTag = 1; // Check to stop additional tags after an unclosed image tag arraypush(bbcode,bbnumber+1); eval('document.post.addbbcode'+bbnumber+'.value += "*"'); txtarea.focus(); return; } storeCaret(txtarea); } // From http://www.massless.org/mozedit/ function mozWrap(txtarea, open, close) { var selLength = txtarea.textLength; var selStart = txtarea.selectionStart; var selEnd = txtarea.selectionEnd; if (selEnd == 1 || selEnd == 2) selEnd = selLength; var s1 = (txtarea.value).substring(0,selStart); var s2 = (txtarea.value).substring(selStart, selEnd) var s3 = (txtarea.value).substring(selEnd, selLength); txtarea.value = s1 + open + s2 + close + s3; return; } // Insert at Claret position. Code from // http://www.faqts.com/knowledge_base/view.phtml/aid/1052/fid/130 function storeCaret(textEl) { if (textEl.createTextRange) textEl.caretPos = document.selection.createRange().duplicate(); } //--> </script> <!-- END switch_bbcodes --> <script language="javascript"> <!-- var postmaxchars = {MESSAGE_LENGTH}; function checklength(theform) { if (postmaxchars != 0) { message = ""; } else { message = ""; } alert("{L_MSG_LENGTH_1}"+theform.message.value.length+"{L_MSG_LENGTH_2}\n\r\n\r{L_MSG_LENGTH_3}"+postmaxchars+"{L_MSG_LENGTH_4}\n\r\n\r{L_MSG_LENGTH_5}"+(postmaxchars-theform.message.value.length)+"{L_MSG_LENGTH_6}"); } //--> </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)"> <!-- BEGIN preview --> <br /> <table border="0" cellpadding="4" cellspacing="0" width="100%" class="forumline"> <tr> <th class="thHead" colspan="2" height="25">{L_PREVIEW}</th> </tr> <tr> <td class="row1" valign="top"><span class="postbody">{PRE_COMMENT}</span></td> </tr> </table> <br /> <!-- END preview --> <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"> <input type="button" class="button" accesskey="c" name="addbbcode8" value="Code" style="width: 40px" onClick="bbstyle(8)" onMouseOver="helpline('c')" /> </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"> <input type="button" class="button" accesskey="o" name="addbbcode12" value="List=" style="width: 40px" onClick="bbstyle(12)" onMouseOver="helpline('o')" /> </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> <tr> <td colspan="9"> <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> <option style="color:darkred; background-color: #DEE3E7" value="darkred" class="genmed">{L_COLOR_DARK_RED}</option> <option style="color:red; background-color: #DEE3E7" value="red" class="genmed">{L_COLOR_RED}</option> <option style="color:orange; background-color: #DEE3E7" value="orange" class="genmed">{L_COLOR_ORANGE}</option> <option style="color:brown; background-color: #DEE3E7" value="brown" class="genmed">{L_COLOR_BROWN}</option> <option style="color:yellow; background-color: #DEE3E7" value="yellow" class="genmed">{L_COLOR_YELLOW}</option> <option style="color:green; background-color: #DEE3E7" value="green" class="genmed">{L_COLOR_GREEN}</option> <option style="color:olive; background-color: #DEE3E7" value="olive" class="genmed">{L_COLOR_OLIVE}</option> <option style="color:cyan; background-color: #DEE3E7" value="cyan" class="genmed">{L_COLOR_CYAN}</option> <option style="color:blue; background-color: #DEE3E7" value="blue" class="genmed">{L_COLOR_BLUE}</option> <option style="color:darkblue; background-color: #DEE3E7" value="darkblue" class="genmed">{L_COLOR_DARK_BLUE}</option> <option style="color:indigo; background-color: #DEE3E7" value="indigo" class="genmed">{L_COLOR_INDIGO}</option> <option style="color:violet; background-color: #DEE3E7" value="violet" class="genmed">{L_COLOR_VIOLET}</option> <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> <option value="12" selected class="genmed">{L_FONT_NORMAL}</option> <option value="18" class="genmed">{L_FONT_LARGE}</option> <option value="24" class="genmed">{L_FONT_HUGE}</option> </select> </span></td> <td nowrap="nowrap" align="right"><span class="gensmall"><a href="javascript:bbstyle(-1)" class="genmed" onMouseOver="helpline('a')">{L_BBCODE_CLOSE_TAGS}</a></span></td> </tr> </table> </td> </tr> <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> <td class="row2"><span class="gen">{L_COMMENT_EXPLAIN}<br /><a href="javascript:checklength(document.post);">{L_CHECK_MSG_LENGTH}</a></span></td> </tr> <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> --- NEW FILE: mx_news_header.tpl --- --- NEW FILE: mx_news_body.tpl --- <!-- BEGIN use_comments --> <table width="100%" cellpadding="4" cellspacing="1" class="forumline"> <!-- <tr> <th class="thCornerL" colspan="2">{use_comments.L_COMMENTS}</th> </tr> --> <!-- BEGIN no_comments --> <tr> <td colspan="2" class="row1" align="center"><span class="genmed">{use_comments.no_comments.L_NO_COMMENTS}</span></td> </tr> <!-- END no_comments --> <!-- BEGIN text --> <!-- OLD STYLE <tr> <td width="100" align="left" valign="top" class="row1"><span class="name"> <b>{use_comments.text.POSTER}</b></span><hr /><br /> <span class="postdetails">{use_comments.text.POSTER_RANK}<br /> {use_comments.text.RANK_IMAGE}{use_comments.text.POSTER_AVATAR}</span><br /> </td> <td class="row1" height="28" valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="80%" valign="middle"><span class="genmed"><img src="{use_comments.text.ICON_MINIPOST_IMG}" width="12" height="9" border="0" /> <b>{use_comments.text.TITLE}</b> </span><span class="genmed">({use_comments.text.TIME})</span></td> <td align="right"> <!-- BEGIN auth_edit --> <a href="{use_comments.text.auth_edit.U_COMMENT_EDIT}"><img src="{use_comments.text.auth_edit.EDIT_IMG}" alt="{use_comments.text.auth_edit.L_COMMENT_EDIT}" title="{use_comments.text.auth_edit.L_COMMENT_EDIT}" border="0"></a> <!-- END auth_edit --> <!-- BEGIN auth_delete --> <a href="{use_comments.text.auth_delete.U_COMMENT_DELETE}"><img src="{use_comments.text.auth_delete.DELETE_IMG}" alt="{use_comments.text.auth_delete.L_COMMENT_DELETE}" title="{use_comments.text.auth_delete.L_COMMENT_DELETE}" border="0"></a> <!-- END auth_delete --> </td> </tr> <tr> <td colspan="2"><hr /></td> </tr> <tr> <td colspan="2"valign="top"><span class="postbody">{use_comments.text.TEXT}</span></td> </tr> </table> </td> </tr> <tr> <td class="spaceRow" colspan="2" height="1"><img src="{use_comments.text.ICON_SPACER}" alt="" width="1" height="1" /></td> </tr> END OLD STYLE--> <!-- SEMI OLD STYLE <tr> <td width="60%" valign="middle"> <span class="genmed"> <img src="{use_comments.text.ICON_MINIPOST_IMG}" width="12" height="9" border="0" /> <i>{use_comments.text.TIME}</i> </span> <span class="genmed"> ({use_comments.text.POSTER}) </span> </td> <td align="right"> <!-- BEGIN auth_edit --> <a href="{use_comments.text.auth_edit.U_COMMENT_EDIT}">[{use_comments.text.auth_edit.L_COMMENT_EDIT}]</a> <!-- END auth_edit --> <!-- BEGIN auth_delete --> <a href="{use_comments.text.auth_delete.U_COMMENT_DELETE}">[{use_comments.text.auth_delete.L_COMMENT_DELETE}]</a> <!-- END auth_delete --> </td> </tr> <tr> <td colspan="2"><span class="cattitle">{use_comments.text.TITLE}</span></td> </tr> <tr> <td colspan="2"valign="top"><span class="genmed">{use_comments.text.TEXT}</span></td> </tr> END SEMI OLD --> <tr> <td ><span class="discreet">[{use_comments.text.TIME}]</span> <span class="cattitle">{use_comments.text.TITLE}</span></td> <td align="right"> <!-- BEGIN auth_edit --> <a href="{use_comments.text.auth_edit.U_COMMENT_EDIT}">[{use_comments.text.auth_edit.L_COMMENT_EDIT}]</a> <!-- END auth_edit --> <!-- BEGIN auth_delete --> <a href="{use_comments.text.auth_delete.U_COMMENT_DELETE}">[{use_comments.text.auth_delete.L_COMMENT_DELETE}]</a> <!-- END auth_delete --> </td> </tr> <tr> <td colspan="2"valign="top"><span class="genmed">{use_comments.text.TEXT}</span> </td> </tr> <!-- END text --> </table> <!-- BEGIN comments_pag --> <br /> <table width="100%" cellspacing="1" cellpadding="0" border="0"> <tr> <td><span class="nav"><!--{use_comments.comments_pag.PAGE_NUMBER}--></span></td> <td align="right"><span class="nav">{use_comments.comments_pag.PAGINATION}</span></td> </tr> </table> <!-- END comments_pag --> <!-- BEGIN auth_post --> <br /> <table width="100%" cellspacing="2" cellpadding="2" border="0" align="center"> <tr> <td><a href="{use_comments.auth_post.U_COMMENT_POST}">[{use_comments.auth_post.L_COMMENT_ADD}]</a></td> </tr> </table> <br clear="all" /> <!-- END auth_post --> <!-- END use_comments --> --- 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-02-08 21:58:49
|
Update of /cvsroot/mxbb/mx_news/templates/_core/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv31860/admin Added Files: index.htm mx_news_admin_settings.tpl Log Message: Ooops. this module was added to CORE by mistake, removed and readded as a module. --- NEW FILE: mx_news_admin_settings.tpl --- <h1>{L_CONFIGURATION_TITLE}</h1> <p>{L_CONFIGURATION_EXPLAIN}</p> <form action="{S_ACTION}" method="post"> <table width="100%" cellpadding="3" cellspacing="1" border="0" align="center" class="forumline"> <tr> <!-- TITLE ------------------------------------------------------------------------------------------- --> <th class="thHead" colspan="2"> {L_GENERAL_TITLE}</th> </tr> <tr> <td class="row1" width="50%">{L_MODULE_NAME}<br /><span class="gensmall">{L_MODULE_NAME_EXPLAIN}</span></td> <td class="row2" width="50%"><input text="text" name="module_name" value="{MODULE_NAME}" size="20" maxlength="50" /></td> </tr> <tr> <td class="row1" width="50%">{L_ENABLE_MODULE}<br /><span class="gensmall">{L_ENABLE_MODULE_EXPLAIN}</span></td> <td class="row2" width="50%"><input type="radio" name="enable_module" value="1" {S_ENABLE_MODULE_YES} /> {L_YES} <input type="radio" name="enable_module" value="0" {S_ENABLE_MODULE_NO} /> {L_NO}</td> </tr> <tr> <td class="row1" width="50%">{L_WYSIWYG_PATH}<br /><span class="gensmall">{L_WYSIWYG_PATH_EXPLAIN}</span></td> <td class="row2" width="50%"><input text="text" name="wysiwyg_path" value="{WYSIWYG_PATH}" size="20" maxlength="50" /></td> </tr> <tr> <!-- TITLE ------------------------------------------------------------------------------------------- --> <th class="thHead" colspan="2"> {L_COMMENTS_TITLE}<br /><span class="gensmall">{L_COMMENTS_TITLE_EXPLAIN}</span></th> </tr> <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> <td class="row1" width="50%">{L_FORUM_ID}<br /><span class="gensmall">{L_FORUM_ID_EXPLAIN}</span></td> <td class="row2" width="50%">{FORUM_LIST}</td> </tr> <tr> <td class="row1" width="50%">{L_COMMENTS_PAG}<br /><span class="gensmall">{L_COMMENTS_PAG_EXPLAIN}</span></td> <td class="row2" width="50%"><input class="post" type="text" name="comments_pagination" value="{COMMENTS_PAG}" size="5" maxlength="4" /></td> </tr> <tr> <td class="row1" width="50%">{L_ALLOW_COMMENT_WYSIWYG}<br /><span class="gensmall">{L_ALLOW_COMMENT_WYSIWYG_EXPLAIN}</span></td> <td class="row2" width="50%"><input type="radio" name="allow_comment_wysiwyg" value="1" {S_ALLOW_COMMENT_WYSIWYG_YES} /> {L_YES} <input type="radio" name="allow_comment_wysiwyg" value="0" {S_ALLOW_COMMENT_WYSIWYG_NO} /> {L_NO}</td> </tr> <tr> <td class="row1" width="50%">{L_ALLOW_COMMENT_HTML}<br /><span class="gensmall">{L_ALLOW_COMMENT_HTML_EXPLAIN}</span></td> <td class="row2" width="50%"><input class="radio" type="radio" name="allow_comment_html" value="1" {S_ALLOW_COMMENT_HTML_YES} /> {L_YES} <input type="radio" name="allow_comment_html" value="0" {S_ALLOW_COMMENT_HTML_NO} /> {L_NO}</td> </tr> <tr> <td class="row1" width="50%">{L_ALLOWED_COMMENT_HTML_TAGS}<br /><span class="gensmall">{L_ALLOWED_HTML_TAGS_EXPLAIN}</span></td> <td class="row2" width="50%"><input text="text" name="allowed_comment_html_tags" value="{ALLOWED_COMMENT_HTML_TAGS}" size="15" maxlength="50" /></td> </tr> <tr> <td class="row1" width="50%">{L_ALLOW_COMMENT_BBCODE}<br /><span class="gensmall">{L_ALLOW_BBCODE_EXPLAIN}</span></td> <td class="row2" width="50%"><input type="radio" name="allow_comment_bbcode" value="1" {S_ALLOW_COMMENT_BBCODE_YES} /> {L_YES} <input type="radio" name="allow_comment_bbcode" value="0" {S_ALLOW_COMMENT_BBCODE_NO} /> {L_NO}</td> </tr> <tr> <td class="row1" width="50%">{L_ALLOW_COMMENT_SMILIES}<br /><span class="gensmall">{L_ALLOW_SMILIES_EXPLAIN}</span></td> <td class="row2" width="50%"><input type="radio" name="allow_comment_smilies" value="1" {S_ALLOW_COMMENT_SMILIES_YES} /> {L_YES} <input type="radio" name="allow_comment_smilies" value="0" {S_ALLOW_COMMENT_SMILIES_NO} /> {L_NO}</td> </tr> <tr> <td class="row1" width="50%">{L_ALLOW_COMMENT_IMAGES}<br /><span class="gensmall">{L_ALLOW_IMAGES_EXPLAIN}</span></td> <td class="row2" width="50%"><input type="radio" name="allow_comment_images" value="1" {S_ALLOW_COMMENT_IMAGES_YES} /> {L_YES} <input type="radio" name="allow_comment_images" value="0" {S_ALLOW_COMMENT_IMAGES_NO} /> {L_NO}</td> </tr> <tr> <td class="row1">{L_COMMENT_IMAGES_MESSAGE}<br><span class="gensmall">{L_COMMENT_IMAGES_MESSAGE_EXPLAIN}</span></td> <td class="row2"><input type="text" class="post" size="50" name="no_comment_image_message" value="{COMMENT_MESSAGE_IMAGE}" /></td> </tr> <tr> <td class="row1" width="50%">{L_ALLOW_COMMENT_LINKS}<br /><span class="gensmall">{L_ALLOW_COMMENT_LINKS_EXPLAIN}</span></td> <td class="row2" width="50%"><input type="radio" name="allow_comment_links" value="1" {S_ALLOW_COMMENT_LINKS_YES} /> {L_YES} <input type="radio" name="allow_comment_links" value="0" {S_ALLOW_COMMENT_LINKS_NO} /> {L_NO}</td> </tr> <tr> <td class="row1">{L_COMMENT_LINKS_MESSAGE}<br><span class="gensmall">{L_COMMENT_LINKS_MESSAGE_EXPLAIN}</span></td> <td class="row2"><input type="text" class="post" size="50" name="no_comment_link_message" value="{COMMENT_MESSAGE_LINK}" /></td> </tr> <tr> <td class="row1" width="50%">{L_COMMENT_FORMAT_WORDWRAP}<br /><span class="gensmall">{L_COMMENT_FORMAT_WORDWRAP_EXPLAIN}</span></td> <td class="row2" width="50%"><input type="radio" name="formatting_comment_wordwrap" value="1" {S_COMMENT_FORMAT_WORDWRAP_YES} /> {L_YES} <input type="radio" name="formatting_comment_wordwrap" value="0" {S_COMMENT_FORMAT_WORDWRAP_NO} /> {L_NO}</td> </tr> <tr> <td class="row1">{L_COMMENT_FORMAT_IMAGE_RESIZE}<br><span class="gensmall">{L_COMMENT_FORMAT_IMAGE_RESIZE_EXPLAIN}</span></td> <td class="row2"><input type="text" class="post" size="50" name="formatting_comment_image_resize" value="{COMMENT_FORMAT_IMAGE_RESIZE}" /></td> </tr> <tr> <td class="row1" width="50%">{L_COMMENT_FORMAT_TRUNCATE_LINKS}<br /><span class="gensmall">{L_COMMENT_FORMAT_TRUNCATE_LINKS_EXPLAIN}</span></td> <td class="row2" width="50%"><input type="radio" name="formatting_comment_truncate_links" value="1" {S_COMMENT_FORMAT_TRUNCATE_LINKS_YES} /> {L_YES} <input type="radio" name="formatting_comment_truncate_links" value="0" {S_COMMENT_FORMAT_TRUNCATE_LINKS_NO} /> {L_NO}</td> </tr> <tr> <td class="row1">{L_COMMENT_MAX_SUBJECT_CHAR}<br><span class="gensmall">{L_COMMENT_MAX_SUBJECT_CHAR_EXPLAIN}</span></td> <td class="row2"><input type="text" class="post" size="50" name="max_comment_subject_chars" value="{COMMENT_MAX_SUBJECT_CHAR}" /></td> </tr> <tr> <td class="row1">{L_COMMENT_MAX_CHAR}<br><span class="gensmall">{L_COMMENT_MAX_CHAR_EXPLAIN}</span></td> <td class="row2"><input type="text" class="post" size="50" name="max_comment_chars" value="{COMMENT_MAX_CHAR}" /></td> </tr> <tr> <!-- TITLE ------------------------------------------------------------------------------------------- --> <th class="thHead" colspan="2"> {L_NOTIFICATIONS_TITLE}</th> </tr> <tr> <td class="row1" width="50%">{L_NOTIFY}<br /><span class="gensmall">{L_NOTIFY_EXPLAIN}</span></td> <td class="row2" width="50%"><input type="radio" name="notify" value="0" {S_NOTIFY_NONE} />{L_NONE} <input type="radio" name="notify" value="2" {S_NOTIFY_EMAIL} />{L_EMAIL} <input type="radio" name="notify" value="1" {S_NOTIFY_PM} />{L_PM}</td> </tr> <tr> <td class="row1" width="50%">{L_NOTIFY_GROUP}<br /><span class="gensmall">{L_NOTIFY_GROUP_EXPLAIN}</span></td> <td class="row2" width="50%">{NOTIFY_GROUP}</td> </tr> <tr> <td align="center" class="cat" colspan="2"><input class="liteoption" type="submit" value="{L_SUBMIT}" name="submit" /> <input type="reset" value="{L_RESET}" class="liteoption" /> </td> </tr> </table> </form> --- 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-02-08 21:58:25
|
Update of /cvsroot/mxbb/mx_news/mx_news/cache In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv31687/cache Added Files: data_global.php index.htm Log Message: Ooops. this module was added to CORE by mistake, removed and readded as a module. --- 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> --- NEW FILE: data_global.php --- <?php $this->vars=array('config'=>array('enable_module'=>'0','module_name'=>'Download Database','wysiwyg_path'=>'modules/mx_shared/','site_logo'=>'http://phpbb2.mxbb.com/phpBB2/linkdb/images/web_logo88a.gif','site_url'=>'http://phpbb2.mxbb.com/phpBB2/','display_interval'=>'6000','lock_submit_site'=>'0','width'=>'88','height'=>'31','display_links_logo'=>'1','allow_no_logo'=>'0','split_links'=>'1','sort_method'=>'link_time','sort_order'=>'DESC','pagination'=>'10','use_simple_navigation'=>'1','cat_col'=>'2','settings_newdays'=>'1','use_comments'=>'0','internal_comments'=>'1','formatting_comment_wordwrap'=>'1','formatting_comment_image_resize'=>'300','formatting_comment_truncate_links'=>'1','max_comment_subject_chars'=>'50','max_comment_chars'=>'5000','allow_comment_wysiwyg'=>'0','allow_comment_html'=>'1','allow_comment_bbcode'=>'1','allow_comment_smilies'=>'1','allow_comment_links'=>'1','allow_comment_images'=>'1','no_comment_image_message'=>'[No image please]','no_comment_link_message'=>'[No links please]','allowed_comment_html_tags'=>'b,i,u,a','del_topic'=>'1','autogenerate_comments'=>'1','comments_pagination'=>'5','comments_forum_id'=>'0','use_ratings'=>'0','votes_check_userid'=>'1','votes_check_ip'=>'1','show_pretext'=>'0','pt_header'=>'Link Submission Instructions','pt_body'=>'Please check your references and include as much information as you can.','notify'=>'0','notify_group'=>'0')); $this->vars_ts=array('config'=>1202070182) ?> |
|
From: Jon O. <jon...@us...> - 2008-02-08 21:58:25
|
Update of /cvsroot/mxbb/mx_news/mx_news/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv31687/includes Added Files: functions.php functions_admin.php functions_auth.php functions_comment.php functions_mx.php functions_mx_news.php index.htm mx_news_constants.php Log Message: Ooops. this module was added to CORE by mistake, removed and readded as a module. --- NEW FILE: functions.php --- <?php /** * * @package mxBB Portal Module - mx_news * @version $Id: functions.php,v 1.1 2008/02/08 21:58:20 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"); } /** * mx_news_functions. * * This class is used for general mx_news handling * * @access public * @author Jon Ohlsson * */ class mx_news_functions { /** * This class is used for general mx_news handling * * @param unknown_type $config_name * @param unknown_type $config_value */ function set_config( $config_name, $config_value ) { global $mx_news_cache, $db, $mx_news_config; $sql = "UPDATE " . MX_NEWS_CONFIG_TABLE . " SET config_value = '" . str_replace( "\'", "''", $config_value ) . "' WHERE config_name = '$config_name'"; if ( !$db->sql_query( $sql ) ) { mx_message_die( GENERAL_ERROR, "Failed to update mx_news configuration for $config_name", "", __LINE__, __FILE__, $sql ); } if ( !$db->sql_affectedrows() && !isset( $mx_news_config[$config_name] ) ) { $sql = 'INSERT INTO ' . MX_NEWS_CONFIG_TABLE . " (config_name, config_value) VALUES ('$config_name', '" . str_replace( "\'", "''", $config_value ) . "')"; if ( !$db->sql_query( $sql ) ) { mx_message_die( GENERAL_ERROR, "Failed to update mx_news configuration for $config_name", "", __LINE__, __FILE__, $sql ); } } $mx_news_config[$config_name] = $config_value; $mx_news_cache->put( 'config', $mx_news_config ); } function mx_news_config() { global $db; $sql = "SELECT * FROM " . MX_NEWS_CONFIG_TABLE; if ( !( $result = $db->sql_query( $sql ) ) ) { mx_message_die( GENERAL_ERROR, 'Couldnt query mx_news configuration', '', __LINE__, __FILE__, $sql ); } while ( $row = $db->sql_fetchrow( $result ) ) { $mx_news_config[$row['config_name']] = trim( $row['config_value'] ); } $db->sql_freeresult( $result ); return ( $mx_news_config ); } /** * Enter description here... * * @param unknown_type $mode * @param unknown_type $page_id */ function generate_smilies( $mode, $page_id ) { global $db, $board_config, $template, $lang, $images, $theme, $phpEx, $phpbb_root_path; global $user_ip, $session_length, $starttime; global $userdata, $mx_user; global $mx_root_path, $module_root_path, $is_block, $phpEx; $inline_columns = 4; $inline_rows = 5; $window_columns = 8; if ( $mode == 'window' ) { /* $userdata = session_pagestart( $user_ip, $page_id ); init_userprefs( $userdata ); */ $mx_user->init($user_ip, PAGE_INDEX); $gen_simple_header = true; $page_title = $lang['Review_topic'] . " - $topic_title"; include( $mx_root_path . 'includes/page_header.' . $phpEx ); $template->set_filenames( array( 'smiliesbody' => 'posting_smilies.tpl' ) ); } $sql = "SELECT emoticon, code, smile_url FROM " . SMILIES_TABLE . " ORDER BY smilies_id"; if ( $result = $db->sql_query( $sql ) ) { $num_smilies = 0; $rowset = array(); while ( $row = $db->sql_fetchrow( $result ) ) { if ( empty( $rowset[$row['smile_url']] ) ) { $rowset[$row['smile_url']]['code'] = str_replace( "'", "\\'", str_replace( '\\', '\\\\', $row['code'] ) ); $rowset[$row['smile_url']]['emoticon'] = $row['emoticon']; $num_smilies++; } } if ( $num_smilies ) { $smilies_count = ( $mode == 'inline' ) ? min( 19, $num_smilies ) : $num_smilies; $smilies_split_row = ( $mode == 'inline' ) ? $inline_columns - 1 : $window_columns - 1; $s_colspan = 0; $row = 0; $col = 0; while ( list( $smile_url, $data ) = @each( $rowset ) ) { if ( !$col ) { $template->assign_block_vars( 'smilies_row', array() ); } $template->assign_block_vars( 'smilies_row.smilies_col', array( 'SMILEY_CODE' => $data['code'], 'SMILEY_IMG' => $phpbb_root_path . $board_config['smilies_path'] . '/' . $smile_url, 'SMILEY_DESC' => $data['emoticon'] ) ); $s_colspan = max( $s_colspan, $col + 1 ); if ( $col == $smilies_split_row ) { if ( $mode == 'inline' && $row == $inline_rows - 1 ) { break; } $col = 0; $row++; } else { $col++; } } if ( $mode == 'inline' && $num_smilies > $inline_rows * $inline_columns ) { $template->assign_block_vars( 'switch_smilies_extra', array() ); $template->assign_vars( array( 'L_MORE_SMILIES' => $lang['More_emoticons'], 'U_MORE_SMILIES' => mx_append_sid( $phpbb_root_path . "posting.$phpEx?mode=smilies" ) ) ); } $template->assign_vars( array( 'L_EMOTICONS' => $lang['Emoticons'], 'L_CLOSE_WINDOW' => $lang['Close_window'], 'S_SMILIES_COLSPAN' => $s_colspan ) ); } } if ( $mode == 'window' ) { $template->pparse( 'smiliesbody' ); include( $mx_root_path . 'includes/page_tail.' . $phpEx ); } } // since that I can't use the original function with new template system // I just copy it and chagne it function sql_query_limit( $query, $total, $offset = 0 ) { global $db; $query .= ' LIMIT ' . ( ( !empty( $offset ) ) ? $offset . ', ' . $total : $total ); return $db->sql_query( $query ); } /** * page header. * */ function page_header() { global $mx_news_config, $lang, $userdata, $images, $action; global $mx_news, $HTTP_GET_VARS; global $template, $db, $theme, $gen_simple_header, $starttime, $phpEx, $board_config, $user_ip, $phpbb_root_path; global $admin_level, $level_prior, $tree, $do_gzip_compress; global $mx_root_path, $module_root_path, $is_block, $phpEx, $title; /* // // page header for mx_news // if ( $action == 'category' ) { if ( $mx_news->modules[$mx_news->module_name]->auth_user[$_REQUEST['cat_id']]['auth_post'] || $mx_news->modules[$mx_news->module_name]->auth_user[$_REQUEST['cat_id']]['auth_mod'] ) { $upload_url = mx_append_sid( $mx_news->this_mxurl( "action=user_upload&cat_id={$_REQUEST['cat_id']}" ) ); if ( !$mx_news_config['lock_submit_site'] ) { $template->assign_block_vars( 'ADD_LINK', array() ); } } $mcp_url = mx_append_sid( $mx_news->this_mxurl( "action=mcp&cat_id={$_REQUEST['cat_id']}" ) ); if ( $mx_news->modules[$mx_news->module_name]->auth_user[$_REQUEST['cat_id']]['auth_mod'] ) { $template->assign_block_vars( 'MCP', array() ); } } else { $upload_url = mx_append_sid( $mx_news->this_mxurl( "action=user_upload" ) ); } $template->set_filenames( array( 'mx_news_header' => "link_header.tpl" )); $template->assign_vars( array( 'L_TITLE' => $title, // BEGIN mx_news 'LINKS' => $lang['Links_Title'], 'U_LINK' => mx_append_sid( $mx_news->this_mxurl() ), // END mx_news 'L_SEARCH' => $lang['Link_Search'], 'L_UPLOAD' => $lang['AddLink'], 'L_MCP' => $lang['MCP_title'], 'L_VIEW_ALL' => $lang['Viewall'], 'L_DESCEND_BY_HITS' => $lang['Descend_by_hits'], 'L_DESCEND_BY_JOIN' => $lang['Descend_by_joindate'], 'L_STATS_MOST_POPULAR' => $lang['Link_most_popular'], 'L_STATS_LATEST' => $lang['Link_latest'], 'L_STATS_TOPRATED' => $lang['Link_toprated'], 'U_PASEARCH' => mx_append_sid( $mx_news->this_mxurl( "action=search" ) ), 'U_UPLOAD' => $upload_url, 'U_MCP' => $mcp_url, 'U_VIEW_ALL' => mx_append_sid( $mx_news->this_mxurl( "action=viewall" ) ), 'U_DESCEND_BY_HITS' => mx_append_sid( $mx_news->this_mxurl( "action=viewall&&sort_method=link_hits&sort_order=DESC" ) ), 'U_DESCEND_BY_JOIN' => mx_append_sid( $mx_news->this_mxurl( "action=viewall&sort_method=link_time&sort_order=DESC" ) ), 'U_DESCEND_BY_RATINGS' => mx_append_sid( $mx_news->this_mxurl( "action=viewall&sort_method=rating&sort_order=DESC" ) ), 'U_PORTAL_PAGE' => $page_id )); // // Ratings enabled for any category ? // if ( !empty( $mx_news->modules[$mx_news->module_name]->cat_rowset ) ) { foreach( $mx_news->modules[$mx_news->module_name]->cat_rowset as $cat_id => $cat_row ) { if ( $mx_news->modules[$mx_news->module_name]->ratings[$cat_id]['activated'] ) { $template->assign_block_vars( 'switch_toprated', array() ); break; } } } $template->pparse( 'mx_news_header' ); */ } /** * page footer. * */ function page_footer() { global $lang, $board_config, $userdata, $phpbb_root_path, $mx_root_path, $module_root_path, $is_block, $phpEx, $page_id; global $mx_news_cache, $mx_news; global $phpEx, $template, $do_gzip_compress, $debug, $db, $starttime; // // page footer for mx_news // /* $template->set_filenames( array( 'link_footer' => "link_footer.tpl" ) ); $template->assign_vars( array( 'L_JUMP' => $lang['Jump'], 'JUMPMENU' => $mx_news->modules[$mx_news->module_name]->generate_jumpbox( 0, 0, array( $_GET['cat_id'] => 1, true, true, 'auth_view' ) ), 'S_JUMPBOX_ACTION' => mx_append_sid( $mx_news->this_mxurl() ), 'MX_PAGE' => $page_id, 'S_HIDDEN_VARS' => $s_hidden_vars, 'S_TIMEZONE' => sprintf( $lang['All_times'], $lang[number_format( $board_config['board_timezone'] )] ), ) ); $mx_news->modules[$mx_news->module_name]->_mx_news(); $template->pparse( 'link_footer' ); */ $mx_news_cache->unload(); } } /** * mx_news_notification. * * This class extends general mx_notification class * * // MODE: MX_PM_MODE/MX_MAIL_MODE, $id: get all file/article data for this id * $mx_notification->init($mode, $id); // MODE: MX_PM_MODE/MX_MAIL_MODE * * // MODE: MX_PM_MODE/MX_MAIL_MODE, ACTION: MX_NEW_NOTIFICATION/MX_EDITED_NOTIFICATION/MX_APPROVED_NOTIFICATION/MX_UNAPPROVED_NOTIFICATION * $mx_notification->notify( $mode = MX_PM_MODE, $action = MX_NEW_NOTIFICATION, $to_id, $from_id, $subject, $message, $html_on, $bbcode_on, $smilies_on ) * * @access public * @author Jon Ohlsson */ class mx_news_notification extends mx_notification { /** * Enter description here... * * @param unknown_type $item_id */ function init( $item_id = 0) { global $db, $lang, $module_root_path, $phpbb_root_path, $mx_root_path, $phpEx, $userdata, $mx_news; // ======================================================= // item id is not set, give him/her a nice error message // ======================================================= if (empty($item_id)) { mx_message_die(GENERAL_ERROR, 'Bad Init pars'); } unset($this->langs); // // Build up generic lang keys // $this->langs['item_not_exist'] = $lang['Link_not_exist']; $this->langs['module_title'] = $lang['mx_news_prefix']; $this->langs['notify_subject_new'] = $lang['mx_news_notify_subject_new']; $this->langs['notify_subject_edited'] = $lang['mx_news_notify_subject_edited']; $this->langs['notify_subject_approved'] = $lang['mx_news_notify_subject_approved']; $this->langs['notify_subject_unapproved'] = $lang['mx_news_notify_subject_unapproved']; $this->langs['notify_subject_deleted'] = $lang['mx_news_notify_subject_deleted']; $this->langs['notify_new_body'] = $lang['mx_news_notify_new_body']; $this->langs['notify_edited_body'] = $lang['mx_news_notify_edited_body']; $this->langs['notify_approved_body'] = $lang['mx_news_notify_approved_body']; $this->langs['notify_unapproved_body'] = $lang['mx_news_notify_unapproved_body']; $this->langs['notify_deleted_body'] = $lang['mx_news_notify_deleted_body']; $this->langs['item_title'] = $lang['Link']; $this->langs['author'] = $lang['Submiter']; $this->langs['item_description'] = $lang['Desc']; $this->langs['item_type'] = ''; $this->langs['category'] = $lang['Sitecat']; $this->langs['read_full_item'] = $lang['Read_full_link']; $this->langs['edited_item_info'] = $lang['Edited_Link_info']; /* switch ( SQL_LAYER ) { case 'oracle': $sql = "SELECT f.*, AVG(r.rate_point) AS rating, COUNT(r.votes_link) AS total_votes, u.user_id, u.username FROM " . LINKS_TABLE . " AS f, " . LINK_VOTES_TABLE . " AS r, " . USERS_TABLE . " AS u, " . LINK_CATEGORIES_TABLE . " AS c WHERE f.link_id = r.votes_link(+) AND f.user_id = u.user_id(+) AND c.cat_id = a.link_catid AND f.link_id = '" . $item_id . "' GROUP BY f.link_id "; break; default: $sql = "SELECT f.*, AVG(r.rate_point) AS rating, COUNT(r.votes_link) AS total_votes, u.user_id, u.username FROM " . LINKS_TABLE . " AS f LEFT JOIN " . LINK_CATEGORIES_TABLE . " AS cat ON f.link_catid = cat.cat_id LEFT JOIN " . LINK_VOTES_TABLE . " AS r ON f.link_id = r.votes_link LEFT JOIN " . USERS_TABLE . " AS u ON f.user_id = u.user_id WHERE f.link_id = '" . $item_id . "' GROUP BY f.link_id "; break; } if ( !( $result = $db->sql_query( $sql ) ) ) { mx_message_die( GENERAL_ERROR, 'Couldnt Query link info', '', __LINE__, __FILE__, $sql ); } // =================================================== // file doesn't exist' // =================================================== if ( !$item_data = $db->sql_fetchrow( $result ) ) { mx_message_die( GENERAL_MESSAGE, $this->langs['Item_not_exist'] ); } $db->sql_freeresult( $result ); */ unset($this->data); // // File data // $this->data['item_id'] = $item_id; $this->data['item_title'] = $item_data['link_name']; $this->data['item_desc'] = $item_data['link_longdesc']; // // Category data // $this->data['item_category_id'] = $item_data['cat_id']; $this->data['item_category_name'] = $item_data['cat_name']; // // File author // $this->data['item_author_id'] = $item_data['user_id']; $this->data['item_author'] = ( $item_data['user_id'] != ANONYMOUS ) ? $item_data['username'] : $lang['Guest']; // // File editor // $this->data['item_editor_id'] = $userdata['user_id']; $this->data['item_editor'] = ( $userdata['user_id'] != '-1' ) ? $userdata['username'] : $lang['Guest']; $mx_root_path_tmp = $mx_root_path; // Stupid workaround, since phpbb posts need full paths. $mx_root_path = ''; $this->temp_url = PORTAL_URL . $mx_news->this_mxurl("action=" . "main&link_id=" . $this->data['item_id'], false, true); $mx_root_path = $mx_root_path_tmp; } } ?> --- NEW FILE: functions_admin.php --- <?php /** * * @package mxBBmodule_mx_news * @version $Id: functions_admin.php,v 1.1 2008/02/08 21:58:20 jonohlsson Exp $ * @copyright (c) 2002-2006 [wGEric, Jon Ohlsson] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ if ( !defined( 'IN_PORTAL' ) ) { die( "Hacking attempt" ); } /** * Public mx_news_admin class. * */ class mx_news_admin extends mx_news_public { /** * load admin module * * @param unknown_type $module_name send module name to load it */ function adminmodule( $module_name ) { if ( !class_exists( 'mx_news_' . $module_name ) ) { global $module_root_path, $phpEx; $this->module_name = $module_name; require_once( $module_root_path . 'mx_news/admin/admin_' . $module_name . '.' . $phpEx ); eval( '$this->modules[' . $module_name . '] = new mx_news_' . $module_name . '();' ); if ( method_exists( $this->modules[$module_name], 'init' ) ) { $this->modules[$module_name]->init(); } } } /** * Enter description here... * * @param unknown_type $sel_id * @param unknown_type $use_default_option * @param unknown_type $select_name * @return unknown */ function get_forums( $sel_id = 0, $use_default_option = false, $select_name = 'forum_id' ) { global $db, $lang; $sql = "SELECT forum_id, forum_name FROM " . FORUMS_TABLE; if ( !$result = $db->sql_query( $sql ) ) { mx_message_die( GENERAL_ERROR, "Couldn't get list of forums", "", __LINE__, __FILE__, $sql ); } $forumlist = '<select name="'.$select_name.'">'; if ( $sel_id == 0 ) { $forumlist .= '<option value="0" selected >'.$lang['Select_topic_id'].'</option>'; } if ( $use_default_option ) { $status = $sel_id == "-1" ? "selected" : ""; $forumlist .= '<option value="-1" '.$status.' >::'.$lang['Use_default'].'::</option>'; } while ( $row = $db->sql_fetchrow( $result ) ) { if ( $sel_id == $row['forum_id'] ) { $status = "selected"; } else { $status = ''; } $forumlist .= '<option value="' . $row['forum_id'] . '" ' . $status . '>' . $row['forum_name'] . '</option>'; } $forumlist .= '</select>'; return $forumlist; } } ?> --- NEW FILE: functions_mx_news.php --- <?php /** * * @package mxBB Portal Module - mx_news * @version $Id: functions_mx_news.php,v 1.1 2008/02/08 21:58:21 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"); } /** * mx_news class * */ class mx_news extends mx_news_auth { var $comments = array(); var $information = array(); var $notification = array(); var $modified = false; var $error = array(); var $page_title = ''; var $block_id = ''; var $debug = false; // Toggle debug output on/off var $debug_msg = array(); /** * Prepare data * */ function init() { global $db, $userdata, $debug, $mx_news_config, $mx_block; unset( $this->block_id ); unset( $this->comments ); unset( $this->information ); unset( $this->notification ); $this->block_id = $mx_block->block_id; /* $sql = 'SELECT * FROM ' . LINK_CATEGORIES_TABLE . ' ORDER BY cat_order ASC'; if ( !( $result = $db->sql_query( $sql ) ) ) { mx_message_die( GENERAL_ERROR, 'Couldnt Query categories info', '', __LINE__, __FILE__, $sql ); } $cat_rowset = $db->sql_fetchrowset( $result ); $db->sql_freeresult( $result ); $this->auth( AUTH_ALL, AUTH_LIST_ALL, $userdata, $cat_rowset ); for( $i = 0; $i < count( $cat_rowset ); $i++ ) { if ( $this->auth_user[$cat_rowset[$i]['cat_id']]['auth_view'] ) { $this->cat_rowset[$cat_rowset[$i]['cat_id']] = $cat_rowset[$i]; $this->subcat_rowset[$cat_rowset[$i]['cat_parent']][$cat_rowset[$i]['cat_id']] = $cat_rowset[$i]; $this->total_cat++; // // Comments // Note: some settings are category dependent, but may use default config settings // $this->comments[$cat_rowset[$i]['cat_id']]['activated'] = $cat_rowset[$i]['cat_allow_comments'] == -1 ? ($mx_news_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 ? ($mx_news_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 ? ($mx_news_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($mx_news_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) { mx_message_die(GENERAL_ERROR, 'Init Failure, phpBB comments with no target forum_id :(<br> Category: ' . $cat_rowset[$i]['cat_name'] . ' Forum_id: ' . $this->comments[$cat_rowset[$i]['cat_id']]['comments_forum_id']); } // // Ratings // $this->ratings[$cat_rowset[$i]['cat_id']]['activated'] = $cat_rowset[$i]['cat_allow_ratings'] == -1 ? ($mx_news_config['use_ratings'] == 1 ? true : false ) : ( $cat_rowset[$i]['cat_allow_ratings'] == 1 ? true : false ); // // Information // $this->information[$cat_rowset[$i]['cat_id']]['activated'] = $cat_rowset[$i]['show_pretext'] == -1 ? ($mx_news_config['show_pretext'] == 1 ? true : false ) : ( $cat_rowset[$i]['show_pretext'] == 1 ? true : false ); // phpBB or internal ratings // // Notification // $this->notification[$cat_rowset[$i]['cat_id']]['activated'] = $cat_rowset[$i]['notify'] == -1 ? (intval($mx_news_config['notify'])) : ( intval($cat_rowset[$i]['notify']) ); // -1, 0, 1, 2 $this->notification[$cat_rowset[$i]['cat_id']]['notify_group'] = $cat_rowset[$i]['notify_group'] == -1 || $cat_rowset[$i]['notify_group'] == 0 ? (intval($mx_news_config['notify_group'])) : ( intval($cat_rowset[$i]['notify_group']) ); // Group_id } } */ // // Comments // $this->comments[$this->block_id]['activated'] = true; switch($portal_config['portal_backend']) { case 'internal': $this->comments[$this->block_id]['internal_comments'] = true; // phpBB or internal comments $this->comments[$this->block_id]['comments_forum_id'] = 0; // phpBB target forum (only used for phpBB comments) break; default: $this->comments[$this->block_id]['internal_comments'] = ($mx_news_config['internal_comments'] == 1 ? true : false ); // phpBB or internal comments $this->comments[$this->block_id]['comments_forum_id'] = ( intval($mx_news_config['comments_forum_id']) ); // phpBB target forum (only used for phpBB comments) break; } if ($this->comments[$this->block_id]['activated'] && !$this->comments[$this->block_id]['internal_comments'] && intval($this->comments[$this->block_id]['comments_forum_id']) < 1) { mx_message_die(GENERAL_ERROR, 'Init Failure, phpBB comments with no target forum_id :(<br> Block: ' . $this->block_id . ' Forum_id: ' . $this->comments[$block_id]['comments_forum_id']); } // // Notification // $this->notification[$this->block_id]['activated'] = (intval($mx_news_config['notify'])); // -1, 0, 1, 2 $this->notification[$this->block_id]['notify_group'] = (intval($mx_news_config['notify_group'])); // Group_id } /** * Clean up * */ function _mx_news() { if ( $this->modified ) { //$this->sync_all(); } } /** * Add debug message. * * @param unknown_type $debug_msg * @param unknown_type $file * @param unknown_type $line_break */ function debug($debug_msg, $file = '', $line_break = true) { if ($this->debug) { $module_name = !empty($this->module_name) ? $this->module_name . ' :: ' : ''; $file = !empty($file) ? ' (' . $file . ')' : ''; $line_break = $line_break ? '<br>' : ''; $this->debug_msg[] = $line_break . $module_name . $debug_msg . $file ; } } /** * Display debug message. * * @return unknown */ function display_debug() { if ($this->debug) { $debug_message = ''; foreach ($this->debug_msg as $key => $value) { $debug_message .= $value; } return $debug_message; } } /** * Enter description here... * * @param unknown_type $true_false */ function modified( $true_false = false ) { $this->modified = $true_false; } /** * url rewrites. * * @param unknown_type $args * @param unknown_type $force_standalone_mode * @param unknown_type $non_html_amp * @return unknown */ function this_mxurl( $args = '', $force_standalone_mode = false, $non_html_amp = false, $pageId = '' ) { global $mx_root_path, $module_root_path, $page_id, $phpEx, $is_block; $pageId = empty($pageId) ? $page_id : $pageId; if ($_GET['dynamic_block'] != '') { $args = 'dynamic_block='. $_GET['dynamic_block'] . ($args == '' ? '' : '&' ) . $args; } $args .= ($args == '' ? '' : '&' ) . 'modrewrite=no'; if ( !MXBB_MODULE ) { $mxurl = $module_root_path . 'mx_news.' . $phpEx . ( $args == '' ? '' : '?' . $args ); return $mxurl; } if ( $force_standalone_mode || !$is_block ) { $mxurl = $mx_root_path . 'modules/mx_news/mx_news.' . $phpEx . ( $args == '' ? '' : '?' . $args ); } else { $mxurl = $mx_root_path . 'index.' . $phpEx; if ( is_numeric( $pageId ) ) { $mxurl .= '?page=' . $pageId . ( $args == '' ? '' : ( $non_html_amp ? '&' : '&' ) . $args ); } else { $mxurl .= ( $args == '' ? '' : '?' . $args ); } } return $mxurl; } // ============================================= // Admin and mod functions // ============================================= /** * Enter description here... * * @param unknown_type $link_data * @param unknown_type $item_id * @param unknown_type $cid * @param unknown_type $subject * @param unknown_type $message * @param unknown_type $html_on * @param unknown_type $bbcode_on * @param unknown_type $smilies_on */ function update_add_comment($link_data = '', $item_id, $cid, $subject = '', $message = '', $html_on = false, $bbcode_on = true, $smilies_on = false, $allow_wysiwyg = false) { global $template, $mx_news_functions, $lang, $board_config, $phpEx, $mx_news_config, $db, $images, $userdata; 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; // // Ensure we have article_data defined // /* if (!is_array($link_data) && !empty($item_id) && $item_id > 0) { $sql = "SELECT * FROM " . LINKS_TABLE . " WHERE link_id = '" . $item_id . "'"; if ( !( $result = $db->sql_query( $sql ) ) ) { mx_message_die( GENERAL_ERROR, 'Couldnt select link', '', __LINE__, __FILE__, $sql ); } if ( !$link_data = $db->sql_fetchrow( $result ) ) { mx_message_die( GENERAL_MESSAGE, $lang['Link_not_exsist'] ); } $db->sql_freeresult( $result ); } */ $link_data['link_catid'] = $this->block_id; // // vars (can both be POSTed or send through the function) // $update_comment = $cid > 0 ? true : false; $subject = !empty($subject) ? $subject : $_POST['subject']; $message = !empty($message) ? $message : $_POST['message']; $length = strlen( $message ); // // Instantiate the mx_text class // $mx_text = new mx_text(); $mx_text->init($html_on, $bbcode_on, $smilies_on); $mx_text->allow_all_html_tags = $allow_wysiwyg; // // Encode for db storage // $title = $mx_text->encode_simple($subject); $comments_text = $mx_text->encode($message); $comment_bbcode_uid = $mx_text->bbcode_uid; if ( $length > $mx_news_config['max_comment_chars'] ) { mx_message_die( GENERAL_ERROR, 'Your comment is too long!<br/>The maximum length allowed in characters is ' . $mx_news_config['max_comment_chars'] . '' ); } if ( $update_comment ) { if ( $this->comments[$link_data['link_catid']]['internal_comments'] ) { $sql = "UPDATE " . MX_NEWS_COMMENTS_TABLE . " SET comments_text = '" . str_replace( "\'", "''", $comments_text ) . "', comments_title = '" . str_replace( "\'", "''", $title ) . "', comment_bbcode_uid = '" . $comment_bbcode_uid . "' WHERE comments_id = " . $cid . " AND block_id = ". $item_id; if ( !( $db->sql_query( $sql ) ) ) { mx_message_die( GENERAL_ERROR, 'Couldnt update comments', '', __LINE__, __FILE__, $sql ); } } else { include( $module_root_path . 'mx_news/includes/functions_comment.' . $phpEx ); $mx_news_comments = new mx_news_comments(); $mx_news_comments->init( $item_id ); $return_data = $mx_news_comments->post( 'update', $cid, $title, $comments_text, $userdata['user_id'], $userdata['username'], 0, '', '', $comment_bbcode_uid); } } else { if ( $this->comments[$link_data['link_catid']]['internal_comments'] ) { $time = time(); $poster_id = intval( $userdata['user_id'] ); $sql = "INSERT INTO " . MX_NEWS_COMMENTS_TABLE . "(block_id, comments_text, comments_title, comments_time, comment_bbcode_uid, poster_id) VALUES('$item_id','" . str_replace( "\'", "''", $comments_text ) . "','" . str_replace( "\'", "''", $title ) . "','$time', '$comment_bbcode_uid','$poster_id')"; if ( !( $db->sql_query( $sql ) ) ) { mx_message_die( GENERAL_ERROR, 'Couldnt insert comments', '', __LINE__, __FILE__, $sql ); } } else { include( $module_root_path . 'mx_news/includes/functions_comment.' . $phpEx ); $mx_news_comments = new mx_news_comments(); $mx_news_comments->init( $item_id ); $return_data = $mx_news_comments->post( 'insert', '', $title, $comments_text, $userdata['user_id'], $userdata['username'], 0, '', '', $comment_bbcode_uid); } } if ( !$this->comments[$link_data['link_catid']]['internal_comments'] ) { /* // // Update the item data itself // if ($file_data['topic_id'] == 0 ) { // // Update item with new topic_id // $sql = "UPDATE " . LINKS_TABLE . " SET topic_id = '" . $return_data['topic_id'] . "' WHERE link_id = ". $item_id; if ( !( $result = $db->sql_query( $sql ) ) ) { mx_message_die( GENERAL_ERROR, 'Couldnt update item', '', __LINE__, __FILE__, $sql ); } $db->sql_freeresult( $result ); } */ } } /** * Enter description here... * * @param unknown_type $block_id * @param unknown_type $mode_notification */ function update_add_comment_notify( $block_id = false, $mode_notification = 'edit' ) { global $db, $portal_config; if ( in_array( $mode_notification, array( 'add', 'edit', 'do_approve', 'do_unapprove', 'delete' ) ) ) { if (!$block_id) { die('bad update_add_file_notify arg'); } if (is_array( $block_id ) && !empty( $block_id )) { $fileIdsArray = $block_id; } else { $fileIdsArray[] = $block_id; } foreach($fileIdsArray as $fileId) { /* $sql = "SELECT link_catid FROM " . LINKS_TABLE . " WHERE link_id = '" . $fileId . "'"; if ( !$result = $db->sql_query( $sql ) ) { mx_message_die( GENERAL_ERROR, 'Couldn\'t get link info', '', __LINE__, __FILE__, $sql ); } $row = $db->sql_fetchrow( $result ); $catId = $row['link_catid']; */ // // Notification // //if ( $this->notification[$catId]['activated'] > 0 ) // -1, 0, 1, 2 if ( $this->notification[$block_id]['activated'] > 0 ) // -1, 0, 1, 2 { // // Instatiate notification // $mx_news_notification = new mx_news_notification(); $mx_news_notification->init( $block_id ); // // Now send notification // $mx_notification_mode = $this->notification[$block_id]['activated'] == 1 ? MX_PM_MODE : MX_MAIL_MODE; switch ( $mode_notification ) { case 'add': $mx_notification_action = MX_NEW_NOTIFICATION; break; case 'edit': $mx_notification_action = MX_EDITED_NOTIFICATION; break; case 'do_approve': $mx_notification_action = MX_APPROVED_NOTIFICATION; break; case 'do_unapprove': $mx_notification_action = MX_UNAPPROVED_NOTIFICATION; break; case 'delete': $mx_notification_action = MX_DELETED_NOTIFICATION; break; } $html_entities_match = array('#&(?!(\#[0-9]+;))#', '#<#', '#>#', '#"#'); $html_entities_replace = array('&', '<', '>', '"'); $mx_news_notification->notify( $mx_notification_mode, $mx_notification_action ); if ( $this->notification[$block_id]['notify_group'] > 0 ) { $mx_news_notification->notify( $mx_notification_mode, $mx_notification_action, - intval($this->notification[$block_id]['notify_group']) ); } } } } } } /** * Public mx_news class * */ class mx_news_public extends mx_news { var $modules = array(); var $module_name = ''; /** * load module * * @param unknown_type $module_name send module name to load it */ function module( $module_name ) { if ( !class_exists( 'mx_news_' . $module_name ) ) { global $module_root_path, $phpEx; $this->module_name = $module_name; require_once( $module_root_path . 'mx_news/modules/mx_news_' . $module_name . '.' . $phpEx ); eval( '$this->modules[' . $module_name . '] = new mx_news_' . $module_name . '();' ); if ( method_exists( $this->modules[$module_name], 'init' ) ) { $this->modules[$module_name]->init(); } } } /** * this will be replaced by the loaded module * * @param unknown_type $module_id * @return unknown */ function main( $module_id = false ) { return false; } /** * go ahead and output the page * * @param unknown_type $page_title send page title * @param unknown_type $tpl_name template file name */ function display( $page_title1, $tpl_name ) { global $page_title, $mx_news_tpl_name; $page_title = $page_title1; $mx_news_tpl_name = $tpl_name; } } ?> --- NEW FILE: functions_mx.php --- <?php /** * * @package mxBBmodule_mx_news * @version $Id: functions_mx.php,v 1.1 2008/02/08 21:58:20 jonohlsson Exp $ * @copyright (c) 2002-2006 [wGEric, Jon Ohlsson] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ if( !defined('IN_PORTAL') ) { die("Hacking attempt"); } if ( !function_exists( mx_smilies_pass ) ) { /** * Enter description here... * * @param unknown_type $message * @return unknown */ function mx_smilies_pass($message) { global $board_config; $smilies_path = $board_config['smilies_path']; $board_config['smilies_path'] = PHPBB_URL . $board_config['smilies_path']; $message = smilies_pass($message); $board_config['smilies_path'] = $smilies_path; return $message; } } if ( !function_exists( mx_generate_smilies ) ) { /** * Enter description here... * * @param unknown_type $mode * @param unknown_type $page_id */ function mx_generate_smilies($mode, $page_id) { global $board_config, $template, $phpEx; $smilies_path = $board_config['smilies_path']; $board_config['smilies_path'] = PHPBB_URL . $board_config['smilies_path']; generate_smilies($mode, $page_id); $board_config['smilies_path'] = $smilies_path; $template->assign_vars(array( 'U_MORE_SMILIES' => mx_append_sid(PHPBB_URL . "posting.$phpEx?mode=smilies")) ); } } if ( !function_exists( mx_message_die ) ) { /** * Enter description here... * * @param unknown_type $msg_code * @param unknown_type $msg_text * @param unknown_type $msg_title * @param unknown_type $err_line * @param unknown_type $err_file * @param unknown_type $sql */ function mx_message_die($msg_code, $msg_text = '', $msg_title = '', $err_line = '', $err_file = '', $sql = '') { global $db, $template, $board_config, $theme, $lang, $phpEx, $phpbb_root_path, $nav_links, $gen_simple_header, $images; global $userdata, $user_ip, $session_length; global $starttime; message_die($msg_code, $msg_text, $msg_title, $err_line, $err_file, $sql); } } if ( !function_exists( mx_is_group_member ) ) { /** * Validates if user belongs to group included in group_ids list * Also, adds all usergroups to userdata array * * @param unknown_type $group_ids * @param unknown_type $group_mod_mode * @return unknown */ function mx_is_group_member( $group_ids = '', $group_mod_mode = false ) { global $userdata, $db; if ( $group_ids == '' ) { return false; } $group_ids_array = explode(",", $group_ids); // Try to reuse usergroups result. if ( $group_mod_mode ) { $userdata_key = 'mx_usergroups_mod' . $userdata['user_id']; if ( empty( $userdata[$userdata_key] ) ) { // Check if user is group moderator.. $sql = "SELECT gr.group_id FROM " . GROUPS_TABLE . " gr, " . USER_GROUP_TABLE . " ugr WHERE gr.group_id = ugr.group_id AND gr.group_moderator = '" . $userdata['user_id'] . "' AND ugr.user_pending = '0' "; if ( !( $result = $db->sql_query( $sql ) ) ) { mx_message_die( GENERAL_ERROR, "Could not query group rights information", '', '', '', '' ); } $group_row = $db->sql_fetchrowset( $result ); $userdata[$userdata_key_mod] = $group_row; } } else { $userdata_key = 'mx_usergroups' . $userdata['user_id']; if ( empty( $userdata[$userdata_key] ) ) { // Check if user is member of the proper group.. $sql = "SELECT group_id FROM " . USER_GROUP_TABLE . " WHERE user_id='" . $userdata['user_id'] . "' AND user_pending = 0"; if ( !( $result = $db->sql_query( $sql ) ) ) { mx_message_die( GENERAL_ERROR, "Could not query group rights information", '', '', '', '' ); } $group_row = $db->sql_fetchrowset( $result ); $userdata[$userdata_key] = $group_row; } } for ( $i = 0; $i < count( $userdata[$userdata_key] ); $i++ ) { if ( in_array( $userdata[$userdata_key][$i]['group_id'], $group_ids_array ) ) { $is_member = true; return $is_member; } } return false; } } if ( !function_exists(mx_do_install_upgrade) ) { /** * Generating output. * * @param unknown_type $sql * @param unknown_type $main_install * @return unknown */ function mx_do_install_upgrade( $sql = '', $main_install = false ) { global $table_prefix, $mx_table_prefix, $userdata, $phpEx, $template, $lang, $db, $board_config, $HTTP_POST_VARS; $inst_error = false; $n = 0; $message = "<b>This is the result list of the SQL queries needed for the install/upgrade</b><br /><br />"; while ( $sql[$n] ) { if ( !$result = $db->sql_query( $sql[$n] ) ) { $message .= '<b><font color=#FF0000>[Error or Already added]</font></b> line: ' . ( $n + 1 ) . ' , ' . $sql[$n] . '<br />'; $inst_error = true; } else { $message .= '<b><font color=#0000fF>[Added/Updated]</font></b> line: ' . ( $n + 1 ) . ' , ' . $sql[$n] . '<br />'; } $n++; } $message .= '<br /> If you get some Errors, Already Added or Updated messages, relax, this is normal when updating modules'; if ( $main_install ) { if ( !$inst_error ) { $message .= '-> no db errors :-)<br /><br /><b>Portal installed successfully! </b><hr><br /><br />'; $message .= '1) Now, delete the /install and /contrib folders!!!<br /><br />'; $message .= '2) If you haven\'t already done a db backup, now is the time ;)<br /><br />'; $message .= '3) Then (after step 1), you HAVE to configure MX core and its modules from within the adminCP, simply \'upgrade\' MX portal Core and all modules in use!!!<br /><br />'; $message .= 'Click <a href=../admin/admin_mx_module.php>Here</a> to administer/upgrade the portal/modules. You will be promted for an admin username and pass. The upgrade process provide informative output...'; } else { $message .= '<br /><br /><b>Portal installed successfully (with some warnings)! </b><hr><br /><br />'; $message .= '1) Now, delete the /install and /contrib folders!!!<br /><br />'; $message .= '2) If you haven\'t already done a db backup, now is the time ;)<br /><br />'; $message .= '3) Now (after step 1), you HAVE to configure MX core and its modules from within the adminCP, simply \'upgrade\' MX portal Core and all modules in use!!!<br /><br />'; $message .= 'Click <a href=../admin/admin_mx_module.php>Here</a> to administer/upgrade the portal/modules. You will be promted for an admin username and pass. The upgrade process provide informative output...'; } } return $message; } } ?> --- NEW FILE: functions_comment.php --- <?php /** * * @package mxBBmodule_mx_news * @version $Id: functions_comment.php,v 1.1 2008/02/08 21:58:20 jonohlsson Exp $ * @copyright (c) 2002-2006 [Mohd Basri, PHP Arena, linkdb, Jon Ohlsson] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ if ( !defined( 'IN_PORTAL' ) ) { die( "Hacking attempt" ); } /** * Enter description here... * */ class mx_news_comments extends mx_comments { /** * Enter description here... * * @param unknown_type $item_data * @param unknown_type $comments_type */ function init( $item_data, $comments_type = 'internal' ) { global $mx_news, $mx_news_config, $db, $images, $mx_block, $board_config; if ( !is_object($mx_news) || empty($mx_news_config) ) { mx_message_die(GENERAL_ERROR, 'Bad global arguments'); } /* if (!is_array($item_data) && !empty($item_data)) { $sql = 'SELECT * FROM ' . LINKS_TABLE . " WHERE link_id = $item_data"; if ( !( $result = $db->sql_query( $sql ) ) ) { mx_message_die( GENERAL_ERROR, 'Couldn\'t get file info', '', __LINE__, __FILE__, $sql ); } $item_data = $db->sql_fetchrow( $result ); } */ $item_data['link_catid'] = $mx_news->modules[$mx_news->module_name]->block_id; $item_data['link_id'] = $mx_news->modules[$mx_news->module_name]->block_id; $item_data['topic_id'] = $mx_news->modules[$mx_news->module_name]->block_id; $this->comments_type = $comments_type == 'internal' ? 'internal' : 'phpbb'; $this->cat_id = $item_data['link_catid']; $this->item_id = $item_data['link_id']; $this->topic_id = $item_data['topic_id']; $this->item_table = LINKS_TABLE; $this->comments_table = MX_NEWS_COMMENTS_TABLE; $this->table_field_id = 'block_id'; // // Auth // $this->forum_id = $mx_news->modules[$mx_news->module_name]->comments[$this->block_id]['comments_forum_id']; $this->auth['auth_view'] = $mx_block->auth_view; $this->auth['auth_post'] = $mx_block->auth_edit; $this->auth['auth_edit'] = $mx_block->auth_edit; $this->auth['auth_delete'] = $mx_block->auth_mod; $this->auth['auth_mod'] = $mx_block->auth_mod; // // Pagination // $this->pagination_action = 'action=news'; $this->pagination_target = 'block_id='; $this->pagination_num = empty($show_num_comments) ? $this->pagination_num : $show_num_comments; $this->u_pagination = $mx_news->this_mxurl( $this->pagination_action . "&" . $this->pagination_target . $this->item_id . '&modrewrite=no' ); // // Configs // $this->allow_wysiwyg = $mx_news_config['allow_wysiwyg']; $this->allow_comment_wysiwyg = $mx_news_config['allow_comment_wysiwyg']; $this->allow_comment_bbcode = $mx_news_config['allow_comment_bbcode']; $this->allow_comment_html = $mx_news_config['allow_comment_html']; $this->allow_comment_smilies = $mx_news_config['allow_comment_smilies']; $this->allow_comment_links = $mx_news_config['allow_comment_links']; $this->allow_comment_images = $mx_news_config['allow_comment_images']; $this->no_comment_image_message = $mx_news_config['no_comment_image_message']; $this->no_comment_link_message = $mx_news_config['no_comment_link_message']; $this->max_comment_subject_chars = $mx_news_config['max_comment_subject_chars']; $this->max_comment_chars = $mx_news_config['max_comment_chars']; $this->formatting_comment_truncate_links = $mx_news_config['formatting_comment_truncate_links']; $this->formatting_comment_image_resize = $mx_news_config['formatting_comment_image_resize']; $this->formatting_comment_wordwrap = $mx_news_config['formatting_comment_wordwrap']; $this->images = array( 'icon_minipost' => $images['mx_news_icon_minipost'], 'comment_post' => $images['mx_news_comment_post'], 'icon_edit' => $images['mx_news_icon_edit'], 'icon_delpost' => $images['mx_news_icon_delpost']); $this->u_post = $mx_news->this_mxurl( 'action=post_news&item_id=' . $this->item_id . '&modrewrite=no'); $this->u_edit = $mx_news->this_mxurl( 'action=post_news&item_id=' . $this->item_id . '&modrewrite=no'); $this->u_delete = $mx_news->this_mxurl( "action=post_news&delete=do&item_id=".$this->item_id . '&modrewrite=no'); } /** * Enter description here... * * @param unknown_type $ranks */ function obtain_ranks( &$ranks ) { global $db, $mx_news_cache; die('d'); if ( $mx_news_cache->exists( 'ranks' ) ) { $ranks = $mx_news_cache->get( 'ranks' ); } else { $sql = "SELECT * FROM " . RANKS_TABLE . " ORDER BY rank_special, rank_min"; if ( !( $result = $db->sql_query( $sql ) ) ) { mx_message_die( GENERAL_ERROR, "Could not obtain ranks information.", '', __LINE__, __FILE__, $sql ); } $ranks = array(); while ( $row = $db->sql_fetchrow( $result ) ) { $ranks[] = $row; } $db->sql_freeresult( $result ); $mx_news_cache->put( 'ranks', $ranks ); } } } ?> --- NEW FILE: functions_auth.php --- <?php /** * * @package mxBBmodule_mx_kb * @version $Id: functions_auth.php,v 1.1 2008/02/08 21:58:20 jonohlsson Exp $ * @copyright (c) 2002-2006 [wGEric, Jon Ohlsson] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ if ( !defined( 'IN_PORTAL' ) ) { die( "Hacking attempt" ); } /** * Enter description here... * */ class mx_news_auth { } ?> --- NEW FILE: mx_news_constants.php --- <?php /** * * @package mxBB Portal Module - mx_news * @version $Id: mx_news_constants.php,v 1.1 2008/02/08 21:58:21 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" ); } if ( !MXBB_MODULE ) { $server_protocol = ($board_config['cookie_secure']) ? 'https://' : 'http://'; $server_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['server_name'])); $server_port = ($board_config['server_port'] <> 80) ? ':' . trim($board_config['server_port']) : ''; $script_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['script_path'])); $script_name = ($script_name == '') ? $script_name : '/' . $script_name; define( 'PORTAL_URL', $server_protocol . $server_name . $server_port . $script_name . '/' ); define( 'PHPBB_URL', PORTAL_URL ); //$kb_config['news_operate_mode'] = false; $mx_table_prefix = $table_prefix; $is_block = false; } define( 'MX_NEWS_ROOT_CAT', 0 ); // // Tables // define( 'MX_NEWS_COMMENTS_TABLE', $mx_table_prefix . 'simplenews_comments' ); define( 'MX_NEWS_CONFIG_TABLE', $mx_table_prefix . 'simplenews_config' ); // // Field Types // define( 'INPUT', 0 ); define( 'TEXTAREA', 1 ); define( 'RADIO', 2 ); define( 'SELECT', 3 ); define( 'SELECT_MULTIPLE', 4 ); define( 'CHECKBOX', 5 ); if ( !MXBB_MODULE || MXBB_27x ) { $mx_news_module_version = "Simple News Manager v. 1.0.0"; $mx_news_module_author = "Jon"; } else { if (is_object($mx_page)) { // ------------------------------------------------------------------------- // Extend User Style with module lang and images // Usage: $mx_user->extend(LANG, IMAGES) // Switches: // - LANG: MX_LANG_MAIN (default), MX_LANG_ADMIN, MX_LANG_ALL, MX_LANG_NONE // - IMAGES: MX_IMAGES (default), MX_IMAGES_NONE // ------------------------------------------------------------------------- $mx_user->extend(); $mx_page->add_copyright( 'mxBB News Module' ); } } ?> --- 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-02-08 21:58:24
|
Update of /cvsroot/mxbb/mx_news/mx_news/modules In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv31687/modules Added Files: index.htm mx_news_main.php mx_news_post_comment.php Log Message: Ooops. this module was added to CORE by mistake, removed and readded as a module. --- NEW FILE: mx_news_post_comment.php --- <?php /** * * @package mxBB Portal Module - mx_news * @version $Id: mx_news_post_comment.php,v 1.1 2008/02/08 21:58:21 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" ); } /** * Enter description here... * */ class mx_news_post_comment extends mx_news_public { /** * Enter description here... * * @param unknown_type $action */ function main( $action ) { global $template, $mx_news_functions, $lang, $board_config, $phpEx, $mx_news_config, $db, $images, $userdata; 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; // // Go full page // $mx_block->full_page = true; // // Request vars // $cid = $mx_request_vars->request('cid', MX_TYPE_INT, 0); /* if ( $mx_request_vars->is_request('item_id') && $mx_request_vars->is_request('cat_id') ) { $item_id = $mx_request_vars->request('item_id', MX_TYPE_INT, 0); $cat_id = $mx_request_vars->request('cat_id', MX_TYPE_INT, 0); } else { mx_message_die( GENERAL_MESSAGE, $lang['Link_not_exist'] ); } */ $item_id = $this->block_id; $delete = $mx_request_vars->request('delete', MX_TYPE_NO_TAGS, ''); $submit = $mx_request_vars->is_request('submit'); $preview = $mx_request_vars->is_request('preview'); /* $sql = "SELECT * FROM " . LINKS_TABLE . " WHERE link_id = '" . $item_id . "'"; if ( !( $result = $db->sql_query( $sql ) ) ) { mx_message_die( GENERAL_ERROR, 'Couldnt select download', '', __LINE__, __FILE__, $sql ); } if ( !$link_data = $db->sql_fetchrow( $result ) ) { mx_message_die( GENERAL_MESSAGE, $lang['Link_not_exsist'] ); } $db->sql_freeresult( $result ); */ $item_data = array(); $item_data['link_catid'] = $item_id; $item_data['link_id'] = $item_id; $item_data['topic_id'] = $item_id; if ( !( ( $mx_block->auth_view && $mx_block->auth_edit ) || $mx_block->auth_mod ) ) { if ( !$userdata['session_logged_in'] ) { // mx_redirect(mx_append_sid($mx_root_path . "login.$phpEx?redirect=".$this->this_mxurl("action=post_news&item_id=" . $item_id), true)); } $message = $lang['Sorry_auth_comment']; mx_message_die( GENERAL_MESSAGE, $message ); } if ( $mx_request_vars->is_get('cid') ) { if ( $this->comments[$item_id]['internal_comments'] ) { // // Query internal comment to edit // $sql = 'SELECT c.*, u.* FROM ' . MX_NEWS_COMMENTS_TABLE . ' AS c LEFT JOIN ' . USERS_TABLE . " AS u ON c.poster_id = u.user_id WHERE c.block_id = '" . $item_id . "' AND c.comments_id = '" . $mx_request_vars->request('cid', MX_TYPE_INT, '') . "'"; $comment_arg_title = 'comments_title'; $comment_arg_message = 'comments_text'; $comment_arg_bbcode_uid = 'comment_bbcode_uid'; } else { // // Query internal comment to edit // Note: cid = post_id // $sql = "SELECT u.username, u.user_id, u.user_posts, u.user_from, u.user_website, u.user_email, u.user_icq, u.user_aim, u.user_yim, u.user_regdate, u.user_msnm, u.user_viewemail, u.user_rank, u.user_sig, u.user_sig_bbcode_uid, u.user_avatar, u.user_avatar_type, u.user_allowavatar, u.user_allowsmile, p.*, pt.post_text, pt.post_subject, pt.bbcode_uid FROM " . POSTS_TABLE . " p, " . USERS_TABLE . " u, " . POSTS_TEXT_TABLE . " pt WHERE pt.post_id = p.post_id AND u.user_id = p.poster_id AND p.post_id = '" . $mx_request_vars->request('cid', MX_TYPE_INT, '') . "'"; $comment_arg_title = 'post_subject'; $comment_arg_message = 'post_text'; $comment_arg_bbcode_uid = 'bbcode_uid'; } if ( !( $result = $db->sql_query( $sql ) ) ) { mx_message_die( GENERAL_ERROR, 'Couldnt select comments', '', __LINE__, __FILE__, $sql ); } $comment_row = $db->sql_fetchrow( $result ); } $comment_title = $preview || isset($_POST['subject']) ? $_POST['subject'] : $comment_row[$comment_arg_title]; $comment_body = $preview || isset($_POST['message']) ? $_POST['message'] : $comment_row[$comment_arg_message]; $bbcode_uid = $preview ? '' : $comment_row[$comment_arg_bbcode_uid]; // // wysiwyg // if ( $mx_news_config['allow_comment_wysiwyg'] && file_exists( $mx_root_path . $mx_news_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 = ( $mx_news_config['allow_comment_html'] ) ? true : 0; $bbcode_on = ( $mx_news_config['allow_comment_bbcode'] ) ? true : 0; $smilies_on = ( $mx_news_config['allow_comment_smilies'] ) ? true : 0; $links_on = ( $mx_news_config['allow_comment_links'] ) ? true : 0; $images_on = ( $mx_news_config['allow_comment_images'] ) ? true : 0; $board_config['allow_html_tags'] = $mx_news_config['allowed_comment_html_tags']; if ($smilies_on) { $mx_news_functions->generate_smilies( 'inline', PAGE_POSTING ); } } // // Instantiate the mx_text and mx_text_formatting classes // $mx_text = new mx_text(); $mx_text->init($html_on, $bbcode_on, $smilies_on); $mx_text_formatting = new mx_text_formatting(); // // Allow all html tags // Fix: Setting 'emtpy' enables all // $mx_text->allow_all_html_tags = $allow_wysiwyg; // ======================================================= // Delete // ======================================================= if ( $delete == 'do' ) { /* $sql = 'SELECT * FROM ' . LINKS_TABLE . " WHERE link_id = $item_id"; if ( !( $result = $db->sql_query( $sql ) ) ) { mx_message_die( GENERAL_ERROR, 'Couldn\'t get article info', '', __LINE__, __FILE__, $sql ); } $link_info = $db->sql_fetchrow( $result ); */ //if ( ( $this->auth_user[$link_info['link_catid']]['auth_delete_comment'] && $link_info['article_author_id'] == $userdata['user_id'] ) || $this->auth_user[$link_info['link_catid']]['auth_mod'] ) if ( $mx_block->auth_edit || $mx_block->auth_mod ) // Maybe too nice... { if ( $this->comments[$this->block_id]['internal_comments'] ) { $sql = 'DELETE FROM ' . MX_NEWS_COMMENTS_TABLE . " WHERE comments_id = $cid"; if ( !( $db->sql_query( $sql ) ) ) { mx_message_die( GENERAL_ERROR, 'Couldnt delete comment', '', __LINE__, __FILE__, $sql ); } } else { include( $module_root_path . 'mx_news/includes/functions_comment.' . $phpEx ); $mx_news_comments = new mx_news_comments(); $mx_news_comments->init( $mx_news_info, 'phpbb' ); $mx_news_comments->post('delete', $cid); } $this->_mx_news(); $message = $lang['Comment_deleted'] . '<br /><br />' . sprintf( $lang['Click_return'], '<a href="' . mx_append_sid( $this->this_mxurl( "mode=main&k=$item_id" ) ) . '">', '</a>' ); mx_message_die( GENERAL_MESSAGE, $message ); } else { $message = sprintf( $lang['Sorry_auth_delete'], $this->auth_user[$cat_id]['auth_upload_type'] ); mx_message_die( GENERAL_MESSAGE, $message ); } } // ======================================================= // Submit // ======================================================= if ( $submit ) { $this->update_add_comment($link_data, $item_id, $cid, '', '', $html_on, $bbcode_on, $smilies_on, $allow_wysiwyg); // // Notification // $news_post_mode = $cid ? 'edit' : 'add'; $this->update_add_comment_notify($this->block_id, $news_post_mode); $message = $lang['Comment_posted'] . '<br /><br />' . sprintf( $lang['Click_return'], '<a href="' . mx_append_sid( $this->this_mxurl( 'mode=main&k=' . $item_id ) ) . '">', '</a>' ); mx_message_die( GENERAL_MESSAGE, $message ); } // ======================================================= // Main // ======================================================= $html_status = ( $html_on ) ? $lang['HTML_is_ON'] : $lang['HTML_is_OFF']; $bbcode_status = ( $bbcode_on ) ? $lang['BBCode_is_ON'] : $lang['BBCode_is_OFF']; $smilies_status = ( $smilies_on ) ? $lang['Smilies_are_ON'] : $lang['Smilies_are_OFF']; $links_status = ( $links_on ) ? $lang['Links_are_ON'] : $lang['Links_are_OFF']; $images_status = ( $images_on ) ? $lang['Images_are_ON'] : $lang['Images_are_OFF']; if ( $preview ) { // // Encode for preview // $preview_title = $mx_text->encode_preview_simple($comment_title); $preview_text = $mx_text->encode_preview($comment_body); if (!$mx_news_config['allow_images'] || !$mx_news_config['allow_links']) { $preview_text = $mx_text_formatting->remove_images_links( $preview_text, $mx_news_config['allow_images'], $mx_news_config['no_image_message'], $mx_news_config['allow_links'], $mx_news_config['no_link_message'] ); } $template->assign_block_vars( 'preview', array() ); $template->assign_vars( array( 'L_PREVIEW' => $lang['Preview'], 'PREVIEW' => true, 'SUBJECT' => $preview_title, 'PRE_COMMENT' => $preview_text ) ); // // Decode for form editing // $comment_title = $mx_text->decode_simple($comment_title, true); $comment_body = $mx_text->decode($comment_body, '', true); } else { // // Decode for form editing // $comment_title = $mx_text->decode_simple($comment_title); $comment_body = $mx_text->decode($comment_body, $bbcode_uid); } if ( $mx_request_vars->is_request('cid') ) { $hidden_form_fields = '<input type="hidden" name="action" value="post_news"> <input type="hidden" name="item_id" value="' . $item_id . '"> <input type="hidden" name="cid" value="' . $mx_request_vars->request('cid', MX_TYPE_INT, '') . '"> <input type="hidden" name="comment" value="post">'; } else { // // New comment // $comment_title = ''; $comment_body = ''; $hidden_form_fields = '<input type="hidden" name="action" value="post_news"> <input type="hidden" name="item_id" value="' . $item_id . '"> <input type="hidden" name="comment" value="post">'; } // // Output the data to the template // $template->assign_vars( array( 'HTML_STATUS' => $html_status, 'BBCODE_STATUS' => sprintf($bbcode_status, '<a href="' . PHPBB_URL . mx_append_sid("faq.$phpEx?mode=bbcode") . '" target="_phpbbcode">', '</a>'), 'SMILIES_STATUS' => $smilies_status, 'LINKS_STATUS' => $links_status, 'IMAGES_STATUS' => $images_status, 'FILE_NAME' => $link_data['file_name'], 'DOWNLOAD' => $mx_news_config['module_name'], 'MESSAGE_LENGTH' => $mx_news_config['max_comment_chars'], 'TITLE' => $comment_title, 'COMMENT' => $comment_body, 'L_COMMENT_ADD' => $lang['Comment_add'], 'L_COMMENT' => $lang['Message_body'], 'L_COMMENT_TITLE' => $lang['Subject'], 'L_OPTIONS' => $lang['Options'], 'L_COMMENT_EXPLAIN' => sprintf( $lang['Comment_explain'], $mx_news_config['max_comment_chars'] ), 'L_PREVIEW' => $lang['Preview'], 'L_SUBMIT' => $lang['Submit'], 'L_DOWNLOAD' => $lang['Download'], 'L_INDEX' => "<<", 'L_CHECK_MSG_LENGTH' => $lang['Check_message_length'], 'L_MSG_LENGTH_1' => $lang['Msg_length_1'], 'L_MSG_LENGTH_2' => $lang['Msg_length_2'], 'L_MSG_LENGTH_3' => $lang['Msg_length_3'], 'L_MSG_LENGTH_4' => $lang['Msg_length_4'], 'L_MSG_LENGTH_5' => $lang['Msg_length_5'], 'L_MSG_LENGTH_6' => $lang['Msg_length_6'], 'L_BBCODE_B_HELP' => $lang['bbcode_b_help'], 'L_BBCODE_I_HELP' => $lang['bbcode_i_help'], 'L_BBCODE_U_HELP' => $lang['bbcode_u_help'], 'L_BBCODE_Q_HELP' => $lang['bbcode_q_help'], 'L_BBCODE_C_HELP' => $lang['bbcode_c_help'], 'L_BBCODE_L_HELP' => $lang['bbcode_l_help'], 'L_BBCODE_O_HELP' => $lang['bbcode_o_help'], 'L_BBCODE_P_HELP' => $lang['bbcode_p_help'], 'L_BBCODE_W_HELP' => $lang['bbcode_w_help'], 'L_BBCODE_A_HELP' => $lang['bbcode_a_help'], 'L_BBCODE_S_HELP' => $lang['bbcode_s_help'], 'L_BBCODE_F_HELP' => $lang['bbcode_f_help'], 'L_EMPTY_MESSAGE' => $lang['Empty_message'], 'L_FONT_COLOR' => $lang['Font_color'], 'L_COLOR_DEFAULT' => $lang['color_default'], 'L_COLOR_DARK_RED' => $lang['color_dark_red'], 'L_COLOR_RED' => $lang['color_red'], 'L_COLOR_ORANGE' => $lang['color_orange'], 'L_COLOR_BROWN' => $lang['color_brown'], 'L_COLOR_YELLOW' => $lang['color_yellow'], 'L_COLOR_GREEN' => $lang['color_green'], 'L_COLOR_OLIVE' => $lang['color_olive'], 'L_COLOR_CYAN' => $lang['color_cyan'], 'L_COLOR_BLUE' => $lang['color_blue'], 'L_COLOR_DARK_BLUE' => $lang['color_dark_blue'], 'L_COLOR_INDIGO' => $lang['color_indigo'], 'L_COLOR_VIOLET' => $lang['color_violet'], 'L_COLOR_WHITE' => $lang['color_white'], 'L_COLOR_BLACK' => $lang['color_black'], 'L_FONT_SIZE' => $lang['Font_size'], 'L_FONT_TINY' => $lang['font_tiny'], 'L_FONT_SMALL' => $lang['font_small'], 'L_FONT_NORMAL' => $lang['font_normal'], 'L_FONT_LARGE' => $lang['font_large'], 'L_FONT_HUGE' => $lang['font_huge'], 'L_BBCODE_CLOSE_TAGS' => $lang['Close_Tags'], 'L_STYLES_TIP' => $lang['Styles_tip'], 'U_INDEX' => mx_append_sid( $mx_root_path . 'index.' . $phpEx ), 'U_DOWNLOAD_HOME' => mx_append_sid( $this->this_mxurl() ), 'U_FILE_NAME' => mx_append_sid( $this->this_mxurl( 'mode=main&item_id=' . $item_id ) ), 'S_POST_ACTION' => mx_append_sid( $this->this_mxurl() ), 'S_HIDDEN_FORM_FIELDS' => $hidden_form_fields ) ); if ( $bbcode_on ) { $template->assign_block_vars( 'switch_bbcodes', array()); } // =================================================== // assign var for navigation // =================================================== //$this->generate_navigation( $link_data['link_catid'] ); $this->display( $lang['Links'], 'mx_news_comment_posting.tpl' ); } } ?> --- 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> --- NEW FILE: mx_news_main.php --- <?php /** * * @package mxBB Portal Module - mx_news * @version $Id: mx_news_main.php,v 1.1 2008/02/08 21:58:21 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"); } /** * Enter description here... * */ class mx_news_main extends mx_news_public { /** * Enter description here... * * @param unknown_type $action */ function main( $action ) { global $template, $lang, $board_config, $phpEx, $mx_news_config, $db, $images, $user_ip; global $phpbb_root_path, $userdata, $db, $mx_news_functions; global $mx_root_path, $module_root_path, $is_block, $phpEx, $mx_request_vars; // ======================================================= // Request vars // ======================================================= $start = $mx_request_vars->get('start', MX_TYPE_INT, 0); //$link_id = $mx_request_vars->request('link_id', MX_TYPE_INT, ''); $block_id = $this->block_id; $page_num = $mx_request_vars->request('page_num', MX_TYPE_INT, 1) - 1; if ( empty( $block_id ) ) { mx_message_die( GENERAL_MESSAGE, $lang['Link_not_exist'] ); } // // Comments // //if ( $this->auth_user[$link_data['link_catid']]['auth_view_comment']) //{ $comments_type = $this->comments[$block_id]['internal_comments'] ? 'internal' : 'phpbb'; // // Instatiate comments // include_once( $module_root_path . 'mx_news/includes/functions_comment.' . $phpEx ); $mx_news_comments = new mx_news_comments(); $mx_news_comments->init( $mx_news_data, $comments_type ); $mx_news_comments->display_comments(); //} // // Output all // $this->display( $lang['Links'], 'mx_news_body.tpl' ); } } ?> |
|
From: Jon O. <jon...@us...> - 2008-02-08 21:58:24
|
Update of /cvsroot/mxbb/mx_news/mx_news/images In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv31687/images Added Files: .htaccess index.htm Log Message: Ooops. this module was added to CORE by mistake, removed and readded as a module. --- NEW FILE: .htaccess --- allow from all --- 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-02-08 21:58:23
|
Update of /cvsroot/mxbb/mx_news/mx_news/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv31687/admin Added Files: admin_setting.php index.htm Log Message: Ooops. this module was added to CORE by mistake, removed and readded as a module. --- 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> --- NEW FILE: admin_setting.php --- <?php /** * * @package mxBB Portal Module - mx_news * @version $Id: admin_setting.php,v 1.1 2008/02/08 21:58:20 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_PHPBB' ) || !defined( 'IN_ADMIN' ) ) { die( "Hacking attempt" ); } class mx_news_setting extends mx_news_admin { function main( $action ) { global $db, $template, $lang, $phpEx, $mx_news_functions, $mx_news_cache, $portal_config; $submit = ( isset( $_POST['submit'] ) ) ? true : false; $sql = 'SELECT * FROM ' . MX_NEWS_CONFIG_TABLE; if ( !$result = $db->sql_query( $sql ) ) { mx_message_die( CRITICAL_ERROR, "Could not query config information in admin_board", "", __LINE__, __FILE__, $sql ); } else { while ( $row = $db->sql_fetchrow( $result ) ) { $config_name = $row['config_name']; $config_value = $row['config_value']; $default_config[$config_name] = $config_value; $new[$config_name] = ( isset( $_POST[$config_name] ) ) ? $_POST[$config_name] : $default_config[$config_name]; if ( $submit ) { $mx_news_functions->set_config( $config_name, $new[$config_name] ); } } if ( $submit ) { $mx_news_cache->unload(); $message = $lang['Settings_changed'] . '<br /><br />' . sprintf( $lang['Click_return_news_config'], '<a href="' . mx_append_sid( "admin_mx_news.$phpEx?action=setting" ) . '">', '</a>' ) . '<br /><br />' . sprintf( $lang['Click_return_admin_index'], '<a href="' . mx_append_sid( "index.$phpEx?pane=right" ) . '">', '</a>' ); mx_message_die( GENERAL_MESSAGE, $message ); } } $template->set_filenames( array( 'body' => 'admin/mx_news_admin_settings.tpl' ) ); // // General Settings // $module_name = $new['module_name']; $enable_module_yes = ( $new['enable_module'] ) ? "checked=\"checked\"" : ""; $enable_module_no = ( !$new['enable_module'] ) ? "checked=\"checked\"" : ""; $wysiwyg_path = $new['wysiwyg_path']; // // Appearance // /* $pagination = $new['pagination']; $sort_method_options = array(); $sort_method_options = array( "link_name", "link_time", "link_hits" ); $sort_method_list = '<select name="sort_method">'; for( $j = 0; $j < count( $sort_method_options ); $j++ ) { if ( $new['sort_method'] == $sort_method_options[$j] ) { $status = "selected"; } else { $status = ''; } $sort_method_list .= '<option value="' . $sort_method_options[$j] . '" ' . $status . '>' . $sort_method_options[$j] . '</option>'; } $sort_method_list .= '</select>'; $sort_order_options = array(); $sort_order_options = array( "DESC", "ASC" ); $sort_order_list = '<select name="sort_order">'; for( $j = 0; $j < count( $sort_order_options ); $j++ ) { if ( $new['sort_order'] == $sort_order_options[$j] ) { $status = "selected"; } else { $status = ''; } $sort_order_list .= '<option value="' . $sort_order_options[$j] . '" ' . $status . '>' . $sort_order_options[$j] . '</option>'; } $sort_order_list .= '</select>'; $settings_newdays = $new['settings_newdays']; $cat_col = $new['cat_col']; $use_simple_navigation_yes = ( $new['use_simple_navigation'] ) ? "checked=\"checked\"" : ""; $use_simple_navigation_no = ( !$new['use_simple_navigation'] ) ? "checked=\"checked\"" : ""; */ // // Instructions // /* $pretext_show = ( $new['show_pretext'] ) ? "checked=\"checked\"" : ""; $pretext_hide = ( !$new['show_pretext'] ) ? "checked=\"checked\"" : ""; $pt_header = $new['pt_header']; $pt_body = $new['pt_body']; */ // // Comments (default settings) // $use_comments_yes = ( $new['use_comments'] ) ? "checked=\"checked\"" : ""; $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\"" : ""; $allow_comment_wysiwyg_no = ( !$new['allow_comment_wysiwyg'] ) ? "checked=\"checked\"" : ""; $allow_comment_html_yes = ( $new['allow_comment_html'] ) ? "checked=\"checked\"" : ""; $allow_comment_html_no = ( !$new['allow_comment_html'] ) ? "checked=\"checked\"" : ""; $allowed_comment_html_tags = $new['allowed_comment_html_tags']; $allow_comment_bbcode_yes = ( $new['allow_comment_bbcode'] ) ? "checked=\"checked\"" : ""; $allow_comment_bbcode_no = ( !$new['allow_comment_bbcode'] ) ? "checked=\"checked\"" : ""; $allow_comment_smilies_yes = ( $new['allow_comment_smilies'] ) ? "checked=\"checked\"" : ""; $allow_comment_smilies_no = ( !$new['allow_comment_smilies'] ) ? "checked=\"checked\"" : ""; $allow_comment_links_yes = ( $new['allow_comment_links'] ) ? "checked=\"checked\"" : ""; $allow_comment_links_no = ( !$new['allow_comment_links'] ) ? "checked=\"checked\"" : ""; $allow_comment_images_yes = ( $new['allow_comment_images'] ) ? "checked=\"checked\"" : ""; $allow_comment_images_no = ( !$new['allow_comment_images'] ) ? "checked=\"checked\"" : ""; $no_comment_link_message = $new['no_comment_link_message']; $no_comment_image_message = $new['no_comment_image_message']; $max_comment_chars = $new['max_comment_chars']; $max_comment_subject_chars = $new['max_comment_subject_chars']; $format_comment_truncate_links_yes = ( $new['formatting_comment_truncate_links'] ) ? "checked=\"checked\"" : ""; $format_comment_truncate_links_no = ( !$new['formatting_comment_truncate_links'] ) ? "checked=\"checked\"" : ""; $format_comment_image_resize = $new['formatting_comment_image_resize']; $format_comment_wordwrap_yes = ( $new['formatting_comment_wordwrap'] ) ? "checked=\"checked\"" : ""; $format_comment_wordwrap_no = ( !$new['formatting_comment_wordwrap'] ) ? "checked=\"checked\"" : ""; $comments_pag = $new['comments_pagination']; // // Ratings (default settings) // /* $use_ratings_yes = ( $new['use_ratings'] ) ? "checked=\"checked\"" : ""; $use_ratings_no = ( !$new['use_ratings'] ) ? "checked=\"checked\"" : ""; $votes_check_ip_yes = ( $new['votes_check_ip'] ) ? "checked=\"checked\"" : ""; $votes_check_ip_no = ( !$new['votes_check_ip'] ) ? "checked=\"checked\"" : ""; $votes_check_userid_yes = ( $new['votes_check_userid'] ) ? "checked=\"checked\"" : ""; $votes_check_userid_no = ( !$new['votes_check_userid'] ) ? "checked=\"checked\"" : ""; */ // // Notifications // $notify_none = ( $new['notify'] == 0 ) ? "checked=\"checked\"" : ""; $notify_pm = ( $new['notify'] == 1 ) ? "checked=\"checked\"" : ""; $notify_email = ( $new['notify'] == 2 ) ? "checked=\"checked\"" : ""; $notify_group_list = mx_get_groups($new['notify_group'], 'notify_group'); $template->assign_vars( array( 'S_SETTINGS_ACTION' => mx_append_sid( "admin_mx_news.$phpEx" ), 'L_CONFIGURATION_TITLE' => $lang['Panel_config_title'], 'L_CONFIGURATION_EXPLAIN' => $lang['Panel_config_explain'], 'L_RESET' => $lang['Reset'], 'L_SUBMIT' => $lang['Submit'], 'L_YES' => $lang['Yes'], 'L_NO' => $lang['No'], 'L_NONE' => $lang['Acc_None'], // // General // 'L_GENERAL_TITLE' => $lang['General_title'], 'L_MODULE_NAME' => $lang['Module_name'], 'L_MODULE_NAME_EXPLAIN' => $lang['Module_name_explain'], 'MODULE_NAME' => $module_name, 'L_ENABLE_MODULE' => $lang['Enable_module'], 'L_ENABLE_MODULE_EXPLAIN' => $lang['Enable_module_explain'], 'S_ENABLE_MODULE_YES' => $enable_module_yes, 'S_ENABLE_MODULE_NO' => $enable_module_no, 'L_WYSIWYG_PATH' => $lang['Wysiwyg_path'], 'L_WYSIWYG_PATH_EXPLAIN' => $lang['Wysiwyg_path_explain'], 'WYSIWYG_PATH' => $wysiwyg_path, 'L_SITE_LOGO' => $lang['site_logo'], 'SITE_LOGO' => $new['site_logo'], 'L_SITE_URL' => $lang['site_url'], 'SITE_URL' => $new['site_url'], 'L_LOCK_SUBMIT_SITE' => $lang['lock_submit_site'], 'LOCK_SUBMIT_SITE_YES' => ( $new['lock_submit_site'] ) ? "checked=\"checked\"" : "", 'LOCK_SUBMIT_SITE_NO' => ( !$new['lock_submit_site'] ) ? "checked=\"checked\"" : "", 'L_DISPLAY_INTERVAL' => $lang['interval'], 'INTERVAL' => $new['display_interval'], // // Link // 'L_WIDTH' => $lang['width'], 'WIDTH' => $new['width'], 'L_HEIGHT' => $lang['height'], 'HEIGHT' => $new['height'], 'SPLIT_LINKS_YES' => ( $new['split_links'] ) ? "checked=\"checked\"" : "", 'SPLIT_LINKS_NO' => ( !$new['split_links'] ) ? "checked=\"checked\"" : "", 'L_SPLIT_LINKS' => $lang['split_links'], 'L_ALLOW_NO_LOGO' => $lang['allow_no_logo'], 'ALLOW_NO_LOGO_YES' => ( $new['allow_no_logo'] ) ? "checked=\"checked\"" : "", 'ALLOW_NO_LOGO_NO' => ( !$new['allow_no_logo'] ) ? "checked=\"checked\"" : "", 'L_DISPLAY_LINKS_LOGO' => $lang['Link_display_links_logo'], 'DISLAY_LINKS_LOGO_YES' => ( $new['display_links_logo'] ) ? "checked=\"checked\"" : "", 'DISLAY_LINKS_LOGO_NO' => ( !$new['display_links_logo'] ) ? "checked=\"checked\"" : "", // // Appearance // 'L_APPEARANCE_TITLE' => $lang['Appearance_title'], 'L_PAGINATION' => $lang['File_pagination'], 'L_PAGINATION_EXPLAIN' => $lang['File_pagination_explain'], 'PAGINATION' => $pagination, 'L_SORT_METHOD' => $lang['Sort_method'], 'L_SORT_METHOD_EXPLAIN' => $lang['Sort_method_explain'], 'SORT_METHOD' => $sort_method_list, 'L_SORT_ORDER' => $lang['Sort_order'], 'L_SORT_ORDER_EXPLAIN' => $lang['Sort_order_explain'], 'SORT_ORDER' => $sort_order_list, 'CAT_COL' => $cat_col, 'L_CAT_COL' => $lang['Cat_col'], 'S_USE_SIMPLE_NAVIGATION_YES' => $use_simple_navigation_yes, 'S_USE_SIMPLE_NAVIGATION_NO' => $use_simple_navigation_no, 'L_USE_SIMPLE_NAVIGATION' => $lang['Use_simple_navigation'], 'L_USE_SIMPLE_NAVIGATION_EXPLAIN' => $lang['Use_simple_navigation_explain'], 'L_NFDAYS' => $lang['Nfdays'], 'L_NFDAYSINFO' => $lang['Nfdaysinfo'], 'SETTINGS_NEWDAYS' => $settings_newdays, // // Comments // 'L_COMMENTS_TITLE' => $lang['Comments_title'], 'L_COMMENTS_TITLE_EXPLAIN' => $lang['Comments_title_explain'], 'L_USE_COMMENTS' => $lang['Use_comments'], 'L_USE_COMMENTS_EXPLAIN' => $lang['Use_comments_explain'], 'S_USE_COMMENTS_YES' => $use_comments_yes, 'S_USE_COMMENTS_NO' => $use_comments_no, 'L_INTERNAL_COMMENTS' => $lang['Internal_comments'], 'L_INTERNAL_COMMENTS_EXPLAIN' => $lang['Internal_comments_explain'], 'S_INTERNAL_COMMENTS_INTERNAL' => $internal_comments_internal, 'S_INTERNAL_COMMENTS_PHPBB' => $internal_comments_phpbb, 'L_INTERNAL_COMMENTS_INTERNAL' => $lang['Internal_comments_internal'], 'L_INTERNAL_COMMENTS_PHPBB' => $lang['Internal_comments_phpBB'], '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, false, 'comments_forum_id' ) : 'not available', 'L_AUTOGENERATE_COMMENTS' => $lang['Autogenerate_comments'], 'L_AUTOGENERATE_COMMENTS_EXPLAIN' => $lang['Autogenerate_comments_explain'], 'S_AUTOGENERATE_COMMENTS_YES' => $autogenerate_comments_yes, 'S_AUTOGENERATE_COMMENTS_NO' => $autogenerate_comments_no, 'L_ALLOW_COMMENT_WYSIWYG' => $lang['Allow_Wysiwyg'], 'L_ALLOW_COMMENT_WYSIWYG_EXPLAIN' => $lang['Allow_Wysiwyg_explain'], 'S_ALLOW_COMMENT_WYSIWYG_YES' => $allow_comment_wysiwyg_yes, 'S_ALLOW_COMMENT_WYSIWYG_NO' => $allow_comment_wysiwyg_no, 'L_ALLOW_COMMENT_HTML' => $lang['Allow_HTML'], 'L_ALLOW_COMMENT_HTML_EXPLAIN' => $lang['Allow_html_explain'], 'S_ALLOW_COMMENT_HTML_YES' => $allow_comment_html_yes, 'S_ALLOW_COMMENT_HTML_NO' => $allow_comment_html_no, 'L_ALLOW_COMMENT_BBCODE' => $lang['Allow_BBCode'], 'L_ALLOW_COMMENT_BBCODE_EXPLAIN' => $lang['Allow_bbcode_explain'], 'S_ALLOW_COMMENT_BBCODE_YES' => $allow_comment_bbcode_yes, 'S_ALLOW_COMMENT_BBCODE_NO' => $allow_comment_bbcode_no, 'L_ALLOW_COMMENT_SMILIES' => $lang['Allow_smilies'], 'L_ALLOW_COMMENT_SMILIES_EXPLAIN' => $lang['Allow_smilies_explain'], 'S_ALLOW_COMMENT_SMILIES_YES' => $allow_comment_smilies_yes, 'S_ALLOW_COMMENT_SMILIES_NO' => $allow_comment_smilies_no, 'L_ALLOWED_COMMENT_HTML_TAGS' => $lang['Allowed_tags'], 'L_ALLOWED_COMMENT_HTML_TAGS_EXPLAIN' => $lang['Allowed_tags_explain'], 'ALLOWED_COMMENT_HTML_TAGS' => $allowed_comment_html_tags, 'L_ALLOW_COMMENT_IMAGES' => $lang['Allow_images'], 'L_ALLOW_COMMENT_IMAGES_EXPLAIN' => $lang['Allow_images_explain'], 'S_ALLOW_COMMENT_IMAGES_YES' => $allow_comment_images_yes, 'S_ALLOW_COMMENT_IMAGES_NO' => $allow_comment_images_no, 'L_ALLOW_COMMENT_LINKS' => $lang['Allow_links'], 'L_ALLOW_COMMENT_LINKS_EXPLAIN' => $lang['Allow_links_explain'], 'S_ALLOW_COMMENT_LINKS_YES' => $allow_comment_links_yes, 'S_ALLOW_COMMENT_LINKS_NO' => $allow_comment_links_no, 'L_COMMENT_LINKS_MESSAGE' => $lang['Allow_links_message'], 'L_COMMENT_LINKS_MESSAGE_EXPLAIN' => $lang['Allow_links_message_explain'], 'COMMENT_MESSAGE_LINK' => $no_comment_link_message, 'L_COMMENT_IMAGES_MESSAGE' => $lang['Allow_images_message'], 'L_COMMENT_IMAGES_MESSAGE_EXPLAIN' => $lang['Allow_images_message_explain'], 'COMMENT_MESSAGE_IMAGE' => $no_comment_image_message, 'L_COMMENT_MAX_SUBJECT_CHAR' => $lang['Max_subject_char'], 'L_COMMENT_MAX_SUBJECT_CHAR_EXPLAIN' => $lang['Max_subject_char_explain'], 'COMMENT_MAX_SUBJECT_CHAR' => $max_comment_subject_chars, 'L_COMMENT_MAX_CHAR' => $lang['Max_char'], 'L_COMMENT_MAX_CHAR_EXPLAIN' => $lang['Max_char_explain'], 'COMMENT_MAX_CHAR' => $max_comment_chars, 'L_COMMENT_FORMAT_WORDWRAP' => $lang['Format_wordwrap'], 'L_COMMENT_FORMAT_WORDWRAP_EXPLAIN' => $lang['Format_wordwrap_explain'], 'S_COMMENT_FORMAT_WORDWRAP_YES' => $format_comment_wordwrap_yes, 'S_COMMENT_FORMAT_WORDWRAP_NO' => $format_comment_wordwrap_no, 'L_COMMENT_FORMAT_IMAGE_RESIZE' => $lang['Format_image_resize'], 'L_COMMENT_FORMAT_IMAGE_RESIZE_EXPLAIN' => $lang['Format_image_resize_explain'], 'COMMENT_FORMAT_IMAGE_RESIZE' => $format_comment_image_resize, 'L_COMMENT_FORMAT_TRUNCATE_LINKS' => $lang['Format_truncate_links'], 'L_COMMENT_FORMAT_TRUNCATE_LINKS_EXPLAIN' => $lang['Format_truncate_links_explain'], 'S_COMMENT_FORMAT_TRUNCATE_LINKS_YES' => $format_comment_truncate_links_yes, 'S_COMMENT_FORMAT_TRUNCATE_LINKS_NO' => $format_comment_truncate_links_no, 'L_COMMENTS_PAG' => $lang['Comments_pag'], 'L_COMMENTS_PAG_EXPLAIN' => $lang['Comments_pag_explain'], 'COMMENTS_PAG' => $comments_pag, 'L_DEL_TOPIC' => $lang['Del_topic'], 'L_DEL_TOPIC_EXPLAIN' => $lang['Del_topic_explain'], 'S_DEL_TOPIC_YES' => $del_topic_yes, 'S_DEL_TOPIC_NO' => $del_topic_no, // // Ratings // 'L_RATINGS_TITLE' => $lang['Ratings_title'], 'L_RATINGS_TITLE_EXPLAIN' => $lang['Ratings_title_explain'], 'L_USE_RATINGS' => $lang['Use_ratings'], 'L_USE_RATINGS_EXPLAIN' => $lang['Use_ratings_explain'], 'S_USE_RATINGS_YES' => $use_ratings_yes, 'S_USE_RATINGS_NO' => $use_ratings_no, 'L_VOTES_CHECK_IP' => $lang['Votes_check_ip'], 'L_VOTES_CHECK_IP_EXPLAIN' => $lang['Votes_check_ip_explain'], 'S_VOTES_CHECK_IP_YES' => $votes_check_ip_yes, 'S_VOTES_CHECK_IP_NO' => $votes_check_ip_no, 'L_VOTES_CHECK_USERID' => $lang['Votes_check_userid'], 'L_VOTES_CHECK_USERID_EXPLAIN' => $lang['Votes_check_userid_explain'], 'S_VOTES_CHECK_USERID_YES' => $votes_check_userid_yes, 'S_VOTES_CHECK_USERID_NO' => $votes_check_userid_no, // // Instructions // 'L_INSTRUCTIONS_TITLE' => $lang['Instructions_title'], 'L_SHOW' => $lang['Show'], 'L_HIDE' => $lang['Hide'], 'L_PRE_TEXT_NAME' => $lang['Pre_text_name'], 'L_PRE_TEXT_HEADER' => $lang['Pre_text_header'], 'L_PRE_TEXT_BODY' => $lang['Pre_text_body'], 'L_PRE_TEXT_EXPLAIN' => $lang['Pre_text_explain'], 'S_SHOW_PRETEXT' => $pretext_show, 'S_HIDE_PRETEXT' => $pretext_hide, 'L_PT_HEADER' => $pt_header, 'L_PT_BODY' => $pt_body, // // Notifications // 'L_NOTIFICATIONS_TITLE' => $lang['Notifications_title'], 'L_NOTIFY' => $lang['Notify'], 'L_NOTIFY_EXPLAIN' => $lang['Notify_explain'], 'L_EMAIL' => $lang['Email'], 'L_PM' => $lang['PM'], 'S_NOTIFY_NONE' => $notify_none, 'S_NOTIFY_EMAIL' => $notify_email, 'S_NOTIFY_PM' => $notify_pm, 'L_NOTIFY_GROUP' => $lang['Notify_group'], 'L_NOTIFY_GROUP_EXPLAIN' => $lang['Notify_group_explain'], 'NOTIFY_GROUP' => $notify_group_list, )); $template->pparse( 'body' ); } /** * Enter description here... * * @param unknown_type $sel_id * @param unknown_type $use_default_option * @param unknown_type $select_name * @return unknown */ function get_forums( $sel_id = 0, $use_default_option = false, $select_name = 'forum_id' ) { global $db, $lang; $sql = "SELECT forum_id, forum_name FROM " . FORUMS_TABLE; if ( !$result = $db->sql_query( $sql ) ) { mx_message_die( GENERAL_ERROR, "Couldn't get list of forums", "", __LINE__, __FILE__, $sql ); } $forumlist = '<select name="'.$select_name.'">'; if ( $sel_id == 0 ) { $forumlist .= '<option value="0" selected >'.$lang['Select_topic_id'].'</option>'; } if ( $use_default_option ) { $status = $sel_id == "-1" ? "selected" : ""; $forumlist .= '<option value="-1" '.$status.' >::'.$lang['Use_default'].'::</option>'; } while ( $row = $db->sql_fetchrow( $result ) ) { if ( $sel_id == $row['forum_id'] ) { $status = "selected"; } else { $status = ''; } $forumlist .= '<option value="' . $row['forum_id'] . '" ' . $status . '>' . $row['forum_name'] . '</option>'; } $forumlist .= '</select>'; return $forumlist; } } ?> |
|
From: Jon O. <jon...@us...> - 2008-02-08 21:57:59
|
Update of /cvsroot/mxbb/mx_news/language/lang_english In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv31414 Added Files: index.htm lang_admin.php lang_main.php Log Message: Ooops. this module was added to CORE by mistake, removed and readded as a module. --- NEW FILE: lang_main.php --- <?php /** * * @package mxBB Portal Module - mx_news * @version $Id: lang_main.php,v 1.1 2008/02/08 21:57:56 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 * */ // // Main // $lang['mx_news_title'] = 'mxNews'; $lang['mx_news_disable'] = 'mxNews is disabled.'; // // Return // $lang['Click_return'] = 'Click %sHere%s to return to the previous page'; // // Sort // $lang['Sort'] = 'Sort'; // // Java script messages and php errors // $lang['Cat_not_allow'] = 'You can\'t add link to category that does not allow links on it'; $lang['Link_guset_field'] = 'Please fill the Guest Name field'; $lang['Link_name_field'] = 'Please fill the Site Name field'; $lang['Link_url_field'] = 'Please fill the Site URL field'; $lang['Link_logo_field'] = 'Please fill the Site Logo field'; $lang['Link_long_des_field'] = 'Please fill the Site Descritpion field'; $lang['Links_Title'] = 'Links'; // // Comments // $lang['mx_news_comment_prefix'] = '[ mxNews ] '; $lang['Comments'] = 'News'; $lang['Comments_title'] = 'News Title'; $lang['Comment_subject'] = 'News Subject'; $lang['Comment'] = 'News'; $lang['Comment_explain'] = 'Use the textbox above to give your opinion on this news!'; $lang['Comment_add'] = 'Add News'; $lang['Comment_edit'] = 'Edit'; $lang['Comment_delete'] = 'Delete'; $lang['Comment_posted'] = 'Your news has been entered successfully'; $lang['Comment_deleted'] = 'The news you selected has been deleted successfully'; $lang['Comment_desc'] = 'Title'; $lang['No_comments'] = 'No News available'; $lang['Links_are_ON'] = 'Links are <u>ENABLED</u>'; $lang['Links_are_OFF'] = 'Links are <u>DISABLED</u>'; $lang['Images_are_ON'] = 'Images are <u>ENABLED</u>'; $lang['Images_are_OFF'] = 'Images are <u>DISABLED</u>'; $lang['Check_message_length'] = 'Check Message Length'; $lang['Msg_length_1'] = 'Your message is '; $lang['Msg_length_2'] = ' characters long.'; $lang['Msg_length_3'] = 'You have '; $lang['Msg_length_4'] = ' characters available.';; $lang['Msg_length_5'] = 'There are '; $lang['Msg_length_6'] = ' characters remaining.'; // // Notification // $lang['mx_news_prefix'] = '[ News ]'; $lang['mx_news_notify_subject_new'] = 'New News!'; $lang['mx_news_notify_subject_edited'] = 'Edited News!'; $lang['mx_news_notify_subject_approved'] = 'Approved News!'; $lang['mx_news_notify_subject_unapproved'] = 'Unapproved News!'; $lang['mx_news_notify_subject_deleted'] = 'Deleted News!'; $lang['mx_news_notify_new_body'] = 'A new News has been submitted.'; $lang['mx_news_notify_edited_body'] = 'A News has been modified.'; $lang['mx_news_notify_approved_body'] = 'A News has been approved.'; $lang['mx_news_notify_unapproved_body'] = 'A News has been unapproved.'; $lang['mx_news_notify_deleted_body'] = 'A News has been deleted.'; $lang['Edited_Link_info'] = 'News updated by '; $lang['Read_full_link'] = '>> Visist Site'; ?> --- NEW FILE: lang_admin.php --- <?php /** * * @package mxBB Portal Module - mx_news * @version $Id: lang_admin.php,v 1.1 2008/02/08 21:57:56 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 * */ // // adminCP index // $lang['mxNews_title'] = 'News Admin'; $lang['0_Configuration'] = 'General Settings'; // // Configuration // $lang['Settingstitle'] ='News Config Control'; $lang['Settingsexplain'] = 'You can change the general settings of your news here'; $lang['Settings_changed'] = 'Your settings have been successfully updated'; $lang['Click_return_news_config'] = 'Click %sHere%s to return to the Link Config Manager'; // // Admin Panels - Configuration // $lang['Panel_config_title'] = 'Download Configuration'; $lang['Panel_config_explain'] = 'The form below will allow you to customize all the general download options.'; // // General // $lang['General_title'] = 'News Config Control'; $lang['Module_name'] = 'Database Name'; $lang['Module_name_explain'] = 'This is the name of the database, such as \'Download Index\''; $lang['Enable_module'] = 'Enable this module'; $lang['Enable_module_explain'] = 'This will make the download section unavailable to users. This is a good option to use when making modifications to your database. Only Admins will be able to view the database.'; $lang['Wysiwyg_path'] = 'Path to WYSIWYG software'; $lang['Wysiwyg_path_explain'] = 'This is the path (from mxBB/phpBB root) to the WYSIWYG software folder, eg \'modules/mx_shared/\' if you have uploaded, for example, TinyMCE in modules/mx_shared/tinymce.'; // // Comments // $lang['Comments_title'] = 'Comments'; $lang['Comments_title_explain'] = 'Some comments settings are default settings, and can be overridden per category'; $lang['Internal_comments'] = 'Internal or phpBB Comments'; $lang['Internal_comments_explain'] = 'Use internal comments, or phpBB comments'; $lang['Select_topic_id'] = 'Select phpBB Comments Topic!'; $lang['Internal_comments_phpBB'] = 'phpBB Comments'; $lang['Internal_comments_internal'] = 'Internal Comments'; $lang['Forum_id'] = 'phpBB Forum ID'; $lang['Forum_id_explain'] = 'If phpBB comments are used, this is the forum where the comments will be kept'; //$lang['Autogenerate_comments'] = 'Autogenerate comments when fil are managed'; //$lang['Autogenerate_comments_explain'] = 'When editing/adding a link, a notifying reply is posted in the link topic.'; //$lang['Del_topic'] = 'Delete Topic'; //$lang['Del_topic_explain'] = 'When you delete a link, do you want its comments topic to be deleted also?'; $lang['Comments_pag'] = 'Comments pagination'; $lang['Comments_pag_explain'] = 'The number of comments to show before pagination.'; $lang['Allow_Wysiwyg'] = 'Use WYSIWYG editor'; $lang['Allow_Wysiwyg_explain'] = 'If enabled, the standard BBCode/HTML/Smilies input dialog is replaced by a WYSIWYG editor.'; $lang['Allow_links'] = 'Allow Links'; $lang['Allow_links_message'] = 'Default \'No Links\' Message'; $lang['Allow_links_explain'] = 'If links are not allowed this text will be displayed instead'; $lang['Allow_images'] = 'Allow Images'; $lang['Allow_images_message'] = 'Default \'No Images\' Message'; $lang['Allow_images_explain'] = 'If images are not allowed this text will be displayed instead'; $lang['Max_subject_char'] = 'Maximum Number of charcters in subject'; $lang['Max_subject_char_explain'] = 'If to big, you get an error message (Limit the subject).'; $lang['Max_desc_char'] = 'Maximum Number of charcters in description'; $lang['Max_desc_char_explain'] = 'If to big, you get an error message (Limit the subject).'; $lang['Max_char'] = 'Maximum Number of charcters in text'; $lang['Max_char_explain'] = 'If to big, you get an error message (Limit the comment).'; $lang['Format_wordwrap'] = 'Word wrapping'; $lang['Format_wordwrap_explain'] = 'Text control filter'; $lang['Format_truncate_links'] = 'Truncate Links'; $lang['Format_truncate_links_explain'] = 'Links are shortened, eg t ex \'www.mxbb-portal...\''; $lang['Format_image_resize'] = 'Image resize'; $lang['Format_image_resize_explain'] = 'Resize images to this width (pixels)'; // // Notifications // $lang['Notifications_title'] = 'Notification'; $lang['Notify'] = 'Notify admin by'; $lang['Notify_explain'] = 'Choose which way to receive notices that news have been written'; $lang['PM'] = 'PM'; $lang['Notify_group'] = 'and groupmembers '; $lang['Notify_group_explain'] = 'Also send notification to members in this group'; // //Java script messages and php errors // $lang['Cat_name_missing'] = 'Please fill the category name field'; $lang['Missing_field'] = 'Please complete all the required fields'; $lang['Link_same_cat'] = 'You can\'t move the links to the same deleted category.'; $lang['Link_move_cat'] = 'You can\'t move the sub category to the same deleted category.'; $lang['Cat_conflict'] = 'You can\'t have a category with no links in side a category that doesn\'t allow links'; $lang['Cat_id_missing'] = 'Please select a category'; $lang['Need_validation'] = 'Validate links?'; ?> --- 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> |
Update of /cvsroot/mxbb/mx_news In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv31363 Added Files: db_install.php db_uninstall.php db_upgrade.php index.htm mx_install_readme.htm mx_news.pak mx_news.php Log Message: Ooops. this module was added to CORE by mistake, removed and readded as a module. --- NEW FILE: db_uninstall.php --- <?php /** * * @package mxBB Portal Module - mx_news * @version $Id: db_uninstall.php,v 1.1 2008/02/08 21:57:46 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 * */ define( 'IN_PORTAL', true ); if ( !defined( 'IN_ADMIN' ) ) { $mx_root_path = './../../'; $phpEx = substr(strrchr(__FILE__, '.'), 1); include( $mx_root_path . 'common.' . $phpEx ); // Start session management $mx_user->init($user_ip, PAGE_INDEX); if ( !$userdata['session_logged_in'] ) { die( "Hacking attempt(1)" ); } if ( $userdata['user_level'] != ADMIN ) { die( "Hacking attempt(2)" ); } // End session management } $sql = array( "DROP TABLE " . $mx_table_prefix . "simplenews_config ", "DROP TABLE " . $mx_table_prefix . "simplenews_comments ", ); echo "<br /><br />"; echo "<table width=\"90%\" align=\"center\" cellpadding=\"4\" cellspacing=\"1\" border=\"0\" class=\"forumline\">"; echo "<tr><th class=\"thHead\" align=\"center\">Module Installation/Upgrading/Uninstalling Information - module specific db tables</th></tr>"; echo "<tr><td class=\"row1\" align=\"left\"><span class=\"gen\">" . mx_do_install_upgrade( $sql ) . "</span></td></tr>"; echo "</table><br />"; ?> --- NEW FILE: mx_install_readme.htm --- <html> <head> <title>Mx Portal installation - readme</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <!-- link rel="stylesheet" href="templates/subSilver/subSilver.css" type="text/css" --> <style type="text/css"> <!-- /* The original subSilver Theme for phpBB version 2+ Created by subBlue design http://www.subBlue.com NOTE: These CSS definitions are stored within the main page body so that you can use the phpBB2 theme administration centre. When you have finalised your style you could cut the final CSS code and place it in an external file, deleting this section to save bandwidth. */ /* General page style. The scroll bar colours only visible in IE5.5+ */ body { background-color: #E5E5E5; scrollbar-face-color: #DEE3E7; scrollbar-highlight-color: #FFFFFF; scrollbar-shadow-color: #DEE3E7; scrollbar-3dlight-color: #D1D7DC; scrollbar-arrow-color: #006699; scrollbar-track-color: #EFEFEF; scrollbar-darkshadow-color: #98AAB1; } /* General font families for common tags */ font,th,td,p { font-family: Verdana, Arial, Helvetica, sans-serif } a:link,a:active,a:visited { color : #006699; } a:hover { text-decoration: underline; color : #DD6900; } hr { height: 0px; border: solid #D1D7DC 0px; border-top-width: 1px;} /* This is the border line & background colour round the entire page */ .bodyline { background-color: #FFFFFF; border: 1px #98AAB1 solid; } /* This is the outline round the main forum tables */ .forumline { background-color: #FFFFFF; border: 2px #006699 solid; } /* Main table cell colours and backgrounds */ td.row1 { background-color: #EFEFEF; } td.row2 { background-color: #DEE3E7; } td.row3 { background-color: #D1D7DC; } /* This is for the table cell above the Topics, Post & Last posts on the index.php page By default this is the fading out gradiated silver background. However, you could replace this with a bitmap specific for each forum */ td.rowpic { background-color: #FFFFFF; background-image: url(../../install/templates/subSilver/images/cellpic2.jpg); background-repeat: repeat-y; } /* Header cells - the blue and silver gradient backgrounds */ th { color: #FFA34F; font-size: 11px; font-weight : bold; background-color: #006699; height: 25px; background-image: url(../../install/templates/subSilver/images/cellpic3.gif); } td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom { background-image: url(../../install/templates/subSilver/images/cellpic1.gif); background-color:#D1D7DC; border: #FFFFFF; border-style: solid; height: 28px; } /* Setting additional nice inner borders for the main table cells. The names indicate which sides the border will be on. Don't worry if you don't understand this, just ignore it :-) */ td.cat,td.catHead,td.catBottom { height: 29px; border-width: 0px 0px 0px 0px; } th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight,th.thBottom,th.thCornerL,th.thCornerR { font-weight: bold; border: #FFFFFF; border-style: solid; height: 28px; } td.row3Right,td.spaceRow { background-color: #D1D7DC; border: #FFFFFF; border-style: solid; } th.thHead,td.catHead { font-size: 12px; border-width: 1px 1px 0px 1px; } th.thSides,td.catSides,td.spaceRow { border-width: 0px 1px 0px 1px; } th.thRight,td.catRight,td.row3Right { border-width: 0px 1px 0px 0px; } th.thLeft,td.catLeft { border-width: 0px 0px 0px 1px; } th.thBottom,td.catBottom { border-width: 0px 1px 1px 1px; } th.thTop { border-width: 1px 0px 0px 0px; } th.thCornerL { border-width: 1px 0px 0px 1px; } th.thCornerR { border-width: 1px 1px 0px 0px; } /* The largest text used in the index page title and toptic title etc. */ .maintitle { font-weight: bold; font-size: 22px; font-family: "Trebuchet MS",Verdana, Arial, Helvetica, sans-serif; text-decoration: none; line-height : 120%; color : #000000; } /* General text */ .gen { font-size : 12px; } .genmed { font-size : 11px; } .gensmall { font-size : 10px; } .gen,.genmed,.gensmall { color : #000000; } a.gen,a.genmed,a.gensmall { color: #006699; text-decoration: none; } a.gen:hover,a.genmed:hover,a.gensmall:hover { color: #DD6900; text-decoration: underline; } /* The register, login, search etc links at the top of the page */ .mainmenu { font-size : 11px; color : #000000 } a.mainmenu { text-decoration: none; color : #006699; } a.mainmenu:hover{ text-decoration: underline; color : #DD6900; } /* Forum category titles */ .cattitle { font-weight: bold; font-size: 12px ; letter-spacing: 1px; color : #006699} a.cattitle { text-decoration: none; color : #006699; } a.cattitle:hover{ text-decoration: underline; } /* Forum title: Text and link to the forums used in: index.php */ .forumlink { font-weight: bold; font-size: 12px; color : #006699; } a.forumlink { text-decoration: none; color : #006699; } a.forumlink:hover{ text-decoration: underline; color : #DD6900; } /* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */ .nav { font-weight: bold; font-size: 11px; color : #000000;} a.nav { text-decoration: none; color : #006699; } a.nav:hover { text-decoration: underline; } /* titles for the topics: could specify viewed link colour too */ .topictitle,h1,h2 { font-weight: bold; font-size: 11px; color : #000000; } a.topictitle:link { text-decoration: none; color : #006699; } a.topictitle:visited { text-decoration: none; color : #5493B4; } a.topictitle:hover { text-decoration: underline; color : #DD6900; } /* Name of poster in viewmsg.php and viewtopic.php and other places */ .name { font-size : 11px; color : #000000;} /* Location, number of posts, post date etc */ .postdetails { font-size : 10px; color : #000000; } /* The content of the posts (body of text) */ .postbody { font-size : 12px; line-height: 18px} a.postlink:link { text-decoration: none; color : #006699 } a.postlink:visited { text-decoration: none; color : #5493B4; } a.postlink:hover { text-decoration: underline; color : #DD6900} /* Quote & Code blocks */ .code { font-family: Courier, 'Courier New', sans-serif; font-size: 11px; color: #006600; background-color: #FAFAFA; border: #D1D7DC; border-style: solid; border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px } .quote { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #444444; line-height: 125%; background-color: #FAFAFA; border: #D1D7DC; border-style: solid; border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px } /* Copyright and bottom info */ .copyright { font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #444444; letter-spacing: -1px;} a.copyright { color: #444444; text-decoration: none;} a.copyright:hover { color: #000000; text-decoration: underline;} /* Form elements */ input,textarea, select { color : #000000; font: normal 11px Verdana, Arial, Helvetica, sans-serif; border-color : #000000; } /* The text input fields background colour */ input.post, textarea.post, select { background-color : #FFFFFF; } input { text-indent : 2px; } /* The buttons used for bbCode styling in message post */ input.button { background-color : #EFEFEF; color : #000000; font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif; } /* The main submit button option */ input.mainoption { background-color : #FAFAFA; font-weight : bold; } /* None-bold submit button */ input.liteoption { background-color : #FAFAFA; font-weight : normal; } /* This is the line in the posting page which shows the rollover help line. This is actually a text box, but if set to be the same colour as the background no one will know ;) */ .helpline { background-color: #DEE3E7; border-style: none; } /* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */ @import url("templates/subSilver/formIE.css"); --> </style> <script language="Javascript" type="text/javascript"> <!-- if ( 0 ) { window.open('privmsg.php?mode=newpm', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');; } //--> </script> </head> <body bgcolor="#FFFFFF" text="#000000"> <table> <tr> <td colspan="2"><p><b><font size="5">MX Module - mx_news <br> <font size="2">v. 0.9x</font></font></b></p> <p><span style="font-weight: bold"><span style="font-size: 16px; line-height: normal">Module</span></span> <br /> - for Mx Portal v. 2.7.5+</p> <p><strong>Author</strong><br /> Haplo<br /> <br /> <span style="font-weight: bold">Description</span> <br /> The MX Module is an addon product for the MX-portal.</p> <p><strong>Features</strong> <br /> Easy to use and install/uninstall module.</p> <p> <br /> I. <a href="#install">Installation instructions</a> <br /> <br /> II. <a href="#themes">Additional styles</a> <br /> <br /> III. <a href="#languages">Additional languages</a><br /> <br /> <a href="http://www.mx-system.com" target="_blank" class="postlink">DEMO </a> <br /> <br /> <a href="http://www.mx-system.com/index.php?page=4" target="_blank" class="postlink"> DOWNLOAD </a> <br /> <br /><a name="install"> <br /> <span style="font-weight: bold">I. Installation Instructions</span> <br /> To install this module, follow these instructions. If you encounter any problems during install, visit the <a href="http://www.mx-system.com/forum/viewforum.php?f=20" target="_blank" class="postlink"> module support forum</a>. </p> <p>All install notes are maintained at www.mx-system.com, <a href="http://www.mx-system.com/forum/viewforum.php?f=11">here</a>.<br> <br> To summarize:<br> If installing from scratch, use import module in the AdminCP.<br> If upgrading, use the upgrade option in the AdminCP<br> If uninstalling, use the delete feature in the AdminCP</p> <p>Note: If upgrading, do NOT delete module prior to upgrading, or else you'll lose all module data!<br /> <br /> <a href="#top"> Back to Top</a> <br /> <br /><a name="themes"> <br /> <span style="font-weight: bold">II. Additional Styles</span> <br /> This module is compatible with any theme/style. <br /> <br /> <a href="#top"> Back to Top</a> <br /> <br /><a name="languages"> <br /> <span style="font-weight: bold">III. Additional Languages</span> <br /> First check to see if your language is already translated. <br /> <br /> Translated languages are downloaded <a href="http://www.mx-system.com/index.php?page=4&action=category&cat_id=5" target="_blank" class="postlink"> here</a>. <br /> <br /> If exists, download and install in the modules/mx_modulename/language folder. If not, duplicate (copy and paste) any included language file, rename to match your language, translate using any texteditor, save and upload. <br /> <br /> <a href="#top"> Back to Top</a> </p> <p> /Mx Team</p> </td> </tr> </table> </body> </html> --- NEW FILE: db_upgrade.php --- <?php /** * * @package mxBB Portal Module - mx_news * @version $Id: db_upgrade.php,v 1.1 2008/02/08 21:57:46 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 * */ define( 'IN_PORTAL', true ); if ( !defined( 'IN_ADMIN' ) ) { $mx_root_path = './../../'; $phpEx = substr(strrchr(__FILE__, '.'), 1); include( $mx_root_path . 'common.' . $phpEx ); // Start session management $mx_user->init($user_ip, PAGE_INDEX); if ( !$userdata['session_logged_in'] ) { die( "Hacking attempt(1)" ); } if ( $userdata['user_level'] != ADMIN ) { die( "Hacking attempt(2)" ); } // End session management } $mx_module_version = '1.0.0'; $mx_module_copy = 'Created for mxBB by <a href="http://www.mxbb.net" target="_blank">Jon</a>'; // For compatibility with core 2.7.+ define( 'MXBB_27x', file_exists( $mx_root_path . 'mx_login.php' ) ); $sql = array(); // Precheck if ( $result = $db->sql_query( "SELECT config_name from " . $mx_table_prefix . "simplenews_config" ) ) { // Upgrade checks $upgrade_280 = false; $message = "<b>Upgrading!</b><br/><br/>"; if ( $upgrade_280 == 1 ) { } else { $message .= "<b>Nothing to upgrade...</b><br/><br/>"; } if ( !MXBB_27x ) { $sql[] = "UPDATE " . $mx_table_prefix . "module" . " SET module_version = '" . $mx_module_version . "', module_copy = '" . $mx_module_copy . "' WHERE module_id = '" . $mx_module_id . "'"; } $message .= mx_do_install_upgrade( $sql ); $message .= "<b>...Now upgraded to v. $mx_module_version :-)</b><br/><br/>"; // // Empty module cache // include_once( $mx_root_path . 'includes/mx_functions_tools.' . $phpEx ); $module_cache = new module_cache($mx_root_path . 'modules/mx_news/mx_news/'); $module_cache->tidy(); $module_cache->save(); } else { // If not installed $message = "<b>Module not installed...and thus cannot be upgraded ;)</b><br/><br/>"; } echo "<br /><br />"; echo "<table width=\"90%\" align=\"center\" cellpadding=\"4\" cellspacing=\"1\" border=\"0\" class=\"forumline\">"; echo "<tr><th class=\"thHead\" align=\"center\">Module Installation/Upgrading/Uninstalling Information - module specific db tables</th></tr>"; echo "<tr><td class=\"row1\" align=\"left\"><span class=\"gen\">" . $message . "</span></td></tr>"; echo "</table><br />"; ?> --- NEW FILE: db_install.php --- <?php /** * * @package mxBB Portal Module - mx_news * @version $Id: db_install.php,v 1.1 2008/02/08 21:57:46 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 * */ define( 'IN_PORTAL', true ); if ( !defined( 'IN_ADMIN' ) ) { $mx_root_path = './../../'; $phpEx = substr(strrchr(__FILE__, '.'), 1); include( $mx_root_path . 'common.' . $phpEx ); // Start session management $mx_user->init($user_ip, PAGE_INDEX); if ( !$userdata['session_logged_in'] ) { die( "Hacking attempt(1)" ); } if ( $userdata['user_level'] != ADMIN ) { die( "Hacking attempt(2)" ); } // End session management } $mx_module_version = '1.0.0'; $mx_module_copy = 'Created for mxBB by <a href="http://www.mxbb.net" target="_blank">Jon</a>'; // For compatibility with core 2.7.+ define( 'MXBB_27x', file_exists( $mx_root_path . 'mx_login.php' ) ); // If fresh install if ( !$result = $db->sql_query( "SELECT config_name from " . $mx_table_prefix . "simplenews_config" ) ) { $message = "<b>This is a fresh install!</b><br/><br/>"; $tmp = $userdata['user_id']; $sql = array( "DROP TABLE IF EXISTS " . $mx_table_prefix . "simplenews_config ", "CREATE TABLE " . $mx_table_prefix . "simplenews_config ( config_name varchar(255) NOT NULL default '', config_value varchar(255) NOT NULL default '', PRIMARY KEY (config_name) )", // -------------------------------------------------------- // Table structure for table `phpbb_pa_comments` "CREATE TABLE " . $mx_table_prefix . "simplenews_comments ( comments_id int(10) NOT NULL auto_increment, block_id int(10) NOT NULL default '0', comments_text text NOT NULL, comments_title text NOT NULL, comments_time int(50) NOT NULL default '0', comment_bbcode_uid varchar(10) default NULL, poster_id mediumint(8) NOT NULL default '0', PRIMARY KEY (comments_id), KEY comments_id (comments_id), FULLTEXT KEY comment_bbcode_uid (comment_bbcode_uid) )", // General "INSERT INTO " . $mx_table_prefix . "simplenews_config VALUES ('enable_module', '0')", // settings_disable "INSERT INTO " . $mx_table_prefix . "simplenews_config VALUES ('module_name', 'News Manager')", // settings_dbname "INSERT INTO " . $mx_table_prefix . "simplenews_config VALUES ('wysiwyg_path', 'modules/mx_shared/')", // New -------------------- // Comments "INSERT INTO " . $mx_table_prefix . "simplenews_config VALUES ('internal_comments', '1')", // NEW "INSERT INTO " . $mx_table_prefix . "simplenews_config VALUES ('formatting_comment_wordwrap', '1')", // formatting_comment_fixup "INSERT INTO " . $mx_table_prefix . "simplenews_config VALUES ('formatting_comment_image_resize', '300')", // NEW "INSERT INTO " . $mx_table_prefix . "simplenews_config VALUES ('formatting_comment_truncate_links', '1')", // NEW "INSERT INTO " . $mx_table_prefix . "simplenews_config VALUES ('max_comment_subject_chars', '50')", // NEW "INSERT INTO " . $mx_table_prefix . "simplenews_config VALUES ('max_comment_chars', '5000')", "INSERT INTO " . $mx_table_prefix . "simplenews_config VALUES ('allow_comment_wysiwyg', '0')", // allow_wysiwyg_comments & allow_wysiwyg "INSERT INTO " . $mx_table_prefix . "simplenews_config VALUES ('allow_comment_html', '1')", "INSERT INTO " . $mx_table_prefix . "simplenews_config VALUES ('allow_comment_bbcode', '1')", "INSERT INTO " . $mx_table_prefix . "simplenews_config VALUES ('allow_comment_smilies', '1')", "INSERT INTO " . $mx_table_prefix . "simplenews_config VALUES ('allow_comment_links', '1')", "INSERT INTO " . $mx_table_prefix . "simplenews_config VALUES ('allow_comment_images', '1')", "INSERT INTO " . $mx_table_prefix . "simplenews_config VALUES ('no_comment_image_message', '[No image please]')", "INSERT INTO " . $mx_table_prefix . "simplenews_config VALUES ('no_comment_link_message', '[No links please]')", "INSERT INTO " . $mx_table_prefix . "simplenews_config VALUES ('allowed_comment_html_tags', 'b,i,u,a')", // NEW //"INSERT INTO " . $mx_table_prefix . "simplenews_config VALUES ('del_topic', '1')", // NEW //"INSERT INTO " . $mx_table_prefix . "simplenews_config VALUES ('autogenerate_comments', '1')", // NEW "INSERT INTO " . $mx_table_prefix . "simplenews_config VALUES ('comments_pagination', '5')", "INSERT INTO " . $mx_table_prefix . "simplenews_config VALUES ('comments_forum_id', '0')", // New // Notifications "INSERT INTO " . $mx_table_prefix . "simplenews_config VALUES ('notify', '0')", // pm_notify "INSERT INTO " . $mx_table_prefix . "simplenews_config VALUES ('notify_group', '0')", // NEW ); $sql[] = "UPDATE " . $mx_table_prefix . "module" . " SET module_version = '" . $mx_module_version . "', module_copy = '" . $mx_module_copy . "' WHERE module_id = '" . $mx_module_id . "'"; $message .= mx_do_install_upgrade( $sql ); } else { // If already installed $message = "<b>Module is already installed...consider upgrading ;)</b><br/><br/>"; } echo "<br /><br />"; echo "<table width=\"90%\" align=\"center\" cellpadding=\"4\" cellspacing=\"1\" border=\"0\" class=\"forumline\">"; echo "<tr><th class=\"thHead\" align=\"center\">Module Installation/Upgrading/Uninstalling Information - module specific db tables</th></tr>"; echo "<tr><td class=\"row1\" align=\"left\"><span class=\"gen\">" . $message . "</span></td></tr>"; echo "</table><br />"; ?> --- NEW FILE: mx_news.php --- <?php /** * * @package mxBB Portal Module - mx_news * @version $Id: mx_news.php,v 1.1 2008/02/08 21:57:46 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 ( file_exists( './viewtopic.php' ) ) // -------------------------------------------- phpBB MOD MODE { define( 'MXBB_MODULE', false ); define( 'IN_PHPBB', true ); define( 'IN_PORTAL', true ); define( 'IN_DOWNLOAD', true ); // When run as a phpBB mod these paths are identical ;) $phpbb_root_path = $module_root_path = $mx_root_path = './'; $phpEx = substr(strrchr(__FILE__, '.'), 1); include( $phpbb_root_path . 'common.' . $phpEx ); include_once( $phpbb_root_path . 'includes/bbcode.' . $phpEx ); include_once( $phpbb_root_path . 'includes/functions_post.' . $phpEx ); define( 'PAGE_DOWNLOAD', -501 ); // If this id generates a conflict with other mods, change it ;) // Start session management $userdata = session_pagestart( $user_ip, PAGE_DOWNLOAD ); init_userprefs( $userdata ); // End session management } else { define( 'MXBB_MODULE', true ); if ( !function_exists( 'read_block_config' ) ) { if( isset($_REQUEST['action']) && $_REQUEST['action'] == 'download' ) { define('MX_GZIP_DISABLED', true); } define( 'IN_PORTAL', true ); $mx_root_path = '../../'; $phpEx = substr(strrchr(__FILE__, '.'), 1); include_once( $mx_root_path . 'common.' . $phpEx ); // Start session management $mx_user->init($user_ip, PAGE_INDEX); // End session management $block_id = ( !empty( $HTTP_GET_VARS['block_id'] ) ) ? $HTTP_GET_VARS['block_id'] : $HTTP_POST_VARS['id']; if ( empty( $block_id ) ) { $sql = "SELECT * FROM " . BLOCK_TABLE . " WHERE block_title = 'mxNews' LIMIT 1"; if ( !$result = $db->sql_query( $sql ) ) { mx_message_die( GENERAL_ERROR, "Could not query mx_news module information", "", __LINE__, __FILE__, $sql ); } $row = $db->sql_fetchrow( $result ); $block_id = $row['block_id']; } $is_block = false; } else { if( !defined('IN_PORTAL') || !is_object($mx_block)) { die("Hacking attempt"); } // // Read Block Settings // $title = $mx_block->block_info['block_title']; $desc = $mx_block->block_info['block_desc']; $block_size = ( isset( $block_size ) && !empty( $block_size ) ? $block_size : '100%' ); $is_block = true; global $images; } define( 'MXBB_27x', file_exists( $mx_root_path . 'mx_login.php' ) ); } // ------------------------------------------------------------------------------------------------------------------------- // ------------------------------------------------------------------------------------------------------------------------- // Start // ------------------------------------------------------------------------------------------------------------------------- // ------------------------------------------------------------------------------------------------------------------------- // =================================================== // ? // =================================================== list( $trash, $mx_script_name_temp ) = split ( trim( $board_config['server_name'] ), PORTAL_URL ); $mx_script_name = preg_replace( '#^\/?(.*?)\/?$#', '\1', trim( $mx_script_name_temp ) ); // // Include the common file // include( $module_root_path . 'mx_news/mx_news_common.' . $phpEx ); // // Get action variable other wise set it to the main // $action = ( isset( $_REQUEST['action'] ) ) ? htmlspecialchars( $_REQUEST['action'] ) : 'news'; // =================================================== // Is admin? // =================================================== $is_admin = ( ( $userdata['user_level'] == ADMIN ) && $userdata['session_logged_in'] ) ? true : 0; // =================================================== // if the database disabled give them a nice message // =================================================== if ( intval( $mx_news_config['module_enable'] ) ) { mx_message_die( GENERAL_MESSAGE, $lang['mx_news_disable'] ); } // // an array of all expected actions // $actions = array( 'news' => 'main', 'post_news' => 'post_comment' ); // // Lets Build the page // if ( !$is_block ) { include( $mx_root_path . 'includes/page_header.' . $phpEx ); } $mx_news->module( $actions[$action] ); $mx_news->modules[$actions[$action]]->main( $action ); $mx_news_functions->page_header(); // // page body for mx_news // $template->set_filenames( array( 'body' => $mx_news_tpl_name ) ); $template->pparse( 'body' ); $mx_news_functions->page_footer(); if ( !$is_block ) { include( $mx_root_path . 'includes/page_tail.' . $phpEx ); } ?> --- NEW FILE: mx_news.pak --- module=+:56=+:Simple news manager=+:modules/mx_news/=+:News Manager module=+:1 New_function=+:---------------------------=+:0=+:0=+:0=+:0=+:0 function=+:56=+:67=+:News=+:News Manager=+:mx_news.php=+: parameter=+:0=+:0=+:0=+:endoflist=+:0=+:0 block=+:=+:Demo - News=+:Demo block=+:67=+:0=+:5=+:0=+:0=+:0=+:0=+:1=+:1 function=+:0=+:0=+:0=+:endoflist=+:0=+:0 --- 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> |