Index: /branches/rel_ag_9_4_5/webui/proxy/new/inc/language/chinese.php
===================================================================
--- /branches/rel_ag_9_4_5/webui/proxy/new/inc/language/chinese.php	(revision 20397)
+++ /branches/rel_ag_9_4_5/webui/proxy/new/inc/language/chinese.php	(working copy)
@@ -3182,6 +3182,9 @@
 	'ts_download_core_file'                 => '内存映像文件(sys_core.tar.gz)',
 	'alert_file_not_found'                  => '对不起，文件不存在',
 	'download_now' => ' 下 载 ',
+	'ts_clear_crash_file' => '清除 CRASH 文件夹内的文件',
+	'ts_clear_crash_file_result' => '清除后的结果',
+	'ts_clear_crash_file_none' => '没有需要删除的文件。',
 	
 	// ADMIN TOOLS -> TROUBLESHOOTING -> Debug Monitor     
 	// Heading text, labels, etc.
Index: /branches/rel_ag_9_4_5/webui/proxy/new/inc/language/default.php
===================================================================
--- /branches/rel_ag_9_4_5/webui/proxy/new/inc/language/default.php	(revision 20397)
+++ /branches/rel_ag_9_4_5/webui/proxy/new/inc/language/default.php	(working copy)
@@ -2033,6 +2033,9 @@
 	'ts_core_file_count' => 'Number of System Core Files Included',
 	'ts_export_debug_file' => 'Export Debug Files',
 	'download_now' => 'Download Now',
+	'ts_clear_crash_file' => 'CLEAR CRASH FILES',
+	'ts_clear_crash_file_result' => 'Results After Clearing',
+	'ts_clear_crash_file_none' => 'No files need to be deleted.',
 	'ts_debug_monitor_enable' => 'Enable Debug Monitor',
 	'ts_debug_monitor_import_cli' => 'Import Debug Monitor CLI Configuration',
 	'ts_debug_monitor_imported_cli' => 'Imported Debug Monitor CLI',
Index: /branches/rel_ag_9_4_5/webui/proxy/new/inc/language/japanese.php
===================================================================
--- /branches/rel_ag_9_4_5/webui/proxy/new/inc/language/japanese.php	(revision 20397)
+++ /branches/rel_ag_9_4_5/webui/proxy/new/inc/language/japanese.php	(working copy)
@@ -3169,6 +3169,9 @@
 	'ts_download_core_file'                 => 'Core File (sys_core.tar.gz)',
 	'alert_file_not_found'                  => 'ファイルが見つかりません。',
 	'download_now' => 'ダウンロード開始',
+	'ts_clear_crash_file' => 'CRASH フォルダのファイルをクリア',
+	'ts_clear_crash_file_result' => 'クリア後の結果',
+	'ts_clear_crash_file_none' => '削除する必要のあるファイルはありません。',
 	
 	// ADMIN TOOLS -> TROUBLESHOOTING -> Debug Monitor     
 	// Heading text, labels, etc.
Index: /branches/rel_ag_9_4_5/webui/proxy/new/inc/language/traditional_chinese.php
===================================================================
--- /branches/rel_ag_9_4_5/webui/proxy/new/inc/language/traditional_chinese.php	(revision 20397)
+++ /branches/rel_ag_9_4_5/webui/proxy/new/inc/language/traditional_chinese.php	(working copy)
@@ -3182,6 +3182,9 @@
 	'ts_download_core_file' => '記憶體映像檔(sys_core.tar.gz)',
 	'alert_file_not_found' => '對不起，檔案不存在',
 	'download_now' => ' 下 載 ',
+	'ts_clear_crash_file' => '清除 CRASH 資料夾內的檔案',
+	'ts_clear_crash_file_result' => '清除後的結果',
+	'ts_clear_crash_file_none' => '沒有需要刪除的檔案。',
 	
 	// ADMIN TOOLS -> TROUBLESHOOTING -> Debug Monitor     
 	// Heading text, labels, etc.
