|
From: Jon O. <jon...@us...> - 2008-03-13 19:14:44
|
Update of /cvsroot/mxbb/mx_linkdb In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv1692 Modified Files: db_install.php linkdb.php linkdb_lists.php linkdb_mini.php Log Message: enable_module bugfix Index: linkdb.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/linkdb.php,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** linkdb.php 15 Feb 2008 22:44:32 -0000 1.15 --- linkdb.php 13 Mar 2008 19:14:35 -0000 1.16 *************** *** 194,200 **** // =================================================== ! // if the database disabled give them a nice message // =================================================== ! if ( intval( $linkdb_config['module_enable'] ) ) { mx_message_die( GENERAL_MESSAGE, $lang['linkdb_disable'] ); --- 194,200 ---- // =================================================== ! // if the module is disabled give them a nice message // =================================================== ! if (!($linkdb_config['enable_module'] || $mx_user->is_admin)) { mx_message_die( GENERAL_MESSAGE, $lang['linkdb_disable'] ); Index: db_install.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/db_install.php,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** db_install.php 16 Feb 2008 21:46:53 -0000 1.24 --- db_install.php 13 Mar 2008 19:14:34 -0000 1.25 *************** *** 185,189 **** // General ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('enable_module', '0')", // settings_disable "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('module_name', 'Download Database')", // settings_dbname "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('wysiwyg_path', 'modules/mx_shared/')", --- 185,189 ---- // General ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('enable_module', '1')", "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('module_name', 'Download Database')", // settings_dbname "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('wysiwyg_path', 'modules/mx_shared/')", Index: linkdb_mini.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/linkdb_mini.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** linkdb_mini.php 13 Aug 2006 19:43:51 -0000 1.2 --- linkdb_mini.php 13 Mar 2008 19:14:35 -0000 1.3 *************** *** 55,63 **** // =================================================== ! // if the database disabled give them a nice message // =================================================== ! if ( intval( $kb_config['module_enable'] ) ) { ! mx_message_die( GENERAL_MESSAGE, $lang['kb_disable'] ); } --- 55,63 ---- // =================================================== ! // if the module is disabled give them a nice message // =================================================== ! if (!($linkdb_config['enable_module'] || $mx_user->is_admin)) { ! mx_message_die( GENERAL_MESSAGE, $lang['linkdb_disable'] ); } Index: linkdb_lists.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/linkdb_lists.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** linkdb_lists.php 13 Aug 2006 19:43:51 -0000 1.2 --- linkdb_lists.php 13 Mar 2008 19:14:35 -0000 1.3 *************** *** 53,59 **** // =================================================== ! // if the database disabled give them a nice message // =================================================== ! if ( intval( $linkdb_config['module_enable'] ) ) { mx_message_die( GENERAL_MESSAGE, $lang['linkdb_disable'] ); --- 53,59 ---- // =================================================== ! // if the module is disabled give them a nice message // =================================================== ! if (!($linkdb_config['enable_module'] || $mx_user->is_admin)) { mx_message_die( GENERAL_MESSAGE, $lang['linkdb_disable'] ); |