|
From: Jon O. <jon...@us...> - 2006-07-05 22:50:26
|
Update of /cvsroot/mxbb/mx_pafiledb/admin In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv7415/modules/mx_pafiledb/admin Modified Files: admin_pa_file.php admin_pa_settings.php Log Message: massive update Index: admin_pa_settings.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/admin/admin_pa_settings.php,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** admin_pa_settings.php 17 Jun 2006 20:13:21 -0000 1.18 --- admin_pa_settings.php 5 Jul 2006 22:50:21 -0000 1.19 *************** *** 231,239 **** $settings_topnumber = $new['settings_topnumber']; - $settings_newdays = $new['settings_newdays']; $view_all_yes = ( $new['settings_viewall'] ) ? "checked=\"checked\"" : ""; $view_all_no = ( !$new['settings_viewall'] ) ? "checked=\"checked\"" : ""; // // Instructions --- 231,241 ---- $settings_topnumber = $new['settings_topnumber']; $view_all_yes = ( $new['settings_viewall'] ) ? "checked=\"checked\"" : ""; $view_all_no = ( !$new['settings_viewall'] ) ? "checked=\"checked\"" : ""; + $settings_newdays = $new['settings_newdays']; + $cat_col = $new['cat_col']; + // // Instructions *************** *** 408,411 **** --- 410,416 ---- 'SETTINGS_TOPNUMBER' => $settings_topnumber, + 'CAT_COL' => $cat_col, + 'L_CAT_COL' => $lang['cat_col'], + 'L_NFDAYS' => $lang['Nfdays'], 'L_NFDAYSINFO' => $lang['Nfdaysinfo'], Index: admin_pa_file.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/admin/admin_pa_file.php,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** admin_pa_file.php 17 Jun 2006 20:13:21 -0000 1.20 --- admin_pa_file.php 5 Jul 2006 22:50:21 -0000 1.21 *************** *** 222,245 **** $pafiledb->update_add_file_notify($file_id, 'add'); - /* - // - // Auto comment - // - if ( $pafiledb->comments[$cat_id]['activated'] && $this->comments[$cat_id]['autogenerate_comments'] ) - { - // - // Autogenerate comment (duplicate the notification message) - // - $mx_pa_notification = new mx_pa_notification(); - $mx_pa_notification->init( $file_id ); - $mx_pa_notification->_compose_auto_note($pa_post_mode == 'add' ? MX_NEW_NOTIFICATION : MX_EDITED_NOTIFICATION); - - // - // Generate comment - // - $this->update_add_comment('', $file_id, 0, addslashes(trim($mx_pa_notification->subject)), addslashes(trim($mx_pa_notification->message))); - } - */ - $message = $lang['Fileadded'] . '<br /><br />' . sprintf( $lang['Click_return'], '<a href="' . append_sid( "admin_pa_file.php" ) . '">', '</a>' ); mx_message_die( GENERAL_MESSAGE, $message ); --- 222,225 ---- *************** *** 260,283 **** $pafiledb->update_add_file_notify($file_id, 'edit'); - /* - // - // Auto comment - // - if ( $pafiledb->comments[$cat_id]['activated'] && $this->comments[$cat_id]['autogenerate_comments'] ) - { - // - // Autogenerate comment (duplicate the notification message) - // - $mx_pa_notification = new mx_pa_notification(); - $mx_pa_notification->init( $file_id ); - $mx_pa_notification->_compose_auto_note($pa_post_mode == 'add' ? MX_NEW_NOTIFICATION : MX_EDITED_NOTIFICATION); - - // - // Generate comment - // - $this->update_add_comment('', $file_id, 0, addslashes(trim($mx_pa_notification->subject)), addslashes(trim($mx_pa_notification->message))); - } - */ - $message = $lang['Fileedited'] . '<br /><br />' . sprintf( $lang['Click_return'], '<a href="' . append_sid( "admin_pa_file.$phpEx" ) . '">', '</a>' ) . '<br /><br />' . sprintf( $lang['Click_return_admin_index'], '<a href="' . append_sid( $mx_root_path . "admin/index.$phpEx?pane=right" ) . '">', '</a>' ); mx_message_die( GENERAL_MESSAGE, $message ); --- 240,243 ---- |