Index: /branches/rel_ag_9_4_5/webui/proxy/new/incGlobal/adminTools/troubleshoot/class.cliWrap_gTroubleshoot.php
===================================================================
--- /branches/rel_ag_9_4_5/webui/proxy/new/incGlobal/adminTools/troubleshoot/class.cliWrap_gTroubleshoot.php	(revision 20397)
+++ /branches/rel_ag_9_4_5/webui/proxy/new/incGlobal/adminTools/troubleshoot/class.cliWrap_gTroubleshoot.php	(working copy)
@@ -52,12 +52,14 @@
 	var $gPingResult;
 	var $gTracerouteResult;
 	var $gLookupResult;
+	var $gClearCrashFilesResult;
 	var $gGlobalViewMode;
 	var $gOriginalViewMode;
 	var $gDebugFileList;
 	var $gExportMode;
 	var $htmlSectionHeaderBtns1;
 	var $htmlSectionHeaderBtns2;
+	var $htmlSectionHeaderBtns3;
 
 	/********************************************************************
 	*
@@ -112,6 +114,7 @@
 		$this->gExportMode = (isset($_POST[$this->classId.'_export_mode'])?$_POST[$this->classId.'_export_mode']:'local_file');
 		$this->htmlSectionHeaderBtns1 = '';
 		$this->htmlSectionHeaderBtns2 = '';
+		$this->htmlSectionHeaderBtns3 = '';
 
 		// ------------------------------------------------------------
 		// Check for submission of form.  Process form as necessary.
@@ -222,6 +225,17 @@
 					cli::cmd("debug snapshot system");
 					set_time_limit(30);
 					break;
+				case ($this->classId . '_clear_crash_file'):
+					$t_errStr = "";
+					$t_errStr = cli::cmd_direct("clear var");
+					$this->gClearCrashFilesResult = $t_errStr;
+					$noSpace = trim($t_errStr);
+					if (empty($noSpace)) {
+						$this->gClearCrashFilesResult = language::translate('ts_clear_crash_file_none');
+					}
+					$_POST[$this->classId . '_ts_clear_crash_files_output'] = $t_errStr;
+					$t_errStr = "";
+					break;
 				default:
 					break;
 			}
@@ -411,6 +425,27 @@
 					';
 				}
 				$this->mainContent .= '</td></tr>';
+				$this->mainContent .= anLib_htmlCode::cliWrap_endTable(true);
+				$this->mainContent .= anLib_htmlCode::pageSectionSpacer();
+				$this->mainContent .= anLib_htmlCode::pageSectionEnd();
+				// ------------------------------------------------------------
+				// Clear crash files.
+				// ------------------------------------------------------------
+					if ($this->gOriginalViewMode == CLI_CONFIG) {
+						$this->htmlSectionHeaderBtns3 =  '<B><A href="javascript:clearCrashFile();">'.language::translate('clear').'</A></B>';
+					}
+					$this->mainContent .= anLib_htmlCode::pageSectionStart('ts_clear_crash_file', 1, $this->htmlSectionHeaderBtns3);
+					$this->mainContent .= anLib_htmlCode::cliWrap_startTable();
+					$df_res = shell_exec("df -h");
+					$this->mainContent .= anLib_htmlCode::preTagBox($df_res);
+					if ($this->gOriginalViewMode == CLI_CONFIG) {
+						$this->mainContent .= anLib_htmlCode::cliWrap_rowTextArea('_ts_clear_crash_files_output',
+								'ts_clear_crash_file_result',
+								$this,
+								(!empty($_POST[$this->classId . '_ts_clear_crash_files_output']) ? (($_POST[$this->classId . '_ts_clear_crash_files_output'])) : $this->gClearCrashFilesResult),
+								$g_tabIndex++,
+								'cols="70" rows="4" wrap="off" readonly="readonly"');
+					}
 
 				break;
 			case CLI_HIDE:
@@ -600,6 +635,16 @@
 				}
 				export_mode = in_value;
 			}
+
+			function clearCrashFile(){
+				if (document.forms["form_mainView"].actionStr.value == "") {
+					document.forms["form_mainView"].target = "mainView";
+					document.forms["form_mainView"].actionStr.value = "' . $this->classId . '_clear_crash_file";
+					document.forms["form_mainView"].submit();
+				} else {
+					document.forms["form_mainView"].submit();
+				}
+			}
 		';
 	} //End of setJsAppend.
 
