|
From: Jon O. <jon...@us...> - 2005-09-08 21:16:31
|
Update of /cvsroot/mxbb/core/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14010/includes Modified Files: mx_functions_core.php Log Message: fixing up installer and search and site log Index: mx_functions_core.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions_core.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** mx_functions_core.php 7 Sep 2005 19:36:30 -0000 1.4 --- mx_functions_core.php 8 Sep 2005 21:16:18 -0000 1.5 *************** *** 1064,1068 **** function submit_parameters( $block_id = false ) { ! global $HTTP_POST_VARS, $db, $mx_cache, $lang; $return = false; --- 1064,1068 ---- function submit_parameters( $block_id = false ) { ! global $HTTP_POST_VARS, $db, $mx_cache, $lang, $userdata; $return = false; *************** *** 1108,1111 **** --- 1108,1112 ---- case 'Checkbox_multiple_select': $parameter_value = addslashes( serialize( $parameter_value ) ); + die($parameter_value); break; case 'Separator': *************** *** 1119,1122 **** --- 1120,1126 ---- } + // + // Update block data + // if ( $sub_id == $parameter_data['sub_id'] || true ) { *************** *** 1146,1149 **** --- 1150,1173 ---- mx_message_die(GENERAL_ERROR, "Couldn't update system parameter table", "", __LINE__, __FILE__, $sql); } + + // + // Update block itself + // + if( $sub_id == 0 ) + { + $block_time = time(); + $block_editor_id = $userdata['user_id']; + + $sql = "UPDATE " . BLOCK_TABLE . " + SET block_time = '" . str_replace("\'", "''", $block_time) . "', + block_editor_id = '" . intval($block_editor_id) . "' + WHERE block_id = $block_id"; + + if( !($result = $db->sql_query($sql, BEGIN_TRANSACTION)) ) + { + mx_message_die(GENERAL_ERROR, "Could not update block title information.", "", __LINE__, __FILE__, $sql); + } + } + } |