Revision b8ce3e91
Added by Jim Pingle over 9 years ago
src/usr/local/www/diag_command.php | ||
---|---|---|
250 | 250 |
<input type="hidden" name="txtRecallBuffer" value="<?=htmlspecialchars($_POST['txtRecallBuffer']) ?>" /> |
251 | 251 |
|
252 | 252 |
<div class="btn-group"> |
253 |
<button type="button" class="btn btn-warning btn-sm" name="btnRecallPrev" onclick="btnRecall_onClick( this.form, -1 );" title="<?=gettext("Recall Previous Command")?>">
|
|
253 |
<button type="button" class="btn btn-success btn-sm" name="btnRecallPrev" onclick="btnRecall_onClick( this.form, -1 );" title="<?=gettext("Recall Previous Command")?>">
|
|
254 | 254 |
<i class="fa fa-angle-double-left"></i> |
255 | 255 |
</button> |
256 |
<button type="submit" class="btn btn-success btn-sm" value="EXEC" title="<?=gettext("Execute the entered command")?>">
|
|
256 |
<button type="submit" class="btn btn-warning btn-sm" value="EXEC" title="<?=gettext("Execute the entered command")?>">
|
|
257 | 257 |
<i class="fa fa-bolt"></i> |
258 | 258 |
<?=gettext("Execute"); ?> |
259 | 259 |
</button> |
260 |
<button type="button" class="btn btn-warning btn-sm" name="btnRecallNext" onclick="btnRecall_onClick( this.form, 1 );" title="<?=gettext("Recall Next Command")?>">
|
|
260 |
<button type="button" class="btn btn-success btn-sm" name="btnRecallNext" onclick="btnRecall_onClick( this.form, 1 );" title="<?=gettext("Recall Next Command")?>">
|
|
261 | 261 |
<i class="fa fa-angle-double-right"></i> |
262 | 262 |
</button> |
263 | 263 |
<button style="margin-left: 13px;" type="button" class="btn btn-default btn-sm" onclick="return Reset_onClick( this.form );" title="<?=gettext("Clear command entry")?>"> |
... | ... | |
344 | 344 |
<div class="content"> |
345 | 345 |
<textarea id="txtPHPCommand" placeholder="Command" name="txtPHPCommand" rows="9" cols="80"><?=htmlspecialchars($_POST['txtPHPCommand'])?></textarea> |
346 | 346 |
<br /> |
347 |
<button type="submit" class="btn btn-success btn-sm" value="<?=gettext("Execute")?>" title="<?=gettext("Execute this PHP Code")?>">
|
|
347 |
<button type="submit" class="btn btn-warning btn-sm" value="<?=gettext("Execute")?>" title="<?=gettext("Execute this PHP Code")?>">
|
|
348 | 348 |
<i class="fa fa-bolt"></i> |
349 | 349 |
<?=gettext("Execute")?> |
350 | 350 |
</button> |
Also available in: Unified diff
Swap the colors on Diag > Command back. Executing is dangerous, hence the warning.