|
Revision 11663, 1.9 kB
(checked in by p_lindheimer, 2 years ago)
|
remove most ereg() re #4001
|
- Property svn:eol-style set to
native
- Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 |
|
|---|
| 23 |
|
|---|
| 24 |
|
|---|
| 25 |
$txtCommand = isset($_POST['txtCommand'])?$_POST['txtCommand']:''; |
|---|
| 26 |
|
|---|
| 27 |
$tabindex = 0; |
|---|
| 28 |
?> |
|---|
| 29 |
|
|---|
| 30 |
<h2><?php echo _("Asterisk CLI")?></h2> |
|---|
| 31 |
|
|---|
| 32 |
<form action="config.php?type=tool&display=cli" method="POST" enctype="multipart/form-data" name="frmExecPlus"> |
|---|
| 33 |
<table> |
|---|
| 34 |
<tr> |
|---|
| 35 |
<td class="label" align="right"><?php echo _("Command:")?></td> |
|---|
| 36 |
<td class="type"><input name="txtCommand" type="text" size="70" value="<?php htmlspecialchars($txtCommand);?>" tabindex="<?php echo ++$tabindex;?>"></td> |
|---|
| 37 |
</tr> |
|---|
| 38 |
|
|---|
| 39 |
<tr> |
|---|
| 40 |
<td valign="top"> </td> |
|---|
| 41 |
<td valign="top" class="label"> |
|---|
| 42 |
<input type="submit" class="button" value="<?php echo _("Execute:")?>" tabindex="<?php echo ++$tabindex;?>"> |
|---|
| 43 |
</td> |
|---|
| 44 |
</tr> |
|---|
| 45 |
|
|---|
| 46 |
<tr> |
|---|
| 47 |
<td height="8"></td> |
|---|
| 48 |
<td></td> |
|---|
| 49 |
</tr> |
|---|
| 50 |
</table> |
|---|
| 51 |
</form> |
|---|
| 52 |
|
|---|
| 53 |
<p> |
|---|
| 54 |
<?php if (isBlank($txtCommand)): ?> |
|---|
| 55 |
</p> |
|---|
| 56 |
<?php endif; |
|---|
| 57 |
|
|---|
| 58 |
function isBlank( $arg ) { return (trim($arg) == ''); } |
|---|
| 59 |
|
|---|
| 60 |
if (!isBlank($txtCommand)) |
|---|
| 61 |
{ |
|---|
| 62 |
$html_out = cli_runcommand($txtCommand); |
|---|
| 63 |
echo $html_out; |
|---|
| 64 |
} |
|---|
| 65 |
|
|---|
| 66 |
?> |
|---|
| 67 |
|
|---|
| 68 |
|
|---|