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-10 20:58:51
|
Update of /cvsroot/mxbb/core/install/schemas In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv30903/schemas Modified Files: mysql_schema_install.sql Log Message: Updated. Upgrad etc http://www.mx-system.com/forum/viewtopic.php?t=10571 Index: mysql_schema_install.sql =================================================================== RCS file: /cvsroot/mxbb/core/install/schemas/mysql_schema_install.sql,v retrieving revision 1.51 retrieving revision 1.52 diff -C2 -d -r1.51 -r1.52 *** mysql_schema_install.sql 5 Feb 2008 18:37:20 -0000 1.51 --- mysql_schema_install.sql 10 Feb 2008 20:58:47 -0000 1.52 *************** *** 588,592 **** `cookie_domain` varchar(255) NOT NULL default '', ! `cookie_name` varchar(255) NOT NULL default 'mxbb28x', `cookie_path` varchar(255) NOT NULL default '/', `cookie_secure` smallint(2) unsigned NOT NULL default '0', --- 588,592 ---- `cookie_domain` varchar(255) NOT NULL default '', ! `cookie_name` varchar(255) NOT NULL default 'mxbb29x', `cookie_path` varchar(255) NOT NULL default '/', `cookie_secure` smallint(2) unsigned NOT NULL default '0', *************** *** 764,805 **** user_regdate int(11) DEFAULT '0' NOT NULL, user_level tinyint(4) DEFAULT '0', - # user_posts mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - # user_timezone decimal(5,2) DEFAULT '0' NOT NULL, - # user_style tinyint(4), - # user_lang varchar(255), - # user_dateformat varchar(14) DEFAULT 'd M Y H:i' NOT NULL, - # user_new_privmsg smallint(5) UNSIGNED DEFAULT '0' NOT NULL, - # user_unread_privmsg smallint(5) UNSIGNED DEFAULT '0' NOT NULL, - # user_last_privmsg int(11) DEFAULT '0' NOT NULL, user_login_tries smallint(5) UNSIGNED DEFAULT '0' NOT NULL, user_last_login_try int(11) DEFAULT '0' NOT NULL, - # user_emailtime int(11), - # user_viewemail tinyint(1), - # user_attachsig tinyint(1), - # user_allowhtml tinyint(1) DEFAULT '1', - # user_allowbbcode tinyint(1) DEFAULT '1', - # user_allowsmile tinyint(1) DEFAULT '1', - # user_allowavatar tinyint(1) DEFAULT '1' NOT NULL, - # user_allow_pm tinyint(1) DEFAULT '1' NOT NULL, - # user_allow_viewonline tinyint(1) DEFAULT '1' NOT NULL, - # user_notify tinyint(1) DEFAULT '1' NOT NULL, - # user_notify_pm tinyint(1) DEFAULT '0' NOT NULL, - # user_popup_pm tinyint(1) DEFAULT '0' NOT NULL, - # user_rank int(11) DEFAULT '0', - # user_avatar varchar(100), - # user_avatar_type tinyint(4) DEFAULT '0' NOT NULL, user_email varchar(255), - # user_icq varchar(15), - # user_website varchar(100), - # user_from varchar(100), - # user_sig text, - # user_sig_bbcode_uid char(10), - # user_aim varchar(255), - # user_yim varchar(255), - # user_msnm varchar(255), - # user_occ varchar(100), - # user_interests varchar(255), - # user_actkey varchar(32), - # user_newpasswd varchar(32), PRIMARY KEY (user_id), KEY user_session_time (user_session_time) --- 764,770 ---- *************** *** 837,844 **** # -- Themes ! INSERT INTO mx_table_themes (themes_id, template_name, style_name, head_stylesheet, portal_backend) VALUES (1, 'mxSilver', 'mxSilver', 'mxSilver.css', 'internal'); ! INSERT INTO mx_table_themes (themes_id, template_name, style_name, head_stylesheet, portal_backend) VALUES (2, 'subSilver', 'subSilver', 'subSilver.css', 'phpbb2'); ! INSERT INTO mx_table_themes (themes_id, template_name, style_name, head_stylesheet, portal_backend) VALUES (3, 'subsilver2', 'subsilver2', 'subsilver2.css', 'phpbb3'); ! INSERT INTO mx_table_themes (themes_id, template_name, style_name, head_stylesheet, portal_backend) VALUES (4, 'prosilver', 'prosilver', 'prosilver.css', 'phpbb3'); # -------------------------------------------------------- --- 802,811 ---- # -- Themes ! INSERT INTO mx_table_themes (themes_id, template_name, style_name, head_stylesheet, portal_backend) VALUES (1, 'mxBase1', 'mxBase1', 'mxBase1.css', 'internal'); ! INSERT INTO mx_table_themes (themes_id, template_name, style_name, head_stylesheet, portal_backend) VALUES (2, 'mxBase2', 'mxBase2', 'mxBase2.css', 'internal'); ! INSERT INTO mx_table_themes (themes_id, template_name, style_name, head_stylesheet, portal_backend) VALUES (3, 'mxSilver', 'mxSilver', 'mxSilver.css', 'internal'); ! INSERT INTO mx_table_themes (themes_id, template_name, style_name, head_stylesheet, portal_backend) VALUES (4, 'subSilver', 'subSilver', 'subSilver.css', 'phpbb2'); ! INSERT INTO mx_table_themes (themes_id, template_name, style_name, head_stylesheet, portal_backend) VALUES (5, 'subsilver2', 'subsilver2', 'subsilver2.css', 'phpbb3'); ! INSERT INTO mx_table_themes (themes_id, template_name, style_name, head_stylesheet, portal_backend) VALUES (6, 'prosilver', 'prosilver', 'prosilver.css', 'phpbb3'); # -------------------------------------------------------- |
|
From: Jon O. <jon...@us...> - 2008-02-10 20:56:43
|
Update of /cvsroot/mxbb/core/includes/db In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv30446 Modified Files: Tag: core28x firebird.php mssql.php mssql_odbc.php mysql.php mysql4.php mysqli.php oracle.php postgres.php sqlite.php Log Message: Updated DBAL, to be working with our installation. Please, check this out. Should not affect core. But i've left old code uncommented, in case... Index: mysqli.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/db/mysqli.php,v retrieving revision 1.8.2.2 retrieving revision 1.8.2.3 diff -C2 -d -r1.8.2.2 -r1.8.2.3 *** mysqli.php 3 Feb 2008 19:23:03 -0000 1.8.2.2 --- mysqli.php 10 Feb 2008 20:56:39 -0000 1.8.2.3 *************** *** 21,29 **** * @ignore */ ! if (!defined('SQL_LAYER')) { - define('SQL_LAYER', 'mysqli'); - include($mx_root_path . 'includes/db/dbal.' . $phpEx); /** --- 21,31 ---- * @ignore */ ! //if (!defined('SQL_LAYER')) ! if (!is_object('dbal_mysqli')) { + //define('SQL_LAYER', 'mysqli'); + include_once($mx_root_path . 'includes/db/dbal.' . $phpEx); + $sql_db = 'dbal_' . $dbms; // Repopulated for multiple db connections /** Index: sqlite.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/db/sqlite.php,v retrieving revision 1.8.2.2 retrieving revision 1.8.2.3 diff -C2 -d -r1.8.2.2 -r1.8.2.3 *** sqlite.php 3 Feb 2008 19:23:05 -0000 1.8.2.2 --- sqlite.php 10 Feb 2008 20:56:39 -0000 1.8.2.3 *************** *** 21,29 **** * @ignore */ ! if (!defined('SQL_LAYER')) { - define('SQL_LAYER', 'sqlite'); - include($mx_root_path . 'includes/db/dbal.' . $phpEx); /** --- 21,31 ---- * @ignore */ ! //if (!defined('SQL_LAYER')) ! if (!is_object('dbal_sqlite')) { + //define('SQL_LAYER', 'sqlite'); + include_once($mx_root_path . 'includes/db/dbal.' . $phpEx); + $sql_db = 'dbal_' . $dbms; // Repopulated for multiple db connections /** Index: postgres.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/db/postgres.php,v retrieving revision 1.8.2.2 retrieving revision 1.8.2.3 diff -C2 -d -r1.8.2.2 -r1.8.2.3 *** postgres.php 3 Feb 2008 19:23:05 -0000 1.8.2.2 --- postgres.php 10 Feb 2008 20:56:39 -0000 1.8.2.3 *************** *** 21,29 **** * @ignore */ ! if (!defined('SQL_LAYER')) { - define('SQL_LAYER', 'postgres'); - include($mx_root_path . 'includes/db/dbal.' . $phpEx); /** --- 21,31 ---- * @ignore */ ! //if (!defined('SQL_LAYER')) ! if (!is_object('dbal_postgres')) { + //define('SQL_LAYER', 'postgres'); + include_once($mx_root_path . 'includes/db/dbal.' . $phpEx); + $sql_db = 'dbal_' . $dbms; // Repopulated for multiple db connections /** Index: mysql4.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/db/mysql4.php,v retrieving revision 1.8.2.2 retrieving revision 1.8.2.3 diff -C2 -d -r1.8.2.2 -r1.8.2.3 *** mysql4.php 3 Feb 2008 19:23:03 -0000 1.8.2.2 --- mysql4.php 10 Feb 2008 20:56:39 -0000 1.8.2.3 *************** *** 21,29 **** * @ignore */ ! if (!defined('SQL_LAYER')) { ! ! define('SQL_LAYER', 'mysql4'); ! include($mx_root_path . 'includes/db/dbal.' . $phpEx); /** --- 21,30 ---- * @ignore */ ! //if (!defined('SQL_LAYER')) ! if (!is_object('dbal_mysql4')) { ! //define('SQL_LAYER', 'mysql4'); ! include_once($mx_root_path . 'includes/db/dbal.' . $phpEx); ! $sql_db = 'dbal_' . $dbms; /** Index: firebird.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/db/firebird.php,v retrieving revision 1.8.2.2 retrieving revision 1.8.2.3 diff -C2 -d -r1.8.2.2 -r1.8.2.3 *** firebird.php 3 Feb 2008 19:23:01 -0000 1.8.2.2 --- firebird.php 10 Feb 2008 20:56:39 -0000 1.8.2.3 *************** *** 21,29 **** * @ignore */ ! if (!defined('SQL_LAYER')) { ! ! define('SQL_LAYER', 'firebird'); ! include($mx_root_path . 'includes/db/dbal.' . $phpEx); /** --- 21,30 ---- * @ignore */ ! //if (!defined('SQL_LAYER')) ! if (!is_object('dbal_firebird')) { ! //define('SQL_LAYER', 'firebird'); ! include_once($mx_root_path . 'includes/db/dbal.' . $phpEx); ! $sql_db = 'dbal_' . $dbms; // Repopulated for multiple db connections /** Index: mssql.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/db/mssql.php,v retrieving revision 1.8.2.2 retrieving revision 1.8.2.3 diff -C2 -d -r1.8.2.2 -r1.8.2.3 *** mssql.php 3 Feb 2008 19:23:01 -0000 1.8.2.2 --- mssql.php 10 Feb 2008 20:56:39 -0000 1.8.2.3 *************** *** 21,29 **** * @ignore */ ! if (!defined('SQL_LAYER')) { ! ! define('SQL_LAYER', 'mssql'); ! include($mx_root_path . 'includes/db/dbal.' . $phpEx); /** --- 21,30 ---- * @ignore */ ! //if (!defined('SQL_LAYER')) ! if (!is_object('dbal_mssql')) { ! //define('SQL_LAYER', 'mssql'); ! include_once($mx_root_path . 'includes/db/dbal.' . $phpEx); ! $sql_db = 'dbal_' . $dbms; // Repopulated for multiple db connections /** Index: mysql.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/db/mysql.php,v retrieving revision 1.8.2.2 retrieving revision 1.8.2.3 diff -C2 -d -r1.8.2.2 -r1.8.2.3 *** mysql.php 3 Feb 2008 19:23:02 -0000 1.8.2.2 --- mysql.php 10 Feb 2008 20:56:39 -0000 1.8.2.3 *************** *** 21,29 **** * @ignore */ ! if (!defined('SQL_LAYER')) { ! ! define('SQL_LAYER', 'mysql'); ! include($mx_root_path . 'includes/db/dbal.' . $phpEx); /** --- 21,30 ---- * @ignore */ ! //if (!defined('SQL_LAYER')) ! if (!is_object('dbal_mysql')) { ! //define('SQL_LAYER', 'mysql'); ! include_once($mx_root_path . 'includes/db/dbal.' . $phpEx); ! $sql_db = 'dbal_' . $dbms; // Repopulated for multiple db connections /** Index: oracle.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/db/oracle.php,v retrieving revision 1.8.2.2 retrieving revision 1.8.2.3 diff -C2 -d -r1.8.2.2 -r1.8.2.3 *** oracle.php 3 Feb 2008 19:23:04 -0000 1.8.2.2 --- oracle.php 10 Feb 2008 20:56:39 -0000 1.8.2.3 *************** *** 21,29 **** * @ignore */ ! if(!defined('SQL_LAYER')) { ! ! define('SQL_LAYER', 'oracle'); ! include($mx_root_path . 'includes/db/dbal.' . $phpEx); /** --- 21,30 ---- * @ignore */ ! //if (!defined('SQL_LAYER')) ! if (!is_object('dbal_oracle')) { ! //define('SQL_LAYER', 'oracle'); ! include_once($mx_root_path . 'includes/db/dbal.' . $phpEx); ! $sql_db = 'dbal_' . $dbms; // Repopulated for multiple db connections /** Index: mssql_odbc.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/db/mssql_odbc.php,v retrieving revision 1.8.2.2 retrieving revision 1.8.2.3 diff -C2 -d -r1.8.2.2 -r1.8.2.3 *** mssql_odbc.php 3 Feb 2008 19:23:01 -0000 1.8.2.2 --- mssql_odbc.php 10 Feb 2008 20:56:39 -0000 1.8.2.3 *************** *** 21,29 **** * @ignore */ ! if (!defined('SQL_LAYER')) { ! ! define('SQL_LAYER', 'mssql_odbc'); ! include($mx_root_path . 'includes/db/dbal.' . $phpEx); /** --- 21,30 ---- * @ignore */ ! //if (!defined('SQL_LAYER')) ! if (!is_object('dbal_mssql_odbc')) { ! //define('SQL_LAYER', 'mssql_odbc'); ! include_once($mx_root_path . 'includes/db/dbal.' . $phpEx); ! $sql_db = 'dbal_' . $dbms; // Repopulated for multiple db connections /** |
Update of /cvsroot/mxbb/core/includes/db In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv28300 Modified Files: firebird.php mssql.php mssql_odbc.php mysql.php mysql4.php mysqli.php oracle.php postgres.php sqlite.php Log Message: Updated DBAL, to be working with our installation. Please, check this out. Should not affect core. But i've left old code uncommented, in case... Index: mysqli.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/db/mysqli.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** mysqli.php 8 Feb 2008 23:35:56 -0000 1.12 --- mysqli.php 10 Feb 2008 20:52:07 -0000 1.13 *************** *** 21,29 **** * @ignore */ ! if (!defined('SQL_LAYER')) { ! ! define('SQL_LAYER', 'mysqli'); ! include($mx_root_path . 'includes/db/dbal.' . $phpEx); /** --- 21,30 ---- * @ignore */ ! //if (!defined('SQL_LAYER')) ! if (!is_object('dbal_mysqli')) { ! //define('SQL_LAYER', 'mysqli'); ! include_once($mx_root_path . 'includes/db/dbal.' . $phpEx); ! $sql_db = 'dbal_' . $dbms; // Repopulated for multiple db connections /** Index: sqlite.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/db/sqlite.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** sqlite.php 8 Feb 2008 23:35:56 -0000 1.12 --- sqlite.php 10 Feb 2008 20:52:07 -0000 1.13 *************** *** 21,29 **** * @ignore */ ! if (!defined('SQL_LAYER')) { ! ! define('SQL_LAYER', 'sqlite'); ! include($mx_root_path . 'includes/db/dbal.' . $phpEx); /** --- 21,30 ---- * @ignore */ ! //if (!defined('SQL_LAYER')) ! if (!is_object('dbal_sqlite')) { ! //define('SQL_LAYER', 'sqlite'); ! include_once($mx_root_path . 'includes/db/dbal.' . $phpEx); ! $sql_db = 'dbal_' . $dbms; // Repopulated for multiple db connections /** Index: postgres.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/db/postgres.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** postgres.php 8 Feb 2008 23:35:56 -0000 1.12 --- postgres.php 10 Feb 2008 20:52:07 -0000 1.13 *************** *** 21,29 **** * @ignore */ ! if (!defined('SQL_LAYER')) { ! ! define('SQL_LAYER', 'postgres'); ! include($mx_root_path . 'includes/db/dbal.' . $phpEx); /** --- 21,30 ---- * @ignore */ ! //if (!defined('SQL_LAYER')) ! if (!is_object('dbal_postgres')) { ! //define('SQL_LAYER', 'postgres'); ! include_once($mx_root_path . 'includes/db/dbal.' . $phpEx); ! $sql_db = 'dbal_' . $dbms; // Repopulated for multiple db connections /** Index: mysql4.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/db/mysql4.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** mysql4.php 8 Feb 2008 23:35:56 -0000 1.12 --- mysql4.php 10 Feb 2008 20:52:06 -0000 1.13 *************** *** 21,29 **** * @ignore */ ! if (!defined('SQL_LAYER')) { ! ! define('SQL_LAYER', 'mysql4'); ! include($mx_root_path . 'includes/db/dbal.' . $phpEx); /** --- 21,30 ---- * @ignore */ ! //if (!defined('SQL_LAYER')) ! if (!is_object('dbal_mysql4')) { ! //define('SQL_LAYER', 'mysql4'); ! include_once($mx_root_path . 'includes/db/dbal.' . $phpEx); ! $sql_db = 'dbal_' . $dbms; /** Index: firebird.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/db/firebird.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** firebird.php 8 Feb 2008 23:35:56 -0000 1.12 --- firebird.php 10 Feb 2008 20:52:05 -0000 1.13 *************** *** 21,29 **** * @ignore */ ! if (!defined('SQL_LAYER')) { ! ! define('SQL_LAYER', 'firebird'); ! include($mx_root_path . 'includes/db/dbal.' . $phpEx); /** --- 21,30 ---- * @ignore */ ! //if (!defined('SQL_LAYER')) ! if (!is_object('dbal_firebird')) { ! //define('SQL_LAYER', 'firebird'); ! include_once($mx_root_path . 'includes/db/dbal.' . $phpEx); ! $sql_db = 'dbal_' . $dbms; // Repopulated for multiple db connections /** Index: mssql.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/db/mssql.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** mssql.php 8 Feb 2008 23:35:56 -0000 1.12 --- mssql.php 10 Feb 2008 20:52:05 -0000 1.13 *************** *** 21,29 **** * @ignore */ ! if (!defined('SQL_LAYER')) { ! ! define('SQL_LAYER', 'mssql'); ! include($mx_root_path . 'includes/db/dbal.' . $phpEx); /** --- 21,30 ---- * @ignore */ ! //if (!defined('SQL_LAYER')) ! if (!is_object('dbal_mssql')) { ! //define('SQL_LAYER', 'mssql'); ! include_once($mx_root_path . 'includes/db/dbal.' . $phpEx); ! $sql_db = 'dbal_' . $dbms; // Repopulated for multiple db connections /** Index: mysql.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/db/mysql.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** mysql.php 8 Feb 2008 23:35:56 -0000 1.12 --- mysql.php 10 Feb 2008 20:52:06 -0000 1.13 *************** *** 21,29 **** * @ignore */ ! if (!defined('SQL_LAYER')) { ! ! define('SQL_LAYER', 'mysql'); ! include($mx_root_path . 'includes/db/dbal.' . $phpEx); /** --- 21,30 ---- * @ignore */ ! //if (!defined('SQL_LAYER')) ! if (!is_object('dbal_mysql')) { ! //define('SQL_LAYER', 'mysql'); ! include_once($mx_root_path . 'includes/db/dbal.' . $phpEx); ! $sql_db = 'dbal_' . $dbms; // Repopulated for multiple db connections /** Index: oracle.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/db/oracle.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** oracle.php 8 Feb 2008 23:35:56 -0000 1.12 --- oracle.php 10 Feb 2008 20:52:07 -0000 1.13 *************** *** 21,29 **** * @ignore */ ! if(!defined('SQL_LAYER')) { ! ! define('SQL_LAYER', 'oracle'); ! include($mx_root_path . 'includes/db/dbal.' . $phpEx); /** --- 21,30 ---- * @ignore */ ! //if (!defined('SQL_LAYER')) ! if (!is_object('dbal_oracle')) { ! //define('SQL_LAYER', 'oracle'); ! include_once($mx_root_path . 'includes/db/dbal.' . $phpEx); ! $sql_db = 'dbal_' . $dbms; // Repopulated for multiple db connections /** Index: mssql_odbc.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/db/mssql_odbc.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** mssql_odbc.php 8 Feb 2008 23:35:56 -0000 1.12 --- mssql_odbc.php 10 Feb 2008 20:52:06 -0000 1.13 *************** *** 21,29 **** * @ignore */ ! if (!defined('SQL_LAYER')) { ! ! define('SQL_LAYER', 'mssql_odbc'); ! include($mx_root_path . 'includes/db/dbal.' . $phpEx); /** --- 21,30 ---- * @ignore */ ! //if (!defined('SQL_LAYER')) ! if (!is_object('dbal_mssql_odbc')) { ! //define('SQL_LAYER', 'mssql_odbc'); ! include_once($mx_root_path . 'includes/db/dbal.' . $phpEx); ! $sql_db = 'dbal_' . $dbms; // Repopulated for multiple db connections /** |
|
From: OryNider <ory...@us...> - 2008-02-10 02:35:00
|
Update of /cvsroot/mxbb/mx_blogs/language/lang_english In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18506/language/lang_english Modified Files: lang_weblog_admin.php lang_weblog_main.php Log Message: Index: lang_weblog_admin.php =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/language/lang_english/lang_weblog_admin.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** lang_weblog_admin.php 8 Feb 2008 23:38:07 -0000 1.2 --- lang_weblog_admin.php 10 Feb 2008 02:34:51 -0000 1.3 *************** *** 189,191 **** $lang['Entries_restored'] = 'Weblog Entries Restored'; $lang['Click_return_weblog_tools']='Click %sHere%s to return to The Blog Module Tools'; ! ?> \ No newline at end of file --- 189,191 ---- $lang['Entries_restored'] = 'Weblog Entries Restored'; $lang['Click_return_weblog_tools']='Click %sHere%s to return to The Blog Module Tools'; ! ?> Index: lang_weblog_main.php =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/language/lang_english/lang_weblog_main.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** lang_weblog_main.php 8 Feb 2008 23:38:08 -0000 1.2 --- lang_weblog_main.php 10 Feb 2008 02:34:51 -0000 1.3 *************** *** 40,44 **** $lang['Create_a_weblog'] = 'Create a ' . $lang['Weblog']; $lang['Weblog_Owner'] = $lang['Weblog'] . ' Owner'; ! $lang['Weblog_powered_by'] = 'Powered by the Blog Mod by Hyperion</a><br> Ported to <a href="http://www.mx-system.com">Mx-System</a> by Cryptoknight, and mhewitson'; $lang['Entries'] = 'Entries'; $lang['Replies'] = 'Replies'; --- 40,44 ---- $lang['Create_a_weblog'] = 'Create a ' . $lang['Weblog']; $lang['Weblog_Owner'] = $lang['Weblog'] . ' Owner'; ! $lang['Weblog_powered_by'] = 'Powered by the Blog Mod by Hyperion</a><br> Ported to <a href="http://www.mx-publisher.com">Mx-Publisher</a> by Cryptoknight, and mhewitson'; $lang['Entries'] = 'Entries'; $lang['Replies'] = 'Replies'; *************** *** 400,402 **** $lang['Owner_banned'] = 'You have been banned from the ' . $lang['Weblog'] . ' system.'; ! ?> \ No newline at end of file --- 400,402 ---- $lang['Owner_banned'] = 'You have been banned from the ' . $lang['Weblog'] . ' system.'; ! ?> |
Update of /cvsroot/mxbb/mx_blogs/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18506/admin Modified Files: admin_weblog_action.php admin_weblog_cfg.php admin_weblog_groups.php admin_weblog_mood.php admin_weblog_templates.php admin_weblog_tools.php Log Message: Index: admin_weblog_action.php =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/admin/admin_weblog_action.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** admin_weblog_action.php 8 Feb 2008 23:37:18 -0000 1.4 --- admin_weblog_action.php 10 Feb 2008 02:34:51 -0000 1.5 *************** *** 43,47 **** $module_root_path = '../'; $mx_root_path = '../../../'; ! $phpEx = substr(strrchr(__FILE__, '.'), 1); require($mx_root_path . 'admin/pagestart.' . $phpEx); --- 43,47 ---- $module_root_path = '../'; $mx_root_path = '../../../'; ! $phpEx = substr(strrchr(__FILE__, '.'), 1); require($mx_root_path . 'admin/pagestart.' . $phpEx); *************** *** 51,61 **** // Read language definition // ********************************************************************** ! if ( file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_weblog_admin.' . $phpEx ) ) ! { ! include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_weblog_admin.' . $phpEx ); ! } ! else if ( file_exists( $module_root_path . 'language/lang_english/lang_weblog_admin.' . $phpEx ) ) { ! include( $module_root_path . 'language/lang_english/lang_weblog_admin.' . $phpEx ); } --- 51,60 ---- // Read language definition // ********************************************************************** ! if ((@include $module_root_path . "language/lang_" . $default_lang . "/lang_weblog_admin.$phpEx") === false) { ! if ((@include $module_root_path . "language/lang_english/lang_weblog_admin.$phpEx") === false) ! { ! mx_message_die(CRITICAL_ERROR, 'Language file ' . $module_root_path . "language/lang_" . $default_lang . "/lang_weblog_admin.$phpEx" . ' couldn\'t be opened.'); ! } } *************** *** 352,354 **** include($mx_root_path . 'admin/page_footer_admin.'.$phpEx); ! ?> \ No newline at end of file --- 351,353 ---- include($mx_root_path . 'admin/page_footer_admin.'.$phpEx); ! ?> Index: admin_weblog_mood.php =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/admin/admin_weblog_mood.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** admin_weblog_mood.php 8 Feb 2008 23:37:19 -0000 1.4 --- admin_weblog_mood.php 10 Feb 2008 02:34:51 -0000 1.5 *************** *** 44,54 **** // Read language definition // ********************************************************************** ! if ( file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_weblog_admin.' . $phpEx ) ) ! { ! include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_weblog_admin.' . $phpEx ); ! } ! else if ( file_exists( $module_root_path . 'language/lang_english/lang_weblog_admin.' . $phpEx ) ) { ! include( $module_root_path . 'language/lang_english/lang_weblog_admin.' . $phpEx ); } --- 44,53 ---- // Read language definition // ********************************************************************** ! if ((@include $module_root_path . "language/lang_" . $default_lang . "/lang_weblog_admin.$phpEx") === false) { ! if ((@include $module_root_path . "language/lang_english/lang_weblog_admin.$phpEx") === false) ! { ! mx_message_die(CRITICAL_ERROR, 'Language file ' . $module_root_path . "language/lang_" . $default_lang . "/lang_weblog_admin.$phpEx" . ' couldn\'t be opened.'); ! } } *************** *** 574,576 **** include($mx_root_path . 'admin/page_footer_admin.'.$phpEx); ! ?> \ No newline at end of file --- 573,575 ---- include($mx_root_path . 'admin/page_footer_admin.'.$phpEx); ! ?> Index: admin_weblog_templates.php =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/admin/admin_weblog_templates.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** admin_weblog_templates.php 8 Feb 2008 23:37:19 -0000 1.3 --- admin_weblog_templates.php 10 Feb 2008 02:34:51 -0000 1.4 *************** *** 36,40 **** $module_root_path = "./../"; //include($mx_root_path . 'extension.inc'); ! $phpEx = substr(strrchr(__FILE__, '.'), 1); include($mx_root_path . 'admin/pagestart.' . $phpEx); include($module_root_path . 'includes/weblogs_constants.'.$phpEx); --- 36,40 ---- $module_root_path = "./../"; //include($mx_root_path . 'extension.inc'); ! $phpEx = substr(strrchr(__FILE__, '.'), 1); include($mx_root_path . 'admin/pagestart.' . $phpEx); include($module_root_path . 'includes/weblogs_constants.'.$phpEx); *************** *** 44,54 **** // Read language definition // ********************************************************************** ! if ( file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_weblog_admin.' . $phpEx ) ) ! { ! include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_weblog_admin.' . $phpEx ); ! } ! else if ( file_exists( $module_root_path . 'language/lang_english/lang_weblog_admin.' . $phpEx ) ) { ! include( $module_root_path . 'language/lang_english/lang_weblog_admin.' . $phpEx ); } --- 44,53 ---- // Read language definition // ********************************************************************** ! if ((@include $module_root_path . "language/lang_" . $default_lang . "/lang_weblog_admin.$phpEx") === false) { ! if ((@include $module_root_path . "language/lang_english/lang_weblog_admin.$phpEx") === false) ! { ! mx_message_die(CRITICAL_ERROR, 'Language file ' . $module_root_path . "language/lang_" . $default_lang . "/lang_weblog_admin.$phpEx" . ' couldn\'t be opened.'); ! } } *************** *** 80,84 **** if ( !is_file($module_root_path. "weblogs/templates/" . $sub_dir) && $sub_dir != '.' && $sub_dir != '..' ) { ! $dir_select .= '<option value="' . $sub_dir . '"' . $selected . '>' . $sub_dir . '</option>'; } } --- 79,83 ---- if ( !is_file($module_root_path. "weblogs/templates/" . $sub_dir) && $sub_dir != '.' && $sub_dir != '..' ) { ! $dir_select .= '<option value="' . $sub_dir . '"' . $selected . '>' . $sub_dir . '</option>'; } } *************** *** 120,125 **** "L_RESET" => $lang['Reset'], ! "S_TEMPLATE_ACTION" => mx_append_sid("admin_weblog_templates.$phpEx?mode=savenew"), ! "S_HIDDEN_FIELDS" => $s_hidden_fields, "S_FILENAME_OPTIONS" => $filename_list) ); --- 119,124 ---- "L_RESET" => $lang['Reset'], ! "S_TEMPLATE_ACTION" => mx_append_sid("admin_weblog_templates.$phpEx?mode=savenew"), ! "S_HIDDEN_FIELDS" => $s_hidden_fields, "S_FILENAME_OPTIONS" => $filename_list) ); *************** *** 220,224 **** "S_TEMPLATE_ACTION" => mx_append_sid("admin_weblog_templates.$phpEx?mode=edit&id=$template_id"), ! "S_HIDDEN_FIELDS" => $s_hidden_fields, "S_FILENAME_OPTIONS" => $filename_list) ); --- 219,223 ---- "S_TEMPLATE_ACTION" => mx_append_sid("admin_weblog_templates.$phpEx?mode=edit&id=$template_id"), ! "S_HIDDEN_FIELDS" => $s_hidden_fields, "S_FILENAME_OPTIONS" => $filename_list) ); *************** *** 352,356 **** "L_PRIVATE" => $lang['Template_private'], ! "S_HIDDEN_FIELDS" => $s_hidden_fields, "S_TEMPLATE_ACTION" => mx_append_sid("admin_weblog_templates.$phpEx")) ); --- 351,355 ---- "L_PRIVATE" => $lang['Template_private'], ! "S_HIDDEN_FIELDS" => $s_hidden_fields, "S_TEMPLATE_ACTION" => mx_append_sid("admin_weblog_templates.$phpEx")) ); *************** *** 367,375 **** "ROW_COLOR" => "#" . $row_color, "ROW_CLASS" => $row_class, ! "TEMPLATE" => $template_data[$i]['template_name'], "TEMPLATE_IMAGE" => '<img src="' . $module_root_path . 'weblogs/templates/' . $template_data[$i]['template_dir'] . '/preview_img.gif" border="0">', "TEMPLATE_PRIVATE" => ( $template_data[$i]['template_private'] ) ? $lang['Yes'] : $lang['No'], ! "U_TEMPLATE_EDIT" => mx_append_sid("admin_weblog_templates.$phpEx?mode=edit&id=" . $template_data[$i]['template_id']), "U_TEMPLATE_DELETE" => mx_append_sid("admin_weblog_templates.$phpEx?mode=delete&id=" . $template_data[$i]['template_id'])) ); --- 366,374 ---- "ROW_COLOR" => "#" . $row_color, "ROW_CLASS" => $row_class, ! "TEMPLATE" => $template_data[$i]['template_name'], "TEMPLATE_IMAGE" => '<img src="' . $module_root_path . 'weblogs/templates/' . $template_data[$i]['template_dir'] . '/preview_img.gif" border="0">', "TEMPLATE_PRIVATE" => ( $template_data[$i]['template_private'] ) ? $lang['Yes'] : $lang['No'], ! "U_TEMPLATE_EDIT" => mx_append_sid("admin_weblog_templates.$phpEx?mode=edit&id=" . $template_data[$i]['template_id']), "U_TEMPLATE_DELETE" => mx_append_sid("admin_weblog_templates.$phpEx?mode=delete&id=" . $template_data[$i]['template_id'])) ); *************** *** 387,389 **** include($mx_root_path . 'admin/page_footer_admin.'.$phpEx); ! ?> \ No newline at end of file --- 386,388 ---- include($mx_root_path . 'admin/page_footer_admin.'.$phpEx); ! ?> Index: admin_weblog_cfg.php =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/admin/admin_weblog_cfg.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** admin_weblog_cfg.php 8 Feb 2008 23:37:18 -0000 1.3 --- admin_weblog_cfg.php 10 Feb 2008 02:34:51 -0000 1.4 *************** *** 36,40 **** $module_root_path = './../'; //include($mx_root_path . 'extension.inc'); ! $phpEx = substr(strrchr(__FILE__, '.'), 1); include($mx_root_path . 'admin/pagestart.' . $phpEx); //include($phpbb_root_path . 'includes/functions_selects.'.$phpEx); --- 36,40 ---- $module_root_path = './../'; //include($mx_root_path . 'extension.inc'); ! $phpEx = substr(strrchr(__FILE__, '.'), 1); include($mx_root_path . 'admin/pagestart.' . $phpEx); //include($phpbb_root_path . 'includes/functions_selects.'.$phpEx); *************** *** 45,55 **** // Read language definition // ********************************************************************** ! if ( file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_weblog_admin.' . $phpEx ) ) ! { ! include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_weblog_admin.' . $phpEx ); ! } ! else if ( file_exists( $module_root_path . 'language/lang_english/lang_weblog_admin.' . $phpEx ) ) { ! include( $module_root_path . 'language/lang_english/lang_weblog_admin.' . $phpEx ); } --- 45,54 ---- // Read language definition // ********************************************************************** ! if ((@include $module_root_path . "language/lang_" . $default_lang . "/lang_weblog_admin.$phpEx") === false) { ! if ((@include $module_root_path . "language/lang_english/lang_weblog_admin.$phpEx") === false) ! { ! mx_message_die(CRITICAL_ERROR, 'Language file ' . $module_root_path . "language/lang_" . $default_lang . "/lang_weblog_admin.$phpEx" . ' couldn\'t be opened.'); ! } } *************** *** 70,74 **** $config_value = $row['config_value']; $default_config[$config_name] = isset($HTTP_POST_VARS['submit']) ? str_replace("'", "\'", $config_value) : $config_value; ! $new[$config_name] = ( isset($HTTP_POST_VARS[$config_name]) ) ? $HTTP_POST_VARS[$config_name] : $default_config[$config_name]; --- 69,73 ---- $config_value = $row['config_value']; $default_config[$config_name] = isset($HTTP_POST_VARS['submit']) ? str_replace("'", "\'", $config_value) : $config_value; ! $new[$config_name] = ( isset($HTTP_POST_VARS[$config_name]) ) ? $HTTP_POST_VARS[$config_name] : $default_config[$config_name]; *************** *** 159,163 **** // // Escape any quotes in the site description for proper display in the text ! // box on the admin page // $template->assign_vars(array( --- 158,162 ---- // // Escape any quotes in the site description for proper display in the text ! // box on the admin page // $template->assign_vars(array( *************** *** 244,246 **** include($mx_root_path . 'admin/page_footer_admin.'.$phpEx); ! ?> \ No newline at end of file --- 243,245 ---- include($mx_root_path . 'admin/page_footer_admin.'.$phpEx); ! ?> Index: admin_weblog_tools.php =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/admin/admin_weblog_tools.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** admin_weblog_tools.php 8 Feb 2008 23:37:20 -0000 1.3 --- admin_weblog_tools.php 10 Feb 2008 02:34:51 -0000 1.4 *************** *** 32,36 **** $module_root_path = "./../"; //include($mx_root_path . 'extension.inc'); ! $phpEx = substr(strrchr(__FILE__, '.'), 1); include($mx_root_path . 'common.'.$phpEx); include($mx_root_path . 'admin/pagestart.' . $phpEx); --- 32,36 ---- $module_root_path = "./../"; //include($mx_root_path . 'extension.inc'); ! $phpEx = substr(strrchr(__FILE__, '.'), 1); include($mx_root_path . 'common.'.$phpEx); include($mx_root_path . 'admin/pagestart.' . $phpEx); *************** *** 42,52 **** // Read language definition // ********************************************************************** ! if ( file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_weblog_admin.' . $phpEx ) ) ! { ! include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_weblog_admin.' . $phpEx ); ! } ! else if ( file_exists( $module_root_path . 'language/lang_english/lang_weblog_admin.' . $phpEx ) ) { ! include( $module_root_path . 'language/lang_english/lang_weblog_admin.' . $phpEx ); } --- 42,51 ---- // Read language definition // ********************************************************************** ! if ((@include $module_root_path . "language/lang_" . $default_lang . "/lang_weblog_admin.$phpEx") === false) { ! if ((@include $module_root_path . "language/lang_english/lang_weblog_admin.$phpEx") === false) ! { ! mx_message_die(CRITICAL_ERROR, 'Language file ' . $module_root_path . "language/lang_" . $default_lang . "/lang_weblog_admin.$phpEx" . ' couldn\'t be opened.'); ! } } *************** *** 83,87 **** 'L_FIND_USERNAME' => $lang['Find_username'], ! 'U_SEARCH_USER' => mx_append_sid($phpbb_root_path . "search.$phpEx?mode=searchuser"), 'S_USER_ACTION' => mx_append_sid("admin_weblog_tools.$phpEx?mode=user_admin"), --- 82,86 ---- 'L_FIND_USERNAME' => $lang['Find_username'], ! 'U_SEARCH_USER' => mx_append_sid($phpbb_root_path . "search.$phpEx?mode=searchuser"), 'S_USER_ACTION' => mx_append_sid("admin_weblog_tools.$phpEx?mode=user_admin"), *************** *** 311,315 **** 'L_FIND_USERNAME' => $lang['Find_username'], ! 'U_SEARCH_USER' => mx_append_sid($phpbb_root_path . "search.$phpEx?mode=searchuser"), 'S_PURGE_ACTION' => mx_append_sid("admin_weblog_tools.$phpEx?mode=purge"), --- 310,314 ---- 'L_FIND_USERNAME' => $lang['Find_username'], ! 'U_SEARCH_USER' => mx_append_sid($phpbb_root_path . "search.$phpEx?mode=searchuser"), 'S_PURGE_ACTION' => mx_append_sid("admin_weblog_tools.$phpEx?mode=purge"), *************** *** 344,348 **** $username = ( isset($HTTP_POST_VARS['username']) ) ? $HTTP_POST_VARS['username'] : ''; ! $sql = "SELECT * FROM " . USERS_TABLE . " WHERE username = '" . str_replace("\'", "''", $username) . "'"; if ( !($result = $db->sql_query($sql)) ) --- 343,347 ---- $username = ( isset($HTTP_POST_VARS['username']) ) ? $HTTP_POST_VARS['username'] : ''; ! $sql = "SELECT * FROM " . USERS_TABLE . " WHERE username = '" . str_replace("\'", "''", $username) . "'"; if ( !($result = $db->sql_query($sql)) ) *************** *** 420,422 **** include($mx_root_path . 'admin/page_footer_admin.'.$phpEx); ! ?> \ No newline at end of file --- 419,421 ---- include($mx_root_path . 'admin/page_footer_admin.'.$phpEx); ! ?> Index: admin_weblog_groups.php =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/admin/admin_weblog_groups.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** admin_weblog_groups.php 8 Feb 2008 23:37:18 -0000 1.3 --- admin_weblog_groups.php 10 Feb 2008 02:34:51 -0000 1.4 *************** *** 36,40 **** $mx_root_path = '../../../'; $music_root_path = $module_root_path . 'music_box/'; ! $phpEx = substr(strrchr(__FILE__, '.'), 1); require($mx_root_path . 'admin/pagestart.' . $phpEx); --- 36,40 ---- $mx_root_path = '../../../'; $music_root_path = $module_root_path . 'music_box/'; ! $phpEx = substr(strrchr(__FILE__, '.'), 1); require($mx_root_path . 'admin/pagestart.' . $phpEx); *************** *** 43,53 **** // Read language definition // ********************************************************************** ! if ( file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_weblog_admin.' . $phpEx ) ) ! { ! include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_weblog_admin.' . $phpEx ); ! } ! else if ( file_exists( $module_root_path . 'language/lang_english/lang_weblog_admin.' . $phpEx ) ) { ! include( $module_root_path . 'language/lang_english/lang_weblog_admin.' . $phpEx ); } --- 43,54 ---- // Read language definition // ********************************************************************** ! $default_lang = ($mx_user->lang['default_lang']) ? $mx_user->lang['default_lang'] : (($board_config['default_lang']) ? $board_config['default_lang'] : 'english'); ! ! if ((@include $module_root_path . "language/lang_" . $default_lang . "/lang_weblog_admin.$phpEx") === false) { ! if ((@include $module_root_path . "language/lang_english/lang_weblog_admin.$phpEx") === false) ! { ! mx_message_die(CRITICAL_ERROR, 'Language file ' . $module_root_path . "language/lang_" . $default_lang . "/lang_weblog_admin.$phpEx" . ' couldn\'t be opened.'); ! } } *************** *** 151,163 **** $template->assign_vars(array( 'GROUP_NAME' => $group_info['group_name'], ! 'GROUP_DESCRIPTION' => $group_info['group_description'], ! 'GROUP_MODERATOR' => $group_moderator, 'L_GROUP_TITLE' => $lang['Group_administration'], ! 'L_GROUP_EDIT_DELETE' => ( isset($HTTP_POST_VARS['new']) ) ? $lang['New_group'] : $lang['Edit_group'], 'L_GROUP_NAME' => $lang['group_name'], 'L_GROUP_DESCRIPTION' => $lang['group_description'], ! 'L_GROUP_MODERATOR' => $lang['group_moderator'], ! 'L_FIND_USERNAME' => $lang['Find_username'], 'L_GROUP_STATUS' => $lang['group_status'], 'L_GROUP_OPEN' => $lang['group_open'], --- 152,164 ---- $template->assign_vars(array( 'GROUP_NAME' => $group_info['group_name'], ! 'GROUP_DESCRIPTION' => $group_info['group_description'], ! 'GROUP_MODERATOR' => $group_moderator, 'L_GROUP_TITLE' => $lang['Group_administration'], ! 'L_GROUP_EDIT_DELETE' => ( isset($HTTP_POST_VARS['new']) ) ? $lang['New_group'] : $lang['Edit_group'], 'L_GROUP_NAME' => $lang['group_name'], 'L_GROUP_DESCRIPTION' => $lang['group_description'], ! 'L_GROUP_MODERATOR' => $lang['group_moderator'], ! 'L_FIND_USERNAME' => $lang['Find_username'], 'L_GROUP_STATUS' => $lang['group_status'], 'L_GROUP_OPEN' => $lang['group_open'], *************** *** 177,181 **** 'L_NO' => $lang['No'], 'S_GROUP_ALLOW_WEBLOGS_YES' => ( $group_info['group_allow_weblogs'] ) ? ' checked="checked"' : '', ! 'S_GROUP_ALLOW_WEBLOGS_NO' => ( !$group_info['group_allow_weblogs'] ) ? ' checked="checked"' : '', 'S_GROUP_OPEN_TYPE' => GROUP_OPEN, --- 178,182 ---- 'L_NO' => $lang['No'], 'S_GROUP_ALLOW_WEBLOGS_YES' => ( $group_info['group_allow_weblogs'] ) ? ' checked="checked"' : '', ! 'S_GROUP_ALLOW_WEBLOGS_NO' => ( !$group_info['group_allow_weblogs'] ) ? ' checked="checked"' : '', 'S_GROUP_OPEN_TYPE' => GROUP_OPEN, *************** *** 204,208 **** // Is Group moderating a forum ? ! $sql = "SELECT auth_mod FROM " . AUTH_ACCESS_TABLE . " WHERE group_id = " . $group_id; if ( !($result = $db->sql_query($sql)) ) --- 205,209 ---- // Is Group moderating a forum ? ! $sql = "SELECT auth_mod FROM " . AUTH_ACCESS_TABLE . " WHERE group_id = " . $group_id; if ( !($result = $db->sql_query($sql)) ) *************** *** 226,230 **** { $sql = "SELECT g.group_id FROM " . AUTH_ACCESS_TABLE . " a, " . GROUPS_TABLE . " g, " . USER_GROUP_TABLE . " ug ! WHERE (a.auth_mod = 1) AND (g.group_id = a.group_id) AND (a.group_id = ug.group_id) AND (g.group_id = ug.group_id) AND (ug.user_id = " . intval($rows[$i]['user_id']) . ") AND (ug.group_id <> " . $group_id . ")"; if ( !($result = $db->sql_query($sql)) ) --- 227,231 ---- { $sql = "SELECT g.group_id FROM " . AUTH_ACCESS_TABLE . " a, " . GROUPS_TABLE . " g, " . USER_GROUP_TABLE . " ug ! WHERE (a.auth_mod = 1) AND (g.group_id = a.group_id) AND (a.group_id = ug.group_id) AND (g.group_id = ug.group_id) AND (ug.user_id = " . intval($rows[$i]['user_id']) . ") AND (ug.group_id <> " . $group_id . ")"; if ( !($result = $db->sql_query($sql)) ) *************** *** 235,241 **** if ($db->sql_numrows($result) == 0) { ! $sql = "UPDATE " . USERS_TABLE . " SET user_level = " . USER . " WHERE user_level = " . MOD . " AND user_id = " . intval($rows[$i]['user_id']); ! if ( !$db->sql_query($sql) ) { --- 236,242 ---- if ($db->sql_numrows($result) == 0) { ! $sql = "UPDATE " . USERS_TABLE . " SET user_level = " . USER . " WHERE user_level = " . MOD . " AND user_id = " . intval($rows[$i]['user_id']); ! if ( !$db->sql_query($sql) ) { *************** *** 291,296 **** mx_message_die(GENERAL_MESSAGE, $lang['No_group_moderator']); } ! ! $this_userdata = get_userdata($group_moderator, true); $group_moderator = $this_userdata['user_id']; --- 292,297 ---- mx_message_die(GENERAL_MESSAGE, $lang['No_group_moderator']); } ! ! $this_userdata = mx_get_userdata($group_moderator, true); $group_moderator = $this_userdata['user_id']; *************** *** 299,303 **** mx_message_die(GENERAL_MESSAGE, $lang['No_group_moderator']); } ! if( $mode == "editgroup" ) { --- 300,304 ---- mx_message_die(GENERAL_MESSAGE, $lang['No_group_moderator']); } ! if( $mode == "editgroup" ) { *************** *** 315,319 **** mx_message_die(GENERAL_MESSAGE, $lang['Group_not_exist']); } ! if ( $group_info['group_moderator'] != $group_moderator ) { --- 316,320 ---- mx_message_die(GENERAL_MESSAGE, $lang['Group_not_exist']); } ! if ( $group_info['group_moderator'] != $group_moderator ) { *************** *** 321,325 **** { $sql = "DELETE FROM " . USER_GROUP_TABLE . " ! WHERE user_id = " . $group_info['group_moderator'] . " AND group_id = " . $group_id; if ( !$db->sql_query($sql) ) --- 322,326 ---- { $sql = "DELETE FROM " . USER_GROUP_TABLE . " ! WHERE user_id = " . $group_info['group_moderator'] . " AND group_id = " . $group_id; if ( !$db->sql_query($sql) ) *************** *** 329,335 **** } ! $sql = "SELECT user_id ! FROM " . USER_GROUP_TABLE . " ! WHERE user_id = $group_moderator AND group_id = $group_id"; if ( !($result = $db->sql_query($sql)) ) --- 330,336 ---- } ! $sql = "SELECT user_id ! FROM " . USER_GROUP_TABLE . " ! WHERE user_id = $group_moderator AND group_id = $group_id"; if ( !($result = $db->sql_query($sql)) ) *************** *** 350,354 **** $sql = "UPDATE " . GROUPS_TABLE . " ! SET group_type = $group_type, group_name = '" . str_replace("\'", "''", $group_name) . "', group_description = '" . str_replace("\'", "''", $group_description) . "', group_moderator = $group_moderator, group_allow_weblogs = $group_allow_weblogs WHERE group_id = $group_id"; if ( !$db->sql_query($sql) ) --- 351,355 ---- $sql = "UPDATE " . GROUPS_TABLE . " ! SET group_type = $group_type, group_name = '" . str_replace("\'", "''", $group_name) . "', group_description = '" . str_replace("\'", "''", $group_description) . "', group_moderator = $group_moderator, group_allow_weblogs = $group_allow_weblogs WHERE group_id = $group_id"; if ( !$db->sql_query($sql) ) *************** *** 356,360 **** mx_message_die(GENERAL_ERROR, 'Could not update group', '', __LINE__, __FILE__, $sql); } ! $message = $lang['Updated_group'] . '<br /><br />' . sprintf($lang['Click_return_groupsadmin'], '<a href="' . mx_append_sid("admin_weblog_groups.$phpEx") . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . mx_append_sid("index.$phpEx?pane=right") . '">', '</a>');; --- 357,361 ---- mx_message_die(GENERAL_ERROR, 'Could not update group', '', __LINE__, __FILE__, $sql); } ! $message = $lang['Updated_group'] . '<br /><br />' . sprintf($lang['Click_return_groupsadmin'], '<a href="' . mx_append_sid("admin_weblog_groups.$phpEx") . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . mx_append_sid("index.$phpEx?pane=right") . '">', '</a>');; *************** *** 363,367 **** else if( $mode == 'newgroup' ) { ! $sql = "INSERT INTO " . GROUPS_TABLE . " (group_type, group_name, group_description, group_moderator, group_single_user, group_allow_weblogs) VALUES ($group_type, '" . str_replace("\'", "''", $group_name) . "', '" . str_replace("\'", "''", $group_description) . "', $group_moderator, '0', $group_allow_weblogs)"; if ( !$db->sql_query($sql) ) --- 364,368 ---- else if( $mode == 'newgroup' ) { ! $sql = "INSERT INTO " . GROUPS_TABLE . " (group_type, group_name, group_description, group_moderator, group_single_user, group_allow_weblogs) VALUES ($group_type, '" . str_replace("\'", "''", $group_name) . "', '" . str_replace("\'", "''", $group_description) . "', $group_moderator, '0', $group_allow_weblogs)"; if ( !$db->sql_query($sql) ) *************** *** 377,381 **** mx_message_die(GENERAL_ERROR, 'Could not insert new user-group info', '', __LINE__, __FILE__, $sql); } ! $message = $lang['Added_new_group'] . '<br /><br />' . sprintf($lang['Click_return_groupsadmin'], '<a href="' . mx_append_sid("admin_weblog_groups.$phpEx") . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . mx_append_sid("index.$phpEx?pane=right") . '">', '</a>');; --- 378,382 ---- mx_message_die(GENERAL_ERROR, 'Could not insert new user-group info', '', __LINE__, __FILE__, $sql); } ! $message = $lang['Added_new_group'] . '<br /><br />' . sprintf($lang['Click_return_groupsadmin'], '<a href="' . mx_append_sid("admin_weblog_groups.$phpEx") . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . mx_append_sid("index.$phpEx?pane=right") . '">', '</a>');; *************** *** 437,439 **** include($mx_root_path . 'admin/page_footer_admin.'.$phpEx); ! ?> \ No newline at end of file --- 438,440 ---- include($mx_root_path . 'admin/page_footer_admin.'.$phpEx); ! ?> |
|
From: OryNider <ory...@us...> - 2008-02-10 02:34:59
|
Update of /cvsroot/mxbb/mx_blogs In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18506 Modified Files: db_install.php db_uninstall.php trackback.php weblog.php weblog_allentries.php weblog_blocked.php weblog_config.php weblog_contributors.php weblog_entry.php weblog_friends.php weblog_posting.php weblog_rss.php weblogs.php Log Message: Index: weblog_friends.php =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/weblog_friends.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** weblog_friends.php 8 Feb 2008 23:37:23 -0000 1.2 --- weblog_friends.php 10 Feb 2008 02:34:50 -0000 1.3 *************** *** 1,46 **** <?php ! /*************************************************************************** ! * weblog_friends.php ! * ------------------------ ! * begin : Monday, September 5, 2004 ! * copyright : (C) 2005 Hyperion ! * email : vi...@ho... ! * ! * $Id$ ! * ! ***************************************************************************/ ! /*************************************************************************** ! * ! * This program is free software; you can redistribute it and/or modify ! * it under the terms of the GNU General Public License as published by ! * the Free Software Foundation; either version 2 of the License, or ! * (at your option) any later version. ! * ! ***************************************************************************/ ! define('IN_PHPBB', true); ! define('IN_PORTAL', true); ! //$phpbb_root_path = './'; ! $mx_root_path = '../../'; ! $module_root_path = './'; ! //include($mx_root_path . 'extension.inc'); ! $phpEx = substr(strrchr(__FILE__, '.'), 1); ! include($mx_root_path . 'common.'.$phpEx); ! include_once($phpbb_root_path . 'includes/bbcode.'.$phpEx); ! // ! // Start session management ! // ! $userdata = session_pagestart($user_ip, PAGE_INDEX); ! init_userprefs($userdata); ! // ! // End session management ! // ! //include($phpbb_root_path . 'includes/weblogs_common.'.$phpEx); ! include($module_root_path . 'includes/weblogs_constants.'.$phpEx); ! include($module_root_path . 'includes/weblogs_common.'.$phpEx); ! // // Start initial var setup // --- 1,58 ---- <?php ! /** ! * ! * @package MX-Publisher Module - mx_blogs ! * @version $Id$ ! * @copyright (c) 2005 Hyperion, vi...@ho... ! * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 ! * @link http://www.mx-publisher.com ! * ! */ ! if( !defined('IN_PORTAL') || !is_object($mx_block)) ! { ! @define('IN_PHPBB', true); ! @define('IN_PORTAL', true); + $mx_root_path = "../../"; + $module_root_path = "./"; ! $phpEx = substr(strrchr(__FILE__, '.'), 1); ! include_once($mx_root_path . 'common.'.$phpEx); ! ! // ! // Start session management ! // ! $mx_user->init($user_ip, PAGE_INDEX); ! // ! // End session management ! // ! ! $title = 'Media Player Radio'; ! $block_size = ( isset($block_size) && !empty($block_size) ? $block_size : '315' ); ! $player_size = ( isset($block_size) && !empty($block_size) ? $block_size - 15 : '300' ); ! ! $is_block = FALSE; ! } ! else ! { ! // ! // Read block Configuration ! // ! ! $title = $mx_block->block_info['block_title']; ! $block_size = $player_size = ( isset($block_size) && !empty($block_size) ? $block_size : '100%' ); ! ! if( is_object($mx_block)) ! { ! $is_block = TRUE; ! } ! } ! ! include($module_root_path . 'includes/weblogs_common.'.$phpEx); ! require($phpbb_root_path . 'includes/bbcode.'.$phpEx); ! ! // // Start initial var setup // *************** *** 243,247 **** // Get this user's friends data // ! $sql = "SELECT f.friend_id, u.*, w.* FROM " . WEBLOG_FRIENDS_TABLE . " f, " . USERS_TABLE . " u, " . WEBLOGS_TABLE . " w WHERE f.owner_id = $user_id --- 255,259 ---- // Get this user's friends data // ! $sql = "SELECT f.friend_id, u.*, w.* FROM " . WEBLOG_FRIENDS_TABLE . " f, " . USERS_TABLE . " u, " . WEBLOGS_TABLE . " w WHERE f.owner_id = $user_id *************** *** 310,314 **** // $friend_entry_data['entry_text'] = htmlspecialchars($friend_entry_data['entry_text']); ! // BBCode if ( $friend_entry_data['enable_bbcode'] ) --- 322,326 ---- // $friend_entry_data['entry_text'] = htmlspecialchars($friend_entry_data['entry_text']); ! // BBCode if ( $friend_entry_data['enable_bbcode'] ) *************** *** 316,320 **** $friend_entry_data['entry_text'] = bbencode_second_pass($friend_entry_data['entry_text'], $friend_entry_data['bbcode_uid']); } ! // Smilies if ( $friend_entry_data['enable_smilies'] ) --- 328,332 ---- $friend_entry_data['entry_text'] = bbencode_second_pass($friend_entry_data['entry_text'], $friend_entry_data['bbcode_uid']); } ! // Smilies if ( $friend_entry_data['enable_smilies'] ) *************** *** 322,328 **** $friend_entry_data['entry_text'] = smilies_pass($friend_entry_data['entry_text']); } ! $friend_entry_data['entry_text'] = make_clickable($friend_entry_data['entry_text']); ! if ( !$weblog_config['censor_weblog'] ) { --- 334,340 ---- $friend_entry_data['entry_text'] = smilies_pass($friend_entry_data['entry_text']); } ! $friend_entry_data['entry_text'] = make_clickable($friend_entry_data['entry_text']); ! if ( !$weblog_config['censor_weblog'] ) { *************** *** 331,335 **** $replacement_word = array(); obtain_word_list($orig_word, $replacement_word); ! // Censor text and title if (count($orig_word)) --- 343,347 ---- $replacement_word = array(); obtain_word_list($orig_word, $replacement_word); ! // Censor text and title if (count($orig_word)) *************** *** 347,351 **** if ( $mood >= 0 ) ! { $mood = '<strong>[</strong> ' . sprintf($lang['Mood:'], '<img src="modules/mx_blogs/images/weblogs/' . $mood['mood_url'] . '" alt="' . $mood['mood_text'] . '" style="vertical-align: middle" border="0" />', $mood['mood_text']) . ' <strong>]</strong>'; } --- 359,363 ---- if ( $mood >= 0 ) ! { $mood = '<strong>[</strong> ' . sprintf($lang['Mood:'], '<img src="modules/mx_blogs/images/weblogs/' . $mood['mood_url'] . '" alt="' . $mood['mood_text'] . '" style="vertical-align: middle" border="0" />', $mood['mood_text']) . ' <strong>]</strong>'; } *************** *** 371,375 **** $action = ''; } ! $time = create_date($board_config['default_dateformat'], $friend_entry_data['entry_time'], $board_config['board_timezone']); --- 383,387 ---- $action = ''; } ! $time = create_date($board_config['default_dateformat'], $friend_entry_data['entry_time'], $board_config['board_timezone']); *************** *** 457,461 **** mx_message_die(GENERAL_ERROR, "Couldn't get friend of information.", "", __LINE__, __FILE__, $sql); } ! while ( $row = $db->sql_fetchrow($result) ) { --- 469,473 ---- mx_message_die(GENERAL_ERROR, "Couldn't get friend of information.", "", __LINE__, __FILE__, $sql); } ! while ( $row = $db->sql_fetchrow($result) ) { *************** *** 476,480 **** mx_message_die(GENERAL_ERROR, "Couldn't get friend of information.", "", __LINE__, __FILE__, $sql); } ! while ( $row = $db->sql_fetchrow($result) ) { --- 488,492 ---- mx_message_die(GENERAL_ERROR, "Couldn't get friend of information.", "", __LINE__, __FILE__, $sql); } ! while ( $row = $db->sql_fetchrow($result) ) { *************** *** 525,527 **** use_weblog_footer ($weblog_data, $template_dir); ! ?> \ No newline at end of file --- 537,539 ---- use_weblog_footer ($weblog_data, $template_dir); ! ?> Index: weblog_posting.php =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/weblog_posting.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** weblog_posting.php 31 Jan 2008 03:36:34 -0000 1.2 --- weblog_posting.php 10 Feb 2008 02:34:50 -0000 1.3 *************** *** 1,22 **** <?php ! /*************************************************************************** ! * weblog_posting.php ! * ------------------------ ! * begin : Monday, September 5, 2004 ! * copyright : (C) 2005 Hyperion ! * email : vi...@ho... ! * ! * $Id$ ! * ! ***************************************************************************/ ! ! /*************************************************************************** ! * ! * This program is free software; you can redistribute it and/or modify ! * it under the terms of the GNU General Public License as published by ! * the Free Software Foundation; either version 2 of the License, or ! * (at your option) any later version. ! * ! ***************************************************************************/ define('IN_PHPBB', true); --- 1,12 ---- <?php ! /** ! * ! * @package MX-Publisher Module - mx_blogs ! * @version $Id$ ! * @copyright (c) 2005 Hyperion, vi...@ho... ! * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 ! * @link http://www.mx-publisher.com ! * ! */ define('IN_PHPBB', true); Index: weblog_contributors.php =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/weblog_contributors.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** weblog_contributors.php 8 Feb 2008 23:37:22 -0000 1.3 --- weblog_contributors.php 10 Feb 2008 02:34:50 -0000 1.4 *************** *** 29,33 **** //include($phpbb_root_path . 'includes/weblogs_common.'.$phpEx); //include($mx_root_path . 'extension.inc'); ! $phpEx = substr(strrchr(__FILE__, '.'), 1); include($mx_root_path . 'common.'.$phpEx); --- 29,33 ---- //include($phpbb_root_path . 'includes/weblogs_common.'.$phpEx); //include($mx_root_path . 'extension.inc'); ! $phpEx = substr(strrchr(__FILE__, '.'), 1); include($mx_root_path . 'common.'.$phpEx); *************** *** 45,49 **** ! // // Start initial var setup // --- 45,49 ---- ! // // Start initial var setup // *************** *** 267,271 **** mx_message_die(GENERAL_ERROR, "Couldn't get contributors information.", "", __LINE__, __FILE__, $sql); } ! while ( $row = $db->sql_fetchrow($result) ) { --- 267,271 ---- mx_message_die(GENERAL_ERROR, "Couldn't get contributors information.", "", __LINE__, __FILE__, $sql); } ! while ( $row = $db->sql_fetchrow($result) ) { *************** *** 309,311 **** use_weblog_footer ( $weblog_data, $template_dir); ! ?> \ No newline at end of file --- 309,311 ---- use_weblog_footer ( $weblog_data, $template_dir); ! ?> Index: db_uninstall.php =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/db_uninstall.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** db_uninstall.php 8 Feb 2008 23:37:21 -0000 1.2 --- db_uninstall.php 10 Feb 2008 02:34:49 -0000 1.3 *************** *** 20,24 **** include($mx_root_path . 'extension.inc'); include($mx_root_path . 'common.'.$phpEx); ! // // Start session management --- 20,24 ---- include($mx_root_path . 'extension.inc'); include($mx_root_path . 'common.'.$phpEx); ! // // Start session management *************** *** 26,43 **** $userdata = session_pagestart($user_ip, PAGE_INDEX); mx_init_userprefs($userdata); ! if( !$userdata['session_logged_in'] ) ! { ! die("Hacking attempt(3)"); ! } ! ! if( $userdata['user_level'] != ADMIN ) ! { ! die("Hacking attempt(4)"); } // // End session management // ! } --- 26,43 ---- $userdata = session_pagestart($user_ip, PAGE_INDEX); mx_init_userprefs($userdata); + + if( !$userdata['session_logged_in'] ) + { + die("Hacking attempt(3)"); + } ! if( $userdata['user_level'] != ADMIN ) ! { ! die("Hacking attempt(4)"); } // // End session management // ! } *************** *** 86,88 **** echo "</table><br />"; ! ?> \ No newline at end of file --- 86,88 ---- echo "</table><br />"; ! ?> Index: weblog_entry.php =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/weblog_entry.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** weblog_entry.php 8 Feb 2008 23:37:22 -0000 1.3 --- weblog_entry.php 10 Feb 2008 02:34:50 -0000 1.4 *************** *** 1,22 **** <?php ! /*************************************************************************** ! * weblog_entry.php ! * ---------------------- ! * begin : Monday, September 5, 2004 ! * copyright : (C) 2005 Hyperion ! * email : vi...@ho... ! * ! * $Id$ ! * ! ***************************************************************************/ ! ! /*************************************************************************** ! * ! * This program is free software; you can redistribute it and/or modify ! * it under the terms of the GNU General Public License as published by ! * the Free Software Foundation; either version 2 of the License, or ! * (at your option) any later version. ! * ! ***************************************************************************/ define('IN_PHPBB', true); --- 1,12 ---- <?php ! /** ! * ! * @package MX-Publisher Module - mx_blogs ! * @version $Id$ ! * @copyright (c) 2005 Hyperion, vi...@ho... ! * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 ! * @link http://www.mx-publisher.com ! * ! */ define('IN_PHPBB', true); *************** *** 24,28 **** $mx_root_path = '../../'; $module_root_path = './'; ! $phpEx = substr(strrchr(__FILE__, '.'), 1); include($mx_root_path . 'common.'.$phpEx); --- 14,18 ---- $mx_root_path = '../../'; $module_root_path = './'; ! $phpEx = substr(strrchr(__FILE__, '.'), 1); include($mx_root_path . 'common.'.$phpEx); *************** *** 374,389 **** // Parse message and/or sig for BBCode if reqd // ! if ( $board_config['allow_bbcode'] ) ! { ! if ( $entry_data['bbcode_uid'] != '' ) ! { ! if (!function_exists('bbencode_second_pass')) { include_once($phpbb_root_path . 'includes/bbcode.' .$phpEx); } - - $message = ( $board_config['allow_bbcode'] ) ? bbencode_second_pass($message, $entry_data['bbcode_uid']) : preg_replace('/\:[0-9a-z\:]+\]/si', ']', $entry_data['entry_text']); - } } --- 364,374 ---- // Parse message and/or sig for BBCode if reqd // ! if (($board_config['allow_bbcode']) && ($entry_data['bbcode_uid'])) ! { ! if (!function_exists('bbencode_second_pass')) { include_once($phpbb_root_path . 'includes/bbcode.' .$phpEx); } $message = ( $board_config['allow_bbcode'] ) ? bbencode_second_pass($message, $entry_data['bbcode_uid']) : preg_replace('/\:[0-9a-z\:]+\]/si', ']', $entry_data['entry_text']); } *************** *** 431,435 **** if ( $mood >= 0 ) ! { $mood = '<strong>[</strong> ' . sprintf($lang['Mood:'], '<img src="' . $mx_root_path . 'modules/mx_blogs/images/weblogs/' . $mood['mood_url'] . '" alt="' . $mood_data['mood_text'] . '" style="vertical-align: middle" border="0" />', $mood['mood_text']) . ' <strong>]</strong>'; } --- 416,420 ---- if ( $mood >= 0 ) ! { $mood = '<strong>[</strong> ' . sprintf($lang['Mood:'], '<img src="' . $mx_root_path . 'modules/mx_blogs/images/weblogs/' . $mood['mood_url'] . '" alt="' . $mood_data['mood_text'] . '" style="vertical-align: middle" border="0" />', $mood['mood_text']) . ' <strong>]</strong>'; } *************** *** 484,488 **** if ( $entry_data['entry_trackbacks'] >= 1 ) { ! $pagination = generate_pagination($mx_root_path . "modules/mx_blogs/weblog_entry.$phpEx?" . POST_ENTRY_URL . "=$entry_id&tb=1&start=$start", $entry_data['entry_trackbacks'], $weblog_entry_data['entries_perpage'], $start); $page_number = sprintf($lang['Page_of'], ( floor( $start / intval($weblog_entry_data['entries_perpage']) ) + 1 ), ceil( $entry_data['entry_trackbacks'] / intval($weblog_entry_data['entries_perpage']) )); } --- 469,473 ---- if ( $entry_data['entry_trackbacks'] >= 1 ) { ! $pagination = mx_generate_pagination($mx_root_path . "modules/mx_blogs/weblog_entry.$phpEx?" . POST_ENTRY_URL . "=$entry_id&tb=1&start=$start", $entry_data['entry_trackbacks'], $weblog_entry_data['entries_perpage'], $start); $page_number = sprintf($lang['Page_of'], ( floor( $start / intval($weblog_entry_data['entries_perpage']) ) + 1 ), ceil( $entry_data['entry_trackbacks'] / intval($weblog_entry_data['entries_perpage']) )); } *************** *** 490,494 **** else if ( $weblog_entry_data['entry_replies'] >= 1 ) { ! $pagination = generate_pagination($mx_root_path . "modules/mx_blogs/weblog_entry.$phpEx?" . POST_ENTRY_URL . "=$entry_id&postdays=$post_days&postorder=$post_order", $weblog_entry_data['entry_replies'], $weblog_entry_data['entries_perpage'], $start); $page_number = sprintf($lang['Page_of'], ( floor( $start / intval($weblog_entry_data['entries_perpage']) ) + 1 ), ceil( $weblog_entry_data['entry_replies'] / intval($weblog_entry_data['entries_perpage']) )); } --- 475,479 ---- else if ( $weblog_entry_data['entry_replies'] >= 1 ) { ! $pagination = mx_generate_pagination($mx_root_path . "modules/mx_blogs/weblog_entry.$phpEx?" . POST_ENTRY_URL . "=$entry_id&postdays=$post_days&postorder=$post_order", $weblog_entry_data['entry_replies'], $weblog_entry_data['entries_perpage'], $start); $page_number = sprintf($lang['Page_of'], ( floor( $start / intval($weblog_entry_data['entries_perpage']) ) + 1 ), ceil( $weblog_entry_data['entry_replies'] / intval($weblog_entry_data['entries_perpage']) )); } *************** *** 859,868 **** { $post_subject = preg_replace($orig_word, $replacement_word, $post_subject); ! if ($user_sig != '') { $user_sig = str_replace('\"', '"', substr(preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "preg_replace(\$orig_word, \$replacement_word, '\\0')", '>' . $user_sig . '<'), 1, -1)); } ! $message = str_replace('\"', '"', substr(preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "preg_replace(\$orig_word, \$replacement_word, '\\0')", '>' . $message . '<'), 1, -1)); } --- 844,853 ---- { $post_subject = preg_replace($orig_word, $replacement_word, $post_subject); ! if ($user_sig != '') { $user_sig = str_replace('\"', '"', substr(preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "preg_replace(\$orig_word, \$replacement_word, '\\0')", '>' . $user_sig . '<'), 1, -1)); } ! $message = str_replace('\"', '"', substr(preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "preg_replace(\$orig_word, \$replacement_word, '\\0')", '>' . $message . '<'), 1, -1)); } *************** *** 1050,1052 **** use_weblog_footer ( $weblog_entry_data, $template_dir ); ! ?> \ No newline at end of file --- 1035,1037 ---- use_weblog_footer ( $weblog_entry_data, $template_dir ); ! ?> Index: weblog_config.php =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/weblog_config.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** weblog_config.php 8 Feb 2008 23:37:22 -0000 1.4 --- weblog_config.php 10 Feb 2008 02:34:49 -0000 1.5 *************** *** 1,22 **** <?php ! /*************************************************************************** ! * weblog_config.php ! * ----------------------- ! * begin : Monday, September 5, 2004 ! * copyright : (C) 2005 Hyperion ! * email : vi...@ho... ! * ! * $Id$ ! * ! ***************************************************************************/ ! ! /*************************************************************************** ! * ! * This program is free software; you can redistribute it and/or modify ! * it under the terms of the GNU General Public License as published by ! * the Free Software Foundation; either version 2 of the License, or ! * (at your option) any later version. ! * ! ***************************************************************************/ // --- 1,12 ---- <?php ! /** ! * ! * @package MX-Publisher Module - mx_blogs ! * @version $Id$ ! * @copyright (c) 2005 Hyperion, vi...@ho... ! * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 ! * @link http://www.mx-publisher.com ! * ! */ // *************** *** 24,28 **** // //error_reporting( E_ALL ); ! @ini_set( 'display_errors', '1' ); if( !defined('IN_PORTAL') || !is_object($mx_block)) --- 14,18 ---- // //error_reporting( E_ALL ); ! @ini_set( 'display_errors', '1' ); if( !defined('IN_PORTAL') || !is_object($mx_block)) *************** *** 141,145 **** mx_message_die(GENERAL_ERROR, "Couldn't get weblog template information.", "", __LINE__, __FILE__, $sql); } ! if ( !($row = $db->sql_fetchrow($result)) ) { --- 131,135 ---- mx_message_die(GENERAL_ERROR, "Couldn't get weblog template information.", "", __LINE__, __FILE__, $sql); } ! if ( !($row = $db->sql_fetchrow($result)) ) { *************** *** 206,210 **** $show_weblog_info = ( isset($HTTP_POST_VARS['show_weblog_info']) ) ? intval($HTTP_POST_VARS['show_weblog_info']) : 1; $show_shoutbox = ( isset($HTTP_POST_VARS['show_shoutbox']) ) ? intval($HTTP_POST_VARS['show_shoutbox']) : 1; ! $show_categorybox = ( isset($HTTP_POST_VARS['show_categorybox']) ) ? intval($HTTP_POST_VARS['show_categorybox']) : 1; $reply_in_popup = ( isset($HTTP_POST_VARS['reply_in_popup']) ) ? intval($HTTP_POST_VARS['reply_in_popup']) : 1; $shoutbox_desc = ( isset($HTTP_POST_VARS['shoutbox_desc']) ) ? intval($HTTP_POST_VARS['shoutbox_desc']) : 1; --- 196,200 ---- $show_weblog_info = ( isset($HTTP_POST_VARS['show_weblog_info']) ) ? intval($HTTP_POST_VARS['show_weblog_info']) : 1; $show_shoutbox = ( isset($HTTP_POST_VARS['show_shoutbox']) ) ? intval($HTTP_POST_VARS['show_shoutbox']) : 1; ! $show_categorybox = ( isset($HTTP_POST_VARS['show_categorybox']) ) ? intval($HTTP_POST_VARS['show_categorybox']) : 1; $reply_in_popup = ( isset($HTTP_POST_VARS['reply_in_popup']) ) ? intval($HTTP_POST_VARS['reply_in_popup']) : 1; $shoutbox_desc = ( isset($HTTP_POST_VARS['shoutbox_desc']) ) ? intval($HTTP_POST_VARS['shoutbox_desc']) : 1; *************** *** 623,627 **** $sql = "UPDATE " . WEBLOGS_TABLE . " SET template_id = $weblog_template, ! weblog_name = '" . str_replace("\'", "''", $weblog_name) . "', weblog_desc = '" . str_replace("\'", "''", $weblog_desc) . "', weblog_auth = $weblog_auth, --- 613,617 ---- $sql = "UPDATE " . WEBLOGS_TABLE . " SET template_id = $weblog_template, ! weblog_name = '" . str_replace("\'", "''", $weblog_name) . "', weblog_desc = '" . str_replace("\'", "''", $weblog_desc) . "', weblog_auth = $weblog_auth, *************** *** 981,985 **** 'SHOUTBOX_ASC' => ( !$weblog_data['weblog_shoutbox_desc'] ) ? ' checked="checked"' : '', 'PREVIEW_IMG' => $module_root_path . 'weblogs/templates/' . get_template_dir($template_data[0]['template_id']) . '/preview_img.gif', ! 'DELETE_NAME' => ( $weblog_data['deleted'] ) ? 'undelete' : 'delete', 'L_DELETE_WEBLOG' => ( $weblog_data['deleted'] ) ? $lang['Weblog_undelete'] : $lang['Weblog_delete'], --- 971,975 ---- 'SHOUTBOX_ASC' => ( !$weblog_data['weblog_shoutbox_desc'] ) ? ' checked="checked"' : '', 'PREVIEW_IMG' => $module_root_path . 'weblogs/templates/' . get_template_dir($template_data[0]['template_id']) . '/preview_img.gif', ! 'DELETE_NAME' => ( $weblog_data['deleted'] ) ? 'undelete' : 'delete', 'L_DELETE_WEBLOG' => ( $weblog_data['deleted'] ) ? $lang['Weblog_undelete'] : $lang['Weblog_delete'], *************** *** 1006,1008 **** //include($mx_root_path . 'includes/page_tail.'.$phpEx); ! ?> \ No newline at end of file --- 996,998 ---- //include($mx_root_path . 'includes/page_tail.'.$phpEx); ! ?> Index: weblog_blocked.php =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/weblog_blocked.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** weblog_blocked.php 8 Feb 2008 23:37:21 -0000 1.2 --- weblog_blocked.php 10 Feb 2008 02:34:49 -0000 1.3 *************** *** 1,49 **** <?php ! /*************************************************************************** ! * weblog_blocked.php ! * ------------------------ ! * begin : Monday, September 5, 2004 ! * copyright : (C) 2005 Hyperion ! * email : vi...@ho... ! * ! * $Id$ ! * ! ***************************************************************************/ - /*************************************************************************** - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - ***************************************************************************/ ! define('IN_PHPBB', true); ! define('IN_PORTAL', true); ! //$phpbb_root_path = './'; ! $mx_root_path = '../../'; ! $module_root_path = './'; ! //include($phpbb_root_path . 'extension.inc'); ! //include($phpbb_root_path . 'common.'.$phpEx); ! //include($phpbb_root_path . 'includes/weblogs_common.'.$phpEx); ! //include($mx_root_path . 'extension.inc'); ! $phpEx = substr(strrchr(__FILE__, '.'), 1); ! include($mx_root_path . 'common.'.$phpEx); ! // ! // Start session management ! // ! //$userdata = session_pagestart($user_ip, PAGE_INDEX); ! //init_userprefs($userdata); ! $mx_user->init($user_ip, PAGE_INDEX); ! // ! // End session management ! // ! include($mx_root_path . 'modules/mx_blogs/includes/weblogs_constants.'.$phpEx); include($mx_root_path . 'modules/mx_blogs/includes/weblogs_common.'.$phpEx); ! // // Start initial var setup // --- 1,55 ---- <?php ! /** ! * ! * @package MX-Publisher Module - mx_blogs ! * @version $Id$ ! * @copyright (c) 2005 Hyperion, vi...@ho... ! * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 ! * @link http://www.mx-publisher.com ! * ! */ ! if( !defined('IN_PORTAL') || !is_object($mx_block)) ! { ! @define('IN_PHPBB', true); ! @define('IN_PORTAL', true); ! $mx_root_path = "../../"; ! $module_root_path = "./"; ! ! $phpEx = substr(strrchr(__FILE__, '.'), 1); ! include_once($mx_root_path . 'common.'.$phpEx); ! ! // ! // Start session management ! // ! $mx_user->init($user_ip, PAGE_INDEX); ! // ! // End session management ! // ! ! $title = 'Media Player Radio'; ! $block_size = ( isset($block_size) && !empty($block_size) ? $block_size : '315' ); ! $is_block = FALSE; ! } ! else ! { ! // ! // Read block Configuration ! // ! ! $title = $mx_block->block_info['block_title']; ! $block_size = ( isset($block_size) && !empty($block_size) ? $block_size : '100%' ); ! ! if( is_object($mx_block)) ! { ! $is_block = TRUE; ! } ! } include($mx_root_path . 'modules/mx_blogs/includes/weblogs_common.'.$phpEx); ! // // Start initial var setup // *************** *** 278,282 **** mx_message_die(GENERAL_ERROR, "Couldn't get blocked user information.", "", __LINE__, __FILE__, $sql); } ! while ( $row = $db->sql_fetchrow($result) ) { --- 284,288 ---- mx_message_die(GENERAL_ERROR, "Couldn't get blocked user information.", "", __LINE__, __FILE__, $sql); } ! while ( $row = $db->sql_fetchrow($result) ) { *************** *** 319,321 **** use_weblog_footer ( $weblog_data, $template_dir); ! ?> \ No newline at end of file --- 325,327 ---- use_weblog_footer ( $weblog_data, $template_dir); ! ?> Index: weblogs.php =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/weblogs.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** weblogs.php 8 Feb 2008 23:37:23 -0000 1.5 --- weblogs.php 10 Feb 2008 02:34:50 -0000 1.6 *************** *** 1,12 **** <?php ! /*************************************************************************** ! * File : weblogs.php ! * Copyright :(C) 2005 Hyperion, mxBB Project Team ! * website : www.mxbb.net * ! * File ID : $Id$ ! * Last Modified : $Date$ * ! ***************************************************************************/ // --- 1,12 ---- <?php ! /** * ! * @package MX-Publisher Module - mx_blogs ! * @version $Id$ ! * @copyright (c) 2002-2008 [Jon Ohlsson] MX-Publisher Project Team ! * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 ! * @link http://www.mx-publisher.com * ! */ // *************** *** 14,18 **** // //error_reporting( E_ALL ); ! @ini_set( 'display_errors', '1' ); if( !defined('IN_PORTAL') || !is_object($mx_block)) --- 14,18 ---- // //error_reporting( E_ALL ); ! @ini_set( 'display_errors', '1' ); if( !defined('IN_PORTAL') || !is_object($mx_block)) *************** *** 195,199 **** // Viewer of own weblog presumed to have maximum authentication... $sql = "SELECT * FROM " . WEBLOG_ENTRIES_TABLE . " ! WHERE weblog_id = " . $userdata['user_weblog'] . " AND entry_deleted <> " . TRUE . " ORDER BY entry_time DESC LIMIT 1"; --- 195,199 ---- // Viewer of own weblog presumed to have maximum authentication... $sql = "SELECT * FROM " . WEBLOG_ENTRIES_TABLE . " ! WHERE weblog_id = " . $userdata['user_weblog'] . " AND entry_deleted <> " . TRUE . " ORDER BY entry_time DESC LIMIT 1"; *************** *** 211,215 **** if ( $mood >= 0 ) ! { $mood = sprintf($lang['Mood:'], '<img src="modules/mx_blogs/images/weblogs/' . $mood['mood_url'] . '" alt="' . $mood_data['mood_text'] . '" style="vertical-align: middle" border="0" />', $mood['mood_text']); } --- 211,215 ---- if ( $mood >= 0 ) ! { $mood = sprintf($lang['Mood:'], '<img src="modules/mx_blogs/images/weblogs/' . $mood['mood_url'] . '" alt="' . $mood_data['mood_text'] . '" style="vertical-align: middle" border="0" />', $mood['mood_text']); } *************** *** 225,229 **** if ( $currently > 0 ) { ! $action = sprintf($lang['Currently:'], '<img src="modules/mx_blogs/images/weblogs/' . $currently['action_url'] . '" alt="' . $currently['action_text'] . ' ' . $last_entry_data['currently_text'] . '" style="vertical-align: middle" border="0" />', $currently['action_text'] . ' ' . $last_entry_data['currently_text']); } else if ( $last_entry_data['currently_text'] && $currently == -2 ) --- 225,229 ---- if ( $currently > 0 ) { ! $action = sprintf($lang['Currently:'], '<img src="modules/mx_blogs/images/weblogs/' . $currently['action_url'] . '" alt="' . $currently['action_text'] . ' ' . $last_entry_data['currently_text'] . '" style="vertical-align: middle" border="0" />', $currently['action_text'] . ' ' . $last_entry_data['currently_text']); } else if ( $last_entry_data['currently_text'] && $currently == -2 ) *************** *** 452,456 **** 'L_LAST_SEEN' => $lang['Last_seen'], 'PAGE_NUMBER' => sprintf($lang['Page_of'], ( floor( $start / $count ) + 1 ), ceil( count($weblog_data) / $count )), ! 'PAGINATION' => generate_pagination($mx_root_path . "index.$phpEx?page=" . $weblog_config['mx_weblog_list'] . "&count=$count&sort=$sort&order=$order", count($weblog_data), $count, $start)) ); --- 452,456 ---- 'L_LAST_SEEN' => $lang['Last_seen'], 'PAGE_NUMBER' => sprintf($lang['Page_of'], ( floor( $start / $count ) + 1 ), ceil( count($weblog_data) / $count )), ! 'PAGINATION' => mx_generate_pagination($mx_root_path . "index.$phpEx?page=" . $weblog_config['mx_weblog_list'] . "&count=$count&sort=$sort&order=$order", count($weblog_data), $count, $start)) ); *************** *** 535,539 **** if ( $mood >= 0 ) ! { $mood = sprintf($lang['Mood:'], '<img src="modules/mx_blogs/images/weblogs/' . $mood['mood_url'] . '" alt="' . $mood_data['mood_text'] . '" style="vertical-align: middle" border="0" />', $mood['mood_text']); } --- 535,539 ---- if ( $mood >= 0 ) ! { $mood = sprintf($lang['Mood:'], '<img src="modules/mx_blogs/images/weblogs/' . $mood['mood_url'] . '" alt="' . $mood_data['mood_text'] . '" style="vertical-align: middle" border="0" />', $mood['mood_text']); } *************** *** 549,553 **** if ( $currently > 0 ) { ! $action = sprintf($lang['Currently:'], '<img src="modules/mx_blogs/images/weblogs/' . $currently['action_url'] . '" alt="' . $currently['action_text'] . ' ' . $last_entry_data['currently_text'] . '" style="vertical-align: middle" border="0" />', $currently['action_text'] . ' ' . $last_entry_data['currently_text']); } else if ( $last_entry_data['currently_text'] && $currently == -2 ) --- 549,553 ---- if ( $currently > 0 ) { ! $action = sprintf($lang['Currently:'], '<img src="modules/mx_blogs/images/weblogs/' . $currently['action_url'] . '" alt="' . $currently['action_text'] . ' ' . $last_entry_data['currently_text'] . '" style="vertical-align: middle" border="0" />', $currently['action_text'] . ' ' . $last_entry_data['currently_text']); } else if ( $last_entry_data['currently_text'] && $currently == -2 ) *************** *** 667,669 **** $template->pparse('bottom'); ! ?> \ No newline at end of file --- 667,669 ---- $template->pparse('bottom'); ! ?> Index: weblog.php =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/weblog.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** weblog.php 8 Feb 2008 23:37:21 -0000 1.4 --- weblog.php 10 Feb 2008 02:34:49 -0000 1.5 *************** *** 1,22 **** <?php ! /*************************************************************************** ! * weblog.php ! * ------------------- ! * begin : Monday, September 5, 2004 ! * copyright : (C) 2005 Hyperion ! * email : vi...@ho... ! * ! * $Id$ ! * ! ***************************************************************************/ ! ! /*************************************************************************** ! * ! * This program is free software; you can redistribute it and/or modify ! * it under the terms of the GNU General Public License as published by ! * the Free Software Foundation; either version 2 of the License, or ! * (at your option) any later version. ! * ! ***************************************************************************/ define('IN_PHPBB', true); --- 1,12 ---- <?php ! /** ! * ! * @package MX-Publisher Module - mx_blogs ! * @version $Id$ ! * @copyright (c) 2005 Hyperion, vi...@ho... ! * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 ! * @link http://www.mx-publisher.com ! * ! */ define('IN_PHPBB', true); *************** *** 32,36 **** { //include($mx_root_path . 'extension.inc'); ! $phpEx = substr(strrchr(__FILE__, '.'), 1); include($mx_root_path . 'common.'.$phpEx); } --- 22,26 ---- { //include($mx_root_path . 'extension.inc'); ! $phpEx = substr(strrchr(__FILE__, '.'), 1); include($mx_root_path . 'common.'.$phpEx); } *************** *** 130,134 **** $blocked_data[] = $row; } ! // // Start initial var setup // --- 120,124 ---- $blocked_data[] = $row; } ! // // Start initial var setup // *************** *** 560,568 **** if ( $weblog_config['birthday_mod'] == 1 ) { ! $this_year = create_date('Y', time(), $board_config['board_timezone']); $this_date = create_date('md', time(), $board_config['board_timezone']); ! if ( $weblog_ownerdata['user_birthday'] != 999999 ) ! { $poster_birthdate = realdate('md', $weblog_ownerdata['user_birthday']); if ( $weblog_config['birthday_zodiac_mod'] == 1 ) --- 550,558 ---- if ( $weblog_config['birthday_mod'] == 1 ) { ! $this_year = create_date('Y', time(), $board_config['board_timezone']); $this_date = create_date('md', time(), $board_config['board_timezone']); ! if ( $weblog_ownerdata['user_birthday'] != 999999 ) ! { $poster_birthdate = realdate('md', $weblog_ownerdata['user_birthday']); if ( $weblog_config['birthday_zodiac_mod'] == 1 ) *************** *** 747,751 **** if ( $mood >= 0 ) ! { $mood = '<strong>[</strong> ' . sprintf($lang['Mood:'], '<img src="images/weblogs/' . $mood['mood_url'] . '" alt="' . $mood_data['mood_text'] . '" style="vertical-align: middle" border="0" />', $mood['mood_text']) . ' <strong>]</strong>'; } --- 737,741 ---- if ( $mood >= 0 ) ! { $mood = '<strong>[</strong> ' . sprintf($lang['Mood:'], '<img src="images/weblogs/' . $mood['mood_url'] . '" alt="' . $mood_data['mood_text'] . '" style="vertical-align: middle" border="0" />', $mood['mood_text']) . ' <strong>]</strong>'; } *************** *** 761,765 **** if ( $currently > 0 ) { ! $action = '<strong>[</strong> ' . sprintf($lang['Currently:'], '<img src="images/weblogs/' . $currently['action_url'] . '" alt="' . $currently['action_text'] . ' ' . $entry_data[$i]['currently_text'] . '" style="vertical-align: middle" border="0" />', $currently['action_text'] . ' ' . $entry_data[$i]['currently_text']) . ' <strong>]</strong>'; } else if ( $entry_data[$i]['currently_text'] && $currently == -2 ) --- 751,755 ---- if ( $currently > 0 ) { ! $action = '<strong>[</strong> ' . sprintf($lang['Currently:'], '<img src="images/weblogs/' . $currently['action_url'] . '" alt="' . $currently['action_text'] . ' ' . $entry_data[$i]['currently_text'] . '" style="vertical-align: middle" border="0" />', $currently['action_text'] . ' ' . $entry_data[$i]['currently_text']) . ' <strong>]</strong>'; } else if ( $entry_data[$i]['currently_text'] && $currently == -2 ) *************** *** 771,775 **** $action = ''; } ! --- 761,765 ---- $action = ''; } ! *************** *** 785,789 **** ! $time = create_date($board_config['default_dateformat'], $entry_data[$i]['entry_time'], $board_config['board_timezone']); --- 775,779 ---- ! $time = create_date($board_config['default_dateformat'], $entry_data[$i]['entry_time'], $board_config['board_timezone']); *************** *** 828,832 **** $month = create_date("m", time(), $board_config['board_timezone']); } ! if ( !$year ) { --- 818,822 ---- $month = create_date("m", time(), $board_config['board_timezone']); } ! if ( !$year ) { *************** *** 938,945 **** for ( $i = 0; $i < count($category_data); $i++ ) { ! $template->assign_block_vars('switch_categorybox.categoryrow', array( 'CATEGORY' => $category_data[$i]) ); ! $template->assign_block_vars('categoryrow', array( 'CATEGORY' => $category_data[$i]) --- 928,935 ---- for ( $i = 0; $i < count($category_data); $i++ ) { ! $template->assign_block_vars('switch_categorybox.categoryrow', array( 'CATEGORY' => $category_data[$i]) ); ! $template->assign_block_vars('categoryrow', array( 'CATEGORY' => $category_data[$i]) *************** *** 1057,1063 **** // $message = str_replace("\n", "\n<br />\n", $message); ! $row_class = ( $i % 2 ) ? ' class="row2"' : ' class="row1"'; ! $template->assign_block_vars('switch_shoutbox.shoutrow', array( 'DELETE_SHOUT' => ( $weblog_data['weblog_id'] == $userdata['user_weblog'] ) ? '<div style="float: right; font-weight: bold">[ <a href="' . append_sid("weblog.$phpEx?" . POST_WEBLOG_URL . "=" . $weblog_data['weblog_id'] . "&d=" . $shout_data[$i]['shout_id']) . '">X</a> ]</div>' : '', --- 1047,1053 ---- // $message = str_replace("\n", "\n<br />\n", $message); ! $row_class = ( $i % 2 ) ? ' class="row2"' : ' class="row1"'; ! $template->assign_block_vars('switch_shoutbox.shoutrow', array( 'DELETE_SHOUT' => ( $weblog_data['weblog_id'] == $userdata['user_weblog'] ) ? '<div style="float: right; font-weight: bold">[ <a href="' . append_sid("weblog.$phpEx?" . POST_WEBLOG_URL . "=" . $weblog_data['weblog_id'] . "&d=" . $shout_data[$i]['shout_id']) . '">X</a> ]</div>' : '', *************** *** 1134,1140 **** 'L_CONTRIBUTORS' => $lang['Contributors'], 'L_EDIT_CONTRIBUTORS' => $lang['Edit_contributors'], ! 'L_DISABLE_HTML' => $lang['Disable_HTML_post'], ! 'L_DISABLE_BBCODE' => $lang['Disable_BBCode_post'], ! 'L_DISABLE_SMILIES' => $lang['Disable_Smilies_post'], 'L_NO_SHOUTS' => $lang['No_shouts'], 'L_NO_CATEGORY' => $lang['No_category'], --- 1124,1130 ---- 'L_CONTRIBUTORS' => $lang['Contributors'], 'L_EDIT_CONTRIBUTORS' => $lang['Edit_contributors'], ! 'L_DISABLE_HTML' => $lang['Disable_HTML_post'], ! 'L_DISABLE_BBCODE' => $lang['Disable_BBCode_post'], ! 'L_DISABLE_SMILIES' => $lang['Disable_Smilies_post'], 'L_NO_SHOUTS' => $lang['No_shouts'], 'L_NO_CATEGORY' => $lang['No_category'], *************** *** 1231,1247 **** if ( $weblog_config['gender_mod'] == 1 ) { ! if ( !empty($weblog_ownerdata['user_gender'])) ! { ! switch ($weblog_ownerdata['user_gender']) ! { case 1: $gender = $lang['Male']; ! break; case 2: $gender = $lang['Female']; ! break; default: $gender = $lang['No_gender_specify']; ! } } else --- 1221,1237 ---- if ( $weblog_config['gender_mod'] == 1 ) { ! if ( !empty($weblog_ownerdata['user_gender'])) ! { ! switch ($weblog_ownerdata['user_gender']) ! { case 1: $gender = $lang['Male']; ! break; case 2: $gender = $lang['Female']; ! break; default: $gender = $lang['No_gender_specify']; ! } } else *************** *** 1361,1365 **** 'S_CUSTOM_BLOCK' => ( $weblog_data['custom_block_title'] && $weblog_data['custom_block'] ) ? $weblog_data['custom_block'] : '') ); ! if ( !$weblog_data['weblog_advanced'] ) { --- 1351,1355 ---- 'S_CUSTOM_BLOCK' => ( $weblog_data['custom_block_title'] && $weblog_data['custom_block'] ) ? $weblog_data['custom_block'] : '') ); ! if ( !$weblog_data['weblog_advanced'] ) { *************** *** 1375,1377 **** use_weblog_footer ( $weblog_data, $template_dir, FALSE ); ! ?> \ No newline at end of file --- 1365,1367 ---- use_weblog_footer ( $weblog_data, $template_dir, FALSE ); ! ?> Index: db_install.php =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/db_install.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** db_install.php 8 Feb 2008 23:37:20 -0000 1.3 --- db_install.php 10 Feb 2008 02:34:49 -0000 1.4 *************** *** 1,330 **** ! <?php ! /*************************************************************************** ! * db_update.php ! * ------------------- ! * ! * copyright : ©2003 Freakin' Booty ;-P & Antony Bailey ! * project : http://sourceforge.net/projects/dbgenerator ! ! * Website : http://freakingbooty.no-ip.com/ & http://www.rapiddr3am.net ! * ! ***************************************************************************/ ! ! /*************************************************************************** ! * ! * This program is free software; you can redistribute it and/or modify ! * it under the terms of the GNU General Public License as published by ! * the Free Software Foundation; either version 2 of the License, or ! * (at your option) any later version. ! * ! ***************************************************************************/ ! ! define('IN_PORTAL', true); ! $mx_root_path = '../../'; ! if ( !defined('IN_ADMIN') ) ! { ! include($mx_root_path . 'extension.inc'); ! include($mx_root_path . 'common.'.$phpEx); ! ! // ! // Start session management ! // ! $userdata = session_pagestart($user_ip, PAGE_INDEX); ! mx_init_userprefs($userdata); ! ! if( !$userdata['session_logged_in'] ) ! { ! die("Hacking attempt(3)"); ! } ! ! if( $userdata['user_level'] != ADMIN ) ! { ! die("Hacking attempt(4)"); ! } ! // ! // End session management ! // ! ! } ! ! if( $userdata['user_level'] != ADMIN ) ! { ! message_die(GENERAL_MESSAGE, 'You are not authorised to access this page'); ! } ! ! ! $page_title = 'Updating the database'; ! ! echo '<table width="100%" cellspacing="1" cellpadding="2" border="0" class="forumline">'; ! echo '<tr><th>Updating the database</th></tr><tr><td><span class="genmed"><ul type="circle">'; ! ! ! $sql = array(); ! $sql[] = "ALTER TABLE " . $table_prefix . "groups ADD group_allow_weblogs TINYINT(1) UNSIGNED NOT NULL DEFAULT '0'"; ! $sql[] = "ALTER TABLE " . $table_prefix . "users ADD user_allowweblog TINYINT(1) UNSIGNED NOT NULL DEFAULT '1'"; ! $sql[] = "ALTER TABLE " . $table_prefix . "users ADD user_allowadvweblog TINYINT(1) UNSIGNED NOT NULL DEFAULT '0'"; ! $sql[] = "ALTER TABLE " . $table_prefix . "users ADD user_showfriends TINYINT(1) UNSIGNED NOT NULL DEFAULT '1'"; ! $sql[] = "ALTER TABLE " . $table_prefix . "users ADD user_weblog MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0'"; ! $sql[] = "CREATE TABLE " . $mx_table_prefix . "weblog_actions ( ! action_id SMALLINT(5) UNSIGNED DEFAULT '0' NOT NULL, ! action_text VARCHAR(50) DEFAULT '', ! action_url VARCHAR(100) DEFAULT '', ! PRIMARY KEY (action_id) ! )"; ! $sql[] = "CREATE TABLE " . $mx_table_prefix . "weblog_blocked ( ! owner_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! blocked_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! PRIMARY KEY (owner_id, blocked_id) ! )"; ! $sql[] = "CREATE TABLE " . $mx_table_prefix . "weblog_config ( ! config_name VARCHAR(255) NOT NULL DEFAULT '', ! config_value VARCHAR(255) NOT NULL DEFAULT '', ! PRIMARY KEY (config_name) ! )"; ! $sql[] = "CREATE TABLE " . $mx_table_prefix . "weblog_contributors ( ! weblog_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! user_id MEDIUMINT(8) NOT NULL DEFAULT '0', ! PRIMARY KEY (weblog_id, user_id) ! )"; ! $sql[] = "CREATE TABLE " . $mx_table_prefix . "weblog_entries ( ! entry_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! weblog_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! entry_access TINYINT(4) UNSIGNED NOT NULL DEFAULT '0', ! entry_subject VARCHAR(60) NOT NULL DEFAULT '', ! entry_text TEXT NOT NULL DEFAULT '', ! bbcode_uid VARCHAR(10) NOT NULL DEFAULT '', ! entry_mood SMALLINT(5) NOT NULL DEFAULT '0', ! entry_currently SMALLINT(5) NOT NULL DEFAULT '0', ! currently_text VARCHAR(60) NOT NULL DEFAULT '', ! entry_time INT(11) NOT NULL DEFAULT '0', ! entry_views MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! enable_bbcode TINYINT(1) UNSIGNED NOT NULL DEFAULT '1', ! enable_smilies TINYINT(1) UNSIGNED NOT NULL DEFAULT '1', ! enable_html TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', ! memorable TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', ! no_replies TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', ! entry_replies MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! entry_last_post_userid MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT' 0', ! entry_last_post_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! entry_poster_id MEDIUMINT(8) NOT NULL DEFAULT '0', ! entry_trackbacks SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0', ! entry_deleted TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', ! PRIMARY KEY (entry_id), ! KEY (weblog_id), ! KEY (entry_last_post_userid), ! KEY (entry_last_post_id), ! KEY (entry_poster_id) ! )"; ! $sql[] = "CREATE TABLE " . $mx_table_prefix . "weblog_friends ( ! owner_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! friend_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! PRIMARY KEY (owner_id, friend_id) ! )"; ! $sql[] = "CREATE TABLE " . $mx_table_prefix . "weblog_mood_sets ( ! set_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! set_name VARCHAR (255) NOT NULL DEFAULT '', ! PRIMARY KEY (set_id) ! )"; ! $sql[] = "CREATE TABLE " . $mx_table_prefix . "weblog_moods ( ! mood_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! mood_text VARCHAR (255) NOT NULL DEFAULT '', ! mood_url VARCHAR (255) NOT NULL DEFAULT '', ! mood_set MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! PRIMARY KEY (mood_id), ! KEY (mood_set) ! )"; ! $sql[] = "CREATE TABLE " . $mx_table_prefix . "weblog_replies ( ! reply_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! entry_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! poster_id MEDIUMINT(8) NOT NULL DEFAULT '0', ! post_time INT(11), ! post_username VARCHAR(25) NOT NULL DEFAULT '', ! post_subject VARCHAR (60) NOT NULL DEFAULT '', ! enable_bbcode TINYINT(1) UNSIGNED NOT NULL DEFAULT '1', ! enable_smilies TINYINT(1) UNSIGNED NOT NULL DEFAULT '1', ! enable_html TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', ! enable_sig TINYINT(1) UNSIGNED NOT NULL DEFAULT '1', ! reply_text TEXT NOT NULL DEFAULT '', ! bbcode_uid VARCHAR(10) NOT NULL DEFAULT '', ! PRIMARY KEY (reply_id), ! KEY (entry_id), ! KEY (poster_id) ! )"; ! $sql[] = "CREATE TABLE " . $mx_table_prefix . "weblog_shoutbox ( ! shout_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! shout_weblog MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! shout_text TEXT NOT NULL DEFAULT '', ! shout_poster MEDIUMINT(8) NOT NULL DEFAULT '0', ! shout_username VARCHAR(25) NOT NULL DEFAULT '', ! bbcode_uid VARCHAR (10) NOT NULL DEFAULT '', ! shout_time INT(11) NOT NULL DEFAULT '0', ! shout_www VARCHAR (100) NOT NULL DEFAULT '', ! PRIMARY KEY (shout_id), ! KEY (shout_weblog), ! KEY (shout_poster) ! )"; ! $sql[] = "CREATE TABLE " . $mx_table_prefix . "weblog_templates ( ! template_id SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0', ! template_name VARCHAR(100) NOT NULL DEFAULT '', ! template_dir VARCHAR (100) NOT NULL DEFAULT '', ! template_private TINYINT(1) NOT NULL DEFAULT '0', ! PRIMARY KEY (template_id) ! )"; ! $sql[] = "CREATE TABLE " . $mx_table_prefix . "weblog_trackbacks ( ! tb_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! tb_entry MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! tb_blog VARCHAR (255) NOT NULL DEFAULT '', ! tb_time INT(11) NOT NULL DEFAULT '0', ! tb_excerpt VARCHAR(255) NOT NULL DEFAULT '', ! tb_url VARCHAR(255) NOT NULL DEFAULT '', ! tb_title VARCHAR(255) NOT NULL DEFAULT '', ! PRIMARY KEY (tb_id), ! KEY (tb_entry) ! )"; ! $sql[] = "CREATE TABLE " . $mx_table_prefix . "weblogs ( ! weblog_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! template_id SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0', ! weblog_name VARCHAR(60) NOT NULL DEFAULT '', ! weblog_desc VARCHAR(255) NOT NULL DEFAULT '', ! weblog_auth TINYINT(4) UNSIGNED NOT NULL DEFAULT '0', ! replies_auth TINYINT(4) UNSIGNED NOT NULL DEFAULT '0', ! weblog_entries MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! entries_perpage SMALLINT(5) UNSIGNED NOT NULL DEFAULT '5', ! post_reply_text VARCHAR(60) NOT NULL DEFAULT '', ! replies_text VARCHAR(60) NOT NULL DEFAULT '', ! weblog_create_date INT(11) NOT NULL DEFAULT '0', ! weblog_views MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! weblog_advanced TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', ! weblog_shoutbox_desc TINYINT(1) UNSIGNED NOT NULL DEFAULT '1', ! show_profile_info TINYINT(1) UNSIGNED NOT NULL DEFAULT '1', ! show_calendar TINYINT(1) UNSIGNED NOT NULL DEFAULT '1', ! show_contact_info TINYINT(1) UNSIGNED NOT NULL DEFAULT '1', ! show_weblog_info TINYINT(1) UNSIGNED NOT NULL DEFAULT '1', ! show_shoutbox TINYINT(1) UNSIGNED NOT NULL DEFAULT '1', ! reply_in_popup TINYINT(1) UNSIGNED NOT NULL DEFAULT '1', ! deleted TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', ! weblog_last_entry_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! mood_set MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! custom_block TEXT NOT NULL DEFAULT '', ! custom_block_title VARCHAR (64) NOT NULL DEFAULT '', ! background_color VARCHAR(6) NOT NULL DEFAULT '', ! entry_bg_color VARCHAR(6) NOT NULL DEFAULT '', ! border_color VARCHAR(6) NOT NULL DEFAULT '', ! background_image VARCHAR(255) NOT NULL DEFAULT '', ! background_image_fixed TINYINT(1) NOT NULL DEFAULT '0', ! tile_bg VARCHAR(9) NOT NULL DEFAULT '', ! sb_face_color VARCHAR(6) NOT NULL DEFAULT '', ! sb_highlight_color VARCHAR(6) NOT NULL DEFAULT '', ! sb_shadow_color VARCHAR(6) NOT NULL DEFAULT '', ! sb_3dlight_color VARCHAR(6) NOT NULL DEFAULT '', ! sb_arrow_color VARCHAR(6) NOT NULL DEFAULT '', ! sb_track_color VARCHAR(6) NOT NULL DEFAULT '', ! sb_darkshadow_color VARCHAR(6) NOT NULL DEFAULT '', ! font SMALLINT(5) NOT NULL DEFAULT '0', ! font_color VARCHAR(6) NOT NULL DEFAULT '000000', ! font_size TINYINT(2) NOT NULL DEFAULT '0', ! normal_link_color VARCHAR(6) NOT NULL DEFAULT '', ! active_link_color VARCHAR(6) NOT NULL DEFAULT '', ! hover_link_color VARCHAR(6) NOT NULL DEFAULT '', ! visited_link_color VARCHAR(6) NOT NULL DEFAULT '', ! weblog_title_color VARCHAR(6) NOT NULL DEFAULT '', ! entry_title_color VARCHAR(6) NOT NULL DEFAULT '', ! date_time_color VARCHAR(6) NOT NULL DEFAULT '', ! block_title_color VARCHAR(6) NOT NULL DEFAULT '', ! block_bg_color VARCHAR(6) NOT NULL DEFAULT '', ! block_border_color VARCHAR(6) NOT NULL DEFAULT '', ! bg_ypos VARCHAR(6) NOT NULL DEFAULT '', ! bg_xpos VARCHAR(6) NOT NULL DEFAULT '', ! normal_link_underline TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', ! active_link_underline TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', ! hover_link_underline TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', ! visited_link_underline TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', ! weblog_title_font_size TINYINT(2) UNSIGNED NOT NULL DEFAULT '16', ! entry_title_font_size TINYINT(2) UNSIGNED NOT NULL DEFAULT '12', ! date_time_font_size TINYINT(2) UNSIGNED NOT NULL DEFAULT '14', ! block_title_font_size TINYINT(2) UNSIGNED NOT NULL DEFAULT '14', ! cblock_bbcode_uid VARCHAR(10) NOT NULL DEFAULT '', ! PRIMARY KEY (weblog_id), ! KEY (template_id), ! KEY (weblog_last_entry_id), ! KEY (mood_set) ! )"; ! ! $sql[] = "ALTER TABLE " . $mx_table_prefix . "weblog_entries ADD `category` VARCHAR( 60 ) NOT NULL DEFAULT ''"; ! ! $sql[] = "ALTER TABLE " . $mx_table_prefix . "weblogs ADD `show_categorybox` TINYINT( 1 ) UNSIGNED NOT NULL DEFAULT 1"; ! ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_actions (action_id, action_text, action_url) VALUES (1, 'Eating', 'action_eat.gif')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_actions (action_id, action_text, action_url) VALUES (2, 'Listening to', 'action_listen.gif')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_actions (action_id, action_text, action_url) VALUES (3, 'Playing', 'action_play.gif')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_actions (action_id, action_text, action_url) VALUES (4, 'Reading', 'action_read.gif')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_actions (action_id, action_text, action_url) VALUES (5, 'Watching', 'action_watch.gif')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_actions (action_id, action_text, action_url) VALUES (6, 'Working', 'action_work.gif')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('enable_mod', 1)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('no_avatars_index', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('default_name', '%s\'s blog')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('default_desc', 'Welcome to my Blog')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('main_sorttype', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('main_sortorder', 'desc')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('main_blogsperpage', 10)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('use_default_faceplates', 1)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('condense_index', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('censor_weblog', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('default_auth', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('default_reply_auth', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('default_entries_perpage', 5)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('require_auth', 1)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('default_post_reply_text', '(Post your comment)')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('default_replies_text', '%s Comments')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('index_list_by_username', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('shoutbox_flood_delay', 15)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('max_pic_width', 500)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('max_pic_height', 500)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('max_pic_size', 131072)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('pic_upload_enabled', 1)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('mx_weblog_config_page', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('mx_weblog_list', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_mood_sets (set_id, set_name) VALUES (0, 'Default Set')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (1, 'Angelic', 'mood_angelic.gif', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (2, 'Confused', 'mood_confused.gif', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (3, 'Cool', 'mood_cool.gif', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (4, 'Silly', 'mood_silly.gif', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (5, 'Very Sad', 'mood_verysad.gif', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (6, 'Shocked', 'mood_shocked.gif', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (7, 'Evil', 'mood_evil.gif', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (8, 'In Love', 'mood_love.gif', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (9, 'Amused', 'mood_amused.gif', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods ... [truncated message content] |
|
From: OryNider <ory...@us...> - 2008-02-10 02:34:58
|
Update of /cvsroot/mxbb/mx_blogs/weblogs/templates/Infinity In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18506/weblogs/templates/Infinity Modified Files: weblog_header.htm Log Message: Index: weblog_header.htm =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/weblogs/templates/Infinity/weblog_header.htm,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** weblog_header.htm 7 Jun 2007 22:01:37 -0000 1.1 --- weblog_header.htm 10 Feb 2008 02:34:52 -0000 1.2 *************** *** 1,6 **** ! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ! <html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}"> <head> - <meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}" /> <meta http-equiv="Content-Style-Type" content="text/css" /> --- 1,5 ---- ! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> ! <html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}" xml:lang="{S_USER_LANG}"> <head> <meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}" /> <meta http-equiv="Content-Style-Type" content="text/css" /> |
|
From: OryNider <ory...@us...> - 2008-02-10 02:34:58
|
Update of /cvsroot/mxbb/mx_blogs/weblogs/templates/animatrix-osiris In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18506/weblogs/templates/animatrix-osiris Modified Files: weblog_header.htm Log Message: Index: weblog_header.htm =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/weblogs/templates/animatrix-osiris/weblog_header.htm,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** weblog_header.htm 7 Jun 2007 22:01:39 -0000 1.1 --- weblog_header.htm 10 Feb 2008 02:34:52 -0000 1.2 *************** *** 1,6 **** ! <CENTER><IMG SRC="weblogs/templates/animatrix-osiris/logo.gif" ALT="" ></CENTER><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> ! <html dir="ltr"> <head> ! <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta http-equiv="Content-Style-Type" content="text/css" /> {META} --- 1,6 ---- ! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> ! <html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}" xml:lang="{S_USER_LANG}"> <head> ! <meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}" /> <meta http-equiv="Content-Style-Type" content="text/css" /> {META} |
|
From: OryNider <ory...@us...> - 2008-02-10 02:34:58
|
Update of /cvsroot/mxbb/mx_blogs/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18506/includes Modified Files: functions_weblog.php weblogs_common.php weblogs_constants.php Log Message: Index: weblogs_common.php =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/includes/weblogs_common.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** weblogs_common.php 8 Feb 2008 23:37:23 -0000 1.4 --- weblogs_common.php 10 Feb 2008 02:34:51 -0000 1.5 *************** *** 36,65 **** // Read theme definition and language in theme definition // ********************************************************************** ! if ( file_exists( $module_root_path . "templates/" . $theme['template_name'] . "/" . $theme['template_name'] . ".cfg" ) ) ! { ! // ---------- ! include($module_root_path . "templates/" . $theme['template_name'] . "/" . $theme['template_name'] . ".cfg"); ! // ---------- ! } ! else ! { ! // ---------- ! include($module_root_path . "templates/" . "subSilver/" . "subSilver.cfg"); ! // ---------- ! } ! ! // include the weblog language file ! $use_lang = ( !file_exists($mx_root_path . 'modules/mx_blogs/language/lang_' . $board_config['default_lang'] . '/lang_weblog_main.'.$phpEx) ) ? 'english' : $board_config['default_lang']; ! ! if ( !file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_weblog_main.' . $phpEx ) ) ! { ! include_once( $module_root_path . 'language/lang_english/lang_weblog_main.' . $phpEx ); ! $link_language='lang_english'; ! } ! else { ! include_once( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_weblog_main.' . $phpEx ); ! $link_language='lang_' . $board_config['default_lang']; } --- 36,48 ---- // Read theme definition and language in theme definition // ********************************************************************** + $use_lang = $default_lang = ($mx_user->lang['default_lang']) ? $mx_user->lang['default_lang'] : (($board_config['default_lang']) ? $board_config['default_lang'] : 'english'); ! if ((@include $module_root_path . "language/lang_" . $default_lang . "/lang_weblog_main.$phpEx") === false) { ! if ((@include $module_root_path . "language/lang_english/lang_weblog_main.$phpEx") === false) ! { ! mx_message_die(CRITICAL_ERROR, 'Language file ' . $module_root_path . "language/lang_" . $default_lang . "/lang_weblog_main.$phpEx" . ' couldn\'t be opened.'); ! } ! $use_lang = $default_lang = 'english'; } *************** *** 154,156 **** ! ?> \ No newline at end of file --- 137,139 ---- ! ?> Index: functions_weblog.php =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/includes/functions_weblog.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** functions_weblog.php 8 Feb 2008 23:37:23 -0000 1.2 --- functions_weblog.php 10 Feb 2008 02:34:51 -0000 1.3 *************** *** 20,36 **** ***************************************************************************/ function use_weblog_header ( $weblog_data, $template_dir, $parse = TRUE ) { global $board_config, $template, $template_data, $phpEx, $phpbb_root_path, $lang, $page_title, $userdata; ! global $module_root_path,$mx_root_path,$weblog_config; // // Start output of page // - - // include the weblog lang file - $use_lang = ( !file_exists($module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_weblog_main.'.$phpEx) ) ? 'english' : $board_config['default_lang']; - - - // // Copied from includes/page_header.php // --- 20,70 ---- ***************************************************************************/ + if (!function_exists('bbencode_second_pass') && !function_exists(dss_rand)) + { + include_once($mx_root_path . 'includes/shared/phpbb2/includes/bbcode.' .$phpEx); + + function dss_rand() + { + mx_dss_rand(); + } + } + + if (!function_exists('bbencode_second_pass')) + { + include_once($phpbb_root_path . 'includes/bbcode.' .$phpEx); + } + + if(!function_exists(create_date)) + { + function create_date($format, $gmepoch, $tz) + { + return phpBB2::create_date($format, $gmepoch, $tz); + } + } + + if(!function_exists(decode_ip)) + { + function decode_ip($int_ip) + { + return phpBB2::decode_ip($int_ip); + } + } + + if(!function_exists(obtain_word_list)) + { + function obtain_word_list($orig_word, $replacement_word) + { + phpBB2::obtain_word_list($orig_word, $replacement_word); + } + } + function use_weblog_header ( $weblog_data, $template_dir, $parse = TRUE ) { global $board_config, $template, $template_data, $phpEx, $phpbb_root_path, $lang, $page_title, $userdata; ! global $module_root_path, $mx_root_path, $weblog_config, $use_lang; ! // // Start output of page // // Copied from includes/page_header.php // *************** *** 51,55 **** if ( extension_loaded('zlib') ) { ! @ob_end_clean(); ob_start('ob_gzhandler'); } --- 85,89 ---- if ( extension_loaded('zlib') ) { ! @ob_end_clean(); ob_start('ob_gzhandler'); } *************** *** 133,136 **** --- 167,171 ---- 'SITE_DESCRIPTION' => $board_config['site_desc'], 'PAGE_TITLE' => $page_title, + 'S_USER_LANG' => $use_lang, 'BACKGROUND_COLOR' => $weblog_data['background_color'], *************** *** 350,354 **** { $preview = 'mood_none.gif'; ! } $select = ( $selected == $mood_set_data[$i]['set_id'] ) ? ' selected="selected"' : ''; $set_select .= '<option value="' . $mood_set_data[$i]['set_id'] . '"' . $select . ' id="' . $preview . '">' . $mood_set_data[$i]['set_name'] . '</option>'; --- 385,389 ---- { $preview = 'mood_none.gif'; ! } $select = ( $selected == $mood_set_data[$i]['set_id'] ) ? ' selected="selected"' : ''; $set_select .= '<option value="' . $mood_set_data[$i]['set_id'] . '"' . $select . ' id="' . $preview . '">' . $mood_set_data[$i]['set_name'] . '</option>'; *************** *** 420,424 **** @chmod ($mx_root_path . 'modules/mx_blogs/weblogs/templates/' . $template_dir . '/weblog_header.htm', 0755); @chmod ($mx_root_path . 'modules/mx_blogs/weblogs/templates/' . $template_dir . '/weblog_footer.htm', 0755); ! @chmod ($mx_root_path . 'modules/mx_blogs/weblogs/templates/' . $template_dir . '/weblog_faceplate_body.htm', 0755); if ( file_exists($mx_root_path . 'modules/mx_blogs/weblogs/templates/' . $template_dir . '/weblog_body.htm') ) --- 455,459 ---- @chmod ($mx_root_path . 'modules/mx_blogs/weblogs/templates/' . $template_dir . '/weblog_header.htm', 0755); @chmod ($mx_root_path . 'modules/mx_blogs/weblogs/templates/' . $template_dir . '/weblog_footer.htm', 0755); ! @chmod ($mx_root_path . 'modules/mx_blogs/weblogs/templates/' . $template_dir . '/weblog_faceplate_body.htm', 0755); if ( file_exists($mx_root_path . 'modules/mx_blogs/weblogs/templates/' . $template_dir . '/weblog_body.htm') ) *************** *** 471,475 **** // Open for writing $f = @fopen($filename, 'w' ); ! // Write the stuff @fwrite( $f, $file_body ); // Close the file --- 506,510 ---- // Open for writing $f = @fopen($filename, 'w' ); ! // Write the stuff @fwrite( $f, $file_body ); // Close the file *************** *** 483,487 **** // Open for writing $f = @fopen($filename, 'w' ); ! // Write the stuff @fwrite( $f, $file_faceplate ); // Close the file --- 518,522 ---- // Open for writing $f = @fopen($filename, 'w' ); ! // Write the stuff @fwrite( $f, $file_faceplate ); // Close the file *************** *** 518,522 **** // Open for writing $f = @fopen($filename, 'w' ); ! // Write the stuff @fwrite( $f, $weblog_body ); // Close the file --- 553,557 ---- // Open for writing $f = @fopen($filename, 'w' ); ! // Write the stuff @fwrite( $f, $weblog_body ); // Close the file *************** *** 536,540 **** // Open for writing $f = @fopen($filename, 'w' ); ! // Write the stuff @fwrite( $f, $weblog_faceplate ); // Close the file --- 571,575 ---- // Open for writing $f = @fopen($filename, 'w' ); ! // Write the stuff @fwrite( $f, $weblog_faceplate ); // Close the file *************** *** 634,638 **** { global $template_data; ! for ( $i = 0; $i < count ($template_data); $i++) { --- 669,673 ---- { global $template_data; ! for ( $i = 0; $i < count ($template_data); $i++) { *************** *** 802,804 **** return $sorted_data; } ! ?> \ No newline at end of file --- 837,839 ---- return $sorted_data; } ! ?> Index: weblogs_constants.php =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/includes/weblogs_constants.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** weblogs_constants.php 8 Feb 2008 23:37:23 -0000 1.3 --- weblogs_constants.php 10 Feb 2008 02:34:51 -0000 1.4 *************** *** 44,46 **** define('WEBLOG_AUTH_OWNER', 3); ! ?> \ No newline at end of file --- 44,46 ---- define('WEBLOG_AUTH_OWNER', 3); ! ?> |
|
From: OryNider <ory...@us...> - 2008-02-10 02:34:58
|
Update of /cvsroot/mxbb/mx_blogs/weblogs/templates/ljDigitalMultiplex In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18506/weblogs/templates/ljDigitalMultiplex Modified Files: weblog_header.htm Log Message: Index: weblog_header.htm =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/weblogs/templates/ljDigitalMultiplex/weblog_header.htm,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** weblog_header.htm 7 Jun 2007 22:01:46 -0000 1.1 --- weblog_header.htm 10 Feb 2008 02:34:52 -0000 1.2 *************** *** 1,6 **** ! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ! <html xmlns="http://www.w3.org/1999/xhtml"> <head> ! <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Style-Type" content="text/css" /> {META} --- 1,6 ---- ! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> ! <html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}" xml:lang="{S_USER_LANG}"> <head> ! <meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}" /> <meta http-equiv="Content-Style-Type" content="text/css" /> {META} |
|
From: OryNider <ory...@us...> - 2008-02-10 02:34:58
|
Update of /cvsroot/mxbb/mx_blogs/weblogs/templates/simpleGray In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18506/weblogs/templates/simpleGray Modified Files: weblog_header.htm Log Message: Index: weblog_header.htm =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/weblogs/templates/simpleGray/weblog_header.htm,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** weblog_header.htm 20 Jun 2007 14:35:19 -0000 1.1 --- weblog_header.htm 10 Feb 2008 02:34:52 -0000 1.2 *************** *** 1,6 **** ! <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> ! <html dir="ltr"> <head> ! <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta http-equiv="Content-Style-Type" content="text/css" /> {META} --- 1,6 ---- ! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> ! <html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}" xml:lang="{S_USER_LANG}"> <head> ! <meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}" /> <meta http-equiv="Content-Style-Type" content="text/css" /> {META} |
|
From: OryNider <ory...@us...> - 2008-02-10 02:32:32
|
Update of /cvsroot/mxbb/mx_blogs In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv17691 Modified Files: Tag: core28x weblog_allentries.php weblog_friends.php weblog_posting.php Log Message: |
|
From: OryNider <ory...@us...> - 2008-02-10 02:30:50
|
Update of /cvsroot/mxbb/mx_blogs In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv16855 Modified Files: Tag: core28x trackback.php weblog.php weblog_blocked.php weblog_config.php weblog_entry.php weblog_rss.php weblogs.php Log Message: |
|
From: OryNider <ory...@us...> - 2008-02-10 02:26:13
|
Update of /cvsroot/mxbb/mx_blogs/weblogs/templates/ljDigitalMultiplex In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv15158/ljDigitalMultiplex Modified Files: Tag: core28x weblog_header.htm Log Message: MX-Publisher Index: weblog_header.htm =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/weblogs/templates/ljDigitalMultiplex/weblog_header.htm,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 *** weblog_header.htm 7 Jun 2007 22:01:46 -0000 1.1 --- weblog_header.htm 10 Feb 2008 02:26:09 -0000 1.1.2.1 *************** *** 1,6 **** ! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ! <html xmlns="http://www.w3.org/1999/xhtml"> <head> ! <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Style-Type" content="text/css" /> {META} --- 1,6 ---- ! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> ! <html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}" xml:lang="{S_USER_LANG}"> <head> ! <meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}" /> <meta http-equiv="Content-Style-Type" content="text/css" /> {META} |
|
From: OryNider <ory...@us...> - 2008-02-10 02:26:13
|
Update of /cvsroot/mxbb/mx_blogs/weblogs/templates/Infinity In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv15158/Infinity Modified Files: Tag: core28x weblog_header.htm Log Message: MX-Publisher Index: weblog_header.htm =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/weblogs/templates/Infinity/weblog_header.htm,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 *** weblog_header.htm 7 Jun 2007 22:01:37 -0000 1.1 --- weblog_header.htm 10 Feb 2008 02:26:09 -0000 1.1.2.1 *************** *** 1,6 **** ! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ! <html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}"> <head> - <meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}" /> <meta http-equiv="Content-Style-Type" content="text/css" /> --- 1,5 ---- ! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> ! <html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}" xml:lang="{S_USER_LANG}"> <head> <meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}" /> <meta http-equiv="Content-Style-Type" content="text/css" /> |
|
From: OryNider <ory...@us...> - 2008-02-10 02:26:13
|
Update of /cvsroot/mxbb/mx_blogs/weblogs/templates/animatrix-osiris In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv15158/animatrix-osiris Modified Files: Tag: core28x weblog_header.htm Log Message: MX-Publisher Index: weblog_header.htm =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/weblogs/templates/animatrix-osiris/weblog_header.htm,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 *** weblog_header.htm 7 Jun 2007 22:01:39 -0000 1.1 --- weblog_header.htm 10 Feb 2008 02:26:09 -0000 1.1.2.1 *************** *** 1,6 **** ! <CENTER><IMG SRC="weblogs/templates/animatrix-osiris/logo.gif" ALT="" ></CENTER><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> ! <html dir="ltr"> <head> ! <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta http-equiv="Content-Style-Type" content="text/css" /> {META} --- 1,6 ---- ! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> ! <html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}" xml:lang="{S_USER_LANG}"> <head> ! <meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}" /> <meta http-equiv="Content-Style-Type" content="text/css" /> {META} |
|
From: OryNider <ory...@us...> - 2008-02-10 02:26:12
|
Update of /cvsroot/mxbb/mx_blogs/weblogs/templates/simpleGray In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv15158/simpleGray Modified Files: Tag: core28x weblog_header.htm Log Message: MX-Publisher Index: weblog_header.htm =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/weblogs/templates/simpleGray/weblog_header.htm,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 *** weblog_header.htm 20 Jun 2007 14:35:19 -0000 1.1 --- weblog_header.htm 10 Feb 2008 02:26:09 -0000 1.1.2.1 *************** *** 1,6 **** ! <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> ! <html dir="ltr"> <head> ! <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta http-equiv="Content-Style-Type" content="text/css" /> {META} --- 1,6 ---- ! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> ! <html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}" xml:lang="{S_USER_LANG}"> <head> ! <meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}" /> <meta http-equiv="Content-Style-Type" content="text/css" /> {META} |
|
From: OryNider <ory...@us...> - 2008-02-10 02:26:01
|
Update of /cvsroot/mxbb/mx_blogs/language/lang_english In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv14775 Modified Files: Tag: core28x lang_weblog_main.php Log Message: MX-Publisher Index: lang_weblog_main.php =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/language/lang_english/lang_weblog_main.php,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 *** lang_weblog_main.php 7 Jun 2007 22:01:33 -0000 1.1 --- lang_weblog_main.php 10 Feb 2008 02:25:57 -0000 1.1.2.1 *************** *** 40,44 **** $lang['Create_a_weblog'] = 'Create a ' . $lang['Weblog']; $lang['Weblog_Owner'] = $lang['Weblog'] . ' Owner'; ! $lang['Weblog_powered_by'] = 'Powered by the Blog Mod by Hyperion</a><br> Ported to <a href="http://www.mx-system.com">Mx-System</a> by Cryptoknight, and mhewitson'; $lang['Entries'] = 'Entries'; $lang['Replies'] = 'Replies'; --- 40,44 ---- $lang['Create_a_weblog'] = 'Create a ' . $lang['Weblog']; $lang['Weblog_Owner'] = $lang['Weblog'] . ' Owner'; ! $lang['Weblog_powered_by'] = 'Powered by the Blog Mod by Hyperion</a><br> Ported to <a href="http://www.mx-publisher.com">Mx-Publisher</a> by Cryptoknight, and mhewitson'; $lang['Entries'] = 'Entries'; $lang['Replies'] = 'Replies'; |
|
From: OryNider <ory...@us...> - 2008-02-10 02:25:45
|
Update of /cvsroot/mxbb/mx_blogs In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv14725 Modified Files: Tag: core28x db_install.php trackback.php weblog.php weblog_allentries.php weblog_blocked.php weblog_config.php weblog_entry.php weblog_friends.php weblog_posting.php weblog_rss.php weblogs.php Log Message: MX-Publisher Index: weblog_friends.php =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/weblog_friends.php,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 *** weblog_friends.php 7 Jun 2007 22:01:32 -0000 1.1 --- weblog_friends.php 10 Feb 2008 02:25:41 -0000 1.1.2.1 *************** *** 1,44 **** <?php ! /*************************************************************************** ! * weblog_friends.php ! * ------------------------ ! * begin : Monday, September 5, 2004 ! * copyright : (C) 2005 Hyperion ! * email : vi...@ho... ! * ! * $Id$ ! * ! ***************************************************************************/ ! /*************************************************************************** ! * ! * This program is free software; you can redistribute it and/or modify ! * it under the terms of the GNU General Public License as published by ! * the Free Software Foundation; either version 2 of the License, or ! * (at your option) any later version. ! * ! ***************************************************************************/ ! define('IN_PHPBB', true); ! define('IN_PORTAL', true); ! //$phpbb_root_path = './'; ! $mx_root_path = '../../'; ! $module_root_path = './'; ! //include($mx_root_path . 'extension.inc'); ! $phpEx = substr(strrchr(__FILE__, '.'), 1); ! include($mx_root_path . 'common.'.$phpEx); ! include_once($phpbb_root_path . 'includes/bbcode.'.$phpEx); ! // ! // Start session management ! // ! $userdata = session_pagestart($user_ip, PAGE_INDEX); ! init_userprefs($userdata); ! // ! // End session management ! // ! //include($phpbb_root_path . 'includes/weblogs_common.'.$phpEx); ! include($module_root_path . 'includes/weblogs_constants.'.$phpEx); ! include($module_root_path . 'includes/weblogs_common.'.$phpEx); // --- 1,56 ---- <?php ! /** ! * ! * @package MX-Publisher Module - mx_blogs ! * @version $Id$ ! * @copyright (c) 2005 Hyperion, vi...@ho... ! * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 ! * @link http://www.mx-publisher.com ! * ! */ ! if( !defined('IN_PORTAL') || !is_object($mx_block)) ! { ! @define('IN_PHPBB', true); ! @define('IN_PORTAL', true); ! ! $mx_root_path = "../../"; ! $module_root_path = "./"; ! ! $phpEx = substr(strrchr(__FILE__, '.'), 1); ! include_once($mx_root_path . 'common.'.$phpEx); ! ! // ! // Start session management ! // ! $mx_user->init($user_ip, PAGE_INDEX); ! // ! // End session management ! // ! ! $title = 'Media Player Radio'; ! $block_size = ( isset($block_size) && !empty($block_size) ? $block_size : '315' ); ! $player_size = ( isset($block_size) && !empty($block_size) ? $block_size - 15 : '300' ); ! ! $is_block = FALSE; ! } ! else ! { ! // ! // Read block Configuration ! // + $title = $mx_block->block_info['block_title']; + $block_size = $player_size = ( isset($block_size) && !empty($block_size) ? $block_size : '100%' ); + + if( is_object($mx_block)) + { + $is_block = TRUE; + } + } + + include($module_root_path . 'includes/weblogs_common.'.$phpEx); + require($phpbb_root_path . 'includes/bbcode.'.$phpEx); // Index: weblog_posting.php =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/weblog_posting.php,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** weblog_posting.php 31 Jan 2008 03:31:54 -0000 1.1.2.1 --- weblog_posting.php 10 Feb 2008 02:25:41 -0000 1.1.2.2 *************** *** 1,22 **** <?php ! /*************************************************************************** ! * weblog_posting.php ! * ------------------------ ! * begin : Monday, September 5, 2004 ! * copyright : (C) 2005 Hyperion ! * email : vi...@ho... ! * ! * $Id$ ! * ! ***************************************************************************/ ! ! /*************************************************************************** ! * ! * This program is free software; you can redistribute it and/or modify ! * it under the terms of the GNU General Public License as published by ! * the Free Software Foundation; either version 2 of the License, or ! * (at your option) any later version. ! * ! ***************************************************************************/ define('IN_PHPBB', true); --- 1,12 ---- <?php ! /** ! * ! * @package MX-Publisher Module - mx_blogs ! * @version $Id$ ! * @copyright (c) 2005 Hyperion, vi...@ho... ! * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 ! * @link http://www.mx-publisher.com ! * ! */ define('IN_PHPBB', true); Index: weblog_entry.php =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/weblog_entry.php,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** weblog_entry.php 31 Jan 2008 03:31:54 -0000 1.1.2.1 --- weblog_entry.php 10 Feb 2008 02:25:41 -0000 1.1.2.2 *************** *** 1,22 **** <?php ! /*************************************************************************** ! * weblog_entry.php ! * ---------------------- ! * begin : Monday, September 5, 2004 ! * copyright : (C) 2005 Hyperion ! * email : vi...@ho... ! * ! * $Id$ ! * ! ***************************************************************************/ ! ! /*************************************************************************** ! * ! * This program is free software; you can redistribute it and/or modify ! * it under the terms of the GNU General Public License as published by ! * the Free Software Foundation; either version 2 of the License, or ! * (at your option) any later version. ! * ! ***************************************************************************/ define('IN_PHPBB', true); --- 1,12 ---- <?php ! /** ! * ! * @package MX-Publisher Module - mx_blogs ! * @version $Id$ ! * @copyright (c) 2005 Hyperion, vi...@ho... ! * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 ! * @link http://www.mx-publisher.com ! * ! */ define('IN_PHPBB', true); *************** *** 374,389 **** // Parse message and/or sig for BBCode if reqd // ! if ( $board_config['allow_bbcode'] ) ! { ! if ( $entry_data['bbcode_uid'] != '' ) ! { ! if (!function_exists('bbencode_second_pass')) { include_once($phpbb_root_path . 'includes/bbcode.' .$phpEx); - } - - - $message = ( $board_config['allow_bbcode'] ) ? bbencode_second_pass($message, $entry_data['bbcode_uid']) : preg_replace('/\:[0-9a-z\:]+\]/si', ']', $entry_data['entry_text']); } } --- 364,374 ---- // Parse message and/or sig for BBCode if reqd // ! if (($board_config['allow_bbcode']) && ($entry_data['bbcode_uid'])) ! { ! if (!function_exists('bbencode_second_pass')) { include_once($phpbb_root_path . 'includes/bbcode.' .$phpEx); } + $message = ( $board_config['allow_bbcode'] ) ? bbencode_second_pass($message, $entry_data['bbcode_uid']) : preg_replace('/\:[0-9a-z\:]+\]/si', ']', $entry_data['entry_text']); } *************** *** 484,488 **** if ( $entry_data['entry_trackbacks'] >= 1 ) { ! $pagination = generate_pagination($mx_root_path . "modules/mx_blogs/weblog_entry.$phpEx?" . POST_ENTRY_URL . "=$entry_id&tb=1&start=$start", $entry_data['entry_trackbacks'], $weblog_entry_data['entries_perpage'], $start); $page_number = sprintf($lang['Page_of'], ( floor( $start / intval($weblog_entry_data['entries_perpage']) ) + 1 ), ceil( $entry_data['entry_trackbacks'] / intval($weblog_entry_data['entries_perpage']) )); } --- 469,473 ---- if ( $entry_data['entry_trackbacks'] >= 1 ) { ! $pagination = mx_generate_pagination($mx_root_path . "modules/mx_blogs/weblog_entry.$phpEx?" . POST_ENTRY_URL . "=$entry_id&tb=1&start=$start", $entry_data['entry_trackbacks'], $weblog_entry_data['entries_perpage'], $start); $page_number = sprintf($lang['Page_of'], ( floor( $start / intval($weblog_entry_data['entries_perpage']) ) + 1 ), ceil( $entry_data['entry_trackbacks'] / intval($weblog_entry_data['entries_perpage']) )); } *************** *** 490,494 **** else if ( $weblog_entry_data['entry_replies'] >= 1 ) { ! $pagination = generate_pagination($mx_root_path . "modules/mx_blogs/weblog_entry.$phpEx?" . POST_ENTRY_URL . "=$entry_id&postdays=$post_days&postorder=$post_order", $weblog_entry_data['entry_replies'], $weblog_entry_data['entries_perpage'], $start); $page_number = sprintf($lang['Page_of'], ( floor( $start / intval($weblog_entry_data['entries_perpage']) ) + 1 ), ceil( $weblog_entry_data['entry_replies'] / intval($weblog_entry_data['entries_perpage']) )); } --- 475,479 ---- else if ( $weblog_entry_data['entry_replies'] >= 1 ) { ! $pagination = mx_generate_pagination($mx_root_path . "modules/mx_blogs/weblog_entry.$phpEx?" . POST_ENTRY_URL . "=$entry_id&postdays=$post_days&postorder=$post_order", $weblog_entry_data['entry_replies'], $weblog_entry_data['entries_perpage'], $start); $page_number = sprintf($lang['Page_of'], ( floor( $start / intval($weblog_entry_data['entries_perpage']) ) + 1 ), ceil( $weblog_entry_data['entry_replies'] / intval($weblog_entry_data['entries_perpage']) )); } Index: weblog_config.php =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/weblog_config.php,v retrieving revision 1.2.2.1 retrieving revision 1.2.2.2 diff -C2 -d -r1.2.2.1 -r1.2.2.2 *** weblog_config.php 31 Jan 2008 03:31:54 -0000 1.2.2.1 --- weblog_config.php 10 Feb 2008 02:25:41 -0000 1.2.2.2 *************** *** 1,22 **** <?php ! /*************************************************************************** ! * weblog_config.php ! * ----------------------- ! * begin : Monday, September 5, 2004 ! * copyright : (C) 2005 Hyperion ! * email : vi...@ho... ! * ! * $Id$ ! * ! ***************************************************************************/ ! ! /*************************************************************************** ! * ! * This program is free software; you can redistribute it and/or modify ! * it under the terms of the GNU General Public License as published by ! * the Free Software Foundation; either version 2 of the License, or ! * (at your option) any later version. ! * ! ***************************************************************************/ // --- 1,12 ---- <?php ! /** ! * ! * @package MX-Publisher Module - mx_blogs ! * @version $Id$ ! * @copyright (c) 2005 Hyperion, vi...@ho... ! * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 ! * @link http://www.mx-publisher.com ! * ! */ // Index: weblog_blocked.php =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/weblog_blocked.php,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 *** weblog_blocked.php 7 Jun 2007 22:01:32 -0000 1.1 --- weblog_blocked.php 10 Feb 2008 02:25:41 -0000 1.1.2.1 *************** *** 1,45 **** <?php ! /*************************************************************************** ! * weblog_blocked.php ! * ------------------------ ! * begin : Monday, September 5, 2004 ! * copyright : (C) 2005 Hyperion ! * email : vi...@ho... ! * ! * $Id$ ! * ! ***************************************************************************/ - /*************************************************************************** - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - ***************************************************************************/ ! define('IN_PHPBB', true); ! define('IN_PORTAL', true); ! //$phpbb_root_path = './'; ! $mx_root_path = '../../'; ! $module_root_path = './'; ! //include($phpbb_root_path . 'extension.inc'); ! //include($phpbb_root_path . 'common.'.$phpEx); ! //include($phpbb_root_path . 'includes/weblogs_common.'.$phpEx); ! //include($mx_root_path . 'extension.inc'); ! $phpEx = substr(strrchr(__FILE__, '.'), 1); ! include($mx_root_path . 'common.'.$phpEx); ! // ! // Start session management ! // ! //$userdata = session_pagestart($user_ip, PAGE_INDEX); ! //init_userprefs($userdata); ! $mx_user->init($user_ip, PAGE_INDEX); ! // ! // End session management ! // ! include($mx_root_path . 'modules/mx_blogs/includes/weblogs_constants.'.$phpEx); include($mx_root_path . 'modules/mx_blogs/includes/weblogs_common.'.$phpEx); --- 1,51 ---- <?php ! /** ! * ! * @package MX-Publisher Module - mx_blogs ! * @version $Id$ ! * @copyright (c) 2005 Hyperion, vi...@ho... ! * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 ! * @link http://www.mx-publisher.com ! * ! */ ! if( !defined('IN_PORTAL') || !is_object($mx_block)) ! { ! @define('IN_PHPBB', true); ! @define('IN_PORTAL', true); ! $mx_root_path = "../../"; ! $module_root_path = "./"; ! ! $phpEx = substr(strrchr(__FILE__, '.'), 1); ! include_once($mx_root_path . 'common.'.$phpEx); ! ! // ! // Start session management ! // ! $mx_user->init($user_ip, PAGE_INDEX); ! // ! // End session management ! // ! ! $title = 'Media Player Radio'; ! $block_size = ( isset($block_size) && !empty($block_size) ? $block_size : '315' ); ! $is_block = FALSE; ! } ! else ! { ! // ! // Read block Configuration ! // ! ! $title = $mx_block->block_info['block_title']; ! $block_size = ( isset($block_size) && !empty($block_size) ? $block_size : '100%' ); ! ! if( is_object($mx_block)) ! { ! $is_block = TRUE; ! } ! } include($mx_root_path . 'modules/mx_blogs/includes/weblogs_common.'.$phpEx); Index: weblogs.php =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/weblogs.php,v retrieving revision 1.3.2.1 retrieving revision 1.3.2.2 diff -C2 -d -r1.3.2.1 -r1.3.2.2 *** weblogs.php 31 Jan 2008 03:31:54 -0000 1.3.2.1 --- weblogs.php 10 Feb 2008 02:25:41 -0000 1.3.2.2 *************** *** 1,12 **** <?php ! /*************************************************************************** ! * File : weblogs.php ! * Copyright :(C) 2005 Hyperion, mxBB Project Team ! * website : www.mxbb.net * ! * File ID : $Id$ ! * Last Modified : $Date$ * ! ***************************************************************************/ // --- 1,12 ---- <?php ! /** * ! * @package MX-Publisher Module - mx_blogs ! * @version $Id$ ! * @copyright (c) 2002-2008 [Jon Ohlsson] MX-Publisher Project Team ! * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 ! * @link http://www.mx-publisher.com * ! */ // *************** *** 452,456 **** 'L_LAST_SEEN' => $lang['Last_seen'], 'PAGE_NUMBER' => sprintf($lang['Page_of'], ( floor( $start / $count ) + 1 ), ceil( count($weblog_data) / $count )), ! 'PAGINATION' => generate_pagination($mx_root_path . "index.$phpEx?page=" . $weblog_config['mx_weblog_list'] . "&count=$count&sort=$sort&order=$order", count($weblog_data), $count, $start)) ); --- 452,456 ---- 'L_LAST_SEEN' => $lang['Last_seen'], 'PAGE_NUMBER' => sprintf($lang['Page_of'], ( floor( $start / $count ) + 1 ), ceil( count($weblog_data) / $count )), ! 'PAGINATION' => mx_generate_pagination($mx_root_path . "index.$phpEx?page=" . $weblog_config['mx_weblog_list'] . "&count=$count&sort=$sort&order=$order", count($weblog_data), $count, $start)) ); Index: weblog.php =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/weblog.php,v retrieving revision 1.2.2.1 retrieving revision 1.2.2.2 diff -C2 -d -r1.2.2.1 -r1.2.2.2 *** weblog.php 31 Jan 2008 03:31:54 -0000 1.2.2.1 --- weblog.php 10 Feb 2008 02:25:41 -0000 1.2.2.2 *************** *** 1,22 **** <?php ! /*************************************************************************** ! * weblog.php ! * ------------------- ! * begin : Monday, September 5, 2004 ! * copyright : (C) 2005 Hyperion ! * email : vi...@ho... ! * ! * $Id$ ! * ! ***************************************************************************/ ! ! /*************************************************************************** ! * ! * This program is free software; you can redistribute it and/or modify ! * it under the terms of the GNU General Public License as published by ! * the Free Software Foundation; either version 2 of the License, or ! * (at your option) any later version. ! * ! ***************************************************************************/ define('IN_PHPBB', true); --- 1,12 ---- <?php ! /** ! * ! * @package MX-Publisher Module - mx_blogs ! * @version $Id$ ! * @copyright (c) 2005 Hyperion, vi...@ho... ! * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 ! * @link http://www.mx-publisher.com ! * ! */ define('IN_PHPBB', true); Index: db_install.php =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/db_install.php,v retrieving revision 1.2 retrieving revision 1.2.2.1 diff -C2 -d -r1.2 -r1.2.2.1 *** db_install.php 20 Jun 2007 13:19:57 -0000 1.2 --- db_install.php 10 Feb 2008 02:25:40 -0000 1.2.2.1 *************** *** 1,330 **** ! <?php ! /*************************************************************************** ! * db_update.php ! * ------------------- ! * ! * copyright : ©2003 Freakin' Booty ;-P & Antony Bailey ! * project : http://sourceforge.net/projects/dbgenerator ! ! * Website : http://freakingbooty.no-ip.com/ & http://www.rapiddr3am.net ! * ! ***************************************************************************/ ! ! /*************************************************************************** ! * ! * This program is free software; you can redistribute it and/or modify ! * it under the terms of the GNU General Public License as published by ! * the Free Software Foundation; either version 2 of the License, or ! * (at your option) any later version. ! * ! ***************************************************************************/ ! ! define('IN_PORTAL', true); ! $mx_root_path = '../../'; ! if ( !defined('IN_ADMIN') ) ! { ! include($mx_root_path . 'extension.inc'); ! include($mx_root_path . 'common.'.$phpEx); ! ! // ! // Start session management ! // ! $userdata = session_pagestart($user_ip, PAGE_INDEX); ! mx_init_userprefs($userdata); ! ! if( !$userdata['session_logged_in'] ) ! { ! die("Hacking attempt(3)"); ! } ! ! if( $userdata['user_level'] != ADMIN ) ! { ! die("Hacking attempt(4)"); ! } ! // ! // End session management ! // ! ! } ! ! if( $userdata['user_level'] != ADMIN ) ! { ! message_die(GENERAL_MESSAGE, 'You are not authorised to access this page'); ! } ! ! ! $page_title = 'Updating the database'; ! ! echo '<table width="100%" cellspacing="1" cellpadding="2" border="0" class="forumline">'; ! echo '<tr><th>Updating the database</th></tr><tr><td><span class="genmed"><ul type="circle">'; ! ! ! $sql = array(); ! $sql[] = "ALTER TABLE " . $table_prefix . "groups ADD group_allow_weblogs TINYINT(1) UNSIGNED NOT NULL DEFAULT '0'"; ! $sql[] = "ALTER TABLE " . $table_prefix . "users ADD user_allowweblog TINYINT(1) UNSIGNED NOT NULL DEFAULT '1'"; ! $sql[] = "ALTER TABLE " . $table_prefix . "users ADD user_allowadvweblog TINYINT(1) UNSIGNED NOT NULL DEFAULT '0'"; ! $sql[] = "ALTER TABLE " . $table_prefix . "users ADD user_showfriends TINYINT(1) UNSIGNED NOT NULL DEFAULT '1'"; ! $sql[] = "ALTER TABLE " . $table_prefix . "users ADD user_weblog MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0'"; ! $sql[] = "CREATE TABLE " . $mx_table_prefix . "weblog_actions ( ! action_id SMALLINT(5) UNSIGNED DEFAULT '0' NOT NULL, ! action_text VARCHAR(50) DEFAULT '', ! action_url VARCHAR(100) DEFAULT '', ! PRIMARY KEY (action_id) ! )"; ! $sql[] = "CREATE TABLE " . $mx_table_prefix . "weblog_blocked ( ! owner_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! blocked_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! PRIMARY KEY (owner_id, blocked_id) ! )"; ! $sql[] = "CREATE TABLE " . $mx_table_prefix . "weblog_config ( ! config_name VARCHAR(255) NOT NULL DEFAULT '', ! config_value VARCHAR(255) NOT NULL DEFAULT '', ! PRIMARY KEY (config_name) ! )"; ! $sql[] = "CREATE TABLE " . $mx_table_prefix . "weblog_contributors ( ! weblog_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! user_id MEDIUMINT(8) NOT NULL DEFAULT '0', ! PRIMARY KEY (weblog_id, user_id) ! )"; ! $sql[] = "CREATE TABLE " . $mx_table_prefix . "weblog_entries ( ! entry_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! weblog_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! entry_access TINYINT(4) UNSIGNED NOT NULL DEFAULT '0', ! entry_subject VARCHAR(60) NOT NULL DEFAULT '', ! entry_text TEXT NOT NULL DEFAULT '', ! bbcode_uid VARCHAR(10) NOT NULL DEFAULT '', ! entry_mood SMALLINT(5) NOT NULL DEFAULT '0', ! entry_currently SMALLINT(5) NOT NULL DEFAULT '0', ! currently_text VARCHAR(60) NOT NULL DEFAULT '', ! entry_time INT(11) NOT NULL DEFAULT '0', ! entry_views MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! enable_bbcode TINYINT(1) UNSIGNED NOT NULL DEFAULT '1', ! enable_smilies TINYINT(1) UNSIGNED NOT NULL DEFAULT '1', ! enable_html TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', ! memorable TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', ! no_replies TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', ! entry_replies MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! entry_last_post_userid MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT' 0', ! entry_last_post_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! entry_poster_id MEDIUMINT(8) NOT NULL DEFAULT '0', ! entry_trackbacks SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0', ! entry_deleted TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', ! PRIMARY KEY (entry_id), ! KEY (weblog_id), ! KEY (entry_last_post_userid), ! KEY (entry_last_post_id), ! KEY (entry_poster_id) ! )"; ! $sql[] = "CREATE TABLE " . $mx_table_prefix . "weblog_friends ( ! owner_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! friend_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! PRIMARY KEY (owner_id, friend_id) ! )"; ! $sql[] = "CREATE TABLE " . $mx_table_prefix . "weblog_mood_sets ( ! set_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! set_name VARCHAR (255) NOT NULL DEFAULT '', ! PRIMARY KEY (set_id) ! )"; ! $sql[] = "CREATE TABLE " . $mx_table_prefix . "weblog_moods ( ! mood_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! mood_text VARCHAR (255) NOT NULL DEFAULT '', ! mood_url VARCHAR (255) NOT NULL DEFAULT '', ! mood_set MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! PRIMARY KEY (mood_id), ! KEY (mood_set) ! )"; ! $sql[] = "CREATE TABLE " . $mx_table_prefix . "weblog_replies ( ! reply_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! entry_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! poster_id MEDIUMINT(8) NOT NULL DEFAULT '0', ! post_time INT(11), ! post_username VARCHAR(25) NOT NULL DEFAULT '', ! post_subject VARCHAR (60) NOT NULL DEFAULT '', ! enable_bbcode TINYINT(1) UNSIGNED NOT NULL DEFAULT '1', ! enable_smilies TINYINT(1) UNSIGNED NOT NULL DEFAULT '1', ! enable_html TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', ! enable_sig TINYINT(1) UNSIGNED NOT NULL DEFAULT '1', ! reply_text TEXT NOT NULL DEFAULT '', ! bbcode_uid VARCHAR(10) NOT NULL DEFAULT '', ! PRIMARY KEY (reply_id), ! KEY (entry_id), ! KEY (poster_id) ! )"; ! $sql[] = "CREATE TABLE " . $mx_table_prefix . "weblog_shoutbox ( ! shout_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! shout_weblog MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! shout_text TEXT NOT NULL DEFAULT '', ! shout_poster MEDIUMINT(8) NOT NULL DEFAULT '0', ! shout_username VARCHAR(25) NOT NULL DEFAULT '', ! bbcode_uid VARCHAR (10) NOT NULL DEFAULT '', ! shout_time INT(11) NOT NULL DEFAULT '0', ! shout_www VARCHAR (100) NOT NULL DEFAULT '', ! PRIMARY KEY (shout_id), ! KEY (shout_weblog), ! KEY (shout_poster) ! )"; ! $sql[] = "CREATE TABLE " . $mx_table_prefix . "weblog_templates ( ! template_id SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0', ! template_name VARCHAR(100) NOT NULL DEFAULT '', ! template_dir VARCHAR (100) NOT NULL DEFAULT '', ! template_private TINYINT(1) NOT NULL DEFAULT '0', ! PRIMARY KEY (template_id) ! )"; ! $sql[] = "CREATE TABLE " . $mx_table_prefix . "weblog_trackbacks ( ! tb_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! tb_entry MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! tb_blog VARCHAR (255) NOT NULL DEFAULT '', ! tb_time INT(11) NOT NULL DEFAULT '0', ! tb_excerpt VARCHAR(255) NOT NULL DEFAULT '', ! tb_url VARCHAR(255) NOT NULL DEFAULT '', ! tb_title VARCHAR(255) NOT NULL DEFAULT '', ! PRIMARY KEY (tb_id), ! KEY (tb_entry) ! )"; ! $sql[] = "CREATE TABLE " . $mx_table_prefix . "weblogs ( ! weblog_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! template_id SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0', ! weblog_name VARCHAR(60) NOT NULL DEFAULT '', ! weblog_desc VARCHAR(255) NOT NULL DEFAULT '', ! weblog_auth TINYINT(4) UNSIGNED NOT NULL DEFAULT '0', ! replies_auth TINYINT(4) UNSIGNED NOT NULL DEFAULT '0', ! weblog_entries MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! entries_perpage SMALLINT(5) UNSIGNED NOT NULL DEFAULT '5', ! post_reply_text VARCHAR(60) NOT NULL DEFAULT '', ! replies_text VARCHAR(60) NOT NULL DEFAULT '', ! weblog_create_date INT(11) NOT NULL DEFAULT '0', ! weblog_views MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! weblog_advanced TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', ! weblog_shoutbox_desc TINYINT(1) UNSIGNED NOT NULL DEFAULT '1', ! show_profile_info TINYINT(1) UNSIGNED NOT NULL DEFAULT '1', ! show_calendar TINYINT(1) UNSIGNED NOT NULL DEFAULT '1', ! show_contact_info TINYINT(1) UNSIGNED NOT NULL DEFAULT '1', ! show_weblog_info TINYINT(1) UNSIGNED NOT NULL DEFAULT '1', ! show_shoutbox TINYINT(1) UNSIGNED NOT NULL DEFAULT '1', ! reply_in_popup TINYINT(1) UNSIGNED NOT NULL DEFAULT '1', ! deleted TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', ! weblog_last_entry_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! mood_set MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! custom_block TEXT NOT NULL DEFAULT '', ! custom_block_title VARCHAR (64) NOT NULL DEFAULT '', ! background_color VARCHAR(6) NOT NULL DEFAULT '', ! entry_bg_color VARCHAR(6) NOT NULL DEFAULT '', ! border_color VARCHAR(6) NOT NULL DEFAULT '', ! background_image VARCHAR(255) NOT NULL DEFAULT '', ! background_image_fixed TINYINT(1) NOT NULL DEFAULT '0', ! tile_bg VARCHAR(9) NOT NULL DEFAULT '', ! sb_face_color VARCHAR(6) NOT NULL DEFAULT '', ! sb_highlight_color VARCHAR(6) NOT NULL DEFAULT '', ! sb_shadow_color VARCHAR(6) NOT NULL DEFAULT '', ! sb_3dlight_color VARCHAR(6) NOT NULL DEFAULT '', ! sb_arrow_color VARCHAR(6) NOT NULL DEFAULT '', ! sb_track_color VARCHAR(6) NOT NULL DEFAULT '', ! sb_darkshadow_color VARCHAR(6) NOT NULL DEFAULT '', ! font SMALLINT(5) NOT NULL DEFAULT '0', ! font_color VARCHAR(6) NOT NULL DEFAULT '000000', ! font_size TINYINT(2) NOT NULL DEFAULT '0', ! normal_link_color VARCHAR(6) NOT NULL DEFAULT '', ! active_link_color VARCHAR(6) NOT NULL DEFAULT '', ! hover_link_color VARCHAR(6) NOT NULL DEFAULT '', ! visited_link_color VARCHAR(6) NOT NULL DEFAULT '', ! weblog_title_color VARCHAR(6) NOT NULL DEFAULT '', ! entry_title_color VARCHAR(6) NOT NULL DEFAULT '', ! date_time_color VARCHAR(6) NOT NULL DEFAULT '', ! block_title_color VARCHAR(6) NOT NULL DEFAULT '', ! block_bg_color VARCHAR(6) NOT NULL DEFAULT '', ! block_border_color VARCHAR(6) NOT NULL DEFAULT '', ! bg_ypos VARCHAR(6) NOT NULL DEFAULT '', ! bg_xpos VARCHAR(6) NOT NULL DEFAULT '', ! normal_link_underline TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', ! active_link_underline TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', ! hover_link_underline TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', ! visited_link_underline TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', ! weblog_title_font_size TINYINT(2) UNSIGNED NOT NULL DEFAULT '16', ! entry_title_font_size TINYINT(2) UNSIGNED NOT NULL DEFAULT '12', ! date_time_font_size TINYINT(2) UNSIGNED NOT NULL DEFAULT '14', ! block_title_font_size TINYINT(2) UNSIGNED NOT NULL DEFAULT '14', ! cblock_bbcode_uid VARCHAR(10) NOT NULL DEFAULT '', ! PRIMARY KEY (weblog_id), ! KEY (template_id), ! KEY (weblog_last_entry_id), ! KEY (mood_set) ! )"; ! ! $sql[] = "ALTER TABLE " . $mx_table_prefix . "weblog_entries ADD `category` VARCHAR( 60 ) NOT NULL DEFAULT ''"; ! ! $sql[] = "ALTER TABLE " . $mx_table_prefix . "weblogs ADD `show_categorybox` TINYINT( 1 ) UNSIGNED NOT NULL DEFAULT 1"; ! ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_actions (action_id, action_text, action_url) VALUES (1, 'Eating', 'action_eat.gif')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_actions (action_id, action_text, action_url) VALUES (2, 'Listening to', 'action_listen.gif')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_actions (action_id, action_text, action_url) VALUES (3, 'Playing', 'action_play.gif')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_actions (action_id, action_text, action_url) VALUES (4, 'Reading', 'action_read.gif')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_actions (action_id, action_text, action_url) VALUES (5, 'Watching', 'action_watch.gif')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_actions (action_id, action_text, action_url) VALUES (6, 'Working', 'action_work.gif')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('enable_mod', 1)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('no_avatars_index', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('default_name', '%s\'s blog')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('default_desc', 'Welcome to my Blog')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('main_sorttype', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('main_sortorder', 'desc')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('main_blogsperpage', 10)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('use_default_faceplates', 1)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('condense_index', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('censor_weblog', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('default_auth', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('default_reply_auth', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('default_entries_perpage', 5)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('require_auth', 1)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('default_post_reply_text', '(Post your comment)')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('default_replies_text', '%s Comments')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('index_list_by_username', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('shoutbox_flood_delay', 15)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('max_pic_width', 500)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('max_pic_height', 500)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('max_pic_size', 131072)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('pic_upload_enabled', 1)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('mx_weblog_config_page', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('mx_weblog_list', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_mood_sets (set_id, set_name) VALUES (0, 'Default Set')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (1, 'Angelic', 'mood_angelic.gif', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (2, 'Confused', 'mood_confused.gif', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (3, 'Cool', 'mood_cool.gif', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (4, 'Silly', 'mood_silly.gif', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (5, 'Very Sad', 'mood_verysad.gif', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (6, 'Shocked', 'mood_shocked.gif', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (7, 'Evil', 'mood_evil.gif', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (8, 'In Love', 'mood_love.gif', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (9, 'Amused', 'mood_amused.gif', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (10, 'Angry', 'mood_angry.gif', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (11, 'Neutral', 'mood_neutral.gif', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (12, 'Sick', 'mood_sick.gif', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (13, 'Scared', 'mood_scared.gif', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (14, 'Happy', 'mood_happy.gif', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (15, 'Fed Up WIth Life', 'mood_fedup.gif', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (16, 'Distorted', 'mood_distorted.gif', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (17, 'Hypnotized', 'mood_hypnotized.gif', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (18, 'Embarrased', 'mood_embarrased.gif', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (19, 'Sleepy', 'mood_sleepy.gif', 0)"; ! ! for( $i = 0; $i < count($sql); $i++ ) ! { ! if( !$result = $db->sql_query ($sql[$i]) ) ! { ! $error = $db->sql_error(); ! ! echo '<li>' . $sql[$i] . '<br /> +++ <font color="#FF0000"><b>Error:</b></font> ' . $error['message'] . '</li><br />'; ! } ! else ! { ! echo '<li>' . $sql[$i] . '<br /> +++ <font color="#00AA00"><b>Successfull</b></font></li><br />'; ! } ! } ! ! ! echo '</ul></span></td></tr><tr><td class="catBottom" height="28"> </td></tr>'; ! ! echo '<tr><th>End</th></tr><tr><td><span class="genmed">Installation is now finished. Please be sure to delete this file now.</span></td></tr>'; ! echo '<tr><td class="catBottom" height="28" align="center"><span class="genmed"><a href="' . append_sid("index.$phpEx") . '">Have a nice day</a></span></td></table>'; ! ! ! ! ?> --- 1,327 ---- ! <?php ! /** ! * ! * @package Mx-Publisher Module - mx_blogs ! * @version $Id$ ! * @copyright (c) 2001-2008, Roman Malarev (romutis), MarcMoris ! * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 ! * ! */ ! @ini_set( 'display_errors', '1' ); ! ! @define( 'IN_PORTAL', true ); ! ! if ( !defined( 'IN_ADMIN' ) ) ! { ! $mx_root_path = './../../'; ! $phpEx = substr(strrchr(__FILE__, '.'), 1); ! include( $mx_root_path . 'common.' . $phpEx ); ! ! // Start session management ! $mx_user->init($user_ip, PAGE_INDEX); ! // End session management ! ! if ( !$userdata['session_logged_in'] ) ! { ! die( "Hacking attempt(1)" ); ! } ! ! if ( $userdata['user_level'] != ADMIN ) ! { ! die( "Hacking attempt(2)" ); ! } ! ! } ! $module_root_path = $mx_root_path . "modules/mx_blogs/"; ! // ********************************************************************** ! // Read theme definition and language in theme definition ! // ********************************************************************** ! $default_lang = ($mx_user->lang['default_lang']) ? $mx_user->lang['default_lang'] : (($board_config['default_lang']) ? $board_config['default_lang'] : 'english'); ! ! if ((@include $module_root_path . "language/lang_" . $default_lang . "/lang_weblog_main.$phpEx") === false) ! { ! if ((@include $module_root_path . "language/lang_english/lang_weblog_main.$phpEx") === false) ! { ! mx_message_die(CRITICAL_ERROR, 'Language file ' . $module_root_path . "language/lang_" . $default_lang . "/lang_weblog_main.$phpEx" . ' couldn\'t be opened.'); ! } ! $default_lang = 'english'; ! } ! ! $mx_module_version = '1.0.0'; ! $mx_module_copy = $lang['Weblog_powered_by']; ! ! // If fresh install ! ! if ( !$result = $db->sql_query( "SELECT config_name from " . $mx_table_prefix . "weblog_config" ) ) ! { ! $message = "<b>This is a fresh install!</b><br/><br/>"; ! ! $sql = array(); ! ! $sql[] = "ALTER TABLE " . $table_prefix . "groups ADD group_allow_weblogs TINYINT(1) UNSIGNED NOT NULL DEFAULT '0'"; ! $sql[] = "ALTER TABLE " . $table_prefix . "users ADD user_allowweblog TINYINT(1) UNSIGNED NOT NULL DEFAULT '1'"; ! $sql[] = "ALTER TABLE " . $table_prefix . "users ADD user_allowadvweblog TINYINT(1) UNSIGNED NOT NULL DEFAULT '0'"; ! $sql[] = "ALTER TABLE " . $table_prefix . "users ADD user_showfriends TINYINT(1) UNSIGNED NOT NULL DEFAULT '1'"; ! $sql[] = "ALTER TABLE " . $table_prefix . "users ADD user_weblog MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0'"; ! $sql[] = "CREATE TABLE " . $mx_table_prefix . "weblog_actions ( ! action_id SMALLINT(5) UNSIGNED DEFAULT '0' NOT NULL, ! action_text VARCHAR(50) DEFAULT '', ! action_url VARCHAR(100) DEFAULT '', ! PRIMARY KEY (action_id) ! )"; ! $sql[] = "CREATE TABLE " . $mx_table_prefix . "weblog_blocked ( ! owner_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! blocked_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! PRIMARY KEY (owner_id, blocked_id) ! )"; ! $sql[] = "CREATE TABLE " . $mx_table_prefix . "weblog_config ( ! config_name VARCHAR(255) NOT NULL DEFAULT '', ! config_value VARCHAR(255) NOT NULL DEFAULT '', ! PRIMARY KEY (config_name) ! )"; ! $sql[] = "CREATE TABLE " . $mx_table_prefix . "weblog_contributors ( ! weblog_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! user_id MEDIUMINT(8) NOT NULL DEFAULT '0', ! PRIMARY KEY (weblog_id, user_id) ! )"; ! $sql[] = "CREATE TABLE " . $mx_table_prefix . "weblog_entries ( ! entry_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! weblog_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! entry_access TINYINT(4) UNSIGNED NOT NULL DEFAULT '0', ! entry_subject VARCHAR(60) NOT NULL DEFAULT '', ! entry_text TEXT NOT NULL DEFAULT '', ! bbcode_uid VARCHAR(10) NOT NULL DEFAULT '', ! entry_mood SMALLINT(5) NOT NULL DEFAULT '0', ! entry_currently SMALLINT(5) NOT NULL DEFAULT '0', ! currently_text VARCHAR(60) NOT NULL DEFAULT '', ! entry_time INT(11) NOT NULL DEFAULT '0', ! entry_views MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! enable_bbcode TINYINT(1) UNSIGNED NOT NULL DEFAULT '1', ! enable_smilies TINYINT(1) UNSIGNED NOT NULL DEFAULT '1', ! enable_html TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', ! memorable TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', ! no_replies TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', ! entry_replies MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! entry_last_post_userid MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT' 0', ! entry_last_post_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! entry_poster_id MEDIUMINT(8) NOT NULL DEFAULT '0', ! entry_trackbacks SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0', ! entry_deleted TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', ! PRIMARY KEY (entry_id), ! KEY (weblog_id), ! KEY (entry_last_post_userid), ! KEY (entry_last_post_id), ! KEY (entry_poster_id) ! )"; ! $sql[] = "CREATE TABLE " . $mx_table_prefix . "weblog_friends ( ! owner_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! friend_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! PRIMARY KEY (owner_id, friend_id) ! )"; ! $sql[] = "CREATE TABLE " . $mx_table_prefix . "weblog_mood_sets ( ! set_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! set_name VARCHAR (255) NOT NULL DEFAULT '', ! PRIMARY KEY (set_id) ! )"; ! $sql[] = "CREATE TABLE " . $mx_table_prefix . "weblog_moods ( ! mood_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! mood_text VARCHAR (255) NOT NULL DEFAULT '', ! mood_url VARCHAR (255) NOT NULL DEFAULT '', ! mood_set MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! PRIMARY KEY (mood_id), ! KEY (mood_set) ! )"; ! $sql[] = "CREATE TABLE " . $mx_table_prefix . "weblog_replies ( ! reply_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! entry_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! poster_id MEDIUMINT(8) NOT NULL DEFAULT '0', ! post_time INT(11), ! post_username VARCHAR(25) NOT NULL DEFAULT '', ! post_subject VARCHAR (60) NOT NULL DEFAULT '', ! enable_bbcode TINYINT(1) UNSIGNED NOT NULL DEFAULT '1', ! enable_smilies TINYINT(1) UNSIGNED NOT NULL DEFAULT '1', ! enable_html TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', ! enable_sig TINYINT(1) UNSIGNED NOT NULL DEFAULT '1', ! reply_text TEXT NOT NULL DEFAULT '', ! bbcode_uid VARCHAR(10) NOT NULL DEFAULT '', ! PRIMARY KEY (reply_id), ! KEY (entry_id), ! KEY (poster_id) ! )"; ! $sql[] = "CREATE TABLE " . $mx_table_prefix . "weblog_shoutbox ( ! shout_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! shout_weblog MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! shout_text TEXT NOT NULL DEFAULT '', ! shout_poster MEDIUMINT(8) NOT NULL DEFAULT '0', ! shout_username VARCHAR(25) NOT NULL DEFAULT '', ! bbcode_uid VARCHAR (10) NOT NULL DEFAULT '', ! shout_time INT(11) NOT NULL DEFAULT '0', ! shout_www VARCHAR (100) NOT NULL DEFAULT '', ! PRIMARY KEY (shout_id), ! KEY (shout_weblog), ! KEY (shout_poster) ! )"; ! $sql[] = "CREATE TABLE " . $mx_table_prefix . "weblog_templates ( ! template_id SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0', ! template_name VARCHAR(100) NOT NULL DEFAULT '', ! template_dir VARCHAR (100) NOT NULL DEFAULT '', ! template_private TINYINT(1) NOT NULL DEFAULT '0', ! PRIMARY KEY (template_id) ! )"; ! $sql[] = "CREATE TABLE " . $mx_table_prefix . "weblog_trackbacks ( ! tb_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! tb_entry MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! tb_blog VARCHAR (255) NOT NULL DEFAULT '', ! tb_time INT(11) NOT NULL DEFAULT '0', ! tb_excerpt VARCHAR(255) NOT NULL DEFAULT '', ! tb_url VARCHAR(255) NOT NULL DEFAULT '', ! tb_title VARCHAR(255) NOT NULL DEFAULT '', ! PRIMARY KEY (tb_id), ! KEY (tb_entry) ! )"; ! $sql[] = "CREATE TABLE " . $mx_table_prefix . "weblogs ( ! weblog_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! template_id SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0', ! weblog_name VARCHAR(60) NOT NULL DEFAULT '', ! weblog_desc VARCHAR(255) NOT NULL DEFAULT '', ! weblog_auth TINYINT(4) UNSIGNED NOT NULL DEFAULT '0', ! replies_auth TINYINT(4) UNSIGNED NOT NULL DEFAULT '0', ! weblog_entries MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! entries_perpage SMALLINT(5) UNSIGNED NOT NULL DEFAULT '5', ! post_reply_text VARCHAR(60) NOT NULL DEFAULT '', ! replies_text VARCHAR(60) NOT NULL DEFAULT '', ! weblog_create_date INT(11) NOT NULL DEFAULT '0', ! weblog_views MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! weblog_advanced TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', ! weblog_shoutbox_desc TINYINT(1) UNSIGNED NOT NULL DEFAULT '1', ! show_profile_info TINYINT(1) UNSIGNED NOT NULL DEFAULT '1', ! show_calendar TINYINT(1) UNSIGNED NOT NULL DEFAULT '1', ! show_contact_info TINYINT(1) UNSIGNED NOT NULL DEFAULT '1', ! show_weblog_info TINYINT(1) UNSIGNED NOT NULL DEFAULT '1', ! show_shoutbox TINYINT(1) UNSIGNED NOT NULL DEFAULT '1', ! reply_in_popup TINYINT(1) UNSIGNED NOT NULL DEFAULT '1', ! deleted TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', ! weblog_last_entry_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! mood_set MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! custom_block TEXT NOT NULL DEFAULT '', ! custom_block_title VARCHAR (64) NOT NULL DEFAULT '', ! background_color VARCHAR(6) NOT NULL DEFAULT '', ! entry_bg_color VARCHAR(6) NOT NULL DEFAULT '', ! border_color VARCHAR(6) NOT NULL DEFAULT '', ! background_image VARCHAR(255) NOT NULL DEFAULT '', ! background_image_fixed TINYINT(1) NOT NULL DEFAULT '0', ! tile_bg VARCHAR(9) NOT NULL DEFAULT '', ! sb_face_color VARCHAR(6) NOT NULL DEFAULT '', ! sb_highlight_color VARCHAR(6) NOT NULL DEFAULT '', ! sb_shadow_color VARCHAR(6) NOT NULL DEFAULT '', ! sb_3dlight_color VARCHAR(6) NOT NULL DEFAULT '', ! sb_arrow_color VARCHAR(6) NOT NULL DEFAULT '', ! sb_track_color VARCHAR(6) NOT NULL DEFAULT '', ! sb_darkshadow_color VARCHAR(6) NOT NULL DEFAULT '', ! font SMALLINT(5) NOT NULL DEFAULT '0', ! font_color VARCHAR(6) NOT NULL DEFAULT '000000', ! font_size TINYINT(2) NOT NULL DEFAULT '0', ! normal_link_color VARCHAR(6) NOT NULL DEFAULT '', ! active_link_color VARCHAR(6) NOT NULL DEFAULT '', ! hover_link_color VARCHAR(6) NOT NULL DEFAULT '', ! visited_link_color VARCHAR(6) NOT NULL DEFAULT '', ! weblog_title_color VARCHAR(6) NOT NULL DEFAULT '', ! entry_title_color VARCHAR(6) NOT NULL DEFAULT '', ! date_time_color VARCHAR(6) NOT NULL DEFAULT '', ! block_title_color VARCHAR(6) NOT NULL DEFAULT '', ! block_bg_color VARCHAR(6) NOT NULL DEFAULT '', ! block_border_color VARCHAR(6) NOT NULL DEFAULT '', ! bg_ypos VARCHAR(6) NOT NULL DEFAULT '', ! bg_xpos VARCHAR(6) NOT NULL DEFAULT '', ! normal_link_underline TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', ! active_link_underline TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', ! hover_link_underline TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', ! visited_link_underline TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', ! weblog_title_font_size TINYINT(2) UNSIGNED NOT NULL DEFAULT '16', ! entry_title_font_size TINYINT(2) UNSIGNED NOT NULL DEFAULT '12', ! date_time_font_size TINYINT(2) UNSIGNED NOT NULL DEFAULT '14', ! block_title_font_size TINYINT(2) UNSIGNED NOT NULL DEFAULT '14', ! cblock_bbcode_uid VARCHAR(10) NOT NULL DEFAULT '', ! PRIMARY KEY (weblog_id), ! KEY (template_id), ! KEY (weblog_last_entry_id), ! KEY (mood_set) ! )"; ! ! $sql[] = "ALTER TABLE " . $mx_table_prefix . "weblog_entries ADD `category` VARCHAR( 60 ) NOT NULL DEFAULT ''"; ! ! $sql[] = "ALTER TABLE " . $mx_table_prefix . "weblogs ADD `show_categorybox` TINYINT( 1 ) UNSIGNED NOT NULL DEFAULT 1"; ! ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_actions (action_id, action_text, action_url) VALUES (1, 'Eating', 'action_eat.gif')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_actions (action_id, action_text, action_url) VALUES (2, 'Listening to', 'action_listen.gif')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_actions (action_id, action_text, action_url) VALUES (3, 'Playing', 'action_play.gif')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_actions (action_id, action_text, action_url) VALUES (4, 'Reading', 'action_read.gif')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_actions (action_id, action_text, action_url) VALUES (5, 'Watching', 'action_watch.gif')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_actions (action_id, action_text, action_url) VALUES (6, 'Working', 'action_work.gif')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('enable_mod', 1)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('no_avatars_index', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('default_name', '%s\'s blog')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('default_desc', 'Welcome to my Blog')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('main_sorttype', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('main_sortorder', 'desc')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('main_blogsperpage', 10)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('use_default_faceplates', 1)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('condense_index', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('censor_weblog', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('default_auth', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('default_reply_auth', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('default_entries_perpage', 5)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('require_auth', 1)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('default_post_reply_text', '(Post your comment)')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('default_replies_text', '%s Comments')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('index_list_by_username', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('shoutbox_flood_delay', 15)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('max_pic_width', 500)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('max_pic_height', 500)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('max_pic_size', 131072)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('pic_upload_enabled', 1)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('mx_weblog_config_page', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('mx_weblog_list', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_mood_sets (set_id, set_name) VALUES (0, 'Default Set')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (1, 'Angelic', 'mood_angelic.gif', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (2, 'Confused', 'mood_confused.gif', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (3, 'Cool', 'mood_cool.gif', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (4, 'Silly', 'mood_silly.gif', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (5, 'Very Sad', 'mood_verysad.gif', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (6, 'Shocked', 'mood_shocked.gif', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (7, 'Evil', 'mood_evil.gif', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (8, 'In Love', 'mood_love.gif', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (9, 'Amused', 'mood_amused.gif', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (10, 'Angry', 'mood_angry.gif', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (11, 'Neutral', 'mood_neutral.gif', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (12, 'Sick', 'mood_sick.gif', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (13, 'Scared', 'mood_scared.gif', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (14, 'Happy', 'mood_happy.gif', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (15, 'Fed Up WIth Life', 'mood_fedup.gif', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (16, 'Distorted', 'mood_distorted.gif', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (17, 'Hypnotized', 'mood_hypnotized.gif', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (18, 'Embarrased', 'mood_embarrased.gif', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (19, 'Sleepy', 'mood_sleepy.gif', 0)"; ! ! ! $sql[] = "UPDATE " . $mx_table_prefix . "module" . " ! SET module_version = '" . $mx_module_version . "', ! module_copy = '" . $mx_module_copy . "' ! WHERE module_id = '" . $mx_module_id . "'"; ! ! $message .= mx_do_install_upgrade($sql); ! } ! else ! { ! // If already installed ! $message = "<b>Module is already installed... consider upgrading ;)</b><br/><br/>"; ! } ! ! echo '<br /><br />'; ! echo '<table width=\"90%\" align=\"center\" cellpadding=\"4\" cellspacing=\"1\" border=\"0\" class=\"forumline\">'; ! echo '<tr><th class=\"thHead\" align=\"center\">Module Installation/Upgrading/Uninstallation Information - Module specific DB tables</th></tr><tr><td><span class="genmed"><ul type="circle">'; ! echo '<tr><td class=\"row1\" align=\"left\"><span class=\"gen\">' . $message . '</span></td></tr>'; ! echo '</ul></span></td></tr><tr><td class="catBottom" height="28"> </td></tr>'; ! echo '<tr><th>End</th></tr><tr><td align=\"center\"><span class="genmed" align=\"center\">Installation is now finished.</span></td></tr>'; ! echo '<tr><td class="catBottom" height="28" align="center"><span class="genmed"><a href="' . mx_append_sid("index.$phpEx") . '">Have a nice day</a></span></td></table>'; ! ?> Index: weblog_allentries.php =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/weblog_allentries.php,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** weblog_allentries.php 31 Jan 2008 03:31:54 -0000 1.1.2.1 --- weblog_allentries.php 10 Feb 2008 02:25:41 -0000 1.1.2.2 *************** *** 1,22 **** <?php ! /*************************************************************************** ! * weblog_allentries.php ! * --------------------------- ! * begin : Monday, September 5, 2004 ! * copyright : (C) 2005 Hyperion ! * email : vi...@ho... ! * ! * $Id$ ! * ! ***************************************************************************/ ! ! /*************************************************************************** ! * ! * This program is free software; you can redistribute it and/or modify ! * it under the terms of the GNU General Public License as published by ! * the Free Software Foundation; either version 2 of the License, or ! * (at your option) any later version. ! * ! ***************************************************************************/ define('IN_PHPBB', true); --- 1,12 ---- <?php ! /** ! * ! * @package MX-Publisher Module - mx_blogs ! * @version $Id$ ! * @copyright (c) 2005 Hyperion, vi...@ho... ! * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 ! * @link http://www.mx-publisher.com ! * ! */ define('IN_PHPBB', true); *************** *** 552,556 **** $template->assign_vars(array( ! 'PAGINATION' => generate_pagination($mx_root_path . "weblog.$phpEx?" . POST_WEBLOG_URL . "=$weblog_id&entrydays=$entry_days", count($entry_data), $board_config['topics_per_page'], $start), 'PAGE_NUMBER' => sprintf($lang['Page_of'], ( floor( $start / $board_config['topics_per_page'] ) + 1 ), ceil( count($entry_data) / $board_config['topics_per_page'] )), --- 542,546 ---- $template->assign_vars(array( ! 'PAGINATION' => mx_generate_pagination($mx_root_path . "weblog.$phpEx?" . POST_WEBLOG_URL . "=$weblog_id&entrydays=$entry_days", count($entry_data), $board_config['topics_per_page'], $start), 'PAGE_NUMBER' => sprintf($lang['Page_of'], ( floor( $start / $board_config['topics_per_page'] ) + 1 ), ceil( count($entry_data) / $board_config['topics_per_page'] )), Index: weblog_rss.php =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/weblog_rss.php,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** weblog_rss.php 31 Jan 2008 03:31:54 -0000 1.1.2.1 --- weblog_rss.php 10 Feb 2008 02:25:41 -0000 1.1.2.2 *************** *** 1,22 **** <?php ! /*************************************************************************** ! * weblog_rss.php ! * -------------------- ! * begin : Monday, September 5, 2004 ! * copyright : (C) 2005 Hyperion ! * email : vi...@ho... ! * ! * $Id$ ! * ! ***************************************************************************/ ! ! /**************... [truncated message content] |
|
From: OryNider <ory...@us...> - 2008-02-10 02:25:45
|
Update of /cvsroot/mxbb/mx_blogs/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv14725/includes Modified Files: Tag: core28x functions_weblog.php weblogs_common.php Log Message: MX-Publisher Index: weblogs_common.php =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/includes/weblogs_common.php,v retrieving revision 1.2.2.1 retrieving revision 1.2.2.2 diff -C2 -d -r1.2.2.1 -r1.2.2.2 *** weblogs_common.php 31 Jan 2008 03:31:55 -0000 1.2.2.1 --- weblogs_common.php 10 Feb 2008 02:25:42 -0000 1.2.2.2 *************** *** 36,66 **** // Read theme definition and language in theme definition // ********************************************************************** ! if ( file_exists( $module_root_path . "templates/" . $theme['template_name'] . "/" . $theme['template_name'] . ".cfg" ) ) ! { ! // ---------- ! include($module_root_path . "templates/" . $theme['template_name'] . "/" . $theme['template_name'] . ".cfg"); ! // ---------- ! } ! else ! { ! // ---------- ! include($module_root_path . "templates/" . "subSilver/" . "subSilver.cfg"); ! // ---------- ! } ! ! // include the weblog language file ! $use_lang = ( !file_exists($mx_root_path . 'modules/mx_blogs/language/lang_' . $board_config['default_lang'] . '/lang_weblog_main.'.$phpEx) ) ? 'english' : $board_config['default_lang']; ! ! if ( !file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_weblog_main.' . $phpEx ) ) { ! include_once( $module_root_path . 'language/lang_english/lang_weblog_main.' . $phpEx ); ! $link_language='lang_english'; } - else - { - include_once( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_weblog_main.' . $phpEx ); - $link_language='lang_' . $board_config['default_lang']; - } // --- 36,49 ---- // Read theme definition and language in theme definition // ********************************************************************** + $use_lang = $default_lang = ($mx_user->lang['default_lang']) ? $mx_user->lang['default_lang'] : (($board_config['default_lang']) ? $board_config['default_lang'] : 'english'); ! if ((@include $module_root_path . "language/lang_" . $default_lang . "/lang_weblog_main.$phpEx") === false) { ! if ((@include $module_root_path . "language/lang_english/lang_weblog_main.$phpEx") === false) ! { ! mx_message_die(CRITICAL_ERROR, 'Language file ' . $module_root_path . "language/lang_" . $default_lang . "/lang_weblog_main.$phpEx" . ' couldn\'t be opened.'); ! } ! $use_lang = $default_lang = 'english'; } // Index: functions_weblog.php =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/includes/functions_weblog.php,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 *** functions_weblog.php 7 Jun 2007 22:01:33 -0000 1.1 --- functions_weblog.php 10 Feb 2008 02:25:41 -0000 1.1.2.1 *************** *** 20,36 **** ***************************************************************************/ function use_weblog_header ( $weblog_data, $template_dir, $parse = TRUE ) { global $board_config, $template, $template_data, $phpEx, $phpbb_root_path, $lang, $page_title, $userdata; ! global $module_root_path,$mx_root_path,$weblog_config; // // Start output of page // - - // include the weblog lang file - $use_lang = ( !file_exists($module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_weblog_main.'.$phpEx) ) ? 'english' : $board_config['default_lang']; - - - // // Copied from includes/page_header.php // --- 20,70 ---- ***************************************************************************/ + if (!function_exists('bbencode_second_pass') && !function_exists(dss_rand)) + { + include_once($mx_root_path . 'includes/shared/phpbb2/includes/bbcode.' .$phpEx); + + function dss_rand() + { + mx_dss_rand(); + } + } + + if (!function_exists('bbencode_second_pass')) + { + include_once($phpbb_root_path . 'includes/bbcode.' .$phpEx); + } + + if(!function_exists(create_date)) + { + function create_date($format, $gmepoch, $tz) + { + return phpBB2::create_date($format, $gmepoch, $tz); + } + } + + if(!function_exists(decode_ip)) + { + function decode_ip($int_ip) + { + return phpBB2::decode_ip($int_ip); + } + } + + if(!function_exists(obtain_word_list)) + { + function obtain_word_list($orig_word, $replacement_word) + { + phpBB2::obtain_word_list($orig_word, $replacement_word); + } + } + function use_weblog_header ( $weblog_data, $template_dir, $parse = TRUE ) { global $board_config, $template, $template_data, $phpEx, $phpbb_root_path, $lang, $page_title, $userdata; ! global $module_root_path, $mx_root_path, $weblog_config, $use_lang; ! // // Start output of page // // Copied from includes/page_header.php // *************** *** 133,136 **** --- 167,171 ---- 'SITE_DESCRIPTION' => $board_config['site_desc'], 'PAGE_TITLE' => $page_title, + 'S_USER_LANG' => $use_lang, 'BACKGROUND_COLOR' => $weblog_data['background_color'], |
|
From: OryNider <ory...@us...> - 2008-02-10 02:25:44
|
Update of /cvsroot/mxbb/mx_blogs/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv14725/admin Modified Files: Tag: core28x admin_weblog_action.php admin_weblog_cfg.php admin_weblog_groups.php admin_weblog_mood.php admin_weblog_templates.php admin_weblog_tools.php Log Message: MX-Publisher Index: admin_weblog_action.php =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/admin/admin_weblog_action.php,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** admin_weblog_action.php 31 Jan 2008 03:31:55 -0000 1.1.2.1 --- admin_weblog_action.php 10 Feb 2008 02:25:39 -0000 1.1.2.2 *************** *** 51,61 **** // Read language definition // ********************************************************************** ! if ( file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_weblog_admin.' . $phpEx ) ) ! { ! include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_weblog_admin.' . $phpEx ); ! } ! else if ( file_exists( $module_root_path . 'language/lang_english/lang_weblog_admin.' . $phpEx ) ) { ! include( $module_root_path . 'language/lang_english/lang_weblog_admin.' . $phpEx ); } --- 51,60 ---- // Read language definition // ********************************************************************** ! if ((@include $module_root_path . "language/lang_" . $default_lang . "/lang_weblog_admin.$phpEx") === false) { ! if ((@include $module_root_path . "language/lang_english/lang_weblog_admin.$phpEx") === false) ! { ! mx_message_die(CRITICAL_ERROR, 'Language file ' . $module_root_path . "language/lang_" . $default_lang . "/lang_weblog_admin.$phpEx" . ' couldn\'t be opened.'); ! } } Index: admin_weblog_mood.php =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/admin/admin_weblog_mood.php,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** admin_weblog_mood.php 31 Jan 2008 03:31:55 -0000 1.1.2.1 --- admin_weblog_mood.php 10 Feb 2008 02:25:39 -0000 1.1.2.2 *************** *** 44,54 **** // Read language definition // ********************************************************************** ! if ( file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_weblog_admin.' . $phpEx ) ) ! { ! include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_weblog_admin.' . $phpEx ); ! } ! else if ( file_exists( $module_root_path . 'language/lang_english/lang_weblog_admin.' . $phpEx ) ) { ! include( $module_root_path . 'language/lang_english/lang_weblog_admin.' . $phpEx ); } --- 44,53 ---- // Read language definition // ********************************************************************** ! if ((@include $module_root_path . "language/lang_" . $default_lang . "/lang_weblog_admin.$phpEx") === false) { ! if ((@include $module_root_path . "language/lang_english/lang_weblog_admin.$phpEx") === false) ! { ! mx_message_die(CRITICAL_ERROR, 'Language file ' . $module_root_path . "language/lang_" . $default_lang . "/lang_weblog_admin.$phpEx" . ' couldn\'t be opened.'); ! } } Index: admin_weblog_templates.php =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/admin/admin_weblog_templates.php,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** admin_weblog_templates.php 31 Jan 2008 03:31:55 -0000 1.1.2.1 --- admin_weblog_templates.php 10 Feb 2008 02:25:40 -0000 1.1.2.2 *************** *** 44,54 **** // Read language definition // ********************************************************************** ! if ( file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_weblog_admin.' . $phpEx ) ) ! { ! include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_weblog_admin.' . $phpEx ); ! } ! else if ( file_exists( $module_root_path . 'language/lang_english/lang_weblog_admin.' . $phpEx ) ) { ! include( $module_root_path . 'language/lang_english/lang_weblog_admin.' . $phpEx ); } --- 44,53 ---- // Read language definition // ********************************************************************** ! if ((@include $module_root_path . "language/lang_" . $default_lang . "/lang_weblog_admin.$phpEx") === false) { ! if ((@include $module_root_path . "language/lang_english/lang_weblog_admin.$phpEx") === false) ! { ! mx_message_die(CRITICAL_ERROR, 'Language file ' . $module_root_path . "language/lang_" . $default_lang . "/lang_weblog_admin.$phpEx" . ' couldn\'t be opened.'); ! } } Index: admin_weblog_cfg.php =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/admin/admin_weblog_cfg.php,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** admin_weblog_cfg.php 31 Jan 2008 03:31:55 -0000 1.1.2.1 --- admin_weblog_cfg.php 10 Feb 2008 02:25:39 -0000 1.1.2.2 *************** *** 45,55 **** // Read language definition // ********************************************************************** ! if ( file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_weblog_admin.' . $phpEx ) ) ! { ! include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_weblog_admin.' . $phpEx ); ! } ! else if ( file_exists( $module_root_path . 'language/lang_english/lang_weblog_admin.' . $phpEx ) ) { ! include( $module_root_path . 'language/lang_english/lang_weblog_admin.' . $phpEx ); } --- 45,54 ---- // Read language definition // ********************************************************************** ! if ((@include $module_root_path . "language/lang_" . $default_lang . "/lang_weblog_admin.$phpEx") === false) { ! if ((@include $module_root_path . "language/lang_english/lang_weblog_admin.$phpEx") === false) ! { ! mx_message_die(CRITICAL_ERROR, 'Language file ' . $module_root_path . "language/lang_" . $default_lang . "/lang_weblog_admin.$phpEx" . ' couldn\'t be opened.'); ! } } Index: admin_weblog_tools.php =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/admin/admin_weblog_tools.php,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** admin_weblog_tools.php 31 Jan 2008 03:31:55 -0000 1.1.2.1 --- admin_weblog_tools.php 10 Feb 2008 02:25:40 -0000 1.1.2.2 *************** *** 42,52 **** // Read language definition // ********************************************************************** ! if ( file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_weblog_admin.' . $phpEx ) ) ! { ! include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_weblog_admin.' . $phpEx ); ! } ! else if ( file_exists( $module_root_path . 'language/lang_english/lang_weblog_admin.' . $phpEx ) ) { ! include( $module_root_path . 'language/lang_english/lang_weblog_admin.' . $phpEx ); } --- 42,51 ---- // Read language definition // ********************************************************************** ! if ((@include $module_root_path . "language/lang_" . $default_lang . "/lang_weblog_admin.$phpEx") === false) { ! if ((@include $module_root_path . "language/lang_english/lang_weblog_admin.$phpEx") === false) ! { ! mx_message_die(CRITICAL_ERROR, 'Language file ' . $module_root_path . "language/lang_" . $default_lang . "/lang_weblog_admin.$phpEx" . ' couldn\'t be opened.'); ! } } Index: admin_weblog_groups.php =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/admin/admin_weblog_groups.php,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** admin_weblog_groups.php 31 Jan 2008 03:34:15 -0000 1.1.2.1 --- admin_weblog_groups.php 10 Feb 2008 02:25:39 -0000 1.1.2.2 *************** *** 43,53 **** // Read language definition // ********************************************************************** ! if ( file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_weblog_admin.' . $phpEx ) ) ! { ! include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_weblog_admin.' . $phpEx ); ! } ! else if ( file_exists( $module_root_path . 'language/lang_english/lang_weblog_admin.' . $phpEx ) ) { ! include( $module_root_path . 'language/lang_english/lang_weblog_admin.' . $phpEx ); } --- 43,54 ---- // Read language definition // ********************************************************************** ! $default_lang = ($mx_user->lang['default_lang']) ? $mx_user->lang['default_lang'] : (($board_config['default_lang']) ? $board_config['default_lang'] : 'english'); ! ! if ((@include $module_root_path . "language/lang_" . $default_lang . "/lang_weblog_admin.$phpEx") === false) { ! if ((@include $module_root_path . "language/lang_english/lang_weblog_admin.$phpEx") === false) ! { ! mx_message_die(CRITICAL_ERROR, 'Language file ' . $module_root_path . "language/lang_" . $default_lang . "/lang_weblog_admin.$phpEx" . ' couldn\'t be opened.'); ! } } *************** *** 292,296 **** } ! $this_userdata = get_userdata($group_moderator, true); $group_moderator = $this_userdata['user_id']; --- 293,297 ---- } ! $this_userdata = mx_get_userdata($group_moderator, true); $group_moderator = $this_userdata['user_id']; |
|
From: OryNider <ory...@us...> - 2008-02-10 02:01:06
|
Update of /cvsroot/mxbb/mx_phpbb/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv5862 Modified Files: forum_hack.php Log Message: $code = str_replace('phpbb_clean_username(', 'phpBB2::phpbb_clean_username(', $code); Index: forum_hack.php =================================================================== RCS file: /cvsroot/mxbb/mx_phpbb/includes/forum_hack.php,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -d -r1.31 -r1.32 *** forum_hack.php 8 Feb 2008 07:48:13 -0000 1.31 --- forum_hack.php 10 Feb 2008 02:01:01 -0000 1.32 *************** *** 962,966 **** // Replaces same function in bbcode.php // -------------------------------------------------------------------------------- ! function smilies_pass( $message ) { // --- 962,966 ---- // Replaces same function in bbcode.php // -------------------------------------------------------------------------------- ! function smilies_pass($message) { // *************** *** 1020,1024 **** // Force full url // -------------------------------------------------------------------------------- ! function _force_full_url( &$string, &$script_names_ary ) { for( $i = 0; $i < count( $script_names_ary ); $i++ ) --- 1020,1024 ---- // Force full url // -------------------------------------------------------------------------------- ! function _force_full_url(&$string, &$script_names_ary) { for( $i = 0; $i < count( $script_names_ary ); $i++ ) *************** *** 1032,1036 **** // mxbb_reformat - fixup (truncates) urls, images and words (wrapping) for a narrow column layout // -------------------------------------------------------------------------------- ! function mxbb_magic( $mytext = '' ) { global $board_config; --- 1032,1036 ---- // mxbb_reformat - fixup (truncates) urls, images and words (wrapping) for a narrow column layout // -------------------------------------------------------------------------------- ! function mxbb_magic($mytext = '') { global $board_config; *************** *** 1048,1052 **** // into relative versions when the server/script path matches the link // -------------------------------------------------------------------------------- ! function _magic_url( $url ) { global $board_config; --- 1048,1052 ---- // into relative versions when the server/script path matches the link // -------------------------------------------------------------------------------- ! function _magic_url($url) { global $board_config; *************** *** 1612,1616 **** $code = str_replace('$template->pparse(', "\n" . '$mx_forum->common_template_vars();' . "\n" . '$template->pparse(', $code); ! switch ( $phpbb_file ) { case 'index': --- 1612,1616 ---- $code = str_replace('$template->pparse(', "\n" . '$mx_forum->common_template_vars();' . "\n" . '$template->pparse(', $code); ! switch ($phpbb_file) { case 'index': *************** *** 1662,1665 **** --- 1662,1671 ---- break; + /* + case 'groupcp': + $code = str_replace('phpbb_clean_username(', 'phpBB2::phpbb_clean_username(', $code); + + break; + */ case 'includes/usercp_register': *************** *** 1706,1715 **** } ! /* //this funtions are now in funtion container $code = str_replace('get_db_stat', 'phpBB2::get_db_stat', $code); $code = str_replace('create_date', 'phpBB2::create_date', $code); ! */ ! // // Now do a recursive study of sub includes ;) --- 1712,1721 ---- } ! //this funtions are now in funtion container $code = str_replace('get_db_stat', 'phpBB2::get_db_stat', $code); $code = str_replace('create_date', 'phpBB2::create_date', $code); ! $code = str_replace('phpbb_clean_username(', 'phpBB2::phpbb_clean_username(', $code); ! // // Now do a recursive study of sub includes ;) |
|
From: OryNider <ory...@us...> - 2008-02-09 22:11:43
|
Update of /cvsroot/mxbb/core/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv8338 Modified Files: mx_functions_style.php Log Message: global $mx_page, $mx_request_vars; Index: mx_functions_style.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions_style.php,v retrieving revision 1.42 retrieving revision 1.43 diff -C2 -d -r1.42 -r1.43 *** mx_functions_style.php 9 Feb 2008 21:13:56 -0000 1.42 --- mx_functions_style.php 9 Feb 2008 22:11:35 -0000 1.43 *************** *** 703,707 **** global $userdata, $board_config, $portal_config, $theme, $images; global $template, $lang, $phpEx, $phpbb_root_path, $mx_root_path, $db; ! global $mx_page; // --- 703,707 ---- global $userdata, $board_config, $portal_config, $theme, $images; global $template, $lang, $phpEx, $phpbb_root_path, $mx_root_path, $db; ! global $mx_page, $mx_request_vars; // |
|
From: MW <jo...@us...> - 2008-02-09 21:14:34
|
Update of /cvsroot/mxbb/core/modules/mx_users/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv17233/modules/mx_users/admin Modified Files: admin_prune_users.php Log Message: more use of request_vars wrapper class Index: admin_prune_users.php =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_users/admin/admin_prune_users.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** admin_prune_users.php 4 Feb 2008 18:53:12 -0000 1.2 --- admin_prune_users.php 9 Feb 2008 21:14:27 -0000 1.3 *************** *** 41,45 **** } ! if ( $_POST['submit'] ) { foreach ( $_POST['inactive_users'] as $user_id ) --- 41,45 ---- } ! if ($mx_request_vars->is_post('submit')) { foreach ( $_POST['inactive_users'] as $user_id ) *************** *** 220,224 **** mx_message_die(GENERAL_MESSAGE, $message); } ! elseif ( isset ( $_POST['fetch'] ) ) { // fetch inactive users list --- 220,224 ---- mx_message_die(GENERAL_MESSAGE, $message); } ! elseif ($mx_request_vars->is_post('fetch')) { // fetch inactive users list *************** *** 259,279 **** ); ! // build template switches ! if ( isset( $_POST['login_check'] ) ) ! { ! $template->assign_block_vars("inactive_users.user_lastvisit", array() ); ! } ! if ( isset( $_POST['registered_check'] ) ) ! { ! $template->assign_block_vars("inactive_users.user_regdate", array() ); ! } ! if ( isset( $_POST['active_check'] ) ) ! { ! $template->assign_block_vars("inactive_users.user_active", array() ); ! } ! if ( isset( $_POST['posts_check'] ) ) ! { ! $template->assign_block_vars("inactive_users.user_posts", array() ); ! } } --- 259,279 ---- ); ! // build template switches ! if ($mx_request_vars->is_post('login_check')) ! { ! $template->assign_block_vars("inactive_users.user_lastvisit", array() ); ! } ! if ($mx_request_vars->is_post('registered_check')) ! { ! $template->assign_block_vars("inactive_users.user_regdate", array() ); ! } ! if ($mx_request_vars->is_post('active_check')) ! { ! $template->assign_block_vars("inactive_users.user_active", array() ); ! } ! if ($mx_request_vars->is_post('posts_check')) ! { ! $template->assign_block_vars("inactive_users.user_posts", array() ); ! } } *************** *** 282,301 **** // build template switches ! if ( isset( $_POST['login_check'] ) ) { $template->assign_block_vars("user_lastvisit", array() ); $number_of_columns++; } ! if ( isset( $_POST['registered_check'] ) ) { $template->assign_block_vars("user_regdate", array() ); $number_of_columns++; } ! if ( isset( $_POST['active_check'] ) ) { $template->assign_block_vars("user_active", array() ); $number_of_columns++; } ! if ( isset( $_POST['posts_check'] ) ) { $template->assign_block_vars("user_posts", array() ); --- 282,301 ---- // build template switches ! if ($mx_request_vars->is_post('login_check')) { $template->assign_block_vars("user_lastvisit", array() ); $number_of_columns++; } ! if ($mx_request_vars->is_post('registered_check')) { $template->assign_block_vars("user_regdate", array() ); $number_of_columns++; } ! if ($mx_request_vars->is_post('active_check')) { $template->assign_block_vars("user_active", array() ); $number_of_columns++; } ! if ($mx_request_vars->is_post('posts_check')) { $template->assign_block_vars("user_posts", array() ); *************** *** 441,462 **** function mx_users_inactive() { ! global $db, $lang, $board_config, $_POST; $inactive_users = array(); ! if ( $_POST['registered_check'] ) { ! $sql_registered = " " . str_replace("\'", "''", $_POST['user_registered_condition']) . " `user_regdate` >= '" . ( int ) str_replace("\'", "''", $_POST['user_registered']) . "'"; } ! if ( $_POST['login_check'] ) { ! $sql_login = " " . str_replace("\'", "''", $_POST['user_lastvisit_condition']) . " `user_lastvisit` <= '" . ( int ) str_replace("\'", "''", $_POST['user_lastvisit']) . "'"; } ! if ( $_POST['active_check'] ) { ! $sql_active = " " . str_replace("\'", "''", $_POST['user_active_condition']) . " `user_active` = '" . ( int ) str_replace("\'", "''", $_POST['user_active']) . "'"; } ! if ( $_POST['posts_check'] ) { ! $sql_posts = " " . str_replace("\'", "''", $_POST['user_posts_condition']) . " `user_posts` " . str_replace("\'", "''", $_POST['user_posts_sign']) . " '" . ( int ) str_replace("\'", "''", $_POST['user_posts']) . "'"; } --- 441,462 ---- function mx_users_inactive() { ! global $db, $lang, $board_config, $mx_request_vars; $inactive_users = array(); ! if ($mx_request_vars->is_post('registered_check')) { ! $sql_registered = " " . str_replace("\'", "''", $mx_request_vars->post('user_registered_condition', MX_TYPE_NO_TAGS)) . " `user_regdate` >= '" . ( int ) str_replace("\'", "''", $mx_request_vars->post('user_registered', MX_TYPE_NO_TAGS)) . "'"; } ! if ($mx_request_vars->is_post('login_check')) { ! $sql_login = " " . str_replace("\'", "''", $mx_request_vars->post('user_lastvisit_condition', MX_TYPE_NO_TAGS)) . " `user_lastvisit` <= '" . ( int ) str_replace("\'", "''", $mx_request_vars->post('user_lastvisit', MX_TYPE_NO_TAGS)) . "'"; } ! if ($mx_request_vars->is_post('active_check')) { ! $sql_active = " " . str_replace("\'", "''", $mx_request_vars->post('user_active_condition', MX_TYPE_NO_TAGS)) . " `user_active` = '" . ( int ) str_replace("\'", "''", $mx_request_vars->post('user_active', MX_TYPE_NO_TAGS)) . "'"; } ! if ($mx_request_vars->is_post('posts_check')) { ! $sql_posts = " " . str_replace("\'", "''", $mx_request_vars->post('user_posts_condition', MX_TYPE_NO_TAGS)) . " `user_posts` " . str_replace("\'", "''", $mx_request_vars->post('user_posts_sign', MX_TYPE_NO_TAGS)) . " '" . ( int ) str_replace("\'", "''", $mx_request_vars->post('user_posts', MX_TYPE_NO_TAGS)) . "'"; } *************** *** 466,473 **** // Build conditions array $conditions = array( ! 'user_regdate' => array( 'check' => 'registered_check', 'variable' => 'sql_registered', 'condition' => str_replace("\'", "''", $_POST['user_registered_condition'] ) ), ! 'user_lastvisit' => array( 'check' => 'login_check', 'variable' => 'sql_login', 'condition' => str_replace("\'", "''", $_POST['user_lastvisit_condition']) ), ! 'user_active' => array( 'check' => 'active_check', 'variable' => 'sql_active', 'condition' => str_replace("\'", "''", $_POST['user_active_condition']) ), ! 'user_posts' => array( 'check' => 'posts_check', 'variable' => 'sql_posts', 'condition' => str_replace("\'", "''", $_POST['user_posts_condition']) ), 'non_anonymous' => array( 'variable' => 'sql_non_anonymous', 'condition' => 'AND' ) ); --- 466,473 ---- // Build conditions array $conditions = array( ! 'user_regdate' => array( 'check' => 'registered_check', 'variable' => 'sql_registered', 'condition' => str_replace("\'", "''", $mx_request_vars->post('user_registered_condition', MX_TYPE_NO_TAGS)) ), ! 'user_lastvisit' => array( 'check' => 'login_check', 'variable' => 'sql_login', 'condition' => str_replace("\'", "''", $mx_request_vars->post('user_lastvisit_condition', MX_TYPE_NO_TAGS))), ! 'user_active' => array( 'check' => 'active_check', 'variable' => 'sql_active', 'condition' => str_replace("\'", "''", $mx_request_vars->post('user_active_condition', MX_TYPE_NO_TAGS))), ! 'user_posts' => array( 'check' => 'posts_check', 'variable' => 'sql_posts', 'condition' => str_replace("\'", "''", $mx_request_vars->post('user_posts_condition', MX_TYPE_NO_TAGS))), 'non_anonymous' => array( 'variable' => 'sql_non_anonymous', 'condition' => 'AND' ) ); |
|
From: MW <jo...@us...> - 2008-02-09 21:14:31
|
Update of /cvsroot/mxbb/core/modules/mx_phpbb3blocks In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv17233/modules/mx_phpbb3blocks Modified Files: mx_viewforum.php Log Message: more use of request_vars wrapper class Index: mx_viewforum.php =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_phpbb3blocks/mx_viewforum.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** mx_viewforum.php 4 Feb 2008 16:53:57 -0000 1.2 --- mx_viewforum.php 9 Feb 2008 21:14:27 -0000 1.3 *************** *** 227,231 **** $db->sql_freeresult($result); ! if (isset($_POST['sort'])) { $start = 0; --- 227,231 ---- $db->sql_freeresult($result); ! if ($mx_request_vars->is_post('sort')) { $start = 0; |