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

📄 header.php

📁 asterisk web manager,make in php,run in Linux
💻 PHP
字号:
<?php/*  Copyright (C) 2005,2006 Earl C. Terwilliger Email contact: earl@micpc.com Name : header.php Usage: HTML/JAVA Script/Header file to include in all PHP scripts        creates the common menu and overall page design    This file is part of The Asterisk WEB/PHP Management Interface.    These files are free software; you can redistribute them and/or modify    them under the terms of the GNU General Public License as published by    the Free Software Foundation; either version 2 of the License, or    (at your option) any later version.    These programs are distributed in the hope that they will be useful,    but WITHOUT ANY WARRANTY; without even the implied warranty of    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    GNU General Public License for more details.    You should have received a copy of the GNU General Public License    along with these files (see COPYING); if not, write to the:         Free Software Foundation, Inc.         59 Temple Place         Suite 330         Boston, MA  02111-1307         USA*/?><TITLE>Asterisk WEB/PHP Management Interface v1.8.1 [<?php echo $_SERVER['PHP_SELF'];?>]</TITLE><SCRIPT LANGUAGE="JavaScript" SRC="java/JSCookMenu.js"></SCRIPT><link rel="stylesheet" type="text/css" href="style/style.css"><link rel="stylesheet" type="text/css" href="theme/theme.css"><SCRIPT LANGUAGE="JavaScript" SRC="theme/theme.js"></SCRIPT><SCRIPT LANGUAGE="JavaScript">var myMenu =[    ['', 'Home',      'index.php',               '', 'Asterisk Administration'],      ['', 'AGI',       'agihtml.php',             '', 'Asterisk AGI Documentation'],      ['', 'CDR',       'javascript:void(q=prompt(\'SEARCH CDR RECORDS [Enter a search string]\',\'\'));if(q)location.href=\'cdr.php?pattern=\'+escape(q)','','CDR Log List'],      ['', 'DB',        'db.php',        '', 'Database Functions',      ['', 'CID Name Add', 'db.php?cidname', '', 'CID Name Add'],      ],      ['', 'Edit',      'dirselect.php', '', 'Edit Configuration Files'],      ['', 'Fax',       'fax.php', '', 'View FAX Files'],      ['', 'FW',        'firewall.php', '', 'Fireall Configuration'],      ['', 'Logs',      'logs.php',      '', 'List Logs'],      ['', 'Mailbox',   'mailbox.php', '', 'Add/Delete Voice Mail Box'],      ['', 'Manager','manager.php','','Asterisk Manager',      ['','Asterisk Status Overview','mgr.php','','Asterisk Status'],      ['','CDR MySQL Status','cmdexec.php?cmd=command&parms=Command:%20CDR+MySQL+Status','','CDR MySQL Status'],      ['','Commands','cmdexec.php?cmd=ListCommands&parms=','','Commands'],      ['','Database Show','cmdexec.php?cmd=command&parms=Command:%20database%20show','','List astdb'],      ['','Events','events.php','','Events List'],      ['','IAX2','','','IAX2 Commands',        ['','IAX2 Show Channels','cmdexec.php?cmd=command&parms=iax2%20show%20channels','','Sip Show Channels'],        ['','IAX2 Show Peers','cmdexec.php?cmd=command&parms=iax2%20show%20peers','','Sip Show Peers'],        ['','IAX2 Show Registry','cmdexec.php?cmd=command&parms=iax2%20show%20registry','','Sip Show Registry'],        ['','IAX2 Show Users','cmdexec.php?cmd=command&parms=iax2%20show%20users','','Sip Show Users'],      ],      ['','List Commands','cmdexec.php?cmd=ListCommands&parms=','','List Commands'],      ['','Parked Calls','cmdexec.php?cmd=ParkedCalls&parms=','','Parked Calls'],      ['','Queues','','','Queues',        ['','Queues','cmdexec.php?cmd=Queues&parms=','','Queues'],        ['','Queue Status','cmdexec.php?cmd=QueueStatus&parms=','','Queue Status'],      ],      ['','Show','','','Show',        ['','Show Dial Plan','cmdexec.php?cmd=command&parms=Command:%20Show%20DialPlan','','Show Dial Plan'],        ['','Show Applications','cmdexec.php?cmd=command&parms=Command:%20Show%20Applications','','Show Applications'],        ['','Show Codecs','cmdexec.php?cmd=command&parms=Command:%20Show%20Codecs','','Show Codecs'],        ['','Show Modules','cmdexec.php?cmd=command&parms=Command:%20Show%20Modules','','Show Modules'],        ['','Show Queues','cmdexec.php?cmd=command&parms=Command:%20Show%20Queues','','Show Queues'],        ['','Show Translation','cmdexec.php?cmd=command&parms=Command:%20Show%20Translation','','Show Translation'],        ['','Show Version','cmdexec.php?cmd=command&parms=Command:%20Show%20Version','','Show Version'],        ['','Show Uptime','cmdexec.php?cmd=command&parms=Command:%20Show%20Uptime','','Show Uptime'],      ],      ['', 'Sip','','','Sip Commands',        ['','Sip Show Channels','cmdexec.php?cmd=command&parms=sip%20show%20channels','','Sip Show Channels'],        ['','Sip Show Peers','cmdexec.php?cmd=command&parms=sip%20show%20peers','','Sip Show Peers'],        ['','Sip Show Registry','cmdexec.php?cmd=command&parms=sip%20show%20registry','','Sip Show Registry'],        ['','Sip Show Users','cmdexec.php?cmd=command&parms=sip%20show%20users','','Sip Show Users'],      ],      ['','Status','cmdexec.php?cmd=Status&parms=','','Status'],      ['', 'Zap','','','Zap Commands',        ['','Zap Show Channel','cmdprompt.php?cmd=command&parms=Command:%20Zap%20Show%20Channel&prompt=Channel&vars=no','','ZapShowChannel'],        ['','Zap Show Channels','cmdexec.php?cmd=ZapShowChannels&parms=','','ZapShowChannels'],        ['','Zap Show Status','cmdexec.php?cmd=command&parms=Command:%20Zap%20Show%20Status','','Zap Show Status'],      ],    ],    ['', 'MySQL', 'myadmin.php', '', 'MySQL Administration',        ['', 'Search CDR    Records', 'webcdr.php',    '', 'Search CDR Records'],        ['', 'Search Events Records', 'webevents.php', '', 'Search Event Records'],      ],    ['', 'Originate', '', '', 'Originate Calls',        ['', 'Button Select', 'callselect.php', '', 'Originate a Call from SIP.CONF'],        ['', 'Originate', 'originate.php', '', 'Originate a Call'],      ],    ['', 'PHPInfo',   'phpinfo.php',   '', 'PHP Configuration'],      ['', 'Sound',     'sound.php',     '', 'Sound Files'],      ['', 'TC',        'tc.php',        '', 'Traffic Control'],      ['', 'VoiceMail', 'webvmail.php',   '', 'Web VoiceMail'],      ['', 'Wanrouter', '', '', 'Wanrouter Functions',       ['', 'Wanrouter status',  'sysexec.php?cmd=wanrouter%20status','','Wanrouter Status'],       ['', 'Wanrouter help',    'sysexec.php?cmd=wanrouter%20help','','Wanrouter help'],     ['', 'Wanrouter hwprobe', 'sysexec.php?cmd=wanrouter%20hwprobe','','Wanrouter hwprobe'],     ['', 'Wanrouter start',   'sysexec.php?cmd=wanrouter%20start','','Wanrouter start'],     ['', 'Wanrouter stop',    'sysexec.php?cmd=wanrouter%20stop','','Wanrouter stop'],     ['', 'Wanrouter list',    'sysexec.php?cmd=wanrouter%20list','','Wanrouter list'],     ['', 'Wanrouter summary', 'sysexec.php?cmd=wanrouter%20summary','','Wanrouter summary'],     ['', 'Wanrouter modules', 'sysexec.php?cmd=wanrouter%20modules','','Wanrouter modules'],     ['', 'Wanrouter messages', 'sysexec.php?cmd=wanrouter%20messages','','Wanrouter messages'],    ]];</SCRIPT><div align=center><a href=index.php><img src=images/asterisk-logo.gif border=0></img></a>&nbsp;&nbsp;  <a href=cmdexec.php?cmd=command&parms=Command:%20reload>Reload</a>&nbsp;&nbsp;  <a href=sysexec.php?cmd=asterisk%20&>Start</a>&nbsp;&nbsp;  <a href=cmdexec.php?cmd=command&parms=Command:%20stop%20now>Stop</a>&nbsp;&nbsp;  <a href=sysexec.php?cmd=killall+-9+asterisk>Kill</a>&nbsp;&nbsp;  <a href=cmdexec.php?cmd=Ping&parms=>Ping</a>&nbsp;&nbsp;  <a href=cmdexec.php?cmd=command&parms=Command:%20Help>Help</a><?php include('files.php'); if (file_exists($ASTERKILL)) {  echo "&nbsp;&nbsp;";  echo "<a href=sysexec.php?cmd=$ASTERKILL>AsterKill</a>"; } if (file_exists($ASTERSTART)) {  echo "&nbsp;&nbsp;";  echo "<a href=sysfork.php?cmd=$ASTERSTART>AsterStart</a>"; }?>&nbsp;&nbsp;  <a href=index.php><img src=images/astwebmgr-logo.png border=0></img></a><br></div><DIV ID=myMenuID align=center><SCRIPT LANGUAGE="JavaScript">cmDraw ('myMenuID', myMenu, 'hbr', cmThemeOffice, 'ThemeOffice');</SCRIPT></DIV><br>

⌨️ 快捷键说明

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