|
From: Jon O. <jon...@us...> - 2008-03-13 19:15:29
|
Update of /cvsroot/mxbb/mx_pafiledb In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv2926 Modified Files: db_install.php dload.php dload_lists.php dload_mini.php dload_quickdl.php Log Message: enable_module bugfix Index: dload_mini.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/dload_mini.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** dload_mini.php 23 Feb 2008 19:41:21 -0000 1.5 --- dload_mini.php 13 Mar 2008 19:15:20 -0000 1.6 *************** *** 55,61 **** // =================================================== ! // if the database disabled give them a nice message // =================================================== ! if ( intval( $pafiledb_config['module_enable'] ) ) { mx_message_die( GENERAL_MESSAGE, $lang['pafiledb_disable'] ); --- 55,61 ---- // =================================================== ! // if the module is disabled give them a nice message // =================================================== ! if (!($pafiledb_config['enable_module'] || $mx_user->is_admin)) { mx_message_die( GENERAL_MESSAGE, $lang['pafiledb_disable'] ); Index: dload_lists.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/dload_lists.php,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -d -r1.27 -r1.28 *** dload_lists.php 23 Feb 2008 19:41:21 -0000 1.27 --- dload_lists.php 13 Mar 2008 19:15:19 -0000 1.28 *************** *** 53,59 **** // =================================================== ! // if the database disabled give them a nice message // =================================================== ! if ( intval( $pafiledb_config['module_enable'] ) ) { mx_message_die( GENERAL_MESSAGE, $lang['pafiledb_disable'] ); --- 53,59 ---- // =================================================== ! // if the module is disabled give them a nice message // =================================================== ! if (!($pafiledb_config['enable_module'] || $mx_user->is_admin)) { mx_message_die( GENERAL_MESSAGE, $lang['pafiledb_disable'] ); Index: db_install.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/db_install.php,v retrieving revision 1.34 retrieving revision 1.35 diff -C2 -d -r1.34 -r1.35 *** db_install.php 18 Feb 2008 17:34:01 -0000 1.34 --- db_install.php 13 Mar 2008 19:15:19 -0000 1.35 *************** *** 275,279 **** // General ! "INSERT INTO " . $mx_table_prefix . "pa_config VALUES ('enable_module', '0')", // settings_disable "INSERT INTO " . $mx_table_prefix . "pa_config VALUES ('module_name', 'Download Database')", // settings_dbname "INSERT INTO " . $mx_table_prefix . "pa_config VALUES ('wysiwyg_path', 'modules/mx_shared/')", --- 275,279 ---- // General ! "INSERT INTO " . $mx_table_prefix . "pa_config VALUES ('enable_module', '1')", // settings_disable "INSERT INTO " . $mx_table_prefix . "pa_config VALUES ('module_name', 'Download Database')", // settings_dbname "INSERT INTO " . $mx_table_prefix . "pa_config VALUES ('wysiwyg_path', 'modules/mx_shared/')", Index: dload.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/dload.php,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -d -r1.27 -r1.28 *** dload.php 17 Feb 2008 10:46:14 -0000 1.27 --- dload.php 13 Mar 2008 19:15:19 -0000 1.28 *************** *** 193,199 **** // =================================================== ! // if the database disabled give them a nice message // =================================================== ! if ( intval( $pafiledb_config['module_enable'] ) ) { mx_message_die( GENERAL_MESSAGE, $lang['pafiledb_disable'] ); --- 193,199 ---- // =================================================== ! // if the module is disabled give them a nice message // =================================================== ! if (!($pafiledb_config['enable_module'] || $mx_user->is_admin)) { mx_message_die( GENERAL_MESSAGE, $lang['pafiledb_disable'] ); Index: dload_quickdl.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/dload_quickdl.php,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** dload_quickdl.php 23 Feb 2008 19:41:21 -0000 1.17 --- dload_quickdl.php 13 Mar 2008 19:15:20 -0000 1.18 *************** *** 55,61 **** // =================================================== ! // if the database disabled give them a nice message // =================================================== ! if ( intval( $pafiledb_config['module_enable'] ) ) { mx_message_die( GENERAL_MESSAGE, $lang['pafiledb_disable'] ); --- 55,61 ---- // =================================================== ! // if the module is disabled give them a nice message // =================================================== ! if (!($pafiledb_config['enable_module'] || $mx_user->is_admin)) { mx_message_die( GENERAL_MESSAGE, $lang['pafiledb_disable'] ); |