⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 syslog.html.svn-base

📁 asterisk-gui asterisk网关接口编程 控制asterisk的接口
💻 SVN-BASE
字号:
<!-- * Asterisk-GUI	-	an Asterisk configuration interface * * Shows Asterisk Log messages * * Copyright (C) 2006-2007, Digium, Inc. * * Mark Spencer <markster@digium.com> * Pari Nannapaneni <pari@digium.com> * * See http://www.asterisk.org for more information about * the Asterisk project. Please do not directly contact * any of the maintainers of this project for assistance; * the project provides a web site, mailing lists and IRC * channels for your use. * * This program is free software, distributed under the terms of * the GNU General Public License Version 2. See the LICENSE file * at the top of the source tree. *--><script src="scripts/prototype.js"></script><script src="scripts/astman.js"></script><script src="scripts/tooltip.js"></script><link href="stylesheets/schwing.css" media="all" rel="Stylesheet" type="text/css" /><script>function thisday_log(){	 _$('status_message').style.display = "" ;	var _ld = _$('log_day').value; 	if(  _ld < 10 ){ var space = "  "; }else{ var space = " ";  }	var tmp_command = "/bin/grep /var/log/asterisk/messages -e '" + _$('log_month').value + space + _ld 						+ " ' > /var/lib/asterisk/static-http/config/today_log.html" ;	parent.astmanEngine.run_tool( tmp_command , onSuccess = function() { _$('status_message').style.display='none'; load_todayslog(); } );}function touch_todayslog(){	parent.astmanEngine.run_tool( 'touch /var/lib/asterisk/static-http/config/today_log.html',onSuccess = function(){ thisday_log();});}function load_todayslog(){	_$('status_message').style.display= "" ;			var opt = {		method: 'get',		asynchronous: true,		onComplete: function(originalRequest){			_$('status_message').style.display = 'none' ;			_$('todaylog').innerHTML = (originalRequest.responseText) ? "<PRE>"+originalRequest.responseText.escapeHTML() +"</PRE>" : "No log messages found on this Day" ;					},		onFailure: function(t) {			_$('status_message').style.display = 'none' ;			gui_alert("Config Error: " + t.status + ": " + t.statusText);		}	};	opt.parameters="";	var tmp = new Ajax.Request("./today_log.html", opt);	return true;}function localajaxinit(){	var adjust_toScreen = function(){		var i = ASTGUI.displayHeight();		_$('todaylog').style.height = (i - 35); 	}	ASTGUI.events.add( window , 'resize', adjust_toScreen);	top._$('mainscreen').width= 798;	setWindowTitle("System Log");	// call the tool (sysinfo)	var date = new Date() ; 	showdiv_statusmessage();	_$('log_month').selectedIndex = date.getMonth() ;	_$('log_day').selectedIndex = date.getDate()  - 1 ;	_$('status_message').style.display="block";	_$('message_text').innerHTML = "Loading system Information ...";	parent.loadscreen(this);	touch_todayslog();}function free_mem(){	top._$('mainscreen').width= 540;	if( navigator.userAgent.indexOf("MSIE") == -1 ){ return true; }	try{		purge( document.body );	} catch(e){ }}</script><body id="foo" onload="localajaxinit()" bgcolor="EFEFEF"  onunload="free_mem()"><div style="font-size : 12px; padding : 4px 6px 4px 6px; border-style : solid none solid none; border-top-color : #BDC7E7; border-bottom-color : #182052; border-width : 1px 0px 1px 0px; background-color : #ef8700; color : #ffffff;">	<span style="margin-left: 4px;font-weight:bold;">Asterisk Log messages</span>	<span style="cursor: pointer; cursor: hand;" onclick="window.location.href=window.location.href;" >&nbsp;<img src="images/refresh.png" title=" Refresh " border=0 >&nbsp;</span>	<span>		<select id="log_month" class="input8">			<option value="Jan">Jan</option>			<option value="Feb">Feb</option>			<option value="Mar">Mar</option>			<option value="Apr">Apr</option>			<option value="May">May</option>			<option value="Jun">Jun</option>			<option value="Jul">Jul</option>			<option value="Aug">Aug</option>			<option value="Sep">Sep</option>			<option value="Oct">Oct</option>			<option value="Nov">Nov</option>			<option value="Dec">Dec</option>		</select>		<select id="log_day"  class="input8"><script> for(var i=1; i < 32; i++){ document.write( '<option value="' + i + '">' + i + '</option>' ); }</script></select>		<input type="button" value="Go" onclick="thisday_log();"  class="input8">	</span></div><div id="todaylog" style="font-family:courier; font-size:8.5pt; width:793px; height:475px; overflow :auto;"></div></body>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -