File: cmdshell.html.php

package info (click to toggle)
php-horde 5.2.1%2Bdebian0-2%2Bdeb8u3
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 12,252 kB
  • ctags: 2,180
  • sloc: php: 11,103; xml: 6,460; sh: 96; makefile: 33; sql: 1
file content (27 lines) | stat: -rw-r--r-- 1,000 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php if ($this->out): ?>
<h1 class="header"><?php echo _("Command") ?>:</h1>
<div class="horde-content">
 <code><?php echo nl2br($this->h($this->command)) ?></code>
</div>

<h1 class="header"><?php echo _("Results") ?>:</h1>
<div class="horde-content">
 <pre class="text"><?php echo $this->h(implode('', $this->out)) ?></pre>
</div>
<?php endif; ?>

<form action="<?php echo $this->action ?>" method="post">
 <?php Horde_Util::pformInput() ?>
 <input type="hidden" name="token" value="<?php echo $this->session->getToken() ?>" />
 <h1 class="header"><?php echo $this->title ?></h1>

 <div class="horde-content">
  <label for="cmd" class="hidden"><?php echo _("Command") ?></label>
  <textarea class="fixed" id="cmd" name="cmd" rows="10" cols="80"><?php echo $this->h($this->command) ?></textarea>
 </div>

 <div class="horde-form-buttons">
  <input type="submit" class="horde-default" value="<?php echo _("Execute") ?>" />
  <?php echo $this->hordeHelp('admin', 'admin-cmdshell') ?>
 </div>
</form